Cart/checkout not converting to selected currency value
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from Hero on November 10, 2026, 11:08I’m running FOX Currency Switcher on a WooCommerce store (base currency USD) and have a conversion bug isolated to the cart and checkout.
The problem:
When a customer selects a non-base currency (e.g. AUD, rate 1.444), product and shop pages convert correctly, but the cart and checkout show the base USD amount with the selected currency’s symbol — the number is not multiplied by the rate
- WooCommerce base currency: USD
- FOX storage mode: Fox Session
- I am using caching enabled
- Caching: Cloudflare APO + WP Rocket
- Version 2.5.7
I’m running FOX Currency Switcher on a WooCommerce store (base currency USD) and have a conversion bug isolated to the cart and checkout.
The problem:
When a customer selects a non-base currency (e.g. AUD, rate 1.444), product and shop pages convert correctly, but the cart and checkout show the base USD amount with the selected currency’s symbol — the number is not multiplied by the rate
- WooCommerce base currency: USD
- FOX storage mode: Fox Session
- I am using caching enabled
- Caching: Cloudflare APO + WP Rocket
- Version 2.5.7
Quote from Hero on November 10, 2026, 11:27We found that static-priced WooCommerce Product Bundles (bundles with
_wc_pb_priced_individuallyempty, carrying their own regular/sale price) do not apply the FOX currency rate in the cart or checkout. They display the base USD value with the selected currency’s symbol. Regular products convert correctly, and the bundle’s own product page converts correctly — only the cart/checkout total fails, and only for bundles.
We found that static-priced WooCommerce Product Bundles (bundles with _wc_pb_priced_individually empty, carrying their own regular/sale price) do not apply the FOX currency rate in the cart or checkout. They display the base USD value with the selected currency’s symbol. Regular products convert correctly, and the bundle’s own product page converts correctly — only the cart/checkout total fails, and only for bundles.
Quote from Alex Dev on November 11, 2026, 12:37Hello Hero
Thank you for narrowing it down to static-priced bundles.
I checked the code on both sides. FOX treats the bundle container like any simple product, and Product Bundles reads the container price in the cart the normal way, so with FOX and Product Bundles alone a static-priced bundle should convert in the cart and checkout just like on its product page.
To confirm where the problem comes from, please run one clean test on a staging copy of the site:
1. Switch the theme to Storefront.
2. Deactivate all plugins except WooCommerce, FOX and Product Bundles, and disable any custom snippets (functions.php, Code Snippets, mu-plugins).
3. Add the same bundle to the cart, switch to AUD and check the cart and checkout totals.If the bundle converts correctly there, the cause is one of the deactivated plugins, snippets or the theme. Re-enable them one by one until it breaks again and you will have the culprit. If it still fails with only these three plugins, please put the staging admin access into the private data of this topic and I will investigate it directly.
Best regards, Alex
Hello Hero
Thank you for narrowing it down to static-priced bundles.
I checked the code on both sides. FOX treats the bundle container like any simple product, and Product Bundles reads the container price in the cart the normal way, so with FOX and Product Bundles alone a static-priced bundle should convert in the cart and checkout just like on its product page.
To confirm where the problem comes from, please run one clean test on a staging copy of the site:
1. Switch the theme to Storefront.
2. Deactivate all plugins except WooCommerce, FOX and Product Bundles, and disable any custom snippets (functions.php, Code Snippets, mu-plugins).
3. Add the same bundle to the cart, switch to AUD and check the cart and checkout totals.
If the bundle converts correctly there, the cause is one of the deactivated plugins, snippets or the theme. Re-enable them one by one until it breaks again and you will have the culprit. If it still fails with only these three plugins, please put the staging admin access into the private data of this topic and I will investigate it directly.
Best regards, Alex
Quote from Hero on November 11, 2026, 12:43Hi Alex,
Thank you — that matches what I found. I’ve already isolated the culprit: Advanced Dynamic Pricing for WooCommerce PRO (ADP) v4.14.0.
On a staging copy:
- With ADP deactivated, the static-priced bundle converts correctly in both cart and checkout (e.g. a USD 49.99 bundle shows AU$ 75.79, shipping converts too) — exactly as you describe, with FOX + Product Bundles alone working fine.
- With ADP active, the bundle reverts to the base USD price in the cart/checkout, even though regular products and the bundle’s own product page still convert correctly.
I also confirmed it’s ADP’s price pipeline, not its discount rules: turning off ADP’s “Enable WooCommerce Product Bundles compatibility”, and disabling the relevant rules, did not help. When I forced the conversion via a
woocommerce_before_calculate_totalsset_pricehook, ADP overrode it with a phantom discount equal exactly to the conversion gap, pulling the price back to base USD.I’ve also opened a ticket with the ADP team about this.
My question for you: does FOX have a known compatibility approach or a recommended hook/filter for keeping bundle container prices converted when a dynamic-pricing plugin like ADP is re-reading/overriding the cart item price? Is there a FOX API I can call so the converted bundle price “sticks” through ADP’s recalculation? I’d like to coordinate a fix from whichever side is cleanest.
Hi Alex,
Thank you — that matches what I found. I’ve already isolated the culprit: Advanced Dynamic Pricing for WooCommerce PRO (ADP) v4.14.0.
On a staging copy:
- With ADP deactivated, the static-priced bundle converts correctly in both cart and checkout (e.g. a USD 49.99 bundle shows AU$ 75.79, shipping converts too) — exactly as you describe, with FOX + Product Bundles alone working fine.
- With ADP active, the bundle reverts to the base USD price in the cart/checkout, even though regular products and the bundle’s own product page still convert correctly.
I also confirmed it’s ADP’s price pipeline, not its discount rules: turning off ADP’s “Enable WooCommerce Product Bundles compatibility”, and disabling the relevant rules, did not help. When I forced the conversion via a woocommerce_before_calculate_totals set_price hook, ADP overrode it with a phantom discount equal exactly to the conversion gap, pulling the price back to base USD.
I’ve also opened a ticket with the ADP team about this.
My question for you: does FOX have a known compatibility approach or a recommended hook/filter for keeping bundle container prices converted when a dynamic-pricing plugin like ADP is re-reading/overriding the cart item price? Is there a FOX API I can call so the converted bundle price “sticks” through ADP’s recalculation? I’d like to coordinate a fix from whichever side is cleanest.
Quote from Alex Dev on November 12, 2026, 16:24Hello Hero
I took the free ADP 5.0.0 from wordpress.org and went through its code. The cause is in ADP: for a static-priced bundle it takes the container price from the database in the base currency and never applies the currency rate, while for regular products it does. That is also why your set_price() test was reverted, ADP removes any price set on the product before reading that value.
Below are two small changes to ADP's own files that make it work with FOX. Please apply them on your staging copy first and test the bundle in the cart and checkout in AUD.
Please note: these are edits inside ADP, so the next ADP update will overwrite them. Please forward this message to the ADP team in your ticket so they can include the fix in their plugin. File names are from the free 5.0.0, in your PRO 4.14.0 the files are in the same BaseVersion folder, search by the function names if the lines differ.
1. File BaseVersion/Includes/Compatibility/Container/SomewhereWarmBundlesCmp.php, function calculateContainerBasePrice(). Replace the whole function with the version below. It converts the bundle container base price by the current currency rate, the same way ADP already does it for regular products.
2. File BaseVersion/Includes/Compatibility/WoocsCmp.php, function prepareHooks(). Replace the foreach loop with the version below. It updates ADP's FOX compatibility so FOX correctly recognizes prices that ADP has already converted itself.
After both changes please clear any cache (WP Rocket, Cloudflare APO) and test with a fresh cart.
Best regards, Alex
Code
Function calculateContainerBasePrice in SomewhereWarmBundlesCmp.php replace to:
public function calculateContainerBasePrice(WcCartItemFacade $facade, array $children): float { $product = $facade->getProduct(); $currencyController = $this->context->currencyController; // In a non-base currency read the stored price from a fresh product object // (no in-memory changes) and convert it by the current rate, as for regular products if ($currencyController && $currencyController->isCurrencyChanged()) { $freshProduct = wc_get_product($product->get_id()); if ($freshProduct) { $basePrice = floatval(CartProcessor::getProductPriceDependsOnPriceMode($freshProduct)); return floatval($currencyController->getCurrentCurrencyProductPriceWithCustomPrice($freshProduct, $basePrice)); } } return floatval(CartProcessor::getProductPriceDependsOnPriceMode($product)); }Preplace WoocsCmp.php, cycle
foreach ($hooks as $hook)insideprepareHooks():from:
to:
foreach ($hooks as $hook) { add_filter($hook, function ($price, $product) { // Tell FOX the price is already converted by ADP; set the flag only if nobody else did if ($product AND $product->get_meta('adp_price_converted') AND empty($GLOBALS['woocs_block_price_hook'])) { $GLOBALS['woocs_block_price_hook'] = true; $GLOBALS['adp_woocs_block_price_hook_set'] = true; } return $price; }, 10, 2); add_filter($hook, function ($price) { // Remove only the flag that ADP set itself if ( ! empty($GLOBALS['adp_woocs_block_price_hook_set'])) { unset($GLOBALS['woocs_block_price_hook'], $GLOBALS['adp_woocs_block_price_hook_set']); } return $price; }, PHP_INT_MAX); }
Hello Hero
I took the free ADP 5.0.0 from wordpress.org and went through its code. The cause is in ADP: for a static-priced bundle it takes the container price from the database in the base currency and never applies the currency rate, while for regular products it does. That is also why your set_price() test was reverted, ADP removes any price set on the product before reading that value.
Below are two small changes to ADP's own files that make it work with FOX. Please apply them on your staging copy first and test the bundle in the cart and checkout in AUD.
Please note: these are edits inside ADP, so the next ADP update will overwrite them. Please forward this message to the ADP team in your ticket so they can include the fix in their plugin. File names are from the free 5.0.0, in your PRO 4.14.0 the files are in the same BaseVersion folder, search by the function names if the lines differ.
1. File BaseVersion/Includes/Compatibility/Container/SomewhereWarmBundlesCmp.php, function calculateContainerBasePrice(). Replace the whole function with the version below. It converts the bundle container base price by the current currency rate, the same way ADP already does it for regular products.
2. File BaseVersion/Includes/Compatibility/WoocsCmp.php, function prepareHooks(). Replace the foreach loop with the version below. It updates ADP's FOX compatibility so FOX correctly recognizes prices that ADP has already converted itself.
After both changes please clear any cache (WP Rocket, Cloudflare APO) and test with a fresh cart.
Best regards, Alex
Code
Function calculateContainerBasePrice in SomewhereWarmBundlesCmp.php replace to:
public function calculateContainerBasePrice(WcCartItemFacade $facade, array $children): float
{
$product = $facade->getProduct();
$currencyController = $this->context->currencyController;
// In a non-base currency read the stored price from a fresh product object
// (no in-memory changes) and convert it by the current rate, as for regular products
if ($currencyController && $currencyController->isCurrencyChanged()) {
$freshProduct = wc_get_product($product->get_id());
if ($freshProduct) {
$basePrice = floatval(CartProcessor::getProductPriceDependsOnPriceMode($freshProduct));
return floatval($currencyController->getCurrentCurrencyProductPriceWithCustomPrice($freshProduct, $basePrice));
}
}
return floatval(CartProcessor::getProductPriceDependsOnPriceMode($product));
}Preplace WoocsCmp.php, cycle foreach ($hooks as $hook) inside prepareHooks():
from:

to:
foreach ($hooks as $hook) {
add_filter($hook, function ($price, $product) {
// Tell FOX the price is already converted by ADP; set the flag only if nobody else did
if ($product AND $product->get_meta('adp_price_converted') AND empty($GLOBALS['woocs_block_price_hook'])) {
$GLOBALS['woocs_block_price_hook'] = true;
$GLOBALS['adp_woocs_block_price_hook_set'] = true;
}
return $price;
}, 10, 2);
add_filter($hook, function ($price) {
// Remove only the flag that ADP set itself
if ( ! empty($GLOBALS['adp_woocs_block_price_hook_set'])) {
unset($GLOBALS['woocs_block_price_hook'], $GLOBALS['adp_woocs_block_price_hook_set']);
}
return $price;
}, PHP_INT_MAX);
}
Quote from Hero on November 13, 2026, 22:00Thank you ADP fixed the plugin. Appreciate the help.
Thank you ADP fixed the plugin. Appreciate the help.
Quote from Alex Dev on November 16, 2026, 13:35Hello Hero
Great to hear that, and thank you for forwarding it to the ADP team and letting us know.
Best regards, Alex
Hello Hero
Great to hear that, and thank you for forwarding it to the ADP team and letting us know.
Best regards, Alex