I am trying to update the media template via XML in Magento. Somehow my method is not working:
First I included <?php var_dump($this->getNameInLayout()); ?>
in the template to get the correct block name. In this case the output is: "product.info.media"
Second step is to updated the product design via manage products > Product > Design > Custom Layout Update. Here I try to update the xml for this single product:
<reference name="product.info.media">
<action method="setTemplate"><name>ecommerceteam/cloud-zoom/catalog/product/view/media-venst.phtml</name></action>
</reference>
This is not working.
Update: This is what happens in the catalog.xml
<reference name="content">
<block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
<block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
Update:
I was not able to update a child block via the product xml layout. I resorted to switching the theme.
catalog.xml
for blockproduct.info
, if it has child blocks they will be replaced too