Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 684 Vote(s) - 3.47 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove complete header and footer from checkout/cart and afterwards all pages in magento

#1
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.
Reply

#2
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>
Reply

#3


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

#4
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>

Reply

#5
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
Reply

#6
You need to write in your XML file:

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

#7
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
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through