I have some products with attributes/options to differentiate between product variants (size). I have set these up to display in a Grid with a dropdown list for the option/price selection. I have then setup the Price Per Role prices for a number of roles where users may have multiple roles...i.e. Authenticated User and Wholesale User, Wholesale User would also be an Authenticated User.

At present I'm trying to resolve two issues:

(1) Prices that appear on the dropdown do not reflect the roles (this maybe an artifact of the multiple roles, still investigating but mentioning it here).
(2) When I add an item to the cart the price is not one of those specified for any of the roles. I'm not sure what it is yet, doesn't seem anything obvious like the sum of several prices but it is always larger than any of the specified prices.

All of this may be a result of the way I'm specifying the roles...I'm trying to create two types of users - Retail and Wholesale - where Retail is assumed if the user is Unauthenticated, Authenticated with the Retail Role, Authenticated but without one of the roles (a failsafe). Wholesale is an authenticated user with the Wholesale role. Would be deligted if it's user error :-)

Cheers

CommentFileSizeAuthor
#2 uc_price_per_role.patch2.71 KBmichaelk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webmystery’s picture

I have an issue with an incorrect price being displayed when a manager, who gets a special discount, creates an order for an authenticated user. Basically it appears that the manager discount is passed to the customer that the order is being created for. The module should be basing the price on the customer and not the current user.

Thanks!

michaelk’s picture

FileSize
2.71 KB

I also ran into the issue where when an admin is placing an order through the backend (ie. /admin/store/orders/create) for another user it uses the role pricing for the admin instead of the order user.

I have created a patch to handle this case. The patch is based on version 6.x-1.1 of the module. It has had minimal testing so use it at your own risk. Someone with more experience working with Ubercart can probably write a better solution, but hopefully, this will be a help some people in the meantime. It would be good to get a fix integrated back into the base module eventually.

haysuess’s picture

Version: 6.x-1.x-dev » 6.x-1.1
Status: Active » Needs review

I am having a weird problem like this as well.

I have a Product with a drop down menu of options 1, 2, and 3.

Pricing is as follows:

Retail:
Option 1: $11.99
Option 2: $11.99
Option 3: $10.99

Wholesale:
Option 1: $6.39
Option 2: $6.39
Option 3: $5.99

When I create an order as an admin and click add product, and find the product, it displays the following pricing in the drop down menu when I try to add it

Option 1: $6.99
Option 2: $6.99
Option 3: $5.99

It would APPEAR that it is taking the base Wholesale price, and adding the Retail option price modifier. How can we fix this?

Also, if I select the product and add it to the order, the correct pricing shows up.