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 the Review page is being displayed, the cart checkout pane's rows are run through uc_price, but the order isn't being provided as a part of the context of the call. I'll attach a patch shortly which does this.
Comment | File | Size | Author |
---|---|---|---|
#2 | ubercart-621494-provide_order_context_to_uc_price.patch | 12.08 KB | xurizaemon |
#1 | ubercart-621494.patch | 1.27 KB | jcfiala |
Comments
Comment #1
jcfiala CreditAttribution: jcfiala commentedSo, here's the patch I created to provide an order context to uc_price - please review.
Comment #2
xurizaemonRe-rolling against current Ubercart and attaching changes from http://www.vintagedigital.net/content/how-add-multicurrency-support-uber... as well.
This patch sets $context['subject']['order'] = $order for each core UC payment module, and in a few other locations where uc_price() might need the contextual data to set price information based on the order details.
The benefit of doing this is that the order can store currency information, and the displayed price reflect the currency which the order occurred in.
I have not looked into why this patch does this, though:
Comment #3
xurizaemonCurrently testing this code in line with development on a multicurrency payment gateway for Ubercart.
Comment #4
xurizaemonHmm. Possibly duplicated by existing work on #1097668: Multicurrency support as well.
Comment #6
longwaveIf this is to be solved in 6.x it will be done in #1097668: Multicurrency support