Ajax alerts in checkout page
-
Hi,
I have installed a free gift plugin allowing to choose a gift in the cart page if order amount reaches a condition (say > 50 €). My problem is that if the customers goes directly to checkout page he may miss the gift step (in cart page). So I’ve written a small code in my function.php to insert an alert in the checkout page to tell the client to go to cart page to add his gift if cart’s subtotal > 50.
But if the client adds a coupon code and subtotal goes below 50 in checkout page the alert is still here when it should disappear.
So I wonder is there is a way for my function to be triggered by ajax when recalculating the checkout page when the coupon is added ?
Hello,
Our theme support does not cover the customization of the plugins. Please contact plugin support and let the theme consult your best way to configure.
Best Regards
It is not a problem related to the plugin configuration, I was just asking if it would be possible to trigger my own function in woodmart’s ajax recalculating totals in checkout page. But anyway if you can’t help me I’ll try to find another solution.
Hello,
This AJAX does not belong to our theme, it belongs to the Woocommerce plugin and we do not have instructions on how to call. http://prntscr.com/slq6tp
Best Regards
OK thank you I’ve found the trick.
If you have any questions please feel free to contact us.
Best Regards
The topic ‘Ajax alerts in checkout page’ is closed to new replies.