Saurabh Singh
Saurabh Singh

Reputation: 43

How to remove complete header and footer from checkout/cart and afterwards all pages in magento

I have to remove complete header and footer from checkout/cart page to all onwards pages in magento 1.7. All I know that I need to add <remove name="header"/> in the "checkout.xml" file but whenever I'm trying to add that same line, Either nothing reflecting on front-end or a blank page appear on front-end.

Upvotes: 1

Views: 9845

Answers (6)

Rahul negi
Rahul negi

Reputation: 123

In ur custom theme layout folder inside layout folder in ur local.xml copy this code for removing header and footer from checkout/cart page

<checkout_cart_index> <remove name="header"/> <remove name="footer"/> </checkout_cart_index>

For removing checkout/onepage

<checkout_onepage_index> <remove name="header"/> <remove name="footer"/> </checkout_onepage_index>

one thing remember copy this code after closing default tag in ur local.xml if u insert this code in default tag it will remove header nd footer from all pages

Upvotes: 1

Vertika Srivastava
Vertika Srivastava

Reputation: 167

You need to write in your XML file:

<remove name="header" />
<remove name="footer" />

Upvotes: 0

Ajitha Ms
Ajitha Ms

Reputation: 555

You may follow this steps:

step 1:

Go to app/design/frontend/yourtheme/layout/checkout.xml add these two lines after this lines(

<checkout_cart_index translate="label">
        <label>Shopping Cart</label>

)

<remove name="header"/>
<remove name="footer"/>

step 2:
If you are using any extension for checkout then go to app/design/frontend/yourtheme/layout/your_extension_checkout.xml

add these two lines after this lines(

<onepagecheckout_index_index translate="label">
<label>One Page Checkout</label>

)

<remove name="header"/>
<remove name="footer"/>

otherwise go to your theme/layout/checkout.xml(same step1 file) and

add above two lines after this lines(<checkout_onepage_index translate="label"> <label>One Page Checkout</label>)

step 3: clearing your magento cache

Upvotes: 0

Amit Bera
Amit Bera

Reputation: 7611

please goto page.xml for you template folder

 <default translate="label" module="page">
<remove name="header"/>
<remove name="footer"/>

</default>

For only checkout Please goto checkout.xml

    <checkout_cart_index translate="label">
 <remove name="header"/>
    <remove name="footer"/>
</checkout_cart_index>
<checkout_onepage_index translate="label">
 <remove name="header"/>
    <remove name="footer"/>
</checkout_onepage_index>

Upvotes: -1

Shivam
Shivam

Reputation: 2443

    <checkout_cart_index translate="label">
                   <reference name="root">
                        <action method="setTemplate"><template>page/empty.phtml</template></action>
            </reference>
   </checkout_cart_index>

Upvotes: 0

Slimshadddyyy
Slimshadddyyy

Reputation: 4081

In your local.xml use below code

To remove header and footer from Cart Page:

<checkout_cart_index>
  <remove name="header"/>
  <remove name="footer"/>
</checkout_cart_index>

To remove header and footer from Checkout Onepage:

<checkout_onepage_index>
   <remove name="header"/>
   <remove name="footer"/>
</checkout_onepage_index>

Upvotes: 1

Related Questions