• Hi,
    I would like to add the request button to the archive page too.

    I can do this by adding editing the class.yith-request-quote-frontend.php on line 56 like this:

    //show button in single page
    add_action( 'woocommerce_single_product_summary', array( $this, 'add_button_single_page' ), 35 );
    add_action( 'woocommerce_after_shop_loop_item_title', array( $this, 'add_button_single_page' ), 35 );

    But is it possible to somehow just add it to my theme’s function.php ?

    add_action( 'woocommerce_after_shop_loop_item_title', array( $this, 'add_button_single_page' ), 35 );

    Thank you,

    https://wordpress.org/plugins/yith-woocommerce-request-a-quote/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Schalk Joubert

    (@schalkjoubert)

    Further to the above;
    Even If I have to edit the plugin file, how can I limit this to only show for a cetain category called “offers” ?

    if ( is_product_category( 'offers' ) ) {
    add_action( 'woocommerce_after_shop_loop_item_title', array( $this, 'add_button_single_page' ), 35 );
    }
    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    the premium version of the plugin you can add the request a quote button also in the loop.
    In the next releases we will add also the option to choose the categories.

    Here you can find more information about it:
    Yith Woocommerce Request a Quote

    Regards
    YITHEMES

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add to Archive Page’ is closed to new replies.