ื“ืœื’ ืœืชื•ื›ืŸ ื“ืœื’ ืœืกืจื’ืœ ื”ืฆื“

Open

Reported for: WooCommerce Multilingual & Multicurrency 5.3.2

Topic Tags: Compatibility, WCML

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

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:
    if ( get_post_meta( $originalProductId, '_wcml_custom_prices_status', true ) ) {
    					$subscriptionSignUpFee = get_post_meta( $originalProductId, '_subscription_sign_up_fee_' . $currency, true );
    } else {
    
  • With:
    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 {
    

ื”ืฉืืจ ืชื’ื•ื‘ื”

ืื ื ื”ื™ืฉืืจ ื‘ื ื•ืฉื ื•ื”ื™ื” ืžื›ื‘ื“ ื›ืœืคื™ ืื—ืจื™ื. ืื ืืชื” ื–ืงื•ืง ืœืขื–ืจื” ื‘ื ื•ืฉืื™ื ืฉืื™ื ื ืงืฉื•ืจื™ื ืœืคื•ืกื˜ ื–ื”, ื”ืฉืชืžืฉ ื‘ืคื•ืจื•ื ื”ืชืžื™ื›ื” ืฉืœื ื• ื›ื“ื™ ืœื”ืชื—ื™ืœ ืฆ'ืื˜ ืื• ืœืคืชื•ื— ื›ืจื˜ื™ืก.

ืืชื” ื™ื›ื•ืœ ืœื”ืฉืชืžืฉ ื‘ืชื’ื™ื•ืช ืืœื”:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>