WPML

Overview of the Issue

When using the YITH WC Dynamic Pricing & Discounts plugin with WPML and WooCommerce Multilingual, two problems can happen:

  • A rule for a translated product and an untranslated product does not apply to the untranslated product in a secondary language.
  • With multi-currency, a gift rule with a minimum cart subtotal does not convert the minimum. The gift comes too early or too late in a second currency.

Workaround

For a rule with untranslated products: translate every product, category and tag that the rule uses, or turn on Extend the rules to translated contents and translate the products.

For a gift with a minimum cart subtotal: add this code to your child theme’s functions.php file, or in a small plugin:

PHP
add_filter( 'ywdpd_gift_min_subtotal', function ( $amount ) {
	return apply_filters( 'wcml_raw_price_amount', $amount );
} );

The minimum subtotal then uses the shopper’s currency.

All known issues

Need Help with This Issue?

Ask a support question and we’ll look into it with you.