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

1 Answer 1


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:

  • 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. Sep 18, 2013 at 22:25
  • That's quite easy. Locate checkout/cart.phtml file of your theme and change the link there.
    – user487772
    Sep 19, 2013 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(...);' Sep 19, 2013 at 19:07
  • If you have not much Magento experience I would suggest a hardlink. Where do you want to link?
    – user487772
    Sep 19, 2013 at 19:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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