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
First of all thank you for this great efficient plugin. It works like a charm. I just had a similar customization problem as mentioned in this post. I need to restrict the use of the “Add to Cart” button to registered users only. And if someone is not logged in it would be nice to alternatively display a “Log In” button where the “Add to Cart” button normally is.
I have gone to the eStore_misc_functions.php and have found the line of code like you described but I am myself not experienced in creating WP code. Could you help me with creating this short piece of code?
Furthermore I would require that this “restrict to signed in user” function can be item specific so that not every product in the store is restricted to signed in users.
I would really appreciate your help since I haven’t managed to get anywhere with this problem in the last month.