Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Buy Now or Download Now button depending on whether a member or a visitor
Tagged: member button, member only download
- This topic has 10 replies, 2 voices, and was last updated 10 years, 6 months ago by Troy Media.
-
AuthorPosts
-
April 4, 2014 at 8:25 pm #10612Troy MediaSpectator
I would like to have two buttons appear on an item, depending on the following conditions:
1) Someone visits the site but is not a member. The button should read Buy Now
2) A member visits the site and signs in. The button should now read Download Now.
I read something similar to this in the forum in the past but can no longer find it.
April 4, 2014 at 8:32 pm #62118wzpModeratorSomething like this?
[emember_protected scope=not_logged_in_users_only]
Display a "Buy Now" button to visitors.
[/emember_protected]
[emember_protected scope=verified_users_only do_not_show_restricted_msg=1]
Display a "Download Now" button to logged in members.
[/emember_protected]April 4, 2014 at 8:58 pm #62119Troy MediaSpectatorThat works very well. Now can I add another criteria: membership levels?
April 4, 2014 at 9:30 pm #62120wzpModeratorYes, you can. Here is the documentation:
http://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
April 5, 2014 at 6:49 pm #62121Troy MediaSpectatorThanks. Now how would I change the message This content is for members only to To read the rest of the content, subscriber to Troy Media Marketplace. Click here (with a link to our join us page?
April 5, 2014 at 11:46 pm #62122wzpModeratorPlease follow these instructions:
April 11, 2014 at 6:33 pm #62123Troy MediaSpectator[emember_protected scope=not_logged_in_users_only]
Display a “Buy Now” button to visitors.
[/emember_protected]
[emember_protected scope=verified_users_only do_not_show_restricted_msg=1]
Display a “Download Now” button to logged in members.
[/emember_protected]
How do I change the above code to add the membership criteria so that only one level will see the Download button. We are selling our content to an Unlimited Access to all of our content level but wish site visitors or other levels to have to Add to Cart button.
April 11, 2014 at 8:09 pm #62124wzpModeratorFirst, please read this:
http://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
Now, let us suppose that “3” is the membership level that gets to see the “Download Now” button…
You’d now know to replace scope=not_logged_in_users_only with not_for=3 do_not_show_restricted_msg=1 which will show the “Buy Now” button to everyone except those who belong to membership level 3.
Then, you’d replace scope=verified_users_only with for=3, so that only those who belong to membership level 3 will see the “Download Now” button.
April 29, 2014 at 3:13 pm #62125Troy MediaSpectator[emember_protected =not_for=4-19 do_not_show_restricted_msg=1]
[wp_eStore_add_to_cart id=951]
[/emember_protected]
[emember_protected =for=4-19 do_not_show_restricted_msg=1]
[wp_eStore_download_now_button id=951]
[/emember_protected]
If I followed your directions right, this is what it should look like, right? But it doesn’t work. The buttons don’t show up for not logged in users or users from other levels, and both buttons are showing up for specified membership levels.
April 29, 2014 at 7:28 pm #62126wzpModeratorWhy do you have an equals sign “=” in front of for and not_for? Thats not correct, please check the documentation one more time.
April 30, 2014 at 1:21 pm #62127Troy MediaSpectator[emember_protected not_for=(membership level)-(membership level) do_not_show_restricted_msg=1]
[wp_eStore_add_to_cart id=]
[/emember_protected]
[emember_protected for=(membership level)-(membership level) do_not_show_restricted_msg=1]
[wp_eStore_download_now_button id=]
[/emember_protected]
This seems to now work. Thank you for your help.
-
AuthorPosts
- You must be logged in to reply to this topic.