Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

mojonek on "Changing the Purchase Button - Woocommerce"

$
0
0

I have to hide the possibility to buy for not logged in users (whole domain or store)

Ex:
If a user is NOT logged in (don't have an account) then the cart button etc will not show. Sees only a link "See store locator list".

Only if user logged in will they show prices and button "Buy" and they will have the opportunity to purchase.

example code
if(is_user_logged_in()

if(is_user_NOT_logged_in()
Show "See store locator list" with page URL.

How to do it?
Please could someone help?


Viewing all articles
Browse latest Browse all 8245

Trending Articles