Using the base store install as a foundation, is there a good way to have the site redirect the user to the cart page after the add to cart button has been clicked on the product page?
The easiest way to do it is to add the redirect code to your add to cart macro. If you're using the uCommerce Store it's found in the AddToCart[XSLT].xslt file. Add the end of the macro add the following call and you're good:
I did this by changing the forum on the poduct page to post to the basket page, and added a few parameters as hidden inputs. I also sent along a return url (so that on the basket page you can return to the page you were viewing with a "Continue Shopping" button. This is the form in the product XSLT:
Redirecting to Cart after add
Using the base store install as a foundation, is there a good way to have the site redirect the user to the cart page after the add to cart button has been clicked on the product page?
Feel I am missing something easy here!
Thanks.
Hi Jason,
The easiest way to do it is to add the redirect code to your add to cart macro. If you're using the uCommerce Store it's found in the AddToCart[XSLT].xslt file. Add the end of the macro add the following call and you're good:
Here's a post on how to do the redirect in Umbraco.
Had hoped for a umbraco.library:redirect, but that doesn't exist unfortunately.
I did this by changing the forum on the poduct page to post to the basket page, and added a few parameters as hidden inputs. I also sent along a return url (so that on the basket page you can return to the page you were viewing with a "Continue Shopping" button. This is the form in the product XSLT:
With the following code added to the Cart XSLT:
I did this because I didn't want to redirect and needed a "Continue Shopping" button
is working on a reply...