title: How to override .phtml file in custom module of magento?
body: <p>I want to override checkout/onpepage/payment.phtml in my custom module? In my module layout.xml i had used the code give below -:</p>
  
  <pre><code>&lt;checkout_onepage_index&gt;
        &lt;reference name="payment"&gt;         
              &lt;action method="setTemplate"&gt;
                  &lt;template&gt;giftcard/checkout/onepage/payment.phtml&lt;/template&gt;
             &lt;/action&gt;      
       &lt;/reference&gt;
   &lt;/checkout_onepage_index&gt;
  </code></pre>
  
  <p>But payment.phtml file is not override in my custom module.</p>
  
  <p>I had gone through the below links and many more tutorials but not find the exact solution.</p>
  
  <p><a href="http://blog.chapagain.com.np/magento-overriding-template-file-from-custom-module/" rel="nofollow noreferrer">http://blog.chapagain.com.np/magento-overriding-template-file-from-custom-module/</a>
  <a href="http://www.magentocommerce.com/boards/viewthread/262202/#t352074" rel="nofollow noreferrer">http://www.magentocommerce.com/boards/viewthread/262202/#t352074</a>
  <a href="https://stackoverflow.com/questions/7986979/magento-extension-needs-to-override-a-template">Magento Extension Needs to Override a Template</a></p>
  
  <p>I had cleared the browser cache and magento cache.</p>