Disclaimer: my understanding of Ubercart isn't good enough to tell if adding a price handler (http://drupal.org/node/619386) would solve this issue; feel free to mark as duplicate, in case.

I need to show the original sell_price along with the role-based one.
In uc_price_per_role_nodeapi the original price disappears. I think a quick workaround is to add something to the $node/product object that wouldn't break anything else and would be available for those interested.

Here's a patch. Simply adds $node->roleindependent_sell_price to the $node object at node_load. It applies to the dev version, though I only tested it on the release. A little documentation of the new value would also be a fair complement.

CommentFileSizeAuthor
#4 uc_price_per_role-788258.patch426 bytespinolo

Comments

webmystery’s picture

I agree. When I am logged in as a user in the manager role I see only my discounted price. The manager is responsible for running the web site and once the discount is applied we cannot see what the regular price is - it doesn't even show when we edit the order unless the price per role discount is removed. I don't want to have to log in a two different user to perform different functions to work around this.

mrsimonelliott’s picture

Hi Pinolo,
Can you add your patch pease.
thks

gengel’s picture

+1

pinolo’s picture

Status: Active » Needs review
StatusFileSize
new426 bytes

Sorry everyone! Somthing ate my patch. Here it is.

longwave’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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