e commerce - Make user stay on product view after clicking on "Add to Cart" -


i'm using hotcakes commerce dnn modules , i'd know how can allow user stay on product page after "add cart" button clicked. default behaviour redirect user cart page whenever product added cart.

the easiest way make happen modify viewset change how add cart buttons work. here's summary of required steps:

  1. add , begin modifying viewset if haven't started already.

  2. modify \viewsetname\views\products_productdetails.cshtml file change add cart action post, ajax link. allow add products cart directly using link, keep on page.

  3. if you're using mini cart, refresh page using js updates appropriately.

please note option won't work if products have choices. if case, should instead allow customers directed cart page, , use parameter there determine whether or not redirect product page.


Comments