WooCommerce Subscriptions plugin currency conversion issue
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 mikey8008 on November 11, 2026, 13:20I've got a wordpress site using woocommerce subscriptions and the FOX - Currency Switcher Professional for WooCommerce.
I've noticed an issue that from the subscriptions page it doesn't convert the currency properly. EUR and GBP are the same.
It seems to affect specifically resubscribe action.
FOX 1.5.7 with Subscriptions 9.4.1
Subscriptions formats the list total correctly.
get_formatted_order_total()passes the subscription’s own currency (GBP) intowc_price(), so WooCommerce asks for the GBP symbol. FOX hookswoocommerce_currency_symbolat priority 9999, but its handler (woocommerce_currency_symbol()inclasses/woocs.php) ignores which currency was asked for. It always returns the symbol of the visitor’s currently selected currency. So £54.00 is shown as €54.00 whenever EUR is selected, and the amount itself is never converted.FOX seems to have meant to avoid this on account pages. It has a
woocs_currency_symbol_on_orderbypass, but that bypass only runs when$wp_queryisn’t set. That’s essentially never true by the time the page renders, so the bypass doesn’t fire on My Account. A commented-out block in the same function tried to respect the requested currency, so the fix I’d expect from FOX is to honour that argument.Fix to try
Add this to a code snippets plugin or your child theme’s
functions.php:phpadd_filter( 'woocommerce_currency_symbol', function ( $symbol, $currency = '' ) { // Only act when a specific currency was requested, on My Account pages. if ( ! $currency || ! function_exists( 'is_account_page' ) || ! is_account_page() ) { return $symbol; } global $WOOCS; if ( isset( $WOOCS ) && is_object( $WOOCS ) ) { $currencies = $WOOCS->get_currencies(); if ( isset( $currencies[ $currency ]['symbol'] ) ) { return $currencies[ $currency ]['symbol']; } } $symbols = get_woocommerce_currency_symbols(); return isset( $symbols[ $currency ] ) ? $symbols[ $currency ] : $symbol; }, 10000, 2 );add_filter( 'woocommerce_get_cart_item_from_session', function ( $session_data, $cart_item, $key ) { $resub = isset( $cart_item['subscription_resubscribe'] ) ? $cart_item['subscription_resubscribe'] : null; if ( empty( $resub['subscription_id'] ) || empty( $session_data['data'] ) ) { return $session_data; } global $WOOCS; if ( ! is_object( $WOOCS ) || ! $WOOCS->is_multiple_allowed ) { return $session_data; } $subscription = wcs_get_subscription( $resub['subscription_id'] ); if ( ! $subscription ) { return $session_data; } // Only adjust if Subscriptions priced this item from the original line item. $found = false; $items = $subscription->get_items(); if ( isset( $resub['line_item_id'], $items[ $resub['line_item_id'] ] ) ) { $found = true; } else { foreach ( $items as $item ) { if ( $item->get_meta( '_cart_item_key_subscription_resubscribe', true ) === $key ) { $found = true; break; } } } if ( ! $found ) { return $session_data; } $currencies = $WOOCS->get_currencies(); $currency = $subscription->get_currency(); $rate = isset( $currencies[ $currency ]['rate'] ) ? (float) $currencies[ $currency ]['rate'] : 0.0; if ( $rate <= 0 || 1.0 === $rate ) { // unknown rate, or already the base currency return $session_data; } $product = $session_data['data']; $product->set_price( (float) $product->get_price( 'edit' ) / $rate ); return $session_data; }, 20, 3 );Note for FOX support
When you report the symbol bug, you could mention this one too: the compatibility class only recognises the renewal cart key, so resubscribe is missed. It also reads
$this->cart_item_keyinsideadjust_cart_item_price_from_session(), a property that class doesn’t have, so it may log PHP warnings on renewals. Neither stops the fix above from working.
I've got a wordpress site using woocommerce subscriptions and the FOX - Currency Switcher Professional for WooCommerce.
I've noticed an issue that from the subscriptions page it doesn't convert the currency properly. EUR and GBP are the same.
It seems to affect specifically resubscribe action.
FOX 1.5.7 with Subscriptions 9.4.1
Subscriptions formats the list total correctly. get_formatted_order_total() passes the subscription’s own currency (GBP) into wc_price(), so WooCommerce asks for the GBP symbol. FOX hooks woocommerce_currency_symbol at priority 9999, but its handler (woocommerce_currency_symbol() in classes/woocs.php) ignores which currency was asked for. It always returns the symbol of the visitor’s currently selected currency. So £54.00 is shown as €54.00 whenever EUR is selected, and the amount itself is never converted.
FOX seems to have meant to avoid this on account pages. It has a woocs_currency_symbol_on_order bypass, but that bypass only runs when $wp_query isn’t set. That’s essentially never true by the time the page renders, so the bypass doesn’t fire on My Account. A commented-out block in the same function tried to respect the requested currency, so the fix I’d expect from FOX is to honour that argument.
Fix to try
Add this to a code snippets plugin or your child theme’s functions.php:
add_filter( 'woocommerce_currency_symbol', function ( $symbol, $currency = '' ) {
// Only act when a specific currency was requested, on My Account pages.
if ( ! $currency || ! function_exists( 'is_account_page' ) || ! is_account_page() ) {
return $symbol;
}
global $WOOCS;
if ( isset( $WOOCS ) && is_object( $WOOCS ) ) {
$currencies = $WOOCS->get_currencies();
if ( isset( $currencies[ $currency ]['symbol'] ) ) {
return $currencies[ $currency ]['symbol'];
}
}
$symbols = get_woocommerce_currency_symbols();
return isset( $symbols[ $currency ] ) ? $symbols[ $currency ] : $symbol;
}, 10000, 2 );
add_filter( 'woocommerce_get_cart_item_from_session', function ( $session_data, $cart_item, $key ) {
$resub = isset( $cart_item['subscription_resubscribe'] ) ? $cart_item['subscription_resubscribe'] : null;
if ( empty( $resub['subscription_id'] ) || empty( $session_data['data'] ) ) {
return $session_data;
}
global $WOOCS;
if ( ! is_object( $WOOCS ) || ! $WOOCS->is_multiple_allowed ) {
return $session_data;
}
$subscription = wcs_get_subscription( $resub['subscription_id'] );
if ( ! $subscription ) {
return $session_data;
}
// Only adjust if Subscriptions priced this item from the original line item.
$found = false;
$items = $subscription->get_items();
if ( isset( $resub['line_item_id'], $items[ $resub['line_item_id'] ] ) ) {
$found = true;
} else {
foreach ( $items as $item ) {
if ( $item->get_meta( '_cart_item_key_subscription_resubscribe', true ) === $key ) {
$found = true;
break;
}
}
}
if ( ! $found ) {
return $session_data;
}
$currencies = $WOOCS->get_currencies();
$currency = $subscription->get_currency();
$rate = isset( $currencies[ $currency ]['rate'] ) ? (float) $currencies[ $currency ]['rate'] : 0.0;
if ( $rate <= 0 || 1.0 === $rate ) { // unknown rate, or already the base currency
return $session_data;
}
$product = $session_data['data'];
$product->set_price( (float) $product->get_price( 'edit' ) / $rate );
return $session_data;
}, 20, 3 );
Note for FOX support
When you report the symbol bug, you could mention this one too: the compatibility class only recognises the renewal cart key, so resubscribe is missed. It also reads $this->cart_item_key inside adjust_cart_item_price_from_session(), a property that class doesn’t have, so it may log PHP warnings on renewals. Neither stops the fix above from working.
Quote from Alex Dev on November 12, 2026, 16:29Hello Mikey
Thank you for the detailed analysis.
1. The currency symbol: confirmed. FOX's woocommerce_currency_symbol handler returns the symbol of the visitor's selected currency and ignores the currency passed to wc_price(), so amounts stored in another currency get the wrong symbol on My Account. The amount itself is not changed, only the symbol. The task to make FOX honour the requested currency is created.
2. Resubscribe: FOX has no special handling for the resubscribe cart, so I have added your case to the same task to check it together with WooCommerce Subscriptions.
Until then, your two snippets are a fine workaround and you can keep them.
Best regards, Alex
Hello Mikey
Thank you for the detailed analysis.
1. The currency symbol: confirmed. FOX's woocommerce_currency_symbol handler returns the symbol of the visitor's selected currency and ignores the currency passed to wc_price(), so amounts stored in another currency get the wrong symbol on My Account. The amount itself is not changed, only the symbol. The task to make FOX honour the requested currency is created.
2. Resubscribe: FOX has no special handling for the resubscribe cart, so I have added your case to the same task to check it together with WooCommerce Subscriptions.
Until then, your two snippets are a fine workaround and you can keep them.
Best regards, Alex