Hi fgianpiero,
I have the same problem by using FreeGift and WPML. It works fine in the first language, but at the second language for the customer it is not possible to add a gift.
After adding a gift, the page refreshes and removes the gift again because it doesn’t seem to match the criteria. Then the window pops up again to select a free gift.
It works fine in the main WPML language. But it doesn’t work in the second language.
Did you find a solution for the problem? It seems there is no support by the developers any more.
Hi bananamix,
Follow this steps:
1. Download the file wpml-config.xml from here: hidden link and upload it to wp-content/plugins/woocommerce-multiple-free-gift/ directory.
2. Open file /wp-content/plugins/woocommerce-multiple-free-gift/lib/WFG_Frontend.class.php and go to function __hook_global_settings at the top of function definition, add this code
1
WFG_Settings_Helper::force_init();
3. Go to wpml > String Translation > in “Select strings within domain:” dropdown, select “admin_texts__wfg_global_settings” and enter translated product ID for secondary language.
Let me know if this helps you.
Thanks
Ahir