Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | respect_role_prices_on_admin_order_page-1872860-3.patch | 1.2 KB | sadashiv |
Comments
Comment #1
DanZ CreditAttribution: DanZ commentedUsing 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.
Comment #1.0
DanZ CreditAttribution: DanZ commentedAdded functions involved.
Comment #2
sadashiv CreditAttribution: sadashiv commentedHi,
Have fixed this issue. I am attaching a patch which should fix it.
Hth,
Sadashiv.