How do I add cart scope parameters?
I am trying to add the continueshopping or gobackto parameters to my JavaScript call for adding an item to the cart. I need to change the "continue shopping" button on the cart to point back to the last page where an item was added to the cart or possibly to a root products page where they can continue searching for products. Right now it always points to the store home page.
0
-
Simple JS should suffice to go back to previous page.
Option 1: <button onclick="window.history.go(-1)">Go Back</button>
Option 2: <a href="javascript: window.history.go(-1)">Go Back</a>1 -
you can use the "
continueshopping
" parameter in your request.0
Please sign in to leave a comment.
Comments
2 comments