Reply 325704 to: YITH Request a quote plugin not working with Xstore

Avatar: Rose Tyler
Rose Tyler
Support staff
June 12, 2022 at 10:01

Hello @Danny,

We added the next code – https://prnt.sc/Qw8eAl1BnBWh

add_action('init', function() {
	if (class_exists('YITH_YWRAQ_Frontend') ) {
		$instance = YITH_YWRAQ_Frontend::get_instance();
		// show button in single page.
		add_action( 'etheme_woocommerce_template_single_excerpt', function() {
			do_action('yith_wcqv_product_summary');
		}, 35 );
		add_action('etheme_woocommerce_template_single_excerpt', array($instance, 'show_button_single_page'), 20);
	}
});

We changed the previous code because in previous version added the YITH function to the add to cart hook but it is not used if the product is out of stock so your improved version should be ok for both cases.

Please note that we do not give a guaranty for full theme compatibility with all existing 3rd party plugins. Sometimes, not always, you need additionally customize the theme or plugin to make them work together. Unfortunately, it’s not possible for the author to make the theme compatible with all the existing plugins and additional customization is outside the scope of our support.

Regards

Please contact administrator
for this information.
Go To The Whole Conversation In Topic

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.