Overview of the Issue
When using YITH Deals for WooCommerce with WPML, a translated offer that ended shows again, an automatic offer becomes a popup, and a “Product category” or “Product tag” rule does not match a cart with translated products. “Show another offer” can show the offer of the default language, and the cart update after an accept can remove the offered product.
Workaround
- Go to WPMLSettingsCustom XML Configuration, add the following XML and save:
XML
<wpml-config> <custom-fields> <custom-field action="copy">_yith_wcdls_for</custom-field> <custom-field action="copy">_yith_wcdls_to</custom-field> <custom-field action="copy">yith_wcdls_automatic_deal</custom-field> </custom-fields> </wpml-config>
- Do this before you translate the offers.
- In a “Product category” rule, select both the original category and its translation.
The “Product tag” rule, “Show another offer” after a decline, and the cart update after an accept have no workaround at the moment.