• Resolved nickpagz

    (@nickpagz)


    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 previous get_woocommerce_currency(), and/or WooCommerce Payments’ FrontendCurrencies::get_woocommerce_currency is now at priority 900, higher than this plugin’s 100 priority on the woocommerce_currency filter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hello,
    Thank you for reaching out and for the detailed heads-up!

    I have been testing this with the latest versions of WooCommerce, WooCommerce Payments (11.0), and Price Based on Country, and I could not reproduce the issue using the standard settings.
    However, I found this problem when the built-in multi-currency feature in WooCommerce Payments is enabled.

    Could you please check if the multi-currency option in the WooCommerce Payments settings is enabled on your client’s site?

    Thread Starter nickpagz

    (@nickpagz)

    It is off, though the site has a lot of custom code, so it could be another cause for it.

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    Try the following:

    • Disable “Price based on Country”.
    • In the WooCommerce Payments settings, enable the multi-currency feature.
    • Go to the Multi-currency settings tab and remove all currencies.
    • Disable the multi-currency feature in the WooCommerce Payments settings and turn on Price Based on Country.

    I have found some installations where these steps solved the problem.

    If this doesn’t work, find the conflicting code by turning off all plugins except WooCommerce, WooPayments, and Price Based on Country, then enabling them one by one.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.