Show different button in AJAX product tabs based on product category
-
I imported your Megamarket demo.
My goal is to have certain products which cannot be bought directly. Instead the user can send an inquiry.
How do I achieve that in the AJAX product tabs I can have a different button based on the product category? Products which can be bought directly will have the regular button “ADD TO CART” button, whereas products of a certain category instead have a button “SEND INQUIRY” – after clicking this inquiry button an Elementor popup opens with a form.
See a screenshot attached.
Hello,
Sorry to say but right now there is no option in Theme Settings available to achieve that. It requires Customization and this is beyond our limitations and support policy scope. Hope you can understand our limitations.
Although, for the Single Product you can achieve that instead of Add to Cart you can have a Popup element added to the Theme under the Custom Layout made under the Dashboard > Layouts > and you can then show a button of Send Inquiry instead of Add to Cart.
You can read more about the Layout Builder here:
https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/
https://xtemos.com/docs-topic/single-product-page-builder/
Best Regards