Hi. How can we help?

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();
}
}
Was this article helpful?
0 out of 0 found this helpful

Back to Help Center >