magento - Replacing header.phtml with new checkout_header.phtml in local.xml -
I copied the code from this reply but still can not change the header code, I'm getting only the standard header Phtml file
I can tell if Magentan is not reading my local .xml file (I've refreshed all the cache etc.) or if I'm missing something from code Have tried many varations (below) but no one is working Without editing other template files, I am trying to do all this in local.xml.
Do I need to tell megentvent to read my new local.xml file? Should I remove old headers first?
& lt; Checkout_onphone_index & gt; & Lt; Reference Name = "Basic" & gt; & Lt; Block type = "page / html_header" name = "header" & gt; & Lt; Action Method = "Settaplate" & gt; & Lt; Templates & gt; Page / html_checkout_header.phtml & lt; / Template & gt; & Lt; / Action & gt; & Lt; / Block & gt; & Lt; / References & gt; & Lt; / Checkout_onepage_index & gt;
Instead of defining you use header context The new block named header should be. It should be updated by referring to the existing headlock block and implementing it.
& lt ;? XML version = "1.0"? & Gt; & Lt; Layout version = "0.1.0" & gt; & Lt; Checkout_onepage_index & gt; & Lt; Reference Name = "Basic" & gt; & Lt; Reference Name = "Header" & gt; & Lt; Action Method = "Settaplate" & gt; & Lt; Templates & gt; Page / html_checkout_header.phtml & lt; / Template & gt; & Lt; / Action & gt; & Lt; / References & gt; & Lt; / References & gt; & Lt; / Checkout_onepage_index & gt; & Lt; / Layout & gt; Also trivial, but make sure that page / html_checkout_header.phtml is actually using the theme's Template folder.
Comments
Post a Comment