0
votes

I've been trying to figure this problem out for several hours now - I've made two page templates for the products one is named vxs-view.phtml and the other is view.phtml. There located in the same directory.

The solution I tried was to input

<reference name="product.info">
    <action method="setTemplate"> <template>catalog/product/view/vxs-view.phtml</template></action>
</reference>

However this only works if that product is in a certain category. Is there a way I can add the pay layout to the template files in the design tab?

I've been adding this code to the front end system/custom design/ custom layout update box

Sorry I'm need to magento and still learning.

Thanks for any help

1
can you please add more detail. in which file you are adding this code?Chirag Nandaniya

1 Answers

1
votes

you are placing wrong reference type. Please try below code.

<module_page_action> <!- Enter your modulename_pagename_action e.g. catalog_product_info-->
    <reference name="root">
        <action method="setTemplate"> <template>catalog/product/view/vxs-view.phtml</template></action>
    </reference>
<module_page_action>

Hope this will work for you!

Cheers!