You must be logged in to post


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

How to handle wholesale customers vs. retail customers???

UserPost

7:55 pm
April 15, 2009


draney

Member

posts 6

1

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.

10:53 pm
April 15, 2009


Market Admin

Admin

posts 4756

2

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
December 14, 2010


Banksy T-shirts!

London

Member

posts 84

3

Draney, 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



 

Market takes e-commerce to the next level with an easy to use, quick setup platform. Learn more or take the tour.