When an admin edits an order at admin/store/orders/%/edit, the form does not respect the role price of the customer.

Modify the form to use the correct role price of the customer.

The form for entering a new product there is uc_order_add_product_form.

Also, uc_price_per_role_find_price() will have to be updated to take the user as a parameter instead of just the current user. That way, it can use the customer roles instead of the current user roles.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DanZ’s picture

Using the role block included in this module allows you to get prices for the role of your choice. This is a viable workaround.

It would be better to get the role from the customer in the order, though.

DanZ’s picture

Issue summary: View changes

Added functions involved.

sadashiv’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
1.2 KB

Hi,

Have fixed this issue. I am attaching a patch which should fix it.

Hth,
Sadashiv.