How to add the Add to Quote button in ajax loaded loop products
If you want add the Add to Quote button in ajax loaded loop products you can use this snippet at the end of your theme/child theme functions.php file:
function yit_raq_button_woodmart() {
if ( function_exists('YITH_Request_Quote_Premium') && defined('DOING_AJAX') && DOING_AJAX ) {
global $product;
require_once( YITH_YWRAQ_INC . 'class.yith-ywraq-shortcodes.php' );
require_once( YITH_YWRAQ_INC . 'class.yith-request-quote-frontend.php' );
YITH_YWRAQ_Frontend();
YITH_YWRAQ_Frontend()->add_button_single_page();
}
}
add_action('woocommerce_after_shop_loop_item','yit_raq_button_woodmart',30);