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.
Currently the price handler has no effect on the cart view.
Attached patch custom price handlers to put their own data (in attached image you can see the cart view shows the total according to a non-default-store currency).
Comment | File | Size | Author |
---|---|---|---|
alter-product-currency-1.patch | 2.09 KB | amitaibu | |
Snap1.png | 22.14 KB | amitaibu |
Comments
Comment #1
Island Usurper CreditAttribution: Island Usurper commentedThose prices are meant to be unaltered because the item's price has already been run through the price alterers in hook_cart_display(). Altering a price twice would be an error. In addition, the total price of the cart should just be the sum of the (altered) items' prices, so it shouldn't need to be altered.
They are still run through uc_price() so that the formatter still has a chance to apply its changes, because $display_item['#total'] is just a numeric value.