WooCommerce Payments hook priority change
-
Heads up!
I just came across a client site where I could see the “Order Summary” section on the checkout page refresh back to the store’s default currency while keeping the selected currency value the same. In other words, I choose USD, I’m checking out in USD for $58, and as I enter the US ZIP code, the currency in the Order Summary reverts to the store default GBP, but using the same “58” value. I end up getting charged 58 GBP, not the manually set lower GBP amount. The currency selector in the header is still in USD.
It seems to be because WooCommerce Payments 11.0 uses a new
get_store_currency_code()instead of the previousget_woocommerce_currency(), and/or WooCommerce Payments’FrontendCurrencies::get_woocommerce_currencyis now at priority 900, higher than this plugin’s 100 priority on thewoocommerce_currencyfilter.
You must be logged in to reply to this topic.