Closed (fixed)
Project:
Ubercart Price Per Role
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2011 at 05:49 UTC
Updated:
4 Jan 2013 at 22:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
end user commentedI 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
Comment #2
samgreco commentedExcellent 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.
Comment #3
end user commentedI 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.
Comment #4
samgreco commentedExcellent I for one, appreciate it.
Comment #5
SeanA commentedThere'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.
Comment #6
k4m1 commentedHas anyone been able to replicate what end user did in #1?
Comment #7
DanZ commentedClosing, as this module does not address this issue, and other modules do.