Reputation: 23542
There is this template file:
app/design/frontend/base/default/template/catalog/product/view.phtml
I first just changed it but I learned I should have made an overwrite somehow to avoid problems with updates. So I tried to find a tutorial for that but like this question I could not find any that works with Magento 1.7.0.2.
I know I have to create a new template folder and recreate the folder structure catalog/product
.
Upvotes: 2
Views: 3753
Reputation: 286
if you want to use the same file the you can copy and paste from default theme to your theme.
But if you want to use your define file then you can use below code in local.xml and put the newly created file in template folder of your or default theme.
<catalog_product_view>
<reference name="product.info">
<action method="setTemplate"><template>yourfolder/customfile.phtml</template></action>
</reference>
<catalog_product_view>
So above file will override default view.phtml
I hope this will help you.
Upvotes: 0
Reputation: 34978
app/design/frontend/mycompany/default/template
mycompany
base/default
(fallback)mycompany/default
(with same directory structure, so: app/design/frontend/mycompany/default/template/catalog/product/view.phtml
) and change whatever you have to changeThere should be no need to create any XML files in the layout
folder of your theme. In case you need to customize anything with the layout definitions, create a layout/local.xml
and make layout updates there. Do not copy for example catalog.xml
from the base/default
to your theme as this can cause problems with a Magento update.
Upvotes: 3
Reputation: 12750
You should have defined your own theme and copied the exact path and file to your own theme and change it there.
Upvotes: 0