How to add the Add to Quote button in Astra theme quick view module
If You use Astra theme and you want add the Add to Quote button in quick view module you can use this code snippet in your theme/child theme functions.php file (at the end of the file)
function yit_raq_button_on_quickview() {
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('astra_woo_quick_view_product_summary','yit_raq_button_on_quickview',30);