• Resolved sprocker

    (@sprocker)


    Hi, I have a website that sells bottles of wine and also tours or vouchers.

    The tours and vouchers need a lot of data entry and not all the content is displayed when you click on Quick View.

    To see this please click on “VOUCHER: TOUR FOR TWO WITH LUNCH” and you will see not all the content is visible – also the popup for the “Delivery Date” is not working.

    1. how do I ensure the overflow content is scrollable?

    2. would it be possible to change the “Quick View” on items in a certain category to be “View Details”, which in turn then takes you directly to the product page instead of the popup?

    Thanks in advance ??

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    I can’t see the quick view button on that product, did you apply some change?

    Thread Starter sprocker

    (@sprocker)

    Yes – I applied some custom css to hide this as the client was unhappy as it was not working…

    Is there a simpler way to disable this for certain categories?

    Thanks

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    please add following code in the file functions.php of your theme.

    add_action( 'woocommerce_before_shop_loop_item', 'yith_wcqv_disable_button_on_products' );
    
    if( !function_exists( 'yith_wcqv_disable_button_on_products' ) && function_exists( 'YITH_WCQV_Frontend' ) ){
    	function yith_wcqv_disable_button_on_products(){
    		global $product;
    		$categories = array( 'accessories', 'hoodies' );
    		if( has_term( $categories, 'product_cat', $product->get_id() ) ) {
    			remove_action( 'woocommerce_after_shop_loop_item', array( YITH_WCQV_Frontend(), 'yith_add_quick_view_button' ), 15 );
    			remove_action( 'woocommerce_before_shop_loop_item_title', array( YITH_WCQV_Frontend(), 'yith_add_quick_view_button' ), 15 );
    		}		
    	}
    }

    Replace ‘accessories’, ‘hoodies’ with slug of categories of those products for whose you want disable the button.

    Be sure that your theme does not override default template content-product.php of WooCommerce, removing the hook woocommerce_before_shop_loop_item

    I hope be helpful for you.

    Thread Starter sprocker

    (@sprocker)

    Much appreciated – thanks….

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    you’re welcome.
    If you are satisfied with our product and our support, don’t hesitate write a review on this product, we’ll appreciate it too much ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change Quick View to view product for certain categories’ is closed to new replies.