Advertisement
Guest User

wishlist layout

a guest
May 31st, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.96 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <layout>
  3.     <wishlist_index_index translate="label">
  4.         <label>Customer My Account My Wishlist</label>
  5.         <!-- Mage_Wishlist -->
  6.         <reference name="root">
  7.             <action method="setTemplate"><template>page/1column.phtml</template></action>                
  8.         </reference>
  9.         <update handle="customer_account"/>
  10.         <reference name="content">
  11.             <block type="wishlist/customer_wishlist" template="wishlist/view.phtml">
  12.                
  13.                 <block type="core/template_facade" name="product.info.container1" as="container1">
  14.                     <action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
  15.                     <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
  16.                     <action method="append"><block>product.info.options.wrapper</block></action>
  17.                     <!--<action method="append"><block>product.info.options.wrapper.bottom</block></action>-->
  18.                 </block>
  19.                 <block type="core/template_facade" name="product.info.container2" as="container2">
  20.                     <action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
  21.                     <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
  22.                     <action method="append"><block>product.info.options.wrapper</block></action>
  23.                     <!--<action method="append"><block>product.info.options.wrapper.bottom</block></action>-->
  24.                 </block>
  25.                 <action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
  26.                 <action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
  27.                            
  28.             </block>
  29.         </reference>
  30.         <reference name="right">
  31.             <action method="unsetChild"><name>wishlist_customer_sidebar</name></action>
  32.         </reference>
  33.     </wishlist_index_index>
  34.    
  35.  
  36. <!--
  37. Additional block dependant on product type
  38. -->
  39.     <PRODUCT_TYPE_simple translate="label" module="catalog">
  40.         <label>Catalog Product View (Simple)</label>
  41.         <reference name="product.info">
  42.             <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
  43.                 <block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
  44.                     <label>Product Extra Info</label>
  45.                 </block>
  46.             </block>
  47.         </reference>
  48.     </PRODUCT_TYPE_simple>
  49.     <PRODUCT_TYPE_configurable translate="label" module="catalog">
  50.         <label>Catalog Product View (Configurable)</label>
  51.         <reference name="product.info">
  52.             <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
  53.                 <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
  54.                     <label>Product Extra Info</label>
  55.                 </block>
  56.             </block>
  57.         </reference>
  58.         <reference name="product.info.options.wrapper">
  59.             <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
  60.         </reference>
  61.     </PRODUCT_TYPE_configurable>
  62.     <PRODUCT_TYPE_grouped translate="label" module="catalog">
  63.         <label>Catalog Product View (Grouped)</label>
  64.         <reference name="product.info">
  65.             <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
  66.                 <block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
  67.                     <label>Product Extra Info</label>
  68.                 </block>
  69.             </block>
  70.         </reference>
  71.     </PRODUCT_TYPE_grouped>
  72.     <PRODUCT_TYPE_virtual translate="label" module="catalog">
  73.         <label>Catalog Product View (Virtual)</label>
  74.         <reference name="product.info">
  75.             <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
  76.                 <block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
  77.                     <label>Product Extra Info</label>
  78.                 </block>
  79.             </block>
  80.         </reference>
  81.     </PRODUCT_TYPE_virtual>    
  82. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement