2

How do I change where the continue shopping button is redirecting my customers to?

2

It is set dynamically in Mage_Checkout_Block_Cart::getContinueShoppingUrl() depending of some conditions.

The easiest way to customise it is to set it explicitly in the checkout/cart.phtml template of your theme.

The more sophisticated way would be to add something like this into your module controller:

Mage::getSingleton('checkout/session')->setContinueShoppingUrl(...);
| improve this answer | |
  • Hi Tim, thanks for the response. Can you elaborate a little more ? This type of customization is new to me and I'm not sure where I should add the code. – Christina Rule Sep 18 '13 at 22:25
  • That's quite easy. Locate checkout/cart.phtml file of your theme and change the link there. – user487772 Sep 19 '13 at 6:25
  • hi @tim thanks for the response. so I should change it to a hard link or replace it with 'Mage::getSingleton('checkout/session')->setContinueShoppingUrl(...);' – Christina Rule Sep 19 '13 at 19:07
  • If you have not much Magento experience I would suggest a hardlink. Where do you want to link? – user487772 Sep 19 '13 at 19:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.