Hi guys, I am working to create a theme based on the rwd theme, and I would like a modal pop-up or a simple alert box when the add to cart is clicked. I know how id' achieve this in normal websites with bootstrap etc. But, lost as how to achieve this in magento.
If anyone could even guide me to the location of the code responsible for the add to cart function: where the product gets added and redirected to the shopping cart page; i'd be extremely grateful.
This is the code I believe handling the 'Add to cart' function. Now, I need to figure out how if 'valid' then alert.
lots of free extension available for this
Came across that extension before: Would I be able to customise the modal pop-up?
I just need the pop-up to be as such:
Would you also like to order product B?
-IF no go to checkout
-IF YES go to product B product page.