0

I edited these files but I cannot override the default.phtml file, it doesn't work, what's wrong with that?

Config.xml

    <?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <Vendor_Mymodule>
            <version>0.1.0</version>
        </Vendor_Mymodule>
    </modules>
    <frontend>
        <layout>
            <updates>
                <myfile>
                    <file>myfile.xml</file>
                </myfile>
            </updates>
        </layout>
    </frontend>
</config>

myfile.xml

<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <catalog_product_view> 
        <reference name="product.info.simple">
           <action method="setTemplate">
               <template>mymodule/catalog/product/view/default.phtml</template>
            </action>
        </reference>
    </catalog_product_view>
</layout>
0
<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <catalog_product_view> 
        <reference name="product.info.simple">
           <action method="setTemplate">
               <template>catalog/product/view/default.phtml</template>
            </action>
        </reference>
    </catalog_product_view>
</layout>

the template should be in :

app/design/frontend/{theme}/{name}/template/catalog/product/view/default.phtml

  • I don't want to edit the core file, I want to use a file in my custom path – blob Feb 19 at 14:19
  • Yes ofcourse, but can you tel me where is the core here ? – PЯINCƏ Feb 19 at 14:20
  • It is not the default theme, so if I want to modify only this theme how to achieve that, without edit the file? – blob Feb 19 at 14:22
  • I put {theme}/{name} this mean that you replace this with your current theme – PЯINCƏ Feb 19 at 14:24

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.