• Hi,

    I’m trying to disable quick view button that is hooked to WooCommerce action.

    Here is my code:
    remove_action( 'woocommerce_after_shop_loop_item', 'yith_add_quick_view_button', 99 );

    But the button is still showing.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter DeoThemes

    (@deothemes)

    Nevermind, solved it with:

    if ( function_exists( 'YITH_WCQV_Frontend' ) ){
    remove_action( 'woocommerce_after_shop_loop_item', array( YITH_WCQV_Frontend(), 'yith_add_quick_view_button' ), 15 );
    }
    Plugin Author YITHEMES

    (@yithemes)

    Ok ??

    Thread Starter DeoThemes

    (@deothemes)

    I don’t know what happened but it stopped working again ?? My script was working fine with 1.4.8.

    What is the easy and proper way to remove button from the code without hiding it with CSS?

    • This reply was modified 3 years, 8 months ago by DeoThemes.
    Anonymous User 16900372

    (@anonymized-16900372)

    Is there any progress on the subject? I am having the same problem.
    Respects.

    Thread Starter DeoThemes

    (@deothemes)

    @webnetyapi I figured out to remove it with:

    if ( function_exists( 'YITH_WCQV_Frontend' ) ) {
      remove_action( 'init', array( YITH_WCQV_Frontend(), 'add_button' ) );
    }

    It would be much easier if there is a hook for developers that never change.

    • This reply was modified 3 years, 8 months ago by DeoThemes.
    Anonymous User 16900372

    (@anonymized-16900372)

    Actually what I want to do is to permanently interfere with the following codes (with Code Snippets plugin).


    public function yith_quick_view_action_template() {

    // Image.
    add_action( 'yith_wcqv_product_image', 'woocommerce_show_product_sale_flash', 10 );
    add_action( 'yith_wcqv_product_image', 'woocommerce_show_product_images', 20 );

    // Summary.
    add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_title', 5 );
    add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_rating', 10 );
    add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_price', 15 );
    add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_excerpt', 20 );
    add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_add_to_cart', 25 );
    add_action( 'yith_wcqv_product_summary', 'woocommerce_template_single_meta', 30 );
    }

    • This reply was modified 3 years, 8 months ago by Anonymous User 16900372.
    • This reply was modified 3 years, 8 months ago by Anonymous User 16900372.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t remove action’ is closed to new replies.