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

Show "Buy Now" Button only when user is logged in

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › Show "Buy Now" Button only when user is logged in

  • This topic has 1 reply, 2 voices, and was last updated 14 years, 8 months ago by wpCommerce.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 20, 2010 at 10:53 am #1711
    mudit.agarwal
    Member

    Hi,

    I want to create a product page that has a “buy now” button.[using wp- estore plugin] I want to put in a condition on this page that if user is logged in only than show the “Buy Now” button else show a login button( instead of buy now button) which will take the user to the login page and after successful login user will automatically redirected to the product page.

    I know how to check user is logged in OR not. The only problem i am having how to take user back to product page after successful login.

    Please help…

    August 21, 2010 at 1:53 am #23521
    wpCommerce
    Moderator

    You can create a “product” page with “Buy Now” button and Put that “product” page URL in the “Redirect after login” field while adding/editing a membership level in WP eMember. So when a user of that membership level logs in, he/she will be redirected to your product page. Also set protection to the “product” page so that anyone visiting that page needs to be logged in to view the content (this way only logged in members have access to that content). You can also protect the buy buttons using eMember’s section protection depending on what you are trying to do:

    http://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88

    There is also this option:

    https://support.tipsandtricks-hq.com/forums/topic/full-store-page-but-restricting-add-to-cart-functionality-to-members-only

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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