I want to change my checkout link in the top links on my magento site to go to the basket instead of the checkout process.

I have found ways of just removing the links via XML files but no document son editing where the link takes you.

So the clarify i need to change the top link "checkout" to take the customer to the basket and not the checkout process. Can anyone help?

1 Answer 1


The link target is set in the Mage_Checkout_Block_Links::addCheckoutLink() method.

    $text, 'checkout', $text,
    true, array('_secure' => true), 60, null,

The code above add the link to "checkout". You can rewrite this class and method to change the behavior...


you can change in your checkout.xml layout the call

<reference name="top.links">
    <block type="checkout/links" name="checkout_cart_link">
        <action method="addCheckoutLink"></action>


<reference name="top.links">
    <block type="checkout/links" name="checkout_cart_link">
        <action method="addCartLink"></action>
  • I tried the XML file solution but it didnt seme to work. Also when i completely delete <reference name="top.links"> from the XML file the link still appearso n the fornt end?
    – Adam Allen
    Commented Mar 24, 2015 at 12:45
  • Have you tried to flush the cache after each edit ?
    – Pilou
    Commented Mar 24, 2015 at 13:47

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.