Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Free products & WPML
- This topic has 6 replies, 3 voices, and was last updated 8 years, 11 months ago by Soft79.
- AuthorPosts
- August 18, 2017 at 4:09 pm #1840wendy1Participant
Hello,
I have my woocommerce with WPML plugin. Which allows for multilanguage sites. Your plugin claims to be compatible with WPML. But when I set a coupon with a free product. It will always add the product in the same language, instead of showing the corresponding other language version.I.e I set up a coupon with a free product (I search the product and I select the english version for instance in the admin setup).
then when I use the coupon, it works, it adds the product in english. But when I go on the french version of my website, I use the coupon but it will still add the englisch product instead of the french translation.Thank you for getting back to me!
WAugust 19, 2017 at 9:09 am #1843Soft79KeymasterHi Wendy,
I need to check this. I’ll come back to you…
September 20, 2017 at 3:50 pm #1942contact4ParticipantHello,
I’ve same the problem here: if customer changes his language, the free product is still displayed in the default language.
My hotfix (it works for me but it’s not fully tested):
In includes/pro/WJECF_Pro_Free_Products/WJECF_Pro_Free_Products.php, I add the following lines at the beginning of “set_free_product_amount_in_cart” function:
$product_id = apply_filters( 'wjecf_get_product_ids', $product_id ); $product_id = $product_id[0];It forces to use the WPML plugin.
Soft79 > could you check this? Thanks a lot
September 21, 2017 at 12:00 am #1946Soft79KeymasterHi,
Thanks for pointing it out, but it might not work in all cases. I have a probable fix involving this filter, but can’t test it currently. I’ll get back to this soon.
September 25, 2017 at 4:43 pm #1973Soft79KeymasterThis is taking a bit longer than expected. I’m in contact with the developers of WPML to test it in combination with the newest version of WPML.
September 26, 2017 at 11:13 am #1977contact4ParticipantThank you for the news
September 26, 2017 at 5:52 pm #1987Soft79KeymasterHi, I uploaded 2.5.5-dev to soft79.nl which should fix the issue. Please download it from your account page.
If you purchased through envato, please request the 2.5.5-dev version by sending me an email, including your purchase code, to admin at soft79.nl.
- AuthorPosts
- You must be logged in to reply to this topic.