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.
#2415237: Change site's default currency through a 'commerce_default_currency' alter hook provides the ability to alter the default currency, but in some cases, the module requesting a default currency may need to pass in a related context (provided by og_context, a panel context, etc) to get the correct currency.
The best example is products based on organic groups. A store may have a group of products in Canada or a group in the US. by passing the product via the context, a og specific module can implement the alter with the correct context and provide the default currency for that group.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2657718-static_cache_default_currency-1.patch | 1.94 KB | japerry |
|
Comments
Comment #2
japerryHere is the re-roll to Commerce 7.x-1.13
Comment #3
rszrama CreditAttribution: rszrama at Centarro commentedAhh, thanks for the re-roll, Jakob. Sorry I missed this on my "find low hanging-fruit in the queue prior to 1.12" push. : P
Will get it reviewed / committed ASAP.