I want to remove newsletter just from checkout page and i search about it and try these codes but i don't get any result.
I add below code in local.xml
in app\design\frontend\default\my-theme\layout\local.xml
but nothing changed !!!
<checkout_onepage_index>
<remove name="footer.newsletter"/>
</checkout_onepage_index>
Also i try this code in checkout.xml
in app\design\frontend\default\base\default\layout\checkout.xml
but again nothing changed !!!
<checkout_onepage_index translate="label">
<remove name="footer.newsletter"/>
</checkout_onepage_index>
thanks for help.
EDIT:
I check my code again when i add below code in checkout.xml
, newsletter remove from all pages, why?
<checkout_cart_index translate="label">
<remove name="footer.newsletter"/>
</checkout_cart_index>
EDIT2:
This is the code of local.xml
that show newsletter box:
<reference name="footer">
<remove name="cms_footer_links"/>
<remove name="footer_links2"/>
<block type="newsletter/subscribe" name="footer.newsletter" as="footerNewsletter"
template="newsletter/subscribe-footer.phtml"/>
</reference>
EDIT3:
I search this subject again and understand that i should make my directory and copy files that i want to change them, but when i copy checkout.xml
and change it to what i want nothing will be happen, because i should change the Current package name
in admin panel but if i set my directory for current package name all things will mess!!! I really confused and don't know how can i solve this problem!
Thanks for help.
newsletter.xml
and this is the block in this page:<default> <!-- Mage_Newsletter --> <reference name="left"> <block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/> </reference> </default>
Is it added in left? but i test it and nothing chenged.