• Resolved johnpdd

    (@johnpdd)


    Brought to our attention by customers that nothing is adding to the wishlist’s when trying to add products. After testing it seems that is correct since we are unable to get any product to add to any wishlist while logged in. Farthest anyone has gotten is with users not logged in.

    If a product is added to wishlist as a guest it will at least say it has been added, however if any user is logged in the wishlist button will not react to any input or add products.

    Was first assumed that it was a conflicting plug-in but after using a copied test site all plug-ins except for the Yith wishlist and Woocommerce plug-in only for the same issues to persist.

    All plug-ins were updated to the most recent version in test, main is only on 6.9.2 for Woocommerce. Is there anything else that could be causing issues? Anyone else have this issue?

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

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    Have you tried changing the theme to a default WordPress theme such as 2022?

    Do you have cache on your site or at the server level? In that case, we recommend adding the following exclusions:
    – [ 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?

    Lastly, have you seen any errors related to our plugin from WooCommerce > Status > Logs?

    We will be attentive to your response.

    Best regards.

    Thread Starter johnpdd

    (@johnpdd)

    We have not changed it to default since that typically bricks the site. We are using flatsome since Yith noted it was their recommended theme for Yith plug ins.

    We do not unfortunately

    We do not see errors no.

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello John,

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

    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 );
    			
    			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 );
    	}
    }

    Also, could you share the link to your site to verify this?

    We will be attentive to any news.

    Best regards.

    Tengo un link abierto con el mismo problema y el mismo tema “Flatsome”, veo que es generalizado. El codigo no funciona y el problema sigue apareciendo.

    Alguna solución?

    Thread Starter johnpdd

    (@johnpdd)

    Added and adjusted “After product is added to wishlist” to “Show ‘View wishlist’ link” option and it now works without issue. Much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Items not added to Wishlist’ is closed to new replies.