Magento – Layout update only for defined products

Picture

but always good to know a very brief post. If you want for one or more products to change the product detail representation (e.g. the. about the app / design / frontend /[Eigenes Theme]/[As well]/template / catalog / product / view.phtml is defined), you can add the code snippet in the product under “Eigenes Layout Update” load its customized and deviant view.phtml. This snippet could e.g.. so aussehen

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

Thus the custom view-custom.phtml will be loaded for all products, where this is deposited.

Used in Magento versions 1.7 – 1.9 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *