- This topic has 4 replies, 3 voices, and was last updated 5 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › I want to hide the woocommerce cart button at any level.
Please tell me what to do.
I tried the shortcode below, but the cart button disappeared up to the page I wanted to sell to free members.
Some things you want to sell to free members, and some you want to sell to paid members but you don’t want to sell to free members. How can I set each one?
[swpm_protected for = “2-3” custom_msg = “<p> Sold only for paid members </ p>”] [my_content] [/ swpm_protected]
Hi, are you currently using the following addon https://simple-membership-plugin.com/apply-partial-section-protection/?
Are you also using Divi type theme or plugin in your site?
Regards.
Yes, I am using it.
I’m using the linked add-on.
Divi type theme is not used.
You can’t just hide the cart button since WooCommerce won’t process that partial protection shortcode the same way a WordPress post or page will.
The closest option would be to protect the product or cart page entirely using the following option:
https://simple-membership-plugin.com/full-page-protection-addon-simple-membership/
Once you fully read that page, you can check the following feature to see if that can work for you to protect the “checkout and cart” pages:
Locking Down Multiple URLs using URL Patterns