Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Free products & WPML › Reply To: Free products & WPML
September 20, 2017 at 3:50 pm #1942
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;
It forces to use the WPML plugin.
Soft79 > could you check this? Thanks a lot