1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Magento
  5. *
  6. * NOTICE OF LICENSE
  7. *
  8. * This source file is subject to the Academic Free License (AFL 3.0)
  9. * that is bundled with this package in the file LICENSE_AFL.txt.
  10. * It is also available through the world-wide-web at this URL:
  11. * http://opensource.org/licenses/afl-3.0.php
  12. * If you did not receive a copy of the license and are unable to
  13. * obtain it through the world-wide-web, please send an email
  14. * to license@magentocommerce.com so we can send you a copy immediately.
  15. *
  16. * DISCLAIMER
  17. *
  18. * Do not edit or add to this file if you wish to upgrade Magento to newer
  19. * versions in the future. If you wish to customize Magento for your
  20. * needs please refer to http://www.magentocommerce.com for more information.
  21. *
  22. * @category    design
  23. * @package     base_default
  24. * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  25. * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  26. */
  27.  
  28. Supported layout update handles (action):
  29. - catalog_product_gallery
  30. - catalog_product_compare_index
  31.  
  32. Supported layout update handles (special):
  33. - default
  34. - catalog_category_default
  35. - catalog_category_layered
  36. - catalog_product_view
  37.  
  38. -->
  39. <layout version="0.1.0">
  40.  
  41. <!--
  42. Default layout, loads most of the pages
  43. -->
  44.  
  45.     <default>
  46.  
  47.         <!-- Mage_Catalog -->
  48.         <reference name="left">
  49.             <block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
  50.                 <action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action>
  51.                 <action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (555) 555-0123.</alt></action>
  52.                 <action method="setLinkUrl"><url>checkout/cart</url></action>
  53.             </block>
  54.         </reference>
  55.         <reference name="right">
  56.             <block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
  57.             <block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">
  58.                 <action method="setImgSrc"><src>images/media/col_right_callout.jpg</src></action>
  59.                 <action method="setImgAlt" translate="alt" module="catalog"><alt>Keep your eyes open for our special Back to School items and save A LOT!</alt></action>
  60.             </block>
  61.         </reference>
  62.         <reference name="footer_links">
  63.             <action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
  64.         </reference>
  65.         <block type="catalog/product_price_template" name="catalog_product_price_template" />
  66.  
  67.  
  68.         <block type="page/html_footer" name="footer_block" as="footer_block" template="page/html/footer_block.phtml">
  69.             <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
  70.                 <label>Page Footer Menues Block</label>
  71.                 <action method="setElementClass"><value>bottom-container-block</value></action>
  72.             </block>
  73.         </block>
  74.  
  75.     </default>
  76.  
  77.  
  78. <!--
  79. Category default layout
  80. -->
  81.  
  82.     <catalog_category_default translate="label">
  83.         <label>Catalog Category (Non-Anchor)</label>
  84.         <reference name="left">
  85.             <block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
  86.         </reference>
  87.         <reference name="content">
  88.             <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
  89.                 <block type="catalog/layer_view" name="catalog.layer.view" as="catalog.layer.view" template="catalog/layer/view.phtml"/>
  90.                 <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
  91.                     <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
  92.                         <block type="page/html_pager" name="product_list_toolbar_pager"/>
  93.                         <!-- The following code shows how to set your own pager increments -->
  94.                         <!--
  95.                            <action method="setDefaultListPerPage"><limit>4</limit></action>
  96.                            <action method="setDefaultGridPerPage"><limit>9</limit></action>
  97.                            <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
  98.                            <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
  99.                            <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
  100.                            <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
  101.                            <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
  102.                        -->
  103.                     </block>
  104.                     <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
  105.                     <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
  106.                     <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
  107.                     <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
  108.                     <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
  109.                     <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
  110.                 </block>
  111.             </block>
  112.         </reference>
  113.     </catalog_category_default>
  114.  
  115. <!--
  116. Category layered navigation layout
  117. -->
  118.  
  119.     <catalog_category_layered translate="label">
  120.         <label>Catalog Category (Anchor)</label>
  121.         <reference name="content">
  122.             <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
  123.                 <block type="catalog/layer_view" name="catalog.layer.view" as="catalog.layer.view" template="catalog/layer/view.phtml"/>
  124.                 <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
  125.                     <!-- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action> -->
  126.                     <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
  127.                         <block type="page/html_pager" name="product_list_toolbar_pager"/>
  128.                         <!-- The following code shows how to set your own pager increments -->
  129.                         <!--
  130.                            <action method="setDefaultListPerPage"><limit>4</limit></action>
  131.                            <action method="setDefaultGridPerPage"><limit>3</limit></action>
  132.                            <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
  133.                            <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
  134.                            <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
  135.                            <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
  136.                            <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
  137.                            <action method="addPagerLimit"><mode>grid</mode><limit>3</limit></action>
  138.                            <action method="addPagerLimit"><mode>grid</mode><limit>6</limit></action>
  139.                            <action method="addPagerLimit"><mode>grid</mode><limit>9</limit></action>
  140.                            <action method="addPagerLimit" translate="label"><mode>grid</mode><limit>all</limit><label>All</label></action>
  141.                        -->
  142.                     </block>
  143.                     <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
  144.                     <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
  145.                     <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
  146.                     <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
  147.                     <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
  148.                     <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
  149.                 </block>
  150.             </block>
  151.         </reference>
  152.     </catalog_category_layered>
  153.  
  154. <!--
  155. Compare products page
  156. -->
  157.  
  158.     <catalog_product_compare_index translate="label">
  159.         <label>Catalog Product Compare List</label>
  160.         <!-- Mage_Catalog -->
  161.         <reference name="root">
  162.             <action method="setTemplate"><template>page/popup.phtml</template></action>
  163.         </reference>
  164.         <reference name="head">
  165.             <action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
  166.             <action method="addJs"><script>varien/product.js</script></action>
  167.         </reference>
  168.         <reference name="content">
  169.             <block type="catalog/product_compare_list" name="catalog.compare.list" template="catalog/product/compare/list.phtml"/>
  170.         </reference>
  171.     </catalog_product_compare_index>
  172.  
  173.     <customer_account_index>
  174.         <reference name="right">
  175.             <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
  176.         </reference>
  177.     </customer_account_index>
  178.  
  179. <!--
  180. Product view
  181. -->
  182.  
  183.     <catalog_product_view translate="label">
  184.         <label>Catalog Product View (Any)</label>
  185.         <!-- Mage_Catalog -->
  186.         <reference name="root">
  187.             <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
  188.         </reference>
  189.         <reference name="head">
  190.             <action method="addJs"><script>varien/product.js</script></action>
  191.             <action method="addJs"><script>varien/configurable.js</script></action>
  192.  
  193.             <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
  194.             <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
  195.             <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
  196.         </reference>
  197.         <reference name="content">
  198.             <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
  199.                 <!--
  200.                <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/summary.phtml</template></action>
  201.                <action method="addReviewSummaryTemplate"><type>short</type><template>review/helper/summary_short.phtml</template></action>
  202.                <action method="addReviewSummaryTemplate"><type>...</type><template>...</template></action>
  203.                -->
  204.                 <!--<block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
  205.                <block type="core/text_list" name="alert.urls" as="alert_urls" translate="label">
  206.                    <label>Alert Urls</label>
  207.                </block>
  208.  
  209.                <action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
  210.  
  211.                <block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
  212.                    <action method="setColumnCount"><columns>4</columns></action>
  213.                    <action method="setItemLimit"><type>upsell</type><limit>4</limit></action>
  214.                </block>
  215.  
  216.                <block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
  217.                <block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
  218.                    <action method="addToParentGroup"><group>detailed_info</group></action>
  219.                </block>
  220.                <block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
  221.                    <action method="addToParentGroup"><group>detailed_info</group></action>
  222.                </block>
  223.                <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
  224.                <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
  225.  
  226.                <block type="core/text_list" name="product.info.extrahint" as="extrahint" translate="label">
  227.                    <label>Product View Extra Hint</label>
  228.                </block>
  229.  
  230.                <block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
  231.                    <label>Info Column Options Wrapper</label>
  232.                    <block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
  233.                    <block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
  234.                        <action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
  235.                        <action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
  236.                        <action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
  237.                        <action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
  238.                </block>
  239.                        <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
  240.                    </block>
  241.                <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">
  242.                    <label>Bottom Block Options Wrapper</label>
  243.                    <action method="insert"><block>product.tierprices</block></action>
  244.                    <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
  245.                    <action method="append"><block>product.info.addtocart</block></action>
  246.                    <action method="append"><block>product.info.addto</block></action>
  247.                </block>
  248.  
  249.                <block type="core/template_facade" name="product.info.container1" as="container1">
  250.                    <action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
  251.                    <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
  252.                    <action method="append"><block>product.info.options.wrapper</block></action>
  253.                    <action method="append"><block>product.info.options.wrapper.bottom</block></action>
  254.                </block>
  255.                <block type="core/template_facade" name="product.info.container2" as="container2">
  256.                    <action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
  257.                    <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
  258.                    <action method="append"><block>product.info.options.wrapper</block></action>
  259.                    <action method="append"><block>product.info.options.wrapper.bottom</block></action>
  260.                </block>
  261.                <action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
  262.                <action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>-->
  263.             </block>
  264.         </reference>
  265.         <reference name="right">
  266.             <block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
  267.         </reference>
  268.     </catalog_product_view>
  269.  
  270. <!--
  271. Additional block dependant on product type
  272. -->
  273.     <PRODUCT_TYPE_simple translate="label" module="catalog">
  274.         <label>Catalog Product View (Simple)</label>
  275.         <reference name="product.info">
  276.             <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
  277.                 <block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
  278.                     <label>Product Extra Info</label>
  279.                 </block>
  280.             </block>
  281.         </reference>
  282.     </PRODUCT_TYPE_simple>
  283.     <PRODUCT_TYPE_configurable translate="label" module="catalog">
  284.         <label>Catalog Product View (Configurable)</label>
  285.         <reference name="product.info">
  286.             <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
  287.                 <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
  288.                     <label>Product Extra Info</label>
  289.                 </block>
  290.             </block>
  291.         </reference>
  292.         <reference name="product.info.options.wrapper">
  293.             <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
  294.         </reference>
  295.     </PRODUCT_TYPE_configurable>
  296.     <PRODUCT_TYPE_grouped translate="label" module="catalog">
  297.         <label>Catalog Product View (Grouped)</label>
  298.         <reference name="product.info">
  299.             <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
  300.                 <block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
  301.                     <label>Product Extra Info</label>
  302.                 </block>
  303.             </block>
  304.         </reference>
  305.     </PRODUCT_TYPE_grouped>
  306.     <PRODUCT_TYPE_virtual translate="label" module="catalog">
  307.         <label>Catalog Product View (Virtual)</label>
  308.         <reference name="product.info">
  309.             <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
  310.                 <block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
  311.                     <label>Product Extra Info</label>
  312.                 </block>
  313.             </block>
  314.         </reference>
  315.     </PRODUCT_TYPE_virtual>
  316.  
  317.  
  318.  
  319. <!--
  320. Product send to friend
  321. -->
  322.  
  323.     <catalog_product_send translate="label">
  324.         <label>Catalog Product Email to a Friend</label>
  325.         <!-- Mage_Catalog -->
  326.         <reference name="root">
  327.             <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
  328.         </reference>
  329.         <reference name="head">
  330.             <action method="addJs"><script>varien/product.js</script></action>
  331.         </reference>
  332.         <reference name="content">
  333.             <block type="catalog/product_send" name="product.send" template="catalog/product/send.phtml">
  334.             </block>
  335.         </reference>
  336.     </catalog_product_send>
  337.  
  338. <!--
  339. Product additional images gallery popup
  340. -->
  341.  
  342.     <catalog_product_gallery translate="label">
  343.         <label>Catalog Product Image Gallery Popup</label>
  344.         <!-- Mage_Catalog -->
  345.         <reference name="root">
  346.             <action method="setTemplate"><template>page/popup.phtml</template></action>
  347.         </reference>
  348.         <reference name="content">
  349.             <block type="catalog/product_gallery" name="catalog_product_gallery" template="catalog/product/gallery.phtml"/>
  350.         </reference>
  351.     </catalog_product_gallery>
  352.  
  353. <!--
  354. SEO Site Map
  355. -->
  356.  
  357.     <catalog_seo_sitemap translate="label">
  358.         <label>Catalog Seo Sitemap (Common)</label>
  359.         <remove name="right"/>
  360.         <remove name="left"/>
  361.  
  362.         <reference name="root">
  363.             <action method="setTemplate"><template>page/1column.phtml</template></action>
  364.         </reference>
  365.         <reference name="content">
  366.             <block type="page/template_container" name="seo.sitemap.container" template="catalog/seo/sitemap/container.phtml">
  367.                 <block type="page/template_links" name="seo.sitemap.links" as="links" template="page/template/links.phtml"/>
  368.                 <block type="page/html_pager" name="seo.sitemap.pager.top" as="pager_top" template="page/html/pager.phtml"/>
  369.                 <block type="page/html_pager" name="seo.sitemap.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
  370.             </block>
  371.         </reference>
  372.     </catalog_seo_sitemap>
  373.  
  374.     <catalog_seo_sitemap_category translate="label">
  375.         <label>Catalog Seo Sitemap (Category List)</label>
  376.         <reference name="head">
  377.             <action method="setTitle" translate="title" module="catalog"><title>Site Map</title></action>
  378.         </reference>
  379.         <update handle="catalog_seo_sitemap" />
  380.         <reference name="seo.sitemap.container">
  381.             <action method="setTitle" translate="title" module="catalog"><title>Categories</title></action>
  382.             <block type="catalog/seo_sitemap_category" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
  383.                 <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
  384.                 <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
  385.                 <action method="setItemsTitle" translate="title" module="catalog"><title>categories</title></action>
  386.             </block>
  387.         </reference>
  388.         <reference name="seo.sitemap.links">
  389.             <action method="addLink" translate="label title" module="catalog"><label>Products Sitemap</label><url helper="catalog/map/getProductUrl"/><title>Products Sitemap</title></action>
  390.         </reference>
  391.     </catalog_seo_sitemap_category>
  392.  
  393.     <catalog_seo_sitemap_category_tree translate="label">
  394.         <label>Catalog Seo Sitemap (Category Tree)</label>
  395.         <reference name="seo.sitemap.container">
  396.             <remove name="seo.sitemap.pager.top" />
  397.             <remove name="seo.sitemap.pager.bottom" />
  398.             <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.top" as="pager_top" template="page/html/pager.phtml"/>
  399.             <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
  400.             <remove name="seo.sitemap.sitemap" />
  401.             <block type="catalog/seo_sitemap_tree_category" name="seo.sitemap.sitemap_tree" as="sitemap" after="pager_top" template="catalog/seo/tree.phtml">
  402.                 <action method="bindPager"><pager>seo.sitemap.tree.pager.top</pager></action>
  403.                 <action method="bindPager"><pager>seo.sitemap.tree.pager.bottom</pager></action>
  404.             </block>
  405.         </reference>
  406.     </catalog_seo_sitemap_category_tree>
  407.  
  408.     <catalog_seo_sitemap_product translate="label">
  409.         <label>Catalog Seo Sitemap (Product List)</label>
  410.         <reference name="head">
  411.             <action method="setTitle" translate="title" module="catalog"><title>Site Map</title></action>
  412.         </reference>
  413.         <update handle="catalog_seo_sitemap" />
  414.         <reference name="seo.sitemap.container">
  415.             <action method="setTitle" translate="title" module="catalog"><title>Products</title></action>
  416.             <block type="catalog/seo_sitemap_product" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
  417.                 <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
  418.                 <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
  419.                 <action method="setItemsTitle" translate="title" module="catalog"><title>products</title></action>
  420.             </block>
  421.         </reference>
  422.         <reference name="seo.sitemap.links">
  423.             <action method="addLink" translate="label title" module="catalog"><label>Categories Sitemap</label><url helper="catalog/map/getCategoryUrl"/><title>Categories Sitemap</title></action>
  424.         </reference>
  425.     </catalog_seo_sitemap_product>
  426. </layout>