Add to cart pop up #379
Replies: 3 comments
-
So when error, don't display the pop up but normal error notice. When succeed, open pop up (something like the ajax-add-to-cart.php code, but really don't know how to use this in my case) |
Beta Was this translation helpful? Give feedback.
-
You could do this with some other javascript, if you check if the body triggers "added_to_cart" you could then show the popup. You'd need to calculate the price tho, you could do this by sending an ajax call when triggering the added to cart to answer back with the modal content. |
Beta Was this translation helpful? Give feedback.
-
Thanks! I use the following: But it triggers every time I press the add to cart button. So also when it doesn't add |
Beta Was this translation helpful? Give feedback.
-
Hi! I want this popup model after add to cart (see image)
I already:
But of course I need to make this work with error logs too. And the remaining value before free shipping would be nice (but no prior).
Did someone made this already?
Beta Was this translation helpful? Give feedback.
All reactions