News:

Looking for documentation? Take a look on our wiki

Main Menu

How Add to cart button can keep you on product page

Started by nkou, April 24, 2013, 11:52:07 AM

Previous topic - Next topic

nkou

Hi, I need two add-to-cart buttons ("add to cart" & "purchase"). But the first one should just add the product to cart and keep you on the same page, while the second one should add the product to the cart and get you to cart page. If I disable the pop-up on addtocart click then the purchase button works as i need it to. However, I have to differentiate the code for each case.

views/productdetails/tmpl/default_addtocart.php calls the getAddToCartButton function from helpers/shopfunctionsf.php that prints the input addtocart button

I can't find what's executed after the form...

VM2.0.20b