Topic RSS
Is there a way to hide prices and Add To Cart buttons from regular (retail) visitors AND allow registered wholesale accounts to login and then have complete shopping functionality with prices and Add To Cart buttons?
Maybe I could install another instance of the theme in a sub-directory of the domain, like wholesale.domain.com and require wholesale customers to register and login to access that copy of the site.
I do want to allow regular vistors to visit and browse the store items even though they can't order.
There is a built-in Wordpress function that tests if the user is a logged in member. I believe it's:
<?php if ( $user_ID ) : // Check if logged in ?>
<?php else : // User is not logged in ?>
<?php endif; ?>
If you read the "How To" post on disabling / enabling the "Buy Now" and "Add to Cart" buttons, you'll see where the individual button (and dropdown boxes) code starts and ends for each button.
If you put the beginning of the "If" code at the beginning of the buttons code, and the "else" or "endif" statement AFTER the code — I would think that could do it.
Good luck.
9:59 am
January 28, 2009
OfflineDraney, any luck with installing a wholesale section? Any feedback would be appreciated, I know this is a very old post but this would be useful for my site http://www.banksyt-shirts.com.
Thanks.
Nigel
Most Users Ever Online: 40
Currently Online:
20 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Member Stats:
Guest Posters: 428
Members: 2252
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 2983
Posts: 16042
Newest Members: Allsed, deleteduser, shanm, slidesketch, jimharrison, vmi
Moderators: Market Admin (5051)
Administrators: Market Admin (5051)

Log In
Register
Home




