• Hi Yith Community of Developers…

    We set up our online business with help of Eletra Theme which recommends Yith Wishlist plugin, But when we put an item to the wishlist it doesn’t work… Can you please help us to fix it….

    Website: https://technicbriks.com/

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

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

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    In order to solve this problem, try adding the following code in 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 );
    
    			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', 100 );
    	}
    }

    Check it our and tell us if it works well for you, please.

    Best regards.

    Thread Starter faisal99

    (@faisal99)

    HI, Juan!

    Eletra theme has no child theme in it, when I added your given code to the function.php file of the main eletra theme I creates an error like below

    Your PHP code changes were rolled back due to an error on line 365 of file wp-content/themes/eletra/functions.php. Please fix it and try saving again.

    syntax error, unexpected ‘&’

    Thread Starter faisal99

    (@faisal99)

    Sorry, your given code has no issue in it.

    But when put in in function.php file and check it on site either wishlist is working or not but it’s the same issue…

    Please check the screenshot on my google drive where I embedded your given code and verify it … Thanks

    https://docs.google.com/document/d/19SJPLCFTYGOc82nk3C_X7_hQSsZC07SYR7kjfzf18mE/edit?usp=sharing

    Can you check it

    https://technicbriks.com/

    Waiting for your response…

    Thread Starter faisal99

    (@faisal99)

    HIs, I am waiting for further instructions your given code is not working…

    Please be quick to reply!

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    The code that we have sent you is to enqueue files necessary for the functionality of our plugin, and it is the one that we often send since there are some themes that dequeue these files. We have checked your site again and there is a js file that you do not have loaded, but the others do, so try replacing the previous code with this new one:

    if ( defined( 'YITH_WCWL' ) ) {
    	if( ! function_exists( 'yith_wcwl_enqueue_back_required_assets' ) ) {
    		function yith_wcwl_enqueue_back_required_assets() {
    			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 );
    	}
    }

    The image you have sent looks very small, we recommend you send it to us through WeTransfer or some image server.

    If you still have problems, we recommend you temporarily deactivate your theme and activate a default WordPress theme like 2022, to check if the conflict comes from Eletra. If it’s still the same, try leaving only WooCommerce and our plugin active, and activate your plugins in batches to see which one fails with this.

    Let us know any news, please.

    Best regards.

    Thread Starter faisal99

    (@faisal99)

    If you still have problems, we recommend you temporarily deactivate your theme and activate a default WordPress theme like 2022, to check if the conflict comes from Eletra.

    When I followed this info then Yith Wishlist getting started working with WordPress theme 2022…

    But we want your help to make Yith wishlist work with Eletra!

    Thread Starter faisal99

    (@faisal99)

    https://eletra.lpdthemesdemo2.com/

    This Eletra theme demo store, there is also Yith is not working …Can you verify it and let us know how can you help us to get Yith started with Eletra theme….Thanks

    Thread Starter faisal99

    (@faisal99)

    https://we.tl/t-ChmeAl6nF0 Here you can see how Yith Wishlist is working with Eletra theme

    Thread Starter faisal99

    (@faisal99)

    Your Given updated Yith snippet for Elerta theme is not working even i placed in functions.php file of eletra theme

    Below is the screenshot

    https://we.tl/t-v0NHcjGGdK

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    Unfortunately without being able to access your site and your files it is difficult to solve this.

    Does it happen to you both being logged in and not logged in?

    Have you tried contacting Eletra support about this?

    We will be attentive to your response.

    Best regards.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Yith Wishlist is not working’ is closed to new replies.