Support » Plugin: YITH WooCommerce Wishlist » Without login not working with other language.

  • Ravi Makwana

    (@ravimakwana)


    Hello,

    I’m using this plugin and customize as well, It’s great plugin.

    But I’m stuck when I used WPML with the wishlist not working.

    When I logged into the website it works and displays wishlist for all other languages. but when I logged out and add the product into the wishlist then on the English language the product is displaying but not other languages, it does not display.

    Please check the video for more detail issue: https://www.screenmailer.com/v/daaRAOCtZhUN1MU

    Help me to fix the issue.

    Thank you
    Ravi

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Ravi Makwana

    (@ravimakwana)

    One more thing is that I have already saved the permalink after setup the wishlist page.

    Thank you
    Ravi Makwana

    Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    hope you are doing well 🙂

    Can you activate in WPML configuration ‘Language filtering for AJAX operations’ option? Check it after activate it.

    If the problem persists:
    Could you try to change to a default WordPress theme like ‘Twenty Sixteen’ and check if you still have the issue?

    Let us know, please.

    Have a great day!

    Thread Starter Ravi Makwana

    (@ravimakwana)

    Hello,

    yith-woocommerce-wishlist/includes/class.yith-wcwl.php

    Line: 592

    if( ! in_array( $cookie['prod_id'], $valid_products ) ){
    	unset( $wishlist[ $key ] );
    	continue;
    }

    This condition is unset the other languages product list empty.

    I have commented on this condition and it works. please check and update on next release.

    Have a great day!!

    Thank you
    Ravi

    Thread Starter Ravi Makwana

    (@ravimakwana)

    Hello,

    I have also commented that line but now another issue arises.

    When I add the product add to the wishlist. It is not showing on EN and worked for others.

    Please check the site, let me know what is the issue.

    Thank you
    Ravi

    I am having the same issue and have identified the same code as being the issue;

    if( ! in_array( $cookie['prod_id'], $valid_products ) ){
    	unset( $wishlist[ $key ] );
    	continue;
    }
    Thread Starter Ravi Makwana

    (@ravimakwana)

    I hope we will get a solution.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Without login not working with other language.’ is closed to new replies.