I have a custom product type in Woocommerce and was going to use sweetalert.js to add ajax confirmation notices, when I discovered that you guys have an alert already built into PRO, but it only works for ‘simple’ product types.
Is there any way of changing framework/dist/js/site/x.js to listen for just the ‘ajax_add_to_cart’ class rather than both ‘product_type_simple’ & ’ ajax_add_to_cart'? Or, even better, add other classes?
For now, I can get around this by either editing x.js or adding the class ‘product_type_simple’ to the button on my product type through the woocommerce_loop_add_to_cart_link filter. This isn’t ideal for obvious reasons.
Hoping you can offer some guidance on any hooks/filters and/or template files that can be overridden in a child theme. Alternatively, how do I disable the built in Ajax notification listening in x.js to use sweetalert.js as I originally planned?