Can this be used to hide prices?

I have a store for a wholesale distributor. I need to have the price completely hidden for anything but a specific role. So anonymous user would see no price.

CommentFileSizeAuthor
#1 ubercart-wholesale.png312.13 KBend user
#1 ubercart-wholesale-2.png347.48 KBend user

Comments

end user’s picture

StatusFileSize
new347.48 KB
new312.13 KB

I just did this on this site http://www.maximumgrowth.ca. If an anonymous users comes in they see the current site and no buy buttons or sell price, just an info button and list price.

I normally don't use the catalog module that comes with UC and just diable it and use taxonomy/custom templates and views to structure my catalog (seems complex but pretty straight forward once you do it once)

If you use views/taxonomy to structure your site all you do is create seperate views for the catalog. One that shows fields that you want to show to the wholesale customers and one for anonymous customers. Then insert each view into a region and set the block visibility per role. So the wholesale catalog view would be seen by admin/registered user and the anonymous block visibility would be set to anonymous so admin and registered users wouldn't also see it when they are logged in.

It a bit much to explain here. Also on the node page I also used views/blocks/custom region to display a view to show a price or a notice to appropriate role.

Here's an example This is the catalog display for anonymous users http://www.maximumgrowth.ca/products/nutrients and I've attached a screen shot for registered users

http://drupal.org/files/ubercart-wholesale.png

This is the product page for anonymous users http://www.maximumgrowth.ca/products/nutrients/green-planet/hydro-fuel-b...

Attached is the registered user display.

http://drupal.org/files/ubercart-wholesale-2.png

samgreco’s picture

Excellent work. Do you know of any guides for using Views to create the catalog? I would love to move in that direction (although I am using Taxonomy Menu and the catalog vocabulary for my catalog/menu). But I would like to create facets for those and it seems that learning the Views method would be the right direction.

end user’s picture

I don't know of any guides but I was suppose to post one on the UC website a while back just haven't had the time to do a thorough write up with screen shots. Leaving out the catalog gives you quite a bit of freedom with the design. I'll see what I can muster up this weekend for the write up.

samgreco’s picture

Excellent I for one, appreciate it.

SeanA’s picture

There's no D7 version yet, but you can hide prices (and also disable the shopping cart) for specific roles using Ubercart Members-only permissions. There's also UC Price Visibility, which does have a D7 release. Using one of these modules might be an alternative to having separate views and blocks for each role.

k4m1’s picture

Has anyone been able to replicate what end user did in #1?

DanZ’s picture

Status: Active » Fixed

Closing, as this module does not address this issue, and other modules do.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.