Guest User

cust.xml

a guest
Mar 6th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.41 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@magento.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.magento.com for more information.
  21. *
  22. * @category design
  23. * @package rwd_default
  24. * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.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. - customer_account_index
  30. - customer_address_index
  31. - customer_address_view
  32. - customer_account_login
  33. - customer_account_logoutsuccess
  34. - customer_account_create
  35. - customer_account_forgotpassword
  36. - customer_account_confirmation
  37. - customer_account_edit
  38.  
  39. Supported layout update handles (special):
  40. - default
  41.  
  42. -->
  43. <layout version="0.1.0">
  44.  
  45. <!--
  46. Default layout, loads most of the pages
  47. -->
  48.  
  49. <default>
  50. <!-- Mage_Customer -->
  51. <reference name="top.links">
  52. <!-- <action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action> -->
  53. <action method="addLink" translate="label title before_text" module="customer"><label>Register</label><url helper="customer/getRegisterUrl" /><title>Register</title><prepare/><urlParams/><position>100</position><li/><a/></action>
  54. </reference>
  55. <reference name="footer_links2">
  56. <action method="addLink" translate="label title" module="catalog"><label>My Account</label><url helper="customer/getAccountUrl" /><title>My Account</title></action>
  57. </reference>
  58. </default>
  59.  
  60. <!--
  61. Load this update on every page when customer is logged in
  62. -->
  63.  
  64. <customer_logged_in>
  65. <reference name="top.links">
  66. <action method="removeLinkByUrl"><url helper="customer/getRegisterUrl" /></action>
  67. <action method="addLink" translate="label title" module="catalog"><label>My Account</label><url helper="customer/getAccountUrl" /><title>My Account</title></action>
  68. <action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action>
  69. </reference>
  70. </customer_logged_in>
  71.  
  72. <!--
  73. Load this update on every page when customer is logged out
  74. -->
  75.  
  76. <customer_logged_out>
  77. <!---<reference name="right">
  78. <block type="customer/form_login" name="customer_form_mini_login" before="-" template="customer/form/mini.login.phtml"/>
  79. </reference>-->
  80. <reference name="top.links">
  81. <action method="addLink" translate="label title" module="customer"><label>Log In</label><url helper="customer/getLoginUrl"/><title>Log In</title><prepare/><urlParams/><position>100</position></action>
  82. </reference>
  83. <remove name="reorder"></remove>
  84. </customer_logged_out>
  85.  
  86. <!--
  87. Layout for customer login page
  88. -->
  89.  
  90. <customer_account_login translate="label">
  91. <label>Customer Account Login Form</label>
  92. <!-- Mage_Customer -->
  93. <remove name="right"/>
  94. <remove name="left"/>
  95.  
  96. <reference name="root">
  97. <action method="setTemplate"><template>page/1column.phtml</template></action>
  98. </reference>
  99. <reference name="content">
  100. <block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml" />
  101. </reference>
  102. </customer_account_login>
  103.  
  104. <!--
  105. Layout for customer log out page
  106. -->
  107.  
  108. <customer_account_logoutsuccess translate="label">
  109. <label>Customer Account Logout Success</label>
  110. <!-- Mage_Customer -->
  111. <remove name="right"/>
  112. <remove name="left"/>
  113.  
  114. <reference name="root">
  115. <action method="setTemplate"><template>page/1column.phtml</template></action>
  116. </reference>
  117. <reference name="content">
  118. <block type="core/template" name="customer_logout" template="customer/logout.phtml"/>
  119. </reference>
  120. </customer_account_logoutsuccess>
  121.  
  122. <!--
  123. New customer registration
  124. -->
  125.  
  126. <customer_account_create translate="label">
  127. <label>Customer Account Registration Form</label>
  128. <!-- Mage_Customer -->
  129. <remove name="right"/>
  130. <remove name="left"/>
  131.  
  132. <reference name="root">
  133. <action method="setTemplate"><template>page/1column.phtml</template></action>
  134. </reference>
  135. <reference name="content">
  136. <block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
  137. <block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" translate="label">
  138. <label>Form Fields Before</label>
  139. </block>
  140. </block>
  141. </reference>
  142. </customer_account_create>
  143.  
  144. <customer_account_forgotpassword translate="label">
  145. <label>Customer Forgot Password Form</label>
  146. <remove name="right"/>
  147. <remove name="left"/>
  148.  
  149. <reference name="head">
  150. <action method="setTitle" translate="title" module="customer"><title>Forgot Your Password</title></action>
  151. </reference>
  152. <reference name="root">
  153. <action method="setTemplate"><template>page/1column.phtml</template></action>
  154. <action method="setHeaderTitle" translate="title" module="customer"><title>Password forgotten</title></action>
  155. </reference>
  156. <reference name="content">
  157. <!--<block type="core/template" name="forgotPassword" template="customer/form/forgotpassword.phtml"/>-->
  158. <block type="customer/account_forgotpassword" name="forgotPassword" template="customer/form/forgotpassword.phtml" />
  159. </reference>
  160. </customer_account_forgotpassword>
  161.  
  162. <customer_account_resetpassword translate="label">
  163. <label>Reset a Password</label>
  164. <remove name="right"/>
  165. <remove name="left"/>
  166.  
  167. <reference name="head">
  168. <action method="setTitle" translate="title" module="customer">
  169. <title>Reset a Password</title>
  170. </action>
  171. </reference>
  172. <reference name="root">
  173. <action method="setTemplate">
  174. <template>page/1column.phtml</template>
  175. </action>
  176. <action method="setHeaderTitle" translate="title" module="customer">
  177. <title>Reset a Password</title>
  178. </action>
  179. </reference>
  180. <reference name="content">
  181. <block type="customer/account_resetpassword" name="resetPassword" template="customer/form/resetforgottenpassword.phtml"/>
  182. </reference>
  183. </customer_account_resetpassword>
  184.  
  185. <customer_account_confirmation>
  186. <remove name="right"/>
  187. <remove name="left"/>
  188.  
  189. <reference name="root">
  190. <action method="setTemplate"><template>page/1column.phtml</template></action>
  191. <action method="setHeaderTitle" translate="title" module="customer"><title>Send confirmation link</title></action>
  192. </reference>
  193. <reference name="content">
  194. <block type="core/template" name="accountConfirmation" template="customer/form/confirmation.phtml"/>
  195. </reference>
  196. </customer_account_confirmation>
  197.  
  198. <customer_account_edit translate="label">
  199. <label>Customer Account Edit Form</label>
  200. <update handle="customer_account"/>
  201. <reference name="root">
  202. <action method="setHeaderTitle" translate="title" module="customer"><title>Edit Account Info</title></action>
  203. </reference>
  204. <reference name="my.account.wrapper">
  205. <block type="customer/form_edit" name="customer_edit" template="customer/form/edit.phtml"/>
  206. </reference>
  207.  
  208. <reference name="left">
  209. <action method="unsetChild"><name>left.permanent.callout</name></action>
  210. </reference>
  211. </customer_account_edit>
  212.  
  213. <!--
  214. Customer account pages, rendered for all tabs in dashboard
  215. -->
  216.  
  217. <customer_account translate="label">
  218. <label>Customer My Account (All Pages)</label>
  219. <!--remove name="catalog.compare.sidebar"/>
  220. <remove name="sale.reorder.sidebar"/-->
  221.  
  222. <!-- Mage_Customer -->
  223. <reference name="root">
  224. <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
  225. <action method="addBodyClass"><class>customer-account</class></action>
  226. </reference>
  227.  
  228. <reference name="content">
  229. <block type="page/html_wrapper" name="my.account.wrapper" translate="label">
  230. <label>My Account Wrapper</label>
  231. <action method="setElementClass"><value>my-account</value></action>
  232. </block>
  233. </reference>
  234.  
  235. <reference name="left_first">
  236. <block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml">
  237. <action method="addLink" translate="label" module="customer"><name>account</name><path>customer/account/</path><label>Account Dashboard</label></action>
  238. <action method="addLink" translate="label" module="customer"><name>account_edit</name><path>customer/account/edit/</path><label>Account Information</label></action>
  239. <action method="addLink" translate="label" module="customer"><name>address_book</name><path>customer/address/</path><label>Address Book</label></action>
  240. </block>
  241. </reference>
  242. <reference name="left">
  243. <!--<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml">-->
  244. <!--<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>-->
  245. <!--<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>-->
  246. <!--<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>-->
  247. <!--</block>-->
  248. <block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
  249. <remove name="tags_popular"/>
  250.  
  251. </reference>
  252. </customer_account>
  253.  
  254. <!--
  255. Customer account home dashboard layout
  256. -->
  257.  
  258. <customer_account_index translate="label">
  259. <label>Customer My Account Dashboard</label>
  260. <update handle="customer_account"/>
  261. <!-- Mage_Customer -->
  262. <reference name="root">
  263. <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
  264. </reference>
  265. <reference name="my.account.wrapper">
  266. <block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml">
  267. <block type="customer/account_dashboard_hello" name="customer_account_dashboard_hello" as="hello" template="customer/account/dashboard/hello.phtml"/>
  268. <block type="core/template" name="customer_account_dashboard_top" as="top" />
  269. <block type="customer/account_dashboard_info" name="customer_account_dashboard_info" as="info" template="customer/account/dashboard/info.phtml"/>
  270. <block type="customer/account_dashboard_newsletter" name="customer_account_dashboard_newsletter" as="newsletter" template="customer/account/dashboard/newsletter.phtml"/>
  271. <block type="customer/account_dashboard_address" name="customer_account_dashboard_address" as="address" template="customer/account/dashboard/address.phtml"/>
  272. </block>
  273. </reference>
  274.  
  275. </customer_account_index>
  276.  
  277. <!--
  278. Customer account address book
  279. -->
  280.  
  281. <customer_address_index translate="label">
  282. <label>Customer My Account Address Book</label>
  283. <!-- Mage_Customer -->
  284. <update handle="customer_account"/>
  285. <reference name="my.account.wrapper">
  286. <block type="customer/address_book" name="address_book" template="customer/address/book.phtml"/>
  287. </reference>
  288. </customer_address_index>
  289.  
  290. <!--
  291. Customer account address edit page
  292. -->
  293.  
  294. <customer_address_form translate="label">
  295. <label>Customer My Account Address Edit Form</label>
  296. <!-- Mage_Customer -->
  297. <update handle="customer_account"/>
  298. <reference name="my.account.wrapper">
  299. <block type="customer/address_edit" name="customer_address_edit" template="customer/address/edit.phtml"/>
  300. </reference>
  301. </customer_address_form>
  302.  
  303. </layout>
Add Comment
Please, Sign In to add comment