• shomron

    (@shomron)


    Hi,
    Is it possible to set yith-quickview as “quickview only” and remove the link to the product page ?
    Which files have to be modified ?
    thanks
    Ziv

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    and thank you for writing in!

    You can achieve your goal by adding the following code snippet to your theme functions.php

    if ( !function_exists( 'yith_wcqv_customization_quick_view_on_product_click' ) ) {
    	add_action( 'wp_enqueue_scripts', 'yith_wcqv_customization_quick_view_on_product_click', 99 );
    	function yith_wcqv_customization_quick_view_on_product_click() {
    		$js = "( function( $ ){
    				$( document ).on( 'click', '.woocommerce-loop-product__link', function (e) {
    					e.preventDefault();
    					$( this ).closest( '.product' ).find( '.yith-wcqv-button' ).trigger( 'click' );
    				});
            } )( jQuery );";
    
    		wp_add_inline_script( 'yith-wcqv-frontend', $js );
    	}
    }

    Please try this solution and let us know if everything works fine!

Viewing 1 replies (of 1 total)
  • The topic ‘quickview only’ is closed to new replies.