The role discount is applied correctly in the shopping cart. However, the order summary page and the payment page displays the original product values without the applied discount.

Comments

mbennett’s picture

Assigned: Unassigned » mbennett

I think I have found a solution. Will post once tested.

robertgarrigos’s picture

I see that the cart_view_form($items) function uses product_specials_get() function to get discounts so they are shown during cart editing. However, at the last cart page cart_view() function calls cart_get_items, which in turn uses a new function in ecommerce 4 product_price_adjust(). This last function creates a new hook to apply discounts, so there are now two of them: hook_product_specials and hook_price_adjusts, or should it be hook_adjust_price?, because product_price_adjust calls a hook_adjust_price, although the documented hook is hook_price_adjusts. I think this is an inconsistency that would need to be cleared of.

burningdog’s picture

@robertgarrigos: is this inconsistency still there, or has is been fixed in the e-Commerce 4.x release candidate?