cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Newsletter box JUST from checkout page

Remove Newsletter box JUST from checkout page

I am new in Magento. I want to remove newsletter box just from checkut page. I try these solutions but don't work!!!

 

1- I add this codes to checkout.xml but newsletter box will remove from all pages!!!

 

app\design\frontend\default\base\default\layout\checkout.xml :

 

 <checkout_cart_index>
        <reference name="footer">
                <remove name="footer.newsletter"/>
        </reference>
</checkout_cart_index>

 

2- I also add this code to local.xml but nothing happen and the newsletter box doesn't remove!!!

 

app\design\frontend\default\my-theme\layout\local.xml :

 

<checkout_cart_index>
          <reference name="footer">
                     <remove name="footer.newsletter"/>
           </reference>
</checkout_cart_index>

 

How can I remove the newsletter box from these pages?

http://example.com/checkout/cart/

http://example.com/checkout/onepage/

 

Thanks.

4 REPLIES 4

Re: Remove Newsletter box JUST from checkout page

Your code is correct but the path you are following is wrong and perhaps this is the reason you are not getting correct outcomes.

Please follow any of the ways provided below:

1) Go to: app\design\frontend\mypackage\mytheme\layout\checkout.xml

Find this code "<checkout_cart_index translate="label">"

Add the below code after <remove name="left"/>

 

<reference name="footer">
<remove name="footer.newsletter"/>
</reference>


OR

2) Go to: app\design\frontend\mypackage\mytheme\layout\local.xml

Add the below code:

 

<checkout_cart_index translate="label">

<reference name="footer">
<remove name="footer.newsletter"/>
</reference>

</checkout_cart_index>

 

Let me know if you face any query/concern regarding this.

Query solved? Accept as Solution.Thanks
Eric Baily

Re: Remove Newsletter box JUST from checkout page

Hi,

When I added the code in checkout.xml, the newsletter box will remove from ALL pages!!!

Also when I added the other code in local.xml nothing happen!!!

 

I also said that I tested these codes and what happened. In this address that you said : app\design\frontend\mypackage\mytheme\layout\checkout.xml , mypackage is where? I added in app\design\frontend\default\base\default\layout\checkout.xml , is it correct or I added the code in wrong place?

Re: Remove Newsletter box JUST from checkout page

Please check the Magento's Structure to get more clear idea from below link:


1. http://www.magentocommerce.com/knowledge-base/entry/magentos-theme-hierarchy
2. http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/0_-_theming_in_magento/pac...

Further, review my previous comment and you would get the perfect results.

 

Hope this helps you.

Query solved? Accept as Solution.Thanks
Eric Baily

Re: Remove Newsletter box JUST from checkout page

 

<checkout_cart_index>
    <reference name="footer">
        <action method="unsetChild"><alias>footer.newsletter</alias></action>
    </reference>
</checkout_cart_index>