Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Buy Now or Download Now button depending on whether a member or a visitor

by

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 11 years ago by Troy Media.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • April 4, 2014 at 8:25 pm #10612
    Troy Media
    Spectator

    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 #62118
    wzp
    Moderator

    Something 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 #62119
    Troy Media
    Spectator

    That works very well. Now can I add another criteria: membership levels?

    April 4, 2014 at 9:30 pm #62120
    wzp
    Moderator

    Yes, 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 #62121
    Troy Media
    Spectator

    Thanks. 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 #62122
    wzp
    Moderator

    Please follow these instructions:

    https://support.tipsandtricks-hq.com/forums/topic/how-to-customize-various-textmessages-displayed-by-the-plugin

    April 11, 2014 at 6:33 pm #62123
    Troy Media
    Spectator

    [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 #62124
    wzp
    Moderator

    First, 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 #62125
    Troy Media
    Spectator

    [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 #62126
    wzp
    Moderator

    Why 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 #62127
    Troy Media
    Spectator

    [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.

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ