I need to modify a template from a third party extension to match my current theme. In the extension layout xml file


<action method="setTemplate" ifconfig="iwd_opc/general/enable_in_frontend">
    <argument name="template" xsi:type="string">IWD_Opc::onepage.phtml</argument>

I can either change the template path in the layout xml file, or edit the onepage.phtml. But I don't want to change the original file. How to do it the right way?


Create a new storefront theme and put the file onepage.phtml in


You can get more information from: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/themes/theme-inherit.html

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.