0

I want to override customer/address/edit.phtml and customer/form/address.phtml files for my module, In my module layout.xml I used the code below for edit.phtml but didn't override:

<customer_address_form translate="label">
    <reference name="customer.address.edit">
        <action method="setTemplate">
            <template>mycompany/mymodule/customer/address/edit.phtml</template>
        </action>
    </reference>
</customer_address_form>
2

You can try it following way

<customer_account_edit>
    <reference name="customer_edit">
        <action method="setTemplate">
            <template>mycompany/mymodule/customer/address/edit.phtml</template>
        </action>
    </reference>
</customer_account_edit>

after that, don't forget to clear magento cache.

  • changed but still not working! – sIiiS Apr 11 '14 at 12:20
  • Clear magento cache. – Sohel Rana Apr 11 '14 at 12:21
  • cleared, also cache is disable – sIiiS Apr 11 '14 at 12:24
1

Solved!

replaced my code with below and work as well

<customer_address_form>
    <reference name="customer_address_edit">
        <action method="setTemplate">
            <template>mycompany/mymodule/customer/address/edit.phtml</template>
        </action>
    </reference>
</customer_address_form>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.