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

Reply To: [Help] Restrict the use of "Add to cart" button only to registered user

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › [Help] Restrict the use of "Add to cart" button only to registered user › Reply To: [Help] Restrict the use of "Add to cart" button only to registered user

January 31, 2010 at 9:52 pm #17639
amin007
Participant

“I know that to perform a paypal payment, an user should have a paypal account” – this statement is not entirely true. If you don’t have PayPal you can still make a purchase with credit card.

Anyway, you should be able to achieve what you are after very easily. Search for the following function in the “eStore_misc_functions.php” file:

function get_button_code_for_product($id)

You can introduce your “is_user_loggged_in” check at the beginning of this function so if the user is not logged in you can show the “Log in” link rather than the button.

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