Created
April 5, 2011 19:35
-
-
Save patrickarlt/904348 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---snip | |
<!-- | |
Product view | |
--> | |
<catalog_product_view translate="label"> | |
<label>Catalog Product View (Any)</label> | |
<!-- Mage_Catalog --> | |
<reference name="root"> | |
<action method="setTemplate"><template>page/3columns.phtml</template></action> | |
</reference> | |
<reference name="head"> | |
<action method="addJs"><script>varien/product.js</script></action> | |
<action method="addJs"><script>varien/configurable.js</script></action> | |
<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action> | |
<action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action> | |
<action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action> | |
</reference> | |
<reference name="right"> | |
<block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml"> | |
<block type="core/text_list" name="alert.urls" as="alert_urls" translate="label"> | |
<label>Alert Urls</label> | |
</block> | |
<block type="catalog/product_view" name="product.prices" as="prices" template="catalog/product/price.phtml"/> | |
<action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action> | |
<block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label"> | |
<label>Info Column Options Wrapper</label> | |
<block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/> | |
<block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml"> | |
<action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action> | |
<action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action> | |
<action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action> | |
<action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action> | |
</block> | |
</block> | |
<block type="catalog/product_view" name="product.info.options.wrapper.bottom" as="product_options_wrapper_bottom" template="catalog/product/view/options/wrapper/bottom.phtml" translate="label"> | |
<label>Bottom Block Options Wrapper</label> | |
<action method="insert"><block>product.tierprices</block></action> | |
<block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/> | |
</block> | |
<block type="core/template_facade" name="product.info.container1" as="container1"> | |
<action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action> | |
<action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action> | |
<action method="append"><block>product.info.options.wrapper</block></action> | |
<action method="append"><block>product.info.options.wrapper.bottom</block></action> | |
</block> | |
</block> | |
</reference> | |
<reference name="content"> | |
<block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/> | |
</reference> | |
<reference name="left"> | |
<block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/> | |
</reference> | |
</catalog_product_view> | |
<!-- | |
Additional block dependant on product type | |
--> | |
<PRODUCT_TYPE_simple translate="label" module="catalog"> | |
<label>Catalog Product View (Simple)</label> | |
<!-- | |
<reference name="product.info"> | |
<block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml"> | |
<block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label"> | |
<label>Product Extra Info</label> | |
</block> | |
</block> | |
</reference> | |
--> | |
<reference name="right"> | |
<block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/> | |
</reference> | |
</PRODUCT_TYPE_simple> | |
<PRODUCT_TYPE_configurable translate="label" module="catalog"> | |
<label>Catalog Product View (Configurable)</label> | |
<!-- | |
<reference name="product.info"> | |
<block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml"> | |
<block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label"> | |
<label>Product Extra Info</label> | |
</block> | |
</block> | |
</reference> | |
--> | |
<reference name="product.info.options.wrapper"> | |
<block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/> | |
</reference> | |
</PRODUCT_TYPE_configurable> | |
<PRODUCT_TYPE_grouped translate="label" module="catalog"> | |
<label>Catalog Product View (Grouped)</label> | |
<reference name="product.info"> | |
<block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml"> | |
<block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label"> | |
<label>Product Extra Info</label> | |
</block> | |
</block> | |
</reference> | |
</PRODUCT_TYPE_grouped> | |
<PRODUCT_TYPE_virtual translate="label" module="catalog"> | |
<label>Catalog Product View (Virtual)</label> | |
<reference name="product.info"> | |
<block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml"> | |
<block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label"> | |
<label>Product Extra Info</label> | |
</block> | |
</block> | |
</reference> | |
</PRODUCT_TYPE_virtual> | |
---snip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment