A A A

Please consider registering
guest

Log In Register

Login form protected by Login LockDown.


Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




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

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
How to handle wholesale customers vs. retail customers???
April 15, 2009
7:55 pm
Member
Forum Posts: 6
Member Since:
April 10, 2009
Offline

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.

April 15, 2009
10:53 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline

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.

December 14, 2010
9:59 am
Member
Forum Posts: 84
Member Since:
January 28, 2009
Offline

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

Forum Timezone: UTC 0

Most Users Ever Online: 40

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

icy1: 2371

wreed06: 175

laurie390: 168

StitchTek Services, LLC: 144

boutiqueelliette: 130

yiorgos: 127

Member Stats:

Guest Posters: 428

Members: 2252

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 4

Topics: 2983

Posts: 16042

Moderators: Market Admin (5051)

Administrators: Market Admin (5051)

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