Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Free products & WPML #1977
    contact4
    Participant

    Thank you for the news

    in reply to: Free products & WPML #1942
    contact4
    Participant

    Hello,

    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

Viewing 2 posts - 1 through 2 (of 2 total)