• Hi,

    I have a problem with the plugin. When I try to add a product to the Wishlist, it is not adding to the Wishlist.

    I am using a page to show the Wishlist https://www.example.com/wishlist/ , But after adding product and visiting doesn’t show any product. But I can see a temporary link in view cart like https://www.example.com/wishlist/view/IQVMMDDZICVU

    If I go to this like I can see the cart, but not in the page I set for Wishlist. This link changes every time I visit the website.

    If I am logged in, I don’t see any problem.

    Can you please check and update about this issue?

    Thank you

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    This problem in users who are not logged in usually comes from problems with the cache, since to create and add products to the wishlist of this type of user, we use cookies.

    We recommend you perform the following cache exclusions and check if the problem is solved, please:
    – [ add the url of the page wishlist ]
    – [ add the url of the page wishlist ]/* (for all wishlist page endpoints)
    – Besides, YITH WooCommerce Wishlist plugin uses cookies in order to correctly store user’s wishlists; can you please add yith_wcwl_session_* cookies to your exceptions?

    We will be attentive to your response.

    Best regards.

    Thread Starter arunschandran

    (@arunschandran)

    Hi Juan

    Thank you for your response.

    I am using WP Rocket for caching and I already added exclusion. I saw this on one of your threads and I tried it. But still I have the issue

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    Try adding the following code to the functions.php file of your active child theme:

    if ( defined( 'YITH_WCWL' ) ) {
    
    ? ? if( ! function_exists( 'yith_wcwl_enqueue_back_required_assets' ) ) {
    
    ? ? ? ? function yith_wcwl_enqueue_back_required_assets() {
    
    ? ? ? ? ? ? $suffix ?= defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    
    ? ? ? ? ? ? $version = defined( 'WC_VERSION' ) ? WC_VERSION : '';
    
    ? ? ? ? ? ? wp_enqueue_style( 'woocommerce_prettyPhoto_css', plugins_url( 'assets/css/prettyPhoto.css', WC_PLUGIN_FILE ), array(), $version );
    
    ? ? ? ? ? ? wp_enqueue_script( 'prettyPhoto', plugins_url( 'assets/js/prettyPhoto/jquery.prettyPhoto' . $suffix . '.js', WC_PLUGIN_FILE ), array( 'jquery' ), '3.1.6' );
    
    ? ? ? ? ? ? wp_enqueue_script( 'prettyPhoto-init', plugins_url( 'assets/js/prettyPhoto/jquery.prettyPhoto.init' . $suffix . '.js', WC_PLUGIN_FILE ), array( 'jquery' ), $version );
    
    ? ? ? ? ? ? if ( ! wp_script_is( 'jquery-yith-wcwl-user', 'registered' ) ) {
    
    ? ? ? ? ? ? ? ? wp_enqueue_script( 'jquery-yith-wcwl' );
    
    ? ? ? ? ? ? } else {
    
    ? ? ? ? ? ? ? ? wp_enqueue_script( 'jquery-yith-wcwl-user' );
    
    ? ? ? ? ? ? }
    
    ? ? ? ? ? ? wp_enqueue_style( 'yith-wcwl-main', YITH_WCWL_URL . 'assets/css/style.css', array( 'jquery-selectBox' ) );
    
    ? ? ? ? }
    
    ? ? ? ? add_action( 'wp_enqueue_scripts', 'yith_wcwl_enqueue_back_required_assets', 9999 );
    
    ? ? }
    }

    Let us know any news, please.

    Have a nice day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product is not adding to wishlist’ is closed to new replies.