Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Trouble removing checkout from top navigation, help! 
 
SaphenaVarix
Jr. Member
 
Total Posts:  10
Joined:  2011-01-26
 

Hey everyone, i’m having trouble removing the checkout link from the top links in the navigation at the top.

I tried making a local.xml file (and put it in the layout folder) using the following code:

<?xml version="1.0"?>
<layout version="0.1.0">
<default>
        <
reference name="root">
            <
reference name="top.links">  

<
remove name="checkout_cart_link"/>
 
                <!-- 
To re-add 'My Cart' or 'Checkout' after removing both -->
                <
block type="checkout/links" name="checkout_cart_link_custom">
                    <
action method="addCartLink"></action>
                </
block>

      </
reference>
        </
reference>
</
layout>

but that didnt work… i then went into customer and checkout.xml and tried commenting out that (well the parts i thought were responsible for displaying it)… but that didnt work.

any help would be great thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sam @ RocketTheme
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2011-01-28
RocketTheme
 

You don’t need to have it inside a “root” reference tag. Try this in your local.xml, should work fine:

<layout>

    <default>

<!-- 
START Removes cart in top links -->

        <
reference name="top.links">
            <
remove name="checkout_cart_link"/>
        </
reference>

<!-- 
END Removes cart in top links -->    
        
    </default>    

</
layout>
 
Magento Community Magento Community
Magento Community
Magento Community
 
SaphenaVarix
Jr. Member
 
Total Posts:  10
Joined:  2011-01-26
 
Sam @ RocketTheme - 28 January 2011 09:01 AM

You don’t need to have it inside a “root” reference tag. Try this in your local.xml, should work fine:

<layout>

    <default>

<!-- 
START Removes cart in top links -->

        <
reference name="top.links">
            <
remove name="checkout_cart_link"/>
        </
reference>

<!-- 
END Removes cart in top links -->    
        
    </default>    

</
layout>

still doesnt work :(

is there another way without editing XML files? i dont think they are having any effect on this site.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Commative
Sr. Member
 
Avatar
Total Posts:  130
Joined:  2009-12-03
XXX
 

Hi SaphenaVarix,

It will be, unfortunately, necessary for you to edit your XML files if you wish to remove the checkout link because that link is created with XML.

Open the file /app/design/frontend/default/your-theme/layout/checkout.xml

Find and delete this code:

<action method="addCheckoutLink"></action>

Save and upload the file, then clear Magento’s cache via System > Cache Management.  That’s it!

Magento Themes by Magentist

 
Magento Community Magento Community
Magento Community
Magento Community
 
SaphenaVarix
Jr. Member
 
Total Posts:  10
Joined:  2011-01-26
 

dont have

<action method="addCheckoutLink"></action>
in there anymore to remove. I pretty much removed all that stuff after my local failed. I think I mentioned I went in there in my original post. If I forgot to mention that, I apologize for the confusion.
 
Magento Community Magento Community
Magento Community
Magento Community
 
alexgreg
Jr. Member
 
Total Posts:  1
Joined:  2013-04-06
 

Worked for me))))) Thanx a LOOOOOT!!! finaly))

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top