Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento: product specfic designs through 'Custom Layout Update'

If I want to control how each product is displayed (i.e. a custom design when specified) my first thought is to do this:

  1. Create a custom view.phtml in template/catalog/product/my_view.phtml
  2. Navigate in the admin to Product->Design->Custom Layout Update
  3. Add this block:

<reference name="content">
    <action method="setTemplate">
        <template>catalog/product/view_print.phtml</template>
    </action>
</reference>

But the template is never loaded, only the default view.phtml. Is this the correct method? I need to be able to do this in the product settings.

like image 204
Jared Eitnier Avatar asked Dec 21 '22 03:12

Jared Eitnier


1 Answers

Found the answer:

<reference name="product.info">
    <action method="setTemplate"><template>catalog/product/NEW_VIEW.phtml</template></action>
</reference>
like image 125
Jared Eitnier Avatar answered Mar 23 '23 05:03

Jared Eitnier