Overview of the Issue
In WooCommerce Subscriptions with a multilingual setup, the “From” price displayed on the frontend product page for grouped subscriptions shows an incorrect value in a secondary language and currency.
Workaround
This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.
Please, make sure of having a full backup of your site before proceeding.
- Open …/wp-content/plugins/woocommerce-multilingual/compatibility/WcSubscriptions/MulticurrencyHooks.php file.
- Look for line 85.
- Replace:
PHP
if ( get_post_meta( $originalProductId, '_wcml_custom_prices_status', true ) ) { $subscriptionSignUpFee = get_post_meta( $originalProductId, '_subscription_sign_up_fee_' . $currency, true ); } else {
- With:
PHP
if ( get_post_meta( $originalProductId, '_wcml_custom_prices_status', true ) ) { $subscriptionSignUpFeeCurrency = get_post_meta( $originalProductId, '_subscription_sign_up_fee_' . $currency, true ); if (! empty($subscriptionSignUpFeeCurrency) ) { $subscriptionSignUpFee = $subscriptionSignUpFeeCurrency; } } else {