user1443655
user1443655

Reputation: 169

How to override .phtml file in custom module of magento?

I want to override checkout/onpepage/payment.phtml in my custom module? In my module layout.xml i had used the code give below -:

<checkout_onepage_index>
      <reference name="payment">         
            <action method="setTemplate">
                <template>giftcard/checkout/onepage/payment.phtml</template>
           </action>      
     </reference>
 </checkout_onepage_index>

But payment.phtml file is not override in my custom module.

I had cleared the browser cache and magento cache.

Upvotes: 1

Views: 4450

Answers (2)

ankur nehra
ankur nehra

Reputation: 54

use checkout.onepage.payment as reference instead of payment this will help you

Upvotes: 0

vishal
vishal

Reputation: 11

Please also override it's .phtml file with the help of "block" tag in app/code/design/THEME/layout/checkout.xml. I have do this thing for one time. it works for me. i hope it will also work for u......

Upvotes: 0

Related Questions