Advertisement
Guest User

catalog.xml

a guest
Jan 30th, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.16 KB | None | 0 0
  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) 2014 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="catalog/product_compare_sidebar" after="catalog.leftnav" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
  50. </reference>
  51. <reference name="footer_links">
  52. <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>
  53. </reference>
  54. <block type="catalog/product_price_template" name="catalog_product_price_template" />
  55. </default>
  56.  
  57.  
  58. <!--
  59. Category default layout
  60. -->
  61.  
  62. <catalog_category_default translate="label">
  63. <label>Catalog Category (Non-Anchor)</label>
  64. <reference name="root">
  65. <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
  66. </reference>
  67. <reference name="left">
  68. <block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
  69. </reference>
  70. <reference name="content">
  71. <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
  72. <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
  73. <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
  74. <block type="page/html_pager" name="product_list_toolbar_pager"/>
  75. <!-- The following code shows how to set your own pager increments -->
  76. <!--
  77. <action method="setDefaultListPerPage"><limit>4</limit></action>
  78. <action method="setDefaultGridPerPage"><limit>9</limit></action>
  79. <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
  80. <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
  81. <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
  82. <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
  83. <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
  84. -->
  85. </block>
  86. <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
  87. <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
  88. <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
  89. <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
  90. <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
  91. <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
  92. </block>
  93. </block>
  94. </reference>
  95. </catalog_category_default>
  96.  
  97. <!--
  98. Category layered navigation layout
  99. -->
  100.  
  101. <catalog_category_layered translate="label">
  102. <label>Catalog Category (Anchor)</label>
  103. <reference name="root">
  104. <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
  105. </reference>
  106. <reference name="left">
  107. <block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/>
  108. </reference>
  109. <reference name="content">
  110. <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
  111. <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
  112. <!-- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action> -->
  113. <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
  114. <block type="page/html_pager" name="product_list_toolbar_pager"/>
  115. <!-- The following code shows how to set your own pager increments -->
  116. <!--
  117. <action method="setDefaultListPerPage"><limit>4</limit></action>
  118. <action method="setDefaultGridPerPage"><limit>3</limit></action>
  119. <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
  120. <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
  121. <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
  122. <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
  123. <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
  124. <action method="addPagerLimit"><mode>grid</mode><limit>3</limit></action>
  125. <action method="addPagerLimit"><mode>grid</mode><limit>6</limit></action>
  126. <action method="addPagerLimit"><mode>grid</mode><limit>9</limit></action>
  127. <action method="addPagerLimit" translate="label"><mode>grid</mode><limit>all</limit><label>All</label></action>
  128. -->
  129. </block>
  130. <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
  131. <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
  132. <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
  133. <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
  134. <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
  135. <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
  136. </block>
  137. </block>
  138. </reference>
  139. </catalog_category_layered>
  140.  
  141. <!--
  142. Compare products page
  143. -->
  144.  
  145. <catalog_product_compare_index translate="label">
  146. <label>Catalog Product Compare List</label>
  147. <!-- Mage_Catalog -->
  148. <reference name="root">
  149. <action method="setTemplate"><template>page/popup.phtml</template></action>
  150. </reference>
  151. <reference name="head">
  152. <action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
  153. <action method="addJs"><script>varien/product.js</script></action>
  154. </reference>
  155. <reference name="content">
  156. <block type="catalog/product_compare_list" name="catalog.compare.list" template="catalog/product/compare/list.phtml"/>
  157. </reference>
  158. </catalog_product_compare_index>
  159.  
  160. <customer_account_index>
  161. <reference name="right">
  162. <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
  163. </reference>
  164. </customer_account_index>
  165.  
  166. <!--
  167. Product view
  168. -->
  169.  
  170. <catalog_product_view translate="label">
  171. <label>Catalog Product View (Any)</label>
  172. <!-- Mage_Catalog -->
  173. <reference name="root">
  174. <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
  175. </reference>
  176. <reference name="head">
  177. <action method="addJs"><script>varien/product.js</script></action>
  178. <action method="addJs"><script>varien/configurable.js</script></action>
  179.  
  180. <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
  181. <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
  182. <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
  183. </reference>
  184. <reference name="content">
  185. <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
  186. <!--
  187. <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/summary.phtml</template></action>
  188. <action method="addReviewSummaryTemplate"><type>short</type><template>review/helper/summary_short.phtml</template></action>
  189. <action method="addReviewSummaryTemplate"><type>...</type><template>...</template></action>
  190. -->
  191. <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
  192. <block type="core/text_list" name="alert.urls" as="alert_urls" translate="label">
  193. <label>Alert Urls</label>
  194. </block>
  195.  
  196. <block type="core/text_list" name="product.info.short_des_after" as="short_des_after" translate="label">
  197. <label>Product View Short Description After</label>
  198. </block>
  199.  
  200. <action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
  201.  
  202. <block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
  203. <action method="setColumnCount"><columns>4</columns></action>
  204. <action method="setItemLimit"><type>upsell</type><limit>100</limit></action>
  205. </block>
  206. <block type="catalog/product_list_related" name="catalog.product.related" template="catalog/product/list/related.phtml"/>
  207.  
  208. <block type="review/product_view_list" name="product_review" as="review_list" template="review/product/view/list.phtml" >
  209. <block type="review/form" name="product.review.form" as="review_form">
  210. <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label">
  211. <label>Review Form Fields Before</label>
  212. <action method="setMayBeInvisible"><value>1</value></action>
  213. </block>
  214. </block>
  215. </block>
  216.  
  217. <block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
  218. <block type="core/template" name="product.info.additonal_collateral" as="product_additional_collateral" template="catalog/product/view/additional_collateral.phtml" translate="label">
  219. <label>Add Extra Tabs of Collateral</label>
  220. </block>
  221. <block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
  222. <action method="addToParentGroup"><group>detailed_info</group></action>
  223. <action method="setTitle" translate="value"><value>Description</value></action>
  224. </block>
  225. <block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
  226. <action method="addToParentGroup"><group>detailed_info</group></action>
  227. <action method="setTitle" translate="value"><value>Additional Information</value></action>
  228. </block>
  229. <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
  230. <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
  231.  
  232. <block type="core/text_list" name="product.info.extrahint" as="extrahint" translate="label">
  233. <label>Product View Extra Hint</label>
  234. </block>
  235.  
  236. <block type="core/text_list" name="product.info.shippingreturns" as="shippingreturns" translate="label">
  237. <label>Product View Shipping and Returns</label>
  238. </block>
  239.  
  240. <block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
  241. <label>Info Column Options Wrapper</label>
  242. <block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
  243. <block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
  244. <action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
  245. <action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
  246. <action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
  247. <action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
  248. </block>
  249. <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
  250. </block>
  251. <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">
  252. <label>Bottom Block Options Wrapper</label>
  253. <action method="insert"><block>product.tierprices</block></action>
  254. <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
  255. <action method="append"><block>product.info.addtocart</block></action>
  256. <!--action method="append"><block>product.info.addto</block></action-->
  257. </block>
  258.  
  259. <block type="core/template_facade" name="product.info.container1" as="container1">
  260. <action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
  261. <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
  262. <action method="append"><block>product.info.options.wrapper</block></action>
  263. <action method="append"><block>product.info.options.wrapper.bottom</block></action>
  264. </block>
  265. <block type="core/template_facade" name="product.info.container2" as="container2">
  266. <action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
  267. <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
  268. <action method="append"><block>product.info.options.wrapper</block></action>
  269. <action method="append"><block>product.info.options.wrapper.bottom</block></action>
  270. </block>
  271. <action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
  272. <action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
  273. </block>
  274. </reference>
  275. <reference name="right">
  276. </reference>
  277. </catalog_product_view>
  278.  
  279. <!--
  280. Additional block dependant on product type
  281. -->
  282. <PRODUCT_TYPE_simple translate="label" module="catalog">
  283. <label>Catalog Product View (Simple)</label>
  284. <reference name="product.info">
  285. <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
  286. <block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
  287. <label>Product Extra Info</label>
  288. </block>
  289. </block>
  290. </reference>
  291. </PRODUCT_TYPE_simple>
  292. <PRODUCT_TYPE_configurable translate="label" module="catalog">
  293. <label>Catalog Product View (Configurable)</label>
  294. <reference name="product.info">
  295. <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
  296. <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
  297. <label>Product Extra Info</label>
  298. </block>
  299. </block>
  300. </reference>
  301. <reference name="product.info.options.wrapper">
  302. <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
  303. </reference>
  304. </PRODUCT_TYPE_configurable>
  305. <PRODUCT_TYPE_grouped translate="label" module="catalog">
  306. <label>Catalog Product View (Grouped)</label>
  307. <reference name="product.info">
  308. <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
  309. <block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
  310. <label>Product Extra Info</label>
  311. </block>
  312. </block>
  313. </reference>
  314. </PRODUCT_TYPE_grouped>
  315. <PRODUCT_TYPE_virtual translate="label" module="catalog">
  316. <label>Catalog Product View (Virtual)</label>
  317. <reference name="product.info">
  318. <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
  319. <block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
  320. <label>Product Extra Info</label>
  321. </block>
  322. </block>
  323. </reference>
  324. </PRODUCT_TYPE_virtual>
  325.  
  326.  
  327.  
  328. <!--
  329. Product send to friend
  330. -->
  331.  
  332. <catalog_product_send translate="label">
  333. <label>Catalog Product Email to a Friend</label>
  334. <!-- Mage_Catalog -->
  335. <reference name="root">
  336. <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
  337. </reference>
  338. <reference name="head">
  339. <action method="addJs"><script>varien/product.js</script></action>
  340. </reference>
  341. <reference name="content">
  342. <block type="catalog/product_send" name="product.send" template="catalog/product/send.phtml">
  343. </block>
  344. </reference>
  345. </catalog_product_send>
  346.  
  347. <!--
  348. Product additional images gallery popup
  349. -->
  350.  
  351. <catalog_product_gallery translate="label">
  352. <label>Catalog Product Image Gallery Popup</label>
  353. <!-- Mage_Catalog -->
  354. <reference name="root">
  355. <action method="setTemplate"><template>page/popup.phtml</template></action>
  356. </reference>
  357. <reference name="content">
  358. <block type="catalog/product_gallery" name="catalog_product_gallery" template="catalog/product/gallery.phtml"/>
  359. </reference>
  360. </catalog_product_gallery>
  361.  
  362. <!--
  363. SEO Site Map
  364. -->
  365.  
  366. <catalog_seo_sitemap translate="label">
  367. <label>Catalog Seo Sitemap (Common)</label>
  368. <remove name="right"/>
  369. <remove name="left"/>
  370.  
  371. <reference name="root">
  372. <action method="setTemplate"><template>page/1column.phtml</template></action>
  373. </reference>
  374. <reference name="content">
  375. <block type="page/template_container" name="seo.sitemap.container" template="catalog/seo/sitemap/container.phtml">
  376. <block type="page/template_links" name="seo.sitemap.links" as="links" template="page/template/links.phtml"/>
  377. <block type="page/html_pager" name="seo.sitemap.pager.top" as="pager_top" template="page/html/pager.phtml"/>
  378. <block type="page/html_pager" name="seo.sitemap.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
  379. </block>
  380. </reference>
  381. </catalog_seo_sitemap>
  382.  
  383. <catalog_seo_sitemap_category translate="label">
  384. <label>Catalog Seo Sitemap (Category List)</label>
  385. <reference name="head">
  386. <action method="setTitle" translate="title" module="catalog"><title>Site Map</title></action>
  387. </reference>
  388. <update handle="catalog_seo_sitemap" />
  389. <reference name="seo.sitemap.container">
  390. <action method="setTitle" translate="title" module="catalog"><title>Categories</title></action>
  391. <block type="catalog/seo_sitemap_category" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
  392. <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
  393. <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
  394. <action method="setItemsTitle" translate="title" module="catalog"><title>categories</title></action>
  395. </block>
  396. </reference>
  397. <reference name="seo.sitemap.links">
  398. <action method="addLink" translate="label title" module="catalog"><label>Products Sitemap</label><url helper="catalog/map/getProductUrl"/><title>Products Sitemap</title></action>
  399. </reference>
  400. </catalog_seo_sitemap_category>
  401.  
  402. <catalog_seo_sitemap_category_tree translate="label">
  403. <label>Catalog Seo Sitemap (Category Tree)</label>
  404. <reference name="seo.sitemap.container">
  405. <remove name="seo.sitemap.pager.top" />
  406. <remove name="seo.sitemap.pager.bottom" />
  407. <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.top" as="pager_top" template="page/html/pager.phtml"/>
  408. <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
  409. <remove name="seo.sitemap.sitemap" />
  410. <block type="catalog/seo_sitemap_tree_category" name="seo.sitemap.sitemap_tree" as="sitemap" after="pager_top" template="catalog/seo/tree.phtml">
  411. <action method="bindPager"><pager>seo.sitemap.tree.pager.top</pager></action>
  412. <action method="bindPager"><pager>seo.sitemap.tree.pager.bottom</pager></action>
  413. </block>
  414. </reference>
  415. </catalog_seo_sitemap_category_tree>
  416.  
  417. <catalog_seo_sitemap_product translate="label">
  418. <label>Catalog Seo Sitemap (Product List)</label>
  419. <reference name="head">
  420. <action method="setTitle" translate="title" module="catalog"><title>Site Map</title></action>
  421. </reference>
  422. <update handle="catalog_seo_sitemap" />
  423. <reference name="seo.sitemap.container">
  424. <action method="setTitle" translate="title" module="catalog"><title>Products</title></action>
  425. <block type="catalog/seo_sitemap_product" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
  426. <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
  427. <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
  428. <action method="setItemsTitle" translate="title" module="catalog"><title>products</title></action>
  429. </block>
  430. </reference>
  431. <reference name="seo.sitemap.links">
  432. <action method="addLink" translate="label title" module="catalog"><label>Categories Sitemap</label><url helper="catalog/map/getCategoryUrl"/><title>Categories Sitemap</title></action>
  433. </reference>
  434. </catalog_seo_sitemap_product>
  435. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement