Wholesale_Customer_Activation - Version 1.0.0

Version Notes

The customers who registered as a wholesaler need approval from the magento backend administrator. And also using this extension we can restrict products, categories and CMS pages for the customers. There is a category called quickorder which list all the simple products so that we can add those to cart, this option is allowed only for wholesale customers.

For wholesale customers magento administrator have to set is activated to Approved in Customer account information.

In system configuration we can restrict customers to access products, CMS pages and categories or we give special privileges to the customers to access products, categories and CMS pages.

Wholesale register form in front end, we can request to become wholesale customer from administrator.

We can disable the module by selecting no in the customer activation dropdown in system configuration

We can also activate the wholesale customers by default by selecting activate wholesale accounts by default to yes in system configuration.

Download this release

Release Info

Developer BrainSINS
Extension Wholesale_Customer_Activation
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

Files changed (208) hide show
  1. app/code/community/Exinent/CustomerActivation/Block/Adminhtml/Customer/Edit/Tab/Customerimages.php +44 -0
  2. app/code/community/Exinent/CustomerActivation/Block/Adminhtml/System/Config/Date.php +23 -0
  3. app/code/community/Exinent/CustomerActivation/Block/Adminhtml/Widget/Grid/Column/Renderer/Boolean.php +25 -0
  4. app/code/community/Exinent/CustomerActivation/Block/Orderproduct.php +119 -0
  5. app/code/community/Exinent/CustomerActivation/Block/Page/Html/Topmenu.php +29 -0
  6. app/code/community/Exinent/CustomerActivation/Block/Purchaseorder.php +10 -0
  7. app/code/community/Exinent/CustomerActivation/Block/Purchaseorderinfo.php +15 -0
  8. app/code/community/Exinent/CustomerActivation/Helper/Data.php +168 -0
  9. app/code/community/Exinent/CustomerActivation/Model/Adminhtml/System/Config/Source/Categories/Group/Multiselect.php +27 -0
  10. app/code/community/Exinent/CustomerActivation/Model/Adminhtml/System/Config/Source/Customer/Group/Multiselect.php +18 -0
  11. app/code/community/Exinent/CustomerActivation/Model/Adminhtml/System/Config/Source/Pages/Group/Multiselect.php +15 -0
  12. app/code/community/Exinent/CustomerActivation/Model/Adminhtml/System/Config/Source/Products/Group/Multiselect.php +25 -0
  13. app/code/community/Exinent/CustomerActivation/Model/Adminhtml/System/Config/Source/Products/Price/Multiselect.php +25 -0
  14. app/code/community/Exinent/CustomerActivation/Model/Customer.php +15 -0
  15. app/code/community/Exinent/CustomerActivation/Model/Net15.php +25 -0
  16. app/code/community/Exinent/CustomerActivation/Model/Net30.php +25 -0
  17. app/code/community/Exinent/CustomerActivation/Model/Observer.php +327 -0
  18. app/code/community/Exinent/CustomerActivation/Model/Order.php +88 -0
  19. app/code/community/Exinent/CustomerActivation/Model/Resource/Attribute/Source/Customeractivation.php +41 -0
  20. app/code/community/Exinent/CustomerActivation/Model/Resource/Attribute/Source/Customerpayment.php +64 -0
  21. app/code/community/Exinent/CustomerActivation/Model/Resource/Attribute/Source/Customershippingmethods.php +63 -0
  22. app/code/community/Exinent/CustomerActivation/Model/Resource/Attribute/Source/Iswebsitelive.php +63 -0
  23. app/code/community/Exinent/CustomerActivation/Model/Resource/Attribute/Source/StoreType.php +91 -0
  24. app/code/community/Exinent/CustomerActivation/Model/Resource/Customer.php +63 -0
  25. app/code/community/Exinent/CustomerActivation/Model/Thirdparty.php +61 -0
  26. app/code/community/Exinent/CustomerActivation/Model/Thirdpartyfed.php +62 -0
  27. app/code/community/Exinent/CustomerActivation/Model/Thirdpartyfedex.php +68 -0
  28. app/code/community/Exinent/CustomerActivation/Model/Thirdpartyups.php +67 -0
  29. app/code/community/Exinent/CustomerActivation/controllers/AccountController.php +171 -0
  30. app/code/community/Exinent/CustomerActivation/controllers/AdminController.php +93 -0
  31. app/code/community/Exinent/CustomerActivation/controllers/CategoryController.php +77 -0
  32. app/code/community/Exinent/CustomerActivation/controllers/IndexController.php +29 -0
  33. app/code/community/Exinent/CustomerActivation/controllers/PageController.php +53 -0
  34. app/code/community/Exinent/CustomerActivation/controllers/ProductController.php +73 -0
  35. app/code/community/Exinent/CustomerActivation/controllers/productOrderController.php +93 -0
  36. app/code/community/Exinent/CustomerActivation/etc/config.xml +288 -0
  37. app/code/community/Exinent/CustomerActivation/etc/system.xml +383 -0
  38. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/install-0.1.0.php +9 -0
  39. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-install-0.1.0.php +18 -0
  40. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.2.3-0.2.4.php +8 -0
  41. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.2.4-0.2.5.php +11 -0
  42. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.2.7-0.2.8.php +14 -0
  43. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.2.8-0.2.9.php +68 -0
  44. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.2.9-0.3.0.php +10 -0
  45. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.3.0-0.3.1.php +24 -0
  46. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.3.1-0.3.2.php +156 -0
  47. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.3.2-0.3.3.php +14 -0
  48. app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.3.3-0.3.4.php +34 -0
  49. app/design/adminhtml/default/default/layout/customerActivation.xml +13 -0
  50. app/design/adminhtml/default/default/template/customerActivation/customerActivation.phtml +58 -0
  51. app/design/adminhtml/default/default/template/customerActivation/customerImages.phtml +52 -0
  52. app/design/adminhtml/default/default/template/customerActivation/info/purchaseorder.phtml +1 -0
  53. app/design/frontend/base/default/etc/theme.xml +30 -0
  54. app/design/frontend/base/default/etc/widget.xml +166 -0
  55. app/design/frontend/base/default/layout/authorizenet.xml +42 -0
  56. app/design/frontend/base/default/layout/bml.xml +129 -0
  57. app/design/frontend/base/default/layout/bundle.xml +380 -0
  58. app/design/frontend/base/default/layout/captcha.xml +106 -0
  59. app/design/frontend/base/default/layout/catalog.xml +418 -0
  60. app/design/frontend/base/default/layout/catalog_msrp.xml +108 -0
  61. app/design/frontend/base/default/layout/cataloginventory.xml +64 -0
  62. app/design/frontend/base/default/layout/catalogsearch.xml +142 -0
  63. app/design/frontend/base/default/layout/centinel.xml +65 -0
  64. app/design/frontend/base/default/layout/checkout.xml +491 -0
  65. app/design/frontend/base/default/layout/cms.xml +89 -0
  66. app/design/frontend/base/default/layout/contacts.xml +48 -0
  67. app/design/frontend/base/default/layout/core.xml +33 -0
  68. app/design/frontend/base/default/layout/customer.xml +293 -0
  69. app/design/frontend/base/default/layout/customerActivation.xml +71 -0
  70. app/design/frontend/base/default/layout/directory.xml +78 -0
  71. app/design/frontend/base/default/layout/downloadable.xml +231 -0
  72. app/design/frontend/base/default/layout/em_quickshop.xml +40 -0
  73. app/design/frontend/base/default/layout/googleanalytics.xml +41 -0
  74. app/design/frontend/base/default/layout/moneybookers.xml +41 -0
  75. app/design/frontend/base/default/layout/newsletter.xml +69 -0
  76. app/design/frontend/base/default/layout/oauth.xml +137 -0
  77. app/design/frontend/base/default/layout/page.xml +192 -0
  78. app/design/frontend/base/default/layout/pagecache.xml +35 -0
  79. app/design/frontend/base/default/layout/payment.xml +41 -0
  80. app/design/frontend/base/default/layout/paypal.xml +202 -0
  81. app/design/frontend/base/default/layout/paypaluk.xml +155 -0
  82. app/design/frontend/base/default/layout/persistent.xml +62 -0
  83. app/design/frontend/base/default/layout/poll.xml +57 -0
  84. app/design/frontend/base/default/layout/productalert.xml +47 -0
  85. app/design/frontend/base/default/layout/reports.xml +45 -0
  86. app/design/frontend/base/default/layout/review.xml +134 -0
  87. app/design/frontend/base/default/layout/rss.xml +103 -0
  88. app/design/frontend/base/default/layout/sales.xml +526 -0
  89. app/design/frontend/base/default/layout/sales/billing_agreement.xml +55 -0
  90. app/design/frontend/base/default/layout/sales/recurring_profile.xml +171 -0
  91. app/design/frontend/base/default/layout/sendfriend.xml +41 -0
  92. app/design/frontend/base/default/layout/shipping.xml +52 -0
  93. app/design/frontend/base/default/layout/tag.xml +134 -0
  94. app/design/frontend/base/default/layout/weee.xml +53 -0
  95. app/design/frontend/base/default/layout/wishlist.xml +139 -0
  96. app/design/frontend/base/default/layout/xmlconnect.xml +466 -0
  97. app/design/frontend/base/default/template/authorizenet/directpost/form.phtml +135 -0
  98. app/design/frontend/base/default/template/authorizenet/directpost/iframe.phtml +56 -0
  99. app/design/frontend/base/default/template/authorizenet/directpost/info.phtml +35 -0
  100. app/design/frontend/base/default/template/bundle/catalog/product/list/partof.phtml +52 -0
  101. app/design/frontend/base/default/template/bundle/catalog/product/price.phtml +289 -0
  102. app/design/frontend/base/default/template/bundle/catalog/product/view/option_tierprices.phtml +234 -0
  103. app/design/frontend/base/default/template/bundle/catalog/product/view/options/notice.phtml +27 -0
  104. app/design/frontend/base/default/template/bundle/catalog/product/view/price.phtml +114 -0
  105. app/design/frontend/base/default/template/bundle/catalog/product/view/tierprices.phtml +41 -0
  106. app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle.phtml +54 -0
  107. app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/option/checkbox.phtml +52 -0
  108. app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/option/multi.phtml +49 -0
  109. app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/option/radio.phtml +74 -0
  110. app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/option/select.phtml +64 -0
  111. app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/options.phtml +43 -0
  112. app/design/frontend/base/default/template/bundle/email/order/items/creditmemo/default.phtml +168 -0
  113. app/design/frontend/base/default/template/bundle/email/order/items/invoice/default.phtml +169 -0
  114. app/design/frontend/base/default/template/bundle/email/order/items/order/default.phtml +174 -0
  115. app/design/frontend/base/default/template/bundle/email/order/items/shipment/default.phtml +92 -0
  116. app/design/frontend/base/default/template/bundle/rss/catalog/product/price.phtml +313 -0
  117. app/design/frontend/base/default/template/bundle/sales/order/creditmemo/items/renderer.phtml +412 -0
  118. app/design/frontend/base/default/template/bundle/sales/order/invoice/items/renderer.phtml +390 -0
  119. app/design/frontend/base/default/template/bundle/sales/order/items/renderer.phtml +375 -0
  120. app/design/frontend/base/default/template/bundle/sales/order/shipment/items/renderer.phtml +111 -0
  121. app/design/frontend/base/default/template/callouts/left_col.phtml +39 -0
  122. app/design/frontend/base/default/template/callouts/right_col.phtml +39 -0
  123. app/design/frontend/base/default/template/captcha/zend.phtml +51 -0
  124. app/design/frontend/base/default/template/catalog/category/page.phtml +36 -0
  125. app/design/frontend/base/default/template/catalog/category/view.phtml +71 -0
  126. app/design/frontend/base/default/template/catalog/category/widget/link/link_block.phtml +27 -0
  127. app/design/frontend/base/default/template/catalog/category/widget/link/link_inline.phtml +27 -0
  128. app/design/frontend/base/default/template/catalog/layer/filter.phtml +47 -0
  129. app/design/frontend/base/default/template/catalog/layer/state.phtml +55 -0
  130. app/design/frontend/base/default/template/catalog/layer/view.phtml +59 -0
  131. app/design/frontend/base/default/template/catalog/msrp/popup.phtml +59 -0
  132. app/design/frontend/base/default/template/catalog/navigation/left.phtml +59 -0
  133. app/design/frontend/base/default/template/catalog/navigation/top.phtml +49 -0
  134. app/design/frontend/base/default/template/catalog/product/compare/list.phtml +162 -0
  135. app/design/frontend/base/default/template/catalog/product/compare/sidebar.phtml +60 -0
  136. app/design/frontend/base/default/template/catalog/product/gallery.phtml +66 -0
  137. app/design/frontend/base/default/template/catalog/product/list.phtml +128 -0
  138. app/design/frontend/base/default/template/catalog/product/list/related.phtml +94 -0
  139. app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml +96 -0
  140. app/design/frontend/base/default/template/catalog/product/list/upsell.phtml +52 -0
  141. app/design/frontend/base/default/template/catalog/product/new.phtml +59 -0
  142. app/design/frontend/base/default/template/catalog/product/price.phtml +471 -0
  143. app/design/frontend/base/default/template/catalog/product/price_msrp.phtml +69 -0
  144. app/design/frontend/base/default/template/catalog/product/price_msrp_item.phtml +107 -0
  145. app/design/frontend/base/default/template/catalog/product/price_msrp_noform.phtml +73 -0
  146. app/design/frontend/base/default/template/catalog/product/price_msrp_rss.phtml +42 -0
  147. app/design/frontend/base/default/template/catalog/product/view.phtml +170 -0
  148. app/design/frontend/base/default/template/catalog/product/view/additional.phtml +29 -0
  149. app/design/frontend/base/default/template/catalog/product/view/addto.phtml +41 -0
  150. app/design/frontend/base/default/template/catalog/product/view/addtocart.phtml +38 -0
  151. app/design/frontend/base/default/template/catalog/product/view/attributes.phtml +52 -0
  152. app/design/frontend/base/default/template/catalog/product/view/description.phtml +39 -0
  153. app/design/frontend/base/default/template/catalog/product/view/media.phtml +78 -0
  154. app/design/frontend/base/default/template/catalog/product/view/options.phtml +193 -0
  155. app/design/frontend/base/default/template/catalog/product/view/options/js.phtml +89 -0
  156. app/design/frontend/base/default/template/catalog/product/view/options/type/date.phtml +92 -0
  157. app/design/frontend/base/default/template/catalog/product/view/options/type/default.phtml +30 -0
  158. app/design/frontend/base/default/template/catalog/product/view/options/type/file.phtml +103 -0
  159. app/design/frontend/base/default/template/catalog/product/view/options/type/select.phtml +40 -0
  160. app/design/frontend/base/default/template/catalog/product/view/options/type/text.phtml +41 -0
  161. app/design/frontend/base/default/template/catalog/product/view/options/wrapper.phtml +33 -0
  162. app/design/frontend/base/default/template/catalog/product/view/options/wrapper/bottom.phtml +29 -0
  163. app/design/frontend/base/default/template/catalog/product/view/price.phtml +34 -0
  164. app/design/frontend/base/default/template/catalog/product/view/price_clone.phtml +28 -0
  165. app/design/frontend/base/default/template/catalog/product/view/tierprices.phtml +232 -0
  166. app/design/frontend/base/default/template/catalog/product/view/type/configurable.phtml +31 -0
  167. app/design/frontend/base/default/template/catalog/product/view/type/default.phtml +38 -0
  168. app/design/frontend/base/default/template/catalog/product/view/type/grouped.phtml +93 -0
  169. app/design/frontend/base/default/template/catalog/product/view/type/options/configurable.phtml +48 -0
  170. app/design/frontend/base/default/template/catalog/product/view/type/simple.phtml +31 -0
  171. app/design/frontend/base/default/template/catalog/product/view/type/virtual.phtml +31 -0
  172. app/design/frontend/base/default/template/catalog/product/widget/link/link_block.phtml +27 -0
  173. app/design/frontend/base/default/template/catalog/product/widget/link/link_inline.phtml +27 -0
  174. app/design/frontend/base/default/template/catalog/product/widget/new/column/new_default_list.phtml +56 -0
  175. app/design/frontend/base/default/template/catalog/product/widget/new/column/new_images_list.phtml +47 -0
  176. app/design/frontend/base/default/template/catalog/product/widget/new/column/new_names_list.phtml +47 -0
  177. app/design/frontend/base/default/template/catalog/product/widget/new/content/new_grid.phtml +66 -0
  178. app/design/frontend/base/default/template/catalog/product/widget/new/content/new_list.phtml +63 -0
  179. app/design/frontend/base/default/template/catalog/rss/product/price.phtml +449 -0
  180. app/design/frontend/base/default/template/catalog/seo/sitemap.phtml +50 -0
  181. app/design/frontend/base/default/template/catalog/seo/sitemap/container.phtml +38 -0
  182. app/design/frontend/base/default/template/catalog/seo/tree.phtml +43 -0
  183. app/design/frontend/base/default/template/cataloginventory/qtyincrements.phtml +35 -0
  184. app/design/frontend/base/default/template/cataloginventory/stockqty/composite.phtml +66 -0
  185. app/design/frontend/base/default/template/cataloginventory/stockqty/default.phtml +35 -0
  186. app/design/frontend/base/default/template/catalogsearch/advanced/form.phtml +96 -0
  187. app/design/frontend/base/default/template/catalogsearch/advanced/result.phtml +60 -0
  188. app/design/frontend/base/default/template/catalogsearch/form.mini.phtml +43 -0
  189. app/design/frontend/base/default/template/catalogsearch/result.phtml +55 -0
  190. app/design/frontend/base/default/template/catalogsearch/term.phtml +38 -0
  191. app/design/frontend/base/default/template/centinel/authentication.phtml +56 -0
  192. app/design/frontend/base/default/template/centinel/authentication/complete.phtml +41 -0
  193. app/design/frontend/base/default/template/centinel/authentication/start.phtml +40 -0
  194. app/design/frontend/base/default/template/centinel/logo.phtml +33 -0
  195. app/design/frontend/base/default/template/checkout/cart.phtml +164 -0
  196. app/design/frontend/base/default/template/checkout/cart/coupon.phtml +59 -0
  197. app/design/frontend/base/default/template/checkout/cart/crosssell.phtml +59 -0
  198. app/design/frontend/base/default/template/checkout/cart/item/configure/updatecart.phtml +39 -0
  199. app/design/frontend/base/default/template/checkout/cart/item/default.phtml +279 -0
  200. app/design/frontend/base/default/template/checkout/cart/noItems.phtml +36 -0
  201. app/design/frontend/base/default/template/checkout/cart/render/default.phtml +70 -0
  202. app/design/frontend/base/default/template/checkout/cart/render/simple.phtml +70 -0
  203. app/design/frontend/base/default/template/checkout/cart/shipping.phtml +139 -0
  204. app/design/frontend/base/default/template/checkout/cart/sidebar.phtml +80 -0
  205. app/design/frontend/base/default/template/checkout/cart/sidebar/default.phtml +145 -0
  206. app/design/frontend/base/default/template/checkout/cart/totals.phtml +48 -0
  207. app/design/frontend/base/default/template/checkout/multishipping/address/select.phtml +58 -0
  208. app/design/frontend/base/default/template/checkout/multishipping/addresses.phtml +77 -0
app/code/community/Exinent/CustomerActivation/Block/Adminhtml/Customer/Edit/Tab/Customerimages.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Block_Adminhtml_Customer_Edit_Tab_Customerimages extends Mage_Adminhtml_Block_Template implements Mage_Adminhtml_Block_Widget_Tab_Interface {
4
+
5
+ public function __construct() {
6
+ parent::_construct();
7
+ $this->setTemplate('customerActivation/customerImages.phtml');
8
+ }
9
+
10
+ public function getCustomtabInfo() {
11
+ $customer = Mage::registry('current_customer');
12
+ $customtab = 'My Custom tab Action Contents Here';
13
+ return $customtab;
14
+ }
15
+
16
+ public function getTabLabel() {
17
+ return $this->__('CustomerImages');
18
+ }
19
+
20
+ public function getTabTitle() {
21
+ return $this->__('Customer Uploded Images');
22
+ }
23
+
24
+ public function canShowTab() {
25
+ $customer = Mage::registry('current_customer');
26
+ return (bool) $customer->getId();
27
+ }
28
+
29
+ public function isHidden() {
30
+ return false;
31
+ }
32
+
33
+ public function getAfter() {
34
+ return 'tags';
35
+ }
36
+
37
+ public function getCustomerimages() {
38
+ $customerId = $this->getRequest()->getParam('id');
39
+ $customerObject = Mage::getModel('customer/customer')->load($customerId);
40
+
41
+ return $customerObject;
42
+ }
43
+
44
+ }
app/code/community/Exinent/CustomerActivation/Block/Adminhtml/System/Config/Date.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Exinent_CustomerActivation_Block_Adminhtml_System_Config_Date extends Mage_Adminhtml_Block_System_Config_Form_Field
3
+ {
4
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
5
+ {
6
+ $date = new Varien_Data_Form_Element_Date;
7
+ $format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
8
+
9
+ $data = array(
10
+ 'name' => $element->getName(),
11
+ 'html_id' => $element->getId(),
12
+ 'image' => $this->getSkinUrl('images/grid-cal.gif'),
13
+ );
14
+ $date->setData($data);
15
+ $date->setValue($element->getValue(), $format);
16
+ $date->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT));
17
+ $date->setClass($element->getFieldConfig()->validate->asArray());
18
+ $date->setForm($element->getForm());
19
+
20
+ return $date->getElementHtml();
21
+ }
22
+ }
23
+ ?>
app/code/community/Exinent/CustomerActivation/Block/Adminhtml/Widget/Grid/Column/Renderer/Boolean.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Block_Adminhtml_Widget_Grid_Column_Renderer_Boolean extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Text {
4
+
5
+ public function render(Varien_Object $row) {
6
+ $data = $row->getCustomerActivated();
7
+ if ($data == 'New')
8
+ $data = 3;
9
+ switch ($data) {
10
+ case 1:
11
+ return $this->__('Approved');
12
+ case 2:
13
+ return $this->__('Pending');
14
+ case 0:
15
+ return $this->__('Rejected');
16
+ case 3:
17
+ return $this->__('New');
18
+ case 4:
19
+ return $this->__('In Active');
20
+ case 5:
21
+ return $this->__('On Hold');
22
+ }
23
+ }
24
+
25
+ }
app/code/community/Exinent/CustomerActivation/Block/Orderproduct.php ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Block_Orderproduct extends Mage_Core_Block_Template {
4
+
5
+ public function getSubCategories() {
6
+ $cat = Mage::getModel('catalog/category')->load(2);
7
+ return $cat->getChildren();
8
+ }
9
+
10
+ public function getCategoryObject($subCatid) {
11
+ return Mage::getModel('catalog/category')->load($subCatid);
12
+ }
13
+
14
+ public function getProductCollection($_category) {
15
+ $productCollection = Mage::getResourceModel('catalog/product_collection')
16
+ ->addCategoryFilter($_category)
17
+ ->addAttributeToFilter('type_id', 'configurable')
18
+ ->addAttributeToSelect('*');
19
+ return $productCollection;
20
+ }
21
+
22
+ public function loadProduct($productId) {
23
+ return Mage::getModel('catalog/product')->load($productId);
24
+ }
25
+
26
+ public function getAttributes($product) {
27
+ $attributes = $product->getTypeInstance(true)->getConfigurableAttributes($product);
28
+ return $attributes;
29
+ }
30
+
31
+ public function getQty($product) {
32
+ $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);
33
+ $simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();
34
+ $stockArray = array();
35
+ foreach ($simple_collection as $simple_product) {
36
+ if ($simple_product->isSaleable()) {
37
+ $stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($simple_product);
38
+ array_push($stockArray, $stock->getQty());
39
+ }
40
+ }
41
+ return $stockArray;
42
+ }
43
+
44
+ public function getSku($product) {
45
+ $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);
46
+ $simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();
47
+ $stockArray = array();
48
+ foreach ($simple_collection as $simple_product) {
49
+ if ($simple_product->isSaleable()) {
50
+ array_push($stockArray, $simple_product->getId());
51
+ }
52
+ }
53
+ return $stockArray;
54
+ }
55
+
56
+ public function getOrderSimpleProducts() {
57
+
58
+ $collectionSimple = Mage::getResourceModel('catalog/product_collection')
59
+ ->addAttributeToFilter('type_id', array('eq' => 'simple'))->addAttributeToSelect('*');
60
+ $i = 0;
61
+ foreach ($collectionSimple as $product) {
62
+ if ($product->isSaleable()) {
63
+ $orderProduct[$i]['product_id'] = $product->getId();
64
+ $orderProduct[$i]['product_url'] = $product->getUrlKey();
65
+ $orderProduct[$i]['name'] = $product->getName();
66
+ $orderProduct[$i]['price'] = $product->getPrice();
67
+ $orderProduct[$i]['sku'] = $product->getSku();
68
+ $orderProduct[$i]['image'] = $product->getImageUrl();
69
+ $i++;
70
+ }
71
+ }
72
+ return $orderProduct;
73
+ }
74
+
75
+ public function getOrderProduct() {
76
+ $orderProducts = array();
77
+ $categoryArray = array();
78
+ $data = array();
79
+ $collectionSimple = Mage::getResourceModel('catalog/product_collection')
80
+ ->addAttributeToFilter('type_id', array('eq' => 'simple'));
81
+ $orderProduct['category'] = $_category->getName();
82
+ array_push($categoryArray, $_category->getName());
83
+ $orderProduct['name'] = $product->getName();
84
+ $orderProduct['image'] = $product->getImageUrl();
85
+ $orderProduct['qty'] = $this->getQty($product);
86
+ $orderProduct['sku'] = $this->getSku($product);
87
+
88
+ $subcats = $this->getSubCategories();
89
+ foreach (explode(',', $subcats) as $subCatid) {
90
+ $_category = $this->getCategoryObject($subCatid);
91
+ if ($_category->getIsActive()) {
92
+ $productCollection = $this->getProductCollection($_category);
93
+ foreach ($productCollection as $product) {
94
+ $orderProduct = array();
95
+ $product = $this->loadProduct($product->getId());
96
+ $orderProduct['category'] = $_category->getName();
97
+ array_push($categoryArray, $_category->getName());
98
+ $orderProduct['confsku'] = $product->getSku();
99
+ $orderProduct['conf_id'] = $product->getId();
100
+ $orderProduct['name'] = $product->getName();
101
+ $orderProduct['image'] = $product->getImageUrl();
102
+ $orderProduct['qty'] = $this->getQty($product);
103
+ $orderProduct['sku'] = $this->getSku($product);
104
+ if (empty($orderProduct['qty'])) {
105
+ continue;
106
+ }
107
+ array_push($orderProducts, $orderProduct);
108
+ }
109
+ }
110
+ }
111
+ $categoryuniquearray = array_unique($categoryArray);
112
+ $data[0] = $categoryuniquearray;
113
+ $data[1] = $orderProducts;
114
+ return $data;
115
+ }
116
+
117
+ }
118
+
119
+ ?>
app/code/community/Exinent/CustomerActivation/Block/Page/Html/Topmenu.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Block_Page_Html_Topmenu extends Mage_Page_Block_Html_Topmenu {
4
+
5
+ protected $additionalLinks = array();
6
+
7
+ public function addLink($label, $type, $value) {
8
+ $ModuleStatus = Mage::getStoreConfig('customer/customeractivation/disable_ext');
9
+
10
+ if ('path' == $type && $ModuleStatus == 1) {
11
+ $_coreUrlHelper = $this->helper('core/url');
12
+ $currentPath = str_replace(Mage::getBaseUrl(), '', $_coreUrlHelper->getCurrentUrl());
13
+ $url = Mage::getUrl($value);
14
+ $data = array(
15
+ 'label' => $label,
16
+ 'url' => $url,
17
+ 'is_active' => (int) ($value == $currentPath),
18
+ );
19
+ $this->additionalLinks[$url] = $data;
20
+ }
21
+ }
22
+
23
+ public function getAdditionalLinks() {
24
+ return $this->additionalLinks;
25
+ }
26
+
27
+ }
28
+
29
+ ?>
app/code/community/Exinent/CustomerActivation/Block/Purchaseorder.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Block_Purchaseorder extends Mage_Payment_Block_Form_Purchaseorder {
4
+
5
+ protected function _construct() {
6
+ parent::_construct();
7
+ $this->setTemplate('customerActivation/form/purchaseorder.phtml');
8
+ }
9
+
10
+ }
app/code/community/Exinent/CustomerActivation/Block/Purchaseorderinfo.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Block_Purchaseorderinfo extends Mage_Payment_Block_Info {
4
+
5
+ protected function _construct() {
6
+ parent::_construct();
7
+ $this->setTemplate('customerActivation/info/purchaseorder.phtml');
8
+ }
9
+
10
+ public function toPdf() {
11
+ $this->setTemplate('payment/info/pdf/purchaseorder.phtml');
12
+ return $this->toHtml();
13
+ }
14
+
15
+ }
app/code/community/Exinent/CustomerActivation/Helper/Data.php ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Helper_Data extends Mage_Core_Helper_Abstract {
4
+
5
+ const XML_PATH_EMAIL_ADMIN_NOTIFICATION = 'customer/customeractivation/admin_email';
6
+ const XML_PATH_EMAIL_ADMIN_NOTIFICATION_TEMPLATE = 'customer/customeractivation/registration_admin_template';
7
+ const XML_PATH_EMAIL_CUSTOMER_NOTIFICATION_TEMPLATE = 'customer/customeractivation/activation_template';
8
+ const XML_PATH_ALERT_CUSTOMER = 'customer/customeractivation/alert_customer';
9
+ const XML_PATH_ALERT_ADMIN = 'customer/customeractivation/alert_admin';
10
+ const XML_PATH_DEFAULT_STATUS = 'customer/customeractivation/activation_status_default';
11
+ const XML_PATH_DEFAULT_STATUS_BY_GROUP = 'customer/customeractivation/require_activation_for_specific_groups';
12
+ const XML_PATH_DEFAULT_STATUS_GROUPS = 'customer/customeractivation/require_activation_groups';
13
+ const STATUS_ACTIVATE_WITHOUT_EMAIL = 1;
14
+ const STATUS_ACTIVATE_WITH_EMAIL = 2;
15
+ const STATUS_DEACTIVATE = 0;
16
+
17
+ protected $_origEmailDesignConfig;
18
+
19
+ public function sendAdminNotificationEmail(Mage_Customer_Model_Customer $customer) {
20
+ $storeId = $this->getCustomerStoreId($customer);
21
+ if (Mage::getStoreConfig(self::XML_PATH_ALERT_ADMIN, $storeId)) {
22
+ $to = $this->_getEmails(self::XML_PATH_EMAIL_ADMIN_NOTIFICATION, $storeId);
23
+ $storeId = Mage_Core_Model_App::ADMIN_STORE_ID;
24
+ $this->_sendNotificationEmail($to, $customer, self::XML_PATH_EMAIL_ADMIN_NOTIFICATION_TEMPLATE, $storeId);
25
+ }
26
+ return $this;
27
+ }
28
+
29
+ public function sendCustomerNotificationEmail(Mage_Customer_Model_Customer $customer) {
30
+ if (Mage::getStoreConfig(self::XML_PATH_ALERT_CUSTOMER, $this->getCustomerStoreId($customer))) {
31
+ $to = array(array(
32
+ 'name' => $customer->getName(),
33
+ 'email' => $customer->getEmail(),
34
+ ));
35
+ $this->_sendNotificationEmail($to, $customer, self::XML_PATH_EMAIL_CUSTOMER_NOTIFICATION_TEMPLATE);
36
+ }
37
+ return $this;
38
+ }
39
+
40
+ protected function _sendNotificationEmail($to, $customer, $templateConfigPath, $storeId = null) {
41
+ if (!$to)
42
+ return;
43
+ if (is_null($storeId)) {
44
+ $storeId = $this->getCustomerStoreId($customer);
45
+ }
46
+ $translate = Mage::getSingleton('core/translate')
47
+ ->setTranslateInline(false);
48
+ $mailTemplate = Mage::getModel('core/email_template');
49
+ $template = Mage::getStoreConfig($templateConfigPath, $storeId);
50
+ $sendTo = array();
51
+ foreach ($to as $recipient) {
52
+ if (is_array($recipient)) {
53
+ $sendTo[] = $recipient;
54
+ } else {
55
+ $sendTo[] = array('email' => $recipient, 'name' => null);
56
+ }
57
+ }
58
+
59
+ $this->_setEmailDesignConfig($mailTemplate, $storeId);
60
+ foreach ($sendTo as $recipient) {
61
+ $mailTemplate->sendTransactional(
62
+ $template, Mage::getStoreConfig(Mage_Customer_Model_Customer::XML_PATH_REGISTER_EMAIL_IDENTITY, $storeId), $recipient['email'], $recipient['name'], array(
63
+ 'customer' => $customer,
64
+ 'shipping' => $customer->getPrimaryShippingAddress(),
65
+ 'billing' => $customer->getPrimaryBillingAddress(),
66
+ 'store' => Mage::app()->getStore(
67
+ // In case of admin store emails, $storeId is set to 0.
68
+ // We want 'store' to always be set to the customers store.
69
+ $this->getCustomerStoreId($customer)
70
+ ),
71
+ )
72
+ );
73
+ }
74
+ $this->_revertEmailDesignConfig($mailTemplate);
75
+ $translate->setTranslateInline(true);
76
+ return $this;
77
+ }
78
+
79
+ protected function _setEmailDesignConfig(Mage_Core_Model_Email_Template $mailTemplate, $storeId) {
80
+ $this->_origEmailDesignConfig = null;
81
+
82
+ // Workaround for bug in Mage_Core_Model_Template where getDesignConfig is protected
83
+ if (is_callable(array($mailTemplate, 'getDesignConfig'))) {
84
+ // Use standard way to fetch the current design config (if possible)
85
+ $this->_origEmailDesignConfig = $mailTemplate->getDesignConfig();
86
+ } elseif (version_compare(phpversion(), '5.3.2', '>=')) {
87
+ // ReflectionMethod::setAccessible() is only available in 5.3.2 or newer
88
+ $method = new ReflectionMethod($mailTemplate, 'getDesignConfig');
89
+ if ($method->isProtected()) {
90
+ $method->setAccessible(true);
91
+ }
92
+ if ($this->_origEmailDesignConfig = $method->invoke($mailTemplate)) {
93
+ $this->_origEmailDesignConfig = $this->_origEmailDesignConfig->getData();
94
+ }
95
+ }
96
+
97
+ // Fallback if neither of the previous versions is available or if
98
+ // there was no design configuration set on the mail template instance
99
+ if (!$this->_origEmailDesignConfig) {
100
+ $this->_origEmailDesignConfig = array(
101
+ 'area' => Mage::app()->getStore()->isAdmin() ? 'adminhtml' : 'frontend',
102
+ 'store' => Mage::app()->getStore()->getId()
103
+ );
104
+ }
105
+
106
+ $mailTemplate->setDesignConfig(array(
107
+ 'area' => Mage::app()->getStore($storeId)->isAdmin() ? 'adminhtml' : 'frontend',
108
+ 'store' => $storeId)
109
+ );
110
+
111
+ return $this;
112
+ }
113
+
114
+ protected function _revertEmailDesignConfig(Mage_Core_Model_Email_Template $mailTemplate) {
115
+ $mailTemplate->setDesignConfig($this->_origEmailDesignConfig);
116
+ return $this;
117
+ }
118
+
119
+ protected function _getEmails($configPath, $storeId = null) {
120
+ $data = Mage::getStoreConfig($configPath, $storeId);
121
+ if (!empty($data)) {
122
+ return explode(',', $data);
123
+ }
124
+ return false;
125
+ }
126
+
127
+ public function getCustomerStoreId(Mage_Customer_Model_Customer $customer) {
128
+ if (!($storeId = $customer->getSendemailStoreId())) {
129
+ /*
130
+ * store_id might be zero if the account was created in the admin interface
131
+ */
132
+ $storeId = $customer->getStoreId();
133
+ if (!$storeId && $customer->getWebsiteId()) {
134
+ /*
135
+ * Use the default store groups store of the customers website
136
+ */
137
+ if ($store = Mage::app()->getWebsite($customer->getWebsiteId())->getDefaultStore()) {
138
+ $storeId = $store->getId();
139
+ }
140
+ }
141
+ // In case the website_id is not yet set on the customer, and the
142
+ // current store is a frontend store, use the current store ID
143
+ if (!$storeId && !Mage::app()->getStore()->isAdmin()) {
144
+ $storeId = Mage::app()->getStore()->getId();
145
+ }
146
+ }
147
+ return $storeId;
148
+ }
149
+
150
+ public function getDefaultActivationStatus($groupId, $storeId) {
151
+ $defaultIsActive = Mage::getStoreConfig(self::XML_PATH_DEFAULT_STATUS, $storeId);
152
+ $activateByGroup = Mage::getStoreConfig(self::XML_PATH_DEFAULT_STATUS_BY_GROUP, $storeId);
153
+
154
+ if (!$defaultIsActive && $activateByGroup) {
155
+ $notActiveGroups = explode(',', Mage::getStoreConfig(self::XML_PATH_DEFAULT_STATUS_GROUPS, $storeId));
156
+ $isActive = in_array($groupId, $notActiveGroups) ? false : true;
157
+ } else {
158
+ $isActive = $defaultIsActive;
159
+ }
160
+
161
+ return $isActive;
162
+ }
163
+
164
+ public function getCustomerGroupId() {
165
+ return Mage::getStoreConfig(self::XML_PATH_DEFAULT_STATUS_GROUPS);
166
+ }
167
+
168
+ }
app/code/community/Exinent/CustomerActivation/Model/Adminhtml/System/Config/Source/Categories/Group/Multiselect.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Adminhtml_System_Config_Source_Categories_Group_Multiselect {
4
+
5
+ protected $_options;
6
+
7
+ public function toOptionArray() {
8
+ if (!$this->_options) {
9
+ $categoryCollection = Mage::getModel('catalog/category')
10
+ ->getCollection()
11
+ ->addAttributeToFilter('parent_id', array('gt' => 1))
12
+ ->addAttributeToSelect('*')
13
+ ->addIsActiveFilter();
14
+ }
15
+ $optionArrays = array();
16
+ foreach ($categoryCollection as $category) {
17
+ $optionArray = array();
18
+ $optionArray['value'] = $category->getUrlKey();
19
+ $optionArray['label'] = $category->getName();
20
+ array_push($optionArrays, $optionArray);
21
+ }
22
+ $this->_options = $optionArrays;
23
+ array_unshift($this->_options, array('value' => '', 'label' => Mage::helper('adminhtml')->__('No Category Selected')));
24
+ return $this->_options;
25
+ }
26
+
27
+ }
app/code/community/Exinent/CustomerActivation/Model/Adminhtml/System/Config/Source/Customer/Group/Multiselect.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Adminhtml_System_Config_Source_Customer_Group_Multiselect {
4
+
5
+ protected $_options;
6
+
7
+ public function toOptionArray() {
8
+ if (!$this->_options) {
9
+ $this->_options = Mage::getResourceModel('customer/group_collection')
10
+ ->setRealGroupsFilter()
11
+ ->addFieldToFilter('customer_group_id', array('neq' => 1))
12
+ ->loadData()->toOptionArray();
13
+ array_unshift($this->_options, array('value' => '', 'label' => Mage::helper('adminhtml')->__('No Group Selected')));
14
+ }
15
+ return $this->_options;
16
+ }
17
+
18
+ }
app/code/community/Exinent/CustomerActivation/Model/Adminhtml/System/Config/Source/Pages/Group/Multiselect.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Adminhtml_System_Config_Source_Pages_Group_Multiselect {
4
+
5
+ protected $_options;
6
+
7
+ public function toOptionArray() {
8
+ if (!$this->_options) {
9
+ $this->_options = Mage::getModel('cms/page')->getCollection()->toOptionArray();
10
+ array_unshift($this->_options, array('value' => '', 'label' => Mage::helper('adminhtml')->__('No page Selected')));
11
+ }
12
+ return $this->_options;
13
+ }
14
+
15
+ }
app/code/community/Exinent/CustomerActivation/Model/Adminhtml/System/Config/Source/Products/Group/Multiselect.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Adminhtml_System_Config_Source_Products_Group_Multiselect {
4
+
5
+ protected $_options;
6
+
7
+ public function toOptionArray() {
8
+ if (!$this->_options) {
9
+ $categoryCollection = Mage::getModel('catalog/product')
10
+ ->getCollection()
11
+ ->addAttributeToSelect('*');
12
+ }
13
+ $optionArrays = array();
14
+ foreach ($categoryCollection as $category) {
15
+ $optionArray = array();
16
+ $optionArray['value'] = $category->getUrlKey();
17
+ $optionArray['label'] = $category->getName();
18
+ array_push($optionArrays, $optionArray);
19
+ }
20
+ $this->_options = $optionArrays;
21
+ array_unshift($this->_options, array('value' => '', 'label' => Mage::helper('adminhtml')->__('No Product Selected')));
22
+ return $this->_options;
23
+ }
24
+
25
+ }
app/code/community/Exinent/CustomerActivation/Model/Adminhtml/System/Config/Source/Products/Price/Multiselect.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Adminhtml_System_Config_Source_Products_Price_Multiselect {
4
+
5
+ protected $_options;
6
+
7
+ public function toOptionArray() {
8
+ if (!$this->_options) {
9
+ $categoryCollection = Mage::getModel('catalog/product')
10
+ ->getCollection()
11
+ ->addAttributeToSelect('*');
12
+ }
13
+ $optionArrays = array();
14
+ foreach ($categoryCollection as $category) {
15
+ $optionArray = array();
16
+ $optionArray['value'] = $category->getUrlKey();
17
+ $optionArray['label'] = $category->getName();
18
+ array_push($optionArrays, $optionArray);
19
+ }
20
+ $this->_options = $optionArrays;
21
+ array_unshift($this->_options, array('value' => '', 'label' => Mage::helper('adminhtml')->__('No Product Selected')));
22
+ return $this->_options;
23
+ }
24
+
25
+ }
app/code/community/Exinent/CustomerActivation/Model/Customer.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Customer extends Mage_Customer_Model_Customer {
4
+
5
+ public function authenticate($login, $password) {
6
+ $groupid = Mage::registry('groupId');
7
+ if ($groupid == 2) {
8
+ $collection = Mage::getModel('customer/customer')->getCollection()->addFieldToFilter('uniquelogin_id', $login);
9
+ $custData = $collection->getData();
10
+ $login = $custData[0]['email'];
11
+ }
12
+ return parent::authenticate($login, $password);
13
+ }
14
+
15
+ }
app/code/community/Exinent/CustomerActivation/Model/Net15.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Net15 extends Mage_Payment_Model_Method_Abstract {
4
+
5
+ /**
6
+ * unique internal payment method identifier
7
+ *
8
+ * @var string [a-z0-9_]
9
+ */
10
+ protected $_code = 'net15';
11
+ protected $_formBlockType = 'customeractivation/purchaseorder';
12
+ protected $_infoBlockType = 'customeractivation/purchaseorderinfo';
13
+
14
+ public function assignData($data) {
15
+ if (!($data instanceof Varien_Object)) {
16
+ $data = new Varien_Object($data);
17
+ }
18
+
19
+ $this->getInfoInstance()->setPoNumber($data->getPoNumber());
20
+
21
+
22
+ return $this;
23
+ }
24
+
25
+ }
app/code/community/Exinent/CustomerActivation/Model/Net30.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Net30 extends Mage_Payment_Model_Method_Purchaseorder {
4
+
5
+ /**
6
+ * unique internal payment method identifier
7
+ *
8
+ * @var string [a-z0-9_]
9
+ */
10
+ protected $_code = 'net30';
11
+ protected $_formBlockType = 'customeractivation/purchaseorder';
12
+ protected $_infoBlockType = 'customeractivation/purchaseorderinfo';
13
+
14
+ public function assignData($data) {
15
+ if (!($data instanceof Varien_Object)) {
16
+ $data = new Varien_Object($data);
17
+ }
18
+
19
+ $this->getInfoInstance()->setPoNumber($data->getPoNumber());
20
+
21
+
22
+ return $this;
23
+ }
24
+
25
+ }
app/code/community/Exinent/CustomerActivation/Model/Observer.php ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Observer {
4
+
5
+ const XML_PATH_MODULE_DISABLED = 'customer/customeractivation/disable_ext';
6
+ const XML_PATH_ALWAYS_NOTIFY_ADMIN = 'customer/customeractivation/always_send_admin_email';
7
+ const XML_PATH_ACTIVATION_STATUS = 'customer/customeractivation/activation_status_default';
8
+ const XML_PATH_ACTIVATION_START_DATE = 'customer/customeractivation/date_start';
9
+ const XML_PATH_ACTIVATION_END_DATE = 'customer/customeractivation/date_end';
10
+
11
+ public function page_block_html_topmenu_gethtml_before(Varien_Event_Observer $observer) {
12
+
13
+ $session = Mage::getSingleton('customer/session');
14
+ $customerGroupId = $session->getCustomerGroupId();
15
+ if ($customerGroupId == 2) {
16
+ $event = $observer->getEvent();
17
+ $menu = $event->getMenu();
18
+ $menuCollection = $menu->getChildren();
19
+
20
+ if ($block = Mage::app()->getLayout()->getBlock('catalog.topnav')) {
21
+ if ($links = $block->getAdditionalLinks()) {
22
+ foreach ($links as $link) {
23
+ $data = array(
24
+ 'id' => 'category-additionalnode-' . crc32($link['url']),
25
+ 'name' => $link['label'],
26
+ 'url' => $link['url'],
27
+ 'is_active' => $link['is_active'],
28
+ );
29
+
30
+ $node = new Varien_Data_Tree_Node($data, 'id', $menu->getTree());
31
+ $menuCollection->add($node);
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+
38
+ public function customerLogin($observer) {
39
+
40
+ if (Mage::getStoreConfig(self::XML_PATH_MODULE_DISABLED) == 0) {
41
+ return;
42
+ }
43
+
44
+ if ($this->_isApiRequest()) {
45
+ return;
46
+ }
47
+
48
+ $customer = $observer->getEvent()->getCustomer();
49
+ if ($customer->getGroupId() == '1') {
50
+ return;
51
+ }
52
+ $session = Mage::getSingleton('customer/session');
53
+
54
+ if ($customer->getCustomerActivated() == 'New' || $customer->getCustomerActivated() == 2 || $customer->getCustomerActivated() == 0 || $customer->getCustomerActivated() == 4 || $customer->getCustomerActivated() == 5) {
55
+ /*
56
+ * Fake the old logout() method without deleting the session and all messages
57
+ *///echo 'status'.$customer->getCustomerActivated();
58
+
59
+ $session->setCustomer(Mage::getModel('customer/customer'))
60
+ ->setId(null)
61
+ ->setCustomerGroupId(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID);
62
+ if ($this->_checkRequestRoute('customer', 'account', 'createpost') || $session->getNewRegistration() == 1) {
63
+ /*
64
+ * If this is a regular registration, simply display message
65
+ */
66
+ $message = Mage::helper('customeractivation')->__('Thank you! Admin representative will contact you shortly regarding your application.');
67
+
68
+ $session->addSuccess($message);
69
+ $session->setNewRegistration(0);
70
+ } else {
71
+ /*
72
+ * All other types of login
73
+ */
74
+ Mage::throwException(Mage::helper('customeractivation')->__('This account is not approved.'));
75
+ }
76
+ }
77
+ }
78
+
79
+ public function customerSaveBefore($observer) {
80
+ $customer = $observer->getEvent()->getCustomer();
81
+
82
+ $storeId = Mage::helper('customeractivation')->getCustomerStoreId($customer);
83
+
84
+ if (Mage::getStoreConfig(self::XML_PATH_MODULE_DISABLED, $storeId) == 0) {
85
+ return;
86
+ }
87
+
88
+ if (!$customer->getId()) {
89
+ $customer->setCustomerActivationNewAccount(true);
90
+ if (!(Mage::app()->getStore()->isAdmin() && $this->_checkControllerAction('customer', 'save'))) {
91
+ // Do not set the default status on the admin customer edit save action
92
+ $groupId = $customer->getGroupId();
93
+ $defaultStatus = Mage::helper('customeractivation')->getDefaultActivationStatus($groupId, $storeId);
94
+ $startdate = Mage::getStoreConfig(self::XML_PATH_ACTIVATION_START_DATE);
95
+ $enddate = Mage::getStoreConfig(self::XML_PATH_ACTIVATION_END_DATE);
96
+
97
+ $paymentDate = date('Y-m-d');
98
+ $paymentDate = date('Y-m-d', strtotime($paymentDate));
99
+
100
+ $contractDateBegin = date('Y-m-d', strtotime($startdate));
101
+ $contractDateEnd = date('Y-m-d', strtotime($enddate));
102
+
103
+ if ($paymentDate > $contractDateBegin && $paymentDate < $contractDateEnd) {
104
+ $date_range = 'between';
105
+ } else if ($enddate == '') {
106
+ $date_range = 'notmentioned';
107
+ } else {
108
+ $date_range = 'notin';
109
+ }
110
+
111
+ $groupId = $customer->getGroupId();
112
+ $defaultStatus = Mage::helper('customeractivation')->getDefaultActivationStatus($groupId, $storeId);
113
+ if ($customer->getGroupId() == 1) {
114
+ $customer->setCustomerActivated('1');
115
+ } else if (Mage::getStoreConfig(self::XML_PATH_ACTIVATION_STATUS) == 1 && ($date_range == 'between') || ($date_range == 'notmentioned')) {
116
+ $customer->setCustomerActivated('1');
117
+ } else {
118
+ $customer->setCustomerActivated('New');
119
+ }
120
+
121
+
122
+ if (!$defaultStatus) {
123
+ // Suppress the "enter your billing address for VAT validation" message.
124
+ // This setting will not be saved, its just for this request.
125
+ $helper = Mage::helper('customer/address');
126
+ if (method_exists($helper, 'isVatValidationEnabled')) {
127
+ if (is_callable(array($helper, 'isVatValidationEnabled'))) {
128
+ if (Mage::helper('customer/address')->isVatValidationEnabled($storeId)) {
129
+ Mage::app()->getStore($storeId)->setConfig(
130
+ Mage_Customer_Helper_Address::XML_PATH_VAT_VALIDATION_ENABLED, false
131
+ );
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+
140
+ public function customerSaveAfter($observer) {
141
+ /** @var Mage_Customer_Model_Customer $customer */
142
+ $customer = $observer->getEvent()->getCustomer();
143
+
144
+ $storeId = Mage::helper('customeractivation')->getCustomerStoreId($customer);
145
+
146
+ if (Mage::getStoreConfig(self::XML_PATH_MODULE_DISABLED, $storeId) == 0) {
147
+ return;
148
+ }
149
+
150
+ $startdate = Mage::getStoreConfig(self::XML_PATH_ACTIVATION_START_DATE);
151
+ $enddate = Mage::getStoreConfig(self::XML_PATH_ACTIVATION_END_DATE);
152
+
153
+ $paymentDate = date('Y-m-d');
154
+ $paymentDate = date('Y-m-d', strtotime($paymentDate));
155
+
156
+ $contractDateBegin = date('Y-m-d', strtotime($startdate));
157
+ $contractDateEnd = date('Y-m-d', strtotime($enddate));
158
+
159
+ if ($paymentDate > $contractDateBegin && $paymentDate < $contractDateEnd) {
160
+ $date_range = 'between';
161
+ } else if ($enddate == '') {
162
+ $date_range = 'notmentioned';
163
+ } else {
164
+ $date_range = 'notin';
165
+ }
166
+
167
+ $groupId = $customer->getGroupId();
168
+ $defaultStatus = Mage::helper('customeractivation')->getDefaultActivationStatus($groupId, $storeId);
169
+ if ($customer->getGroupId() == 1) {
170
+ $customer->setCustomerActivated('1');
171
+ } else if (Mage::getStoreConfig(self::XML_PATH_ACTIVATION_STATUS) == 1 && ($date_range == 'between') || ($date_range == 'notmentioned')) {
172
+ $customer->setCustomerActivated('1');
173
+ } else {
174
+ $customer->setCustomerActivated('New');
175
+ }
176
+
177
+ try {
178
+ if (Mage::app()->getStore()->isAdmin()) {
179
+ if (!$customer->getOrigData('customer_activated') && $customer->getCustomerActivated()) {
180
+ // Send customer email only if it isn't a new account and it isn't activated by default
181
+ if (!($customer->getCustomerActivationNewAccount() && $defaultStatus)) {
182
+ Mage::helper('customeractivation')->sendCustomerNotificationEmail($customer);
183
+ }
184
+ }
185
+ } else {
186
+ if ($customer->getCustomerActivationNewAccount()) {
187
+ // Only notify the admin if the default is deactivated or the "always notify" flag is configured
188
+ $alwaysNotify = Mage::getStoreConfig(self::XML_PATH_ALWAYS_NOTIFY_ADMIN, $storeId);
189
+ if (!$defaultStatus || $alwaysNotify) {
190
+ Mage::helper('customeractivation')->sendAdminNotificationEmail($customer);
191
+ }
192
+ }
193
+ $customer->setCustomerActivationNewAccount(false);
194
+ }
195
+ } catch (Exception $e) {
196
+ Mage::throwException($e->getMessage());
197
+ }
198
+ }
199
+
200
+ public function salesCovertQuoteAddressToOrder(Varien_Event_Observer $observer) {
201
+ /** @var $address Mage_Sales_Model_Quote_Address */
202
+ $address = $observer->getEvent()->getAddress();
203
+ $this->_abortCheckoutRegistration($address->getQuote());
204
+ }
205
+
206
+ protected function _abortCheckoutRegistration(Mage_Sales_Model_Quote $quote) {
207
+ if (Mage::getStoreConfig(self::XML_PATH_MODULE_DISABLED, $quote->getStoreId()) == 0) {
208
+ return;
209
+ }
210
+
211
+ if ($this->_isApiRequest()) {
212
+ return;
213
+ }
214
+
215
+ if (!Mage::getSingleton('customer/session')->isLoggedIn() && !$quote->getCustomerIsGuest()) {
216
+ // Order is being created by non-activated customer
217
+ $customer = $quote->getCustomer()->save();
218
+ if ($customer->getGroupId() == 1) {
219
+ return;
220
+ }
221
+ if ($customer->getCustomerActivated() == 'New' || $customer->getCustomerActivated() == 2 || $customer->getCustomerActivated() == 0 || $customer->getCustomerActivated() == 4 || $customer->getCustomerActivated() == 5) {
222
+
223
+ $message = Mage::helper('customeractivation')->__(
224
+ 'Please wait for your account to be activated, then log in and continue with the checkout'
225
+ );
226
+ Mage::getSingleton('core/session')->addSuccess($message);
227
+
228
+ // Handle redirect to login page
229
+ $targetUrl = Mage::getUrl('customer/account/login');
230
+ $response = Mage::app()->getResponse();
231
+
232
+ if (Mage::app()->getRequest()->isAjax()) {
233
+ // Assume one page checkout
234
+ $result = array('redirect' => $targetUrl);
235
+ $response->setBody(Mage::helper('core')->jsonEncode($result));
236
+ } else if ($response->canSendHeaders(true)) {
237
+ // Assume multishipping checkout
238
+ $response->clearHeader('location')
239
+ ->setRedirect($targetUrl);
240
+ }
241
+ $response->sendResponse();
242
+ /* ugly, but we need to stop the further order processing */
243
+ exit();
244
+ }
245
+ }
246
+ }
247
+
248
+ protected function _isApiRequest() {
249
+ return Mage::app()->getRequest()->getModuleName() === 'api';
250
+ }
251
+
252
+ protected function _checkRequestRoute($module, $controller, $action) {
253
+ $req = Mage::app()->getRequest();
254
+ if (strtolower($req->getModuleName()) == $module && strtolower($req->getControllerName()) == $controller && strtolower($req->getActionName()) == $action
255
+ ) {
256
+ return true;
257
+ }
258
+ return false;
259
+ }
260
+
261
+ protected function _checkControllerAction($controller, $action) {
262
+ $req = Mage::app()->getRequest();
263
+ return $this->_checkRequestRoute($req->getModuleName(), $controller, $action);
264
+ }
265
+
266
+ public function adminhtmlBlockHtmlBefore(Varien_Event_Observer $observer) {
267
+ // Check the grid is the customer grid
268
+ if ($observer->getBlock()->getId() != 'customerGrid') {
269
+ return;
270
+ }
271
+
272
+ // Check if there is a massaction block and if yes, add the massaction for customeractivation
273
+ $massBlock = $observer->getBlock()->getMassactionBlock();
274
+ if ($massBlock) {
275
+ /** @var $helper Exinent_CustomerActivation_Helper_Data */
276
+ $helper = Mage::helper('customeractivation');
277
+
278
+ $noEmail = Exinent_CustomerActivation_Helper_Data::STATUS_ACTIVATE_WITHOUT_EMAIL;
279
+ $withEmail = Exinent_CustomerActivation_Helper_Data::STATUS_ACTIVATE_WITH_EMAIL;
280
+ $deactivate = Exinent_CustomerActivation_Helper_Data::STATUS_DEACTIVATE;
281
+
282
+ $massBlock->addItem(
283
+ 'customer_activated', array(
284
+ 'label' => $helper->__('Activate Customer'),
285
+ 'url' => Mage::getUrl('customeractivation/admin/massActivation'),
286
+ 'additional' => array(
287
+ 'status' => array(
288
+ 'name' => 'customer_activated',
289
+ 'type' => 'select',
290
+ 'class' => 'required-entry',
291
+ 'label' => $helper->__('Customer Activated'),
292
+ 'values' => array(
293
+ 2 => $helper->__('Pending'),
294
+ 1 => $helper->__('Approved'),
295
+ 0 => $helper->__('Rejected'),
296
+ 4 => $helper->__('In Active'),
297
+ 5 => $helper->__('On Hold')
298
+ )
299
+ )
300
+ )
301
+ )
302
+ );
303
+ }
304
+ }
305
+
306
+ public function eavCollectionAbstractLoadBefore(Varien_Event_Observer $observer) {
307
+ if (Mage::getStoreConfig(self::XML_PATH_MODULE_DISABLED) == 0) {
308
+ return;
309
+ }
310
+
311
+ // Cheap check to reduce overhead on product and category collections
312
+ if (Mage::app()->getRequest()->getControllerName() !== 'customer') {
313
+ return;
314
+ }
315
+
316
+ /** @var $collection Mage_Customer_Model_Resource_Customer_Collection */
317
+ $collection = $observer->getEvent()->getCollection();
318
+
319
+ // Only add attribute to customer collections
320
+ $customerTypeId = Mage::getSingleton('eav/config')->getEntityType('customer')->getId();
321
+ $collectionTypeId = $collection->getEntity()->getTypeId();
322
+ if ($customerTypeId == $collectionTypeId) {
323
+ $collection->addAttributeToSelect('customer_activated');
324
+ }
325
+ }
326
+
327
+ }
app/code/community/Exinent/CustomerActivation/Model/Order.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Order extends Mage_Sales_Model_Order {
4
+
5
+ public function sendNewOrderEmail() {
6
+ $storeId = $this->getStore()->getId();
7
+ if (!Mage::helper('sales')->canSendNewOrderEmail($storeId)) {
8
+ return $this;
9
+ }
10
+ $emailSentAttributeValue = $this->hasEmailSent() ? $this->getEmailSent() : Mage::getModel('sales/order')->load($this->getId())->getData('email_sent');
11
+ $this->setEmailSent((bool) $emailSentAttributeValue);
12
+ if ($this->getEmailSent()) {
13
+ return $this;
14
+ }
15
+ // Get the destination email addresses to send copies to
16
+ $copyTo = $this->_getEmails(self::XML_PATH_EMAIL_COPY_TO);
17
+ $copyMethod = Mage::getStoreConfig(self::XML_PATH_EMAIL_COPY_METHOD, $storeId);
18
+
19
+ // Start store emulation process
20
+ $appEmulation = Mage::getSingleton('core/app_emulation');
21
+ $initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId);
22
+
23
+ try {
24
+ // Retrieve specified view block from appropriate design package (depends on emulated store)
25
+ $paymentBlock = Mage::helper('payment')->getInfoBlock($this->getPayment())
26
+ ->setIsSecureMode(true);
27
+ $paymentBlock->getMethod()->setStore($storeId);
28
+ $paymentBlockHtml = $paymentBlock->toHtml();
29
+ } catch (Exception $exception) {
30
+ // Stop store emulation process
31
+ $appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
32
+ throw $exception;
33
+ }
34
+
35
+ // Stop store emulation process
36
+ $appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
37
+
38
+ // Retrieve corresponding email template id and customer name
39
+ if ($this->getCustomerIsGuest()) {
40
+ $templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_GUEST_TEMPLATE, $storeId);
41
+ $customerName = $this->getBillingAddress()->getName();
42
+ } else {
43
+ $templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE, $storeId);
44
+ $customerName = $this->getCustomerName();
45
+ }
46
+
47
+ $mailer = Mage::getModel('core/email_template_mailer');
48
+ $emailInfo = Mage::getModel('core/email_info');
49
+ $emailInfo->addTo($this->getCustomerEmail(), $customerName);
50
+ if ($copyTo && $copyMethod == 'bcc') {
51
+ // Add bcc to customer email
52
+ foreach ($copyTo as $email) {
53
+ $emailInfo->addBcc($email);
54
+ }
55
+ }
56
+ $customerId = $this->getCustomerId();
57
+ $customerObject = Mage::getModel('customer/customer')->load($customerId);
58
+ if ($customerObject->getGroupId() == 2) {
59
+ $emailInfo->addBcc($customerObject->getRepresentativeEmail());
60
+ }
61
+ $mailer->addEmailInfo($emailInfo);
62
+
63
+ // Email copies are sent as separated emails if their copy method is 'copy'
64
+ if ($copyTo && $copyMethod == 'copy') {
65
+ foreach ($copyTo as $email) {
66
+ $emailInfo = Mage::getModel('core/email_info');
67
+ $emailInfo->addTo($email);
68
+ $mailer->addEmailInfo($emailInfo);
69
+ }
70
+ }
71
+
72
+ // Set all required params and send emails
73
+ $mailer->setSender(Mage::getStoreConfig(self::XML_PATH_EMAIL_IDENTITY, $storeId));
74
+ $mailer->setStoreId($storeId);
75
+ $mailer->setTemplateId($templateId);
76
+ $mailer->setTemplateParams(array(
77
+ 'order' => $this,
78
+ 'billing' => $this->getBillingAddress(),
79
+ 'payment_html' => $paymentBlockHtml
80
+ )
81
+ );
82
+ $mailer->send();
83
+ $this->setEmailSent(true);
84
+ $this->_getResource()->saveAttribute($this, 'email_sent');
85
+ return $this;
86
+ }
87
+
88
+ }
app/code/community/Exinent/CustomerActivation/Model/Resource/Attribute/Source/Customeractivation.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Resource_Attribute_Source_Customeractivation extends Mage_Eav_Model_Entity_Attribute_Source_Abstract {
4
+
5
+ public function getAllOptions() {
6
+ if ($this->_options === null) {
7
+ $this->_options = array(
8
+ array(
9
+ 'value' => 'New',
10
+ 'label' => 'New',
11
+ ),
12
+
13
+ array(
14
+ 'value' => '1',
15
+ 'label' => 'Approved',
16
+ ),
17
+
18
+ );
19
+ }
20
+ return $this->_options;
21
+ }
22
+
23
+ public function getOptionArray() {
24
+ $_options = array();
25
+ foreach ($this->getAllOptions() as $option) {
26
+ $_options[$option['value']] = $option['label'];
27
+ }
28
+ return $_options;
29
+ }
30
+
31
+ public function getOptionText($value) {
32
+ $options = $this->getAllOptions();
33
+ foreach ($options as $option) {
34
+ if ($option['value'] == $value) {
35
+ return $option['label'];
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+
41
+ }
app/code/community/Exinent/CustomerActivation/Model/Resource/Attribute/Source/Customerpayment.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Resource_Attribute_Source_Customerpayment extends Mage_Eav_Model_Entity_Attribute_Source_Abstract {
4
+
5
+ public function getAllOptions() {
6
+ if (is_null($this->_options)) {
7
+ $payments = Mage::getSingleton('payment/config')->getActiveMethods();
8
+ $payMethods = array();
9
+ foreach ($payments as $paymentCode => $paymentModel) {
10
+ $payMethods[$paymentCode] = array('value' => $paymentCode, 'label' => Mage::getStoreConfig('payment/' . $paymentCode . '/title'));
11
+ }
12
+ return $payMethods;
13
+ }
14
+ }
15
+
16
+ public function getOptionArray() {
17
+ $_options = array();
18
+ foreach ($this->getAllOptions() as $option) {
19
+ $_options[$option["value"]] = $option["label"];
20
+ }
21
+ return $_options;
22
+ }
23
+
24
+ public function getOptionText($value) {
25
+ $options = $this->getAllOptions();
26
+ foreach ($options as $option) {
27
+ if ($option["value"] == $value) {
28
+ return $option["label"];
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+
34
+ public function getFlatColums() {
35
+ $columns = array();
36
+ $columns[$this->getAttribute()->getAttributeCode()] = array(
37
+ "type" => "tinyint(1)",
38
+ "unsigned" => false,
39
+ "is_null" => true,
40
+ "default" => null,
41
+ "extra" => null
42
+ );
43
+
44
+ return $columns;
45
+ }
46
+
47
+ public function getFlatIndexes() {
48
+ $indexes = array();
49
+
50
+ $index = "IDX_" . strtoupper($this->getAttribute()->getAttributeCode());
51
+ $indexes[$index] = array(
52
+ "type" => "index",
53
+ "fields" => array($this->getAttribute()->getAttributeCode())
54
+ );
55
+
56
+ return $indexes;
57
+ }
58
+
59
+ public function getFlatUpdateSelect($store) {
60
+ return Mage::getResourceModel("eav/entity_attribute")
61
+ ->getFlatUpdateSelect($this->getAttribute(), $store);
62
+ }
63
+
64
+ }
app/code/community/Exinent/CustomerActivation/Model/Resource/Attribute/Source/Customershippingmethods.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Resource_Attribute_Source_Customershippingmethods extends Mage_Eav_Model_Entity_Attribute_Source_Abstract {
4
+
5
+ public function getAllOptions() {
6
+ if (is_null($this->_options)) {
7
+ $activeCarriers = Mage::getSingleton('shipping/config')->getActiveCarriers();
8
+ foreach ($activeCarriers as $carrierCode => $carrierModel) {
9
+ $allCarriers[$carrierCode] = array('value' => Mage::getStoreConfig('carriers/' . $carrierCode . '/title'), 'label' => Mage::getStoreConfig('carriers/' . $carrierCode . '/title'));
10
+ }
11
+ return $allCarriers;
12
+ }
13
+ }
14
+
15
+ public function getOptionArray() {
16
+ $_options = array();
17
+ foreach ($this->getAllOptions() as $option) {
18
+ $_options[$option["value"]] = $option["label"];
19
+ }
20
+ return $_options;
21
+ }
22
+
23
+ public function getOptionText($value) {
24
+ $options = $this->getAllOptions();
25
+ foreach ($options as $option) {
26
+ if ($option["value"] == $value) {
27
+ return $option["label"];
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+
33
+ public function getFlatColums() {
34
+ $columns = array();
35
+ $columns[$this->getAttribute()->getAttributeCode()] = array(
36
+ "type" => "tinyint(1)",
37
+ "unsigned" => false,
38
+ "is_null" => true,
39
+ "default" => null,
40
+ "extra" => null
41
+ );
42
+
43
+ return $columns;
44
+ }
45
+
46
+ public function getFlatIndexes() {
47
+ $indexes = array();
48
+
49
+ $index = "IDX_" . strtoupper($this->getAttribute()->getAttributeCode());
50
+ $indexes[$index] = array(
51
+ "type" => "index",
52
+ "fields" => array($this->getAttribute()->getAttributeCode())
53
+ );
54
+
55
+ return $indexes;
56
+ }
57
+
58
+ public function getFlatUpdateSelect($store) {
59
+ return Mage::getResourceModel("eav/entity_attribute")
60
+ ->getFlatUpdateSelect($this->getAttribute(), $store);
61
+ }
62
+
63
+ }
app/code/community/Exinent/CustomerActivation/Model/Resource/Attribute/Source/Iswebsitelive.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Resource_Attribute_Source_Iswebsitelive extends Mage_Eav_Model_Entity_Attribute_Source_Abstract {
4
+
5
+ /**
6
+ * Retrieve all options array
7
+ *
8
+ * @return array
9
+ */
10
+ public function getAllOptions() {
11
+
12
+ if (is_null($this->_options)) {
13
+ $this->_options = array(
14
+ array(
15
+ 'label' => 'Yes',
16
+ 'value' => 1
17
+ ),
18
+ array(
19
+ 'label' => 'No',
20
+ 'value' => 0
21
+ ),
22
+ );
23
+ }
24
+ return $this->_options;
25
+ }
26
+
27
+ public function getOptionArray() {
28
+ $_options = array();
29
+ foreach ($this->getAllOptions() as $option) {
30
+ $_options[$option['value']] = $option['label'];
31
+ }
32
+ return $_options;
33
+ }
34
+
35
+ public function getOptionText($value) {
36
+ $options = $this->getAllOptions();
37
+ foreach ($options as $option) {
38
+ if ($option["value"] == $value) {
39
+ return $option["label"];
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+
45
+ public function getFlatColums() {
46
+ $columns = array(
47
+ $this->getAttribute()->getAttributeCode() => array(
48
+ 'type' => 'int',
49
+ 'unsigned' => false,
50
+ 'is_null' => true,
51
+ 'default' => null,
52
+ 'extra' => null
53
+ )
54
+ );
55
+ return $columns;
56
+ }
57
+
58
+ public function getFlatUpdateSelect($store) {
59
+ return Mage::getResourceModel('eav/entity_attribute')
60
+ ->getFlatUpdateSelect($this->getAttribute(), $store);
61
+ }
62
+
63
+ }
app/code/community/Exinent/CustomerActivation/Model/Resource/Attribute/Source/StoreType.php ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Resource_Attribute_Source_StoreType extends Mage_Eav_Model_Entity_Attribute_Source_Abstract {
4
+
5
+ /**
6
+ * Retrieve all options array
7
+ *
8
+ * @return array
9
+ */
10
+ public function getAllOptions() {
11
+
12
+ if (is_null($this->_options)) {
13
+ $this->_options = array(
14
+ array(
15
+ 'label' => 'Outdoor',
16
+ 'value' => 'outdoor'
17
+ ),
18
+ array(
19
+ 'label' => 'Surf',
20
+ 'value' => 'surf'
21
+ ),
22
+ array(
23
+ 'label' => 'Fashion',
24
+ 'value' => 'fashion'
25
+ ),
26
+ array(
27
+ 'label' => 'Natural_Food',
28
+ 'value' => 'naturalfood'
29
+ ),
30
+ array(
31
+ 'label' => 'Wellness - Yoga/Pilates/Medical/Spa/Beauty',
32
+ 'value' => 'wellness'
33
+ ),
34
+ array(
35
+ 'label' => 'Hospitality - Hotels',
36
+ 'value' => 'hospitalityh'
37
+ ),
38
+ array(
39
+ 'label' => 'Sporting_Goods',
40
+ 'value' => 'sportinggoods'
41
+ ),
42
+ array(
43
+ 'label' => 'Gift_Shop',
44
+ 'value' => 'giftshop'
45
+ ),
46
+ array(
47
+ 'label' => 'Footwear_Only',
48
+ 'value' => 'footwear'
49
+ ),
50
+ );
51
+ }
52
+ return $this->_options;
53
+ }
54
+
55
+ public function getOptionArray() {
56
+ $_options = array();
57
+ foreach ($this->getAllOptions() as $option) {
58
+ $_options[$option['value']] = $option['label'];
59
+ }
60
+ return $_options;
61
+ }
62
+
63
+ public function getOptionText($value) {
64
+ $options = $this->getAllOptions();
65
+ foreach ($options as $option) {
66
+ if ($option["value"] == $value) {
67
+ return $option["label"];
68
+ }
69
+ }
70
+ return false;
71
+ }
72
+
73
+ public function getFlatColums() {
74
+ $columns = array(
75
+ $this->getAttribute()->getAttributeCode() => array(
76
+ 'type' => 'int',
77
+ 'unsigned' => false,
78
+ 'is_null' => true,
79
+ 'default' => null,
80
+ 'extra' => null
81
+ )
82
+ );
83
+ return $columns;
84
+ }
85
+
86
+ public function getFlatUpdateSelect($store) {
87
+ return Mage::getResourceModel('eav/entity_attribute')
88
+ ->getFlatUpdateSelect($this->getAttribute(), $store);
89
+ }
90
+
91
+ }
app/code/community/Exinent/CustomerActivation/Model/Resource/Customer.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Resource_Customer extends Mage_Eav_Model_Entity_Abstract {
4
+
5
+ protected function _construct() {
6
+ $this->setType('customer');
7
+ $this->setConnection('customer_read', 'customer_write');
8
+ return parent::_construct();
9
+ }
10
+
11
+ public function massSetActivationStatus(array $customerIds, $value) {
12
+ $customerIds = $this->_getValidCustomerIds($customerIds);
13
+
14
+ if ($customerIds) {
15
+ $attribute = $this->getAttribute('customer_activated');
16
+ $table = $attribute->getBackend()->getTable();
17
+ $select = $this->getReadConnection()->select()
18
+ ->from($table, 'entity_id')
19
+ ->where('entity_id IN (?)', $customerIds)
20
+ ->where('attribute_id = ?', $attribute->getId())
21
+ ->where('value = ?', $value);
22
+ $noChangeIds = $this->_getReadAdapter()->fetchCol($select);
23
+
24
+ $changeIds = array_diff($customerIds, $noChangeIds);
25
+ $select = $this->_getReadAdapter()->select()
26
+ ->from($table, 'entity_id')
27
+ ->where('entity_id IN (?)', $changeIds)
28
+ ->where('attribute_id = ?', $attribute->getId());
29
+
30
+ $updateIds = $this->_getReadAdapter()->fetchCol($select);
31
+ $insertIds = array_diff($changeIds, $updateIds);
32
+
33
+ if ($updateIds) {
34
+ $cond = $this->_getWriteAdapter()->quoteInto('entity_type_id = ?', $this->getEntityType()->getId());
35
+ $cond .= $this->_getWriteAdapter()->quoteInto(' AND attribute_id = ?', $attribute->getId());
36
+ $cond .= $this->_getWriteAdapter()->quoteInto(' AND entity_id IN (?)', $updateIds);
37
+ $this->_getWriteAdapter()->update($table, array('value' => $value), $cond);
38
+ }
39
+ if ($insertIds) {
40
+ $rows = array();
41
+ foreach ($insertIds as $customerId) {
42
+ $rows[] = array(
43
+ 'entity_type_id' => $this->getEntityType()->getId(),
44
+ 'attribute_id' => $attribute->getId(),
45
+ 'entity_id' => $customerId,
46
+ 'value' => $value
47
+ );
48
+ }
49
+ $this->_getWriteAdapter()->insertMultiple($table, $rows);
50
+ }
51
+ }
52
+ return $changeIds;
53
+ }
54
+
55
+ protected function _getValidCustomerIds(array $customerIds) {
56
+ $column = $this->getEntityIdField();
57
+ $select = $this->_getReadAdapter()->select()
58
+ ->from($this->getEntityTable(), $column)
59
+ ->where($column . ' IN (?)', $customerIds);
60
+ return $this->_getReadAdapter()->fetchCol($select);
61
+ }
62
+
63
+ }
app/code/community/Exinent/CustomerActivation/Model/Thirdparty.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Thirdparty extends Mage_Shipping_Model_Carrier_Abstract implements Mage_Shipping_Model_Carrier_Interface {
4
+
5
+ protected $_code = 'thirdparty';
6
+
7
+ public function collectRates(Mage_Shipping_Model_Rate_Request $request) {
8
+ $result = Mage::getModel('shipping/rate_result');
9
+ /* @var $result Mage_Shipping_Model_Rate_Result */
10
+ $result->append($this->_getStandardShippingRate());
11
+ return $result;
12
+ }
13
+
14
+ protected function _getStandardShippingRate() {
15
+ $rate = Mage::getModel('shipping/rate_result_method');
16
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
17
+
18
+ $rate->setCarrier($this->_code);
19
+ /**
20
+ * getConfigData(config_key) returns the configuration value for the
21
+ * carriers/[carrier_code]/[config_key]
22
+ */
23
+ $rate->setCarrierTitle($this->getConfigData('title'));
24
+ $rate->setMethod('standand');
25
+ $rate->setMethodTitle('Standard');
26
+ $rate->setPrice(0);
27
+ $rate->setCost(0);
28
+ return $rate;
29
+ }
30
+
31
+ protected function _getExpressShippingRate() {
32
+ $rate = Mage::getModel('shipping/rate_result_method');
33
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
34
+ $rate->setCarrier($this->_code);
35
+ $rate->setCarrierTitle($this->getConfigData('title'));
36
+ $rate->setMethod('express');
37
+ $rate->setMethodTitle('Express (Next day)');
38
+ $rate->setPrice(12.99);
39
+ $rate->setCost(0);
40
+ return $rate;
41
+ }
42
+
43
+ protected function _getFreeShippingRate() {
44
+ $rate = Mage::getModel('shipping/rate_result_method');
45
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
46
+ $rate->setCarrier($this->_code);
47
+ $rate->setCarrierTitle($this->getConfigData('title'));
48
+ $rate->setMethod('free_shipping');
49
+ $rate->setMethodTitle('Free Shipping (3 - 5 days)');
50
+ $rate->setPrice(0);
51
+ $rate->setCost(0);
52
+ return $rate;
53
+ }
54
+
55
+ public function getAllowedMethods() {
56
+ return array(
57
+ 'standard' => 'Standard',
58
+ );
59
+ }
60
+
61
+ }
app/code/community/Exinent/CustomerActivation/Model/Thirdpartyfed.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Thirdpartyfed extends Mage_Shipping_Model_Carrier_Abstract implements Mage_Shipping_Model_Carrier_Interface {
4
+
5
+ protected $_code = 'thirdpartyfed';
6
+
7
+ public function collectRates(Mage_Shipping_Model_Rate_Request $request) {
8
+ $result = Mage::getModel('shipping/rate_result');
9
+ /* @var $result Mage_Shipping_Model_Rate_Result */
10
+
11
+ $result->append($this->_getStandardShippingRate());
12
+ return $result;
13
+ }
14
+
15
+ protected function _getStandardShippingRate() {
16
+ $rate = Mage::getModel('shipping/rate_result_method');
17
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
18
+
19
+ $rate->setCarrier($this->_code);
20
+ /**
21
+ * getConfigData(config_key) returns the configuration value for the
22
+ * carriers/[carrier_code]/[config_key]
23
+ */
24
+ $rate->setCarrierTitle($this->getConfigData('title'));
25
+ $rate->setMethod('standand');
26
+ $rate->setMethodTitle('Standard');
27
+ $rate->setPrice(0);
28
+ $rate->setCost(0);
29
+ return $rate;
30
+ }
31
+
32
+ protected function _getExpressShippingRate() {
33
+ $rate = Mage::getModel('shipping/rate_result_method');
34
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
35
+ $rate->setCarrier($this->_code);
36
+ $rate->setCarrierTitle($this->getConfigData('title'));
37
+ $rate->setMethod('express');
38
+ $rate->setMethodTitle('Express (Next day)');
39
+ $rate->setPrice(12.99);
40
+ $rate->setCost(0);
41
+ return $rate;
42
+ }
43
+
44
+ protected function _getFreeShippingRate() {
45
+ $rate = Mage::getModel('shipping/rate_result_method');
46
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
47
+ $rate->setCarrier($this->_code);
48
+ $rate->setCarrierTitle($this->getConfigData('title'));
49
+ $rate->setMethod('free_shipping');
50
+ $rate->setMethodTitle('Free Shipping (3 - 5 days)');
51
+ $rate->setPrice(0);
52
+ $rate->setCost(0);
53
+ return $rate;
54
+ }
55
+
56
+ public function getAllowedMethods() {
57
+ return array(
58
+ 'standard' => 'Standard',
59
+ );
60
+ }
61
+
62
+ }
app/code/community/Exinent/CustomerActivation/Model/Thirdpartyfedex.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Thirdpartyfedex extends Mage_Shipping_Model_Carrier_Abstract implements Mage_Shipping_Model_Carrier_Interface {
4
+
5
+ protected $_code = 'thirdpartyfedex';
6
+
7
+ public function collectRates(Mage_Shipping_Model_Rate_Request $request) {
8
+ $result = Mage::getModel('shipping/rate_result');
9
+ /* @var $result Mage_Shipping_Model_Rate_Result */
10
+
11
+ $result->append($this->_getStandardShippingRate());
12
+
13
+
14
+
15
+ return $result;
16
+ }
17
+
18
+ protected function _getStandardShippingRate() {
19
+ $rate = Mage::getModel('shipping/rate_result_method');
20
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
21
+
22
+ $rate->setCarrier($this->_code);
23
+ /**
24
+ * getConfigData(config_key) returns the configuration value for the
25
+ * carriers/[carrier_code]/[config_key]
26
+ */
27
+ $rate->setCarrierTitle($this->getConfigData('title'));
28
+
29
+ $rate->setMethod('standand');
30
+ $rate->setMethodTitle('Standard');
31
+
32
+ $rate->setPrice(0);
33
+ $rate->setCost(0);
34
+
35
+ return $rate;
36
+ }
37
+
38
+ protected function _getExpressShippingRate() {
39
+ $rate = Mage::getModel('shipping/rate_result_method');
40
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
41
+ $rate->setCarrier($this->_code);
42
+ $rate->setCarrierTitle($this->getConfigData('title'));
43
+ $rate->setMethod('express');
44
+ $rate->setMethodTitle('Express (Next day)');
45
+ $rate->setPrice(12.99);
46
+ $rate->setCost(0);
47
+ return $rate;
48
+ }
49
+
50
+ protected function _getFreeShippingRate() {
51
+ $rate = Mage::getModel('shipping/rate_result_method');
52
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
53
+ $rate->setCarrier($this->_code);
54
+ $rate->setCarrierTitle($this->getConfigData('title'));
55
+ $rate->setMethod('free_shipping');
56
+ $rate->setMethodTitle('Free Shipping (3 - 5 days)');
57
+ $rate->setPrice(0);
58
+ $rate->setCost(0);
59
+ return $rate;
60
+ }
61
+
62
+ public function getAllowedMethods() {
63
+ return array(
64
+ 'standard' => 'Standard',
65
+ );
66
+ }
67
+
68
+ }
app/code/community/Exinent/CustomerActivation/Model/Thirdpartyups.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_Model_Thirdpartyups extends Mage_Shipping_Model_Carrier_Abstract implements Mage_Shipping_Model_Carrier_Interface {
4
+
5
+ protected $_code = 'thirdpartyups';
6
+
7
+ public function collectRates(Mage_Shipping_Model_Rate_Request $request) {
8
+ $result = Mage::getModel('shipping/rate_result');
9
+ /* @var $result Mage_Shipping_Model_Rate_Result */
10
+
11
+ $result->append($this->_getStandardShippingRate());
12
+
13
+
14
+ return $result;
15
+ }
16
+
17
+ protected function _getStandardShippingRate() {
18
+ $rate = Mage::getModel('shipping/rate_result_method');
19
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
20
+
21
+ $rate->setCarrier($this->_code);
22
+ /**
23
+ * getConfigData(config_key) returns the configuration value for the
24
+ * carriers/[carrier_code]/[config_key]
25
+ */
26
+ $rate->setCarrierTitle($this->getConfigData('title'));
27
+
28
+ $rate->setMethod('standand');
29
+ $rate->setMethodTitle('Standard');
30
+
31
+ $rate->setPrice(0);
32
+ $rate->setCost(0);
33
+
34
+ return $rate;
35
+ }
36
+
37
+ protected function _getExpressShippingRate() {
38
+ $rate = Mage::getModel('shipping/rate_result_method');
39
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
40
+ $rate->setCarrier($this->_code);
41
+ $rate->setCarrierTitle($this->getConfigData('title'));
42
+ $rate->setMethod('express');
43
+ $rate->setMethodTitle('Express (Next day)');
44
+ $rate->setPrice(12.99);
45
+ $rate->setCost(0);
46
+ return $rate;
47
+ }
48
+
49
+ protected function _getFreeShippingRate() {
50
+ $rate = Mage::getModel('shipping/rate_result_method');
51
+ /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
52
+ $rate->setCarrier($this->_code);
53
+ $rate->setCarrierTitle($this->getConfigData('title'));
54
+ $rate->setMethod('free_shipping');
55
+ $rate->setMethodTitle('Free Shipping (3 - 5 days)');
56
+ $rate->setPrice(0);
57
+ $rate->setCost(0);
58
+ return $rate;
59
+ }
60
+
61
+ public function getAllowedMethods() {
62
+ return array(
63
+ 'standard' => 'Standard',
64
+ );
65
+ }
66
+
67
+ }
app/code/community/Exinent/CustomerActivation/controllers/AccountController.php ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ include_once "Mage/Customer/controllers/AccountController.php";
4
+
5
+ class Exinent_CustomerActivation_AccountController extends Mage_Customer_AccountController {
6
+
7
+ public function createPostAction() {
8
+
9
+ /** @var $session Mage_Customer_Model_Session */
10
+ $session = $this->_getSession();
11
+ if ($session->isLoggedIn()) {
12
+
13
+ $this->_redirect('*/*/');
14
+ return;
15
+ }
16
+ $session->setEscapeMessages(true); // prevent XSS injection in user input
17
+ if (!$this->getRequest()->isPost()) {
18
+
19
+ $errUrl = $this->_getUrl('*/*/create', array('_secure' => true));
20
+ $this->_redirectError($errUrl);
21
+ return;
22
+ }
23
+
24
+ $customer = $this->_getCustomer();
25
+
26
+ try {
27
+ /* Extra Content Strart for add assign group to customer and wholesale */
28
+
29
+ if ($this->getRequest()->getPost('group_id')) {
30
+ $customer->setGroupId($this->getRequest()->getPost('group_id'));
31
+ } else {
32
+ $customer->getGroupId();
33
+ }
34
+
35
+ /* Extra Content End for add assign group to customer and wholesale */
36
+
37
+ $errors = $this->_getCustomerErrors($customer);
38
+
39
+ if (empty($errors)) {
40
+ if ($this->getRequest()->getPost('group_id')) {
41
+ $customer->setGroupId($this->getRequest()->getPost('group_id'));
42
+ } else {
43
+ $customer->getGroupId();
44
+ }
45
+
46
+ $customer->setUniqueloginId(Mage::helper('core')->getRandomString(9, '0123456789'));
47
+ $customer->setUpsNumber($this->getRequest()->getPost('upsnumber'));
48
+ $customer->setFedexNumber($this->getRequest()->getPost('fedexnumber'));
49
+ $customer->setAccountspayableEmail($this->getRequest()->getPost('accountpayble_email'));
50
+ $customer->setStoreType($this->getRequest()->getPost('storetype'));
51
+ $customer->setWebsiteUrl($this->getRequest()->getPost('website_url'));
52
+ $customer->setIswebsiteLive($this->getRequest()->getPost('iswebsitelive'));
53
+ $customer->setDateFounded($this->getRequest()->getPost('datefounded'));
54
+ $customer->setPaymentmethods($this->getRequest()->getPost('paymentterms'));
55
+ $brandsCarry = $this->getRequest()->getPost('brandsyoucarry');
56
+ $brands = implode(',', $brandsCarry);
57
+ $customer->setBrandsCarry($brands);
58
+ try {
59
+ $uploader = new Varien_File_Uploader('attachment');
60
+ $uploader->setAllowedExtensions(array('jpg', 'jpeg', 'gif', 'png'));
61
+ $uploader->setAllowRenameFiles(true);
62
+ $path = Mage::getBaseDir('media') . DS . 'customerlogs' . DS;
63
+ $img = $uploader->save($path, $_FILES['attachment']['name']);
64
+ $logoImage = 'customerlogs/' . $_FILES['attachment']['name'];
65
+ } catch (Exception $e) {
66
+ echo $e->getMessage();
67
+ Mage::log($e->getMessage());
68
+ }
69
+ $customer->setLogoImage($logoImage);
70
+ try {
71
+ $paymentreference = new Varien_File_Uploader('net30reference');
72
+ $uploader->setAllowedExtensions(array('doc', 'pdf', 'txt', 'docx', 'jpg', 'jpeg', 'gif', 'png'));
73
+ $paymentreference->setAllowRenameFiles(true);
74
+ $paymentreferencepath = Mage::getBaseDir('media') . DS . 'net30Reference' . DS;
75
+ $imgpath = $paymentreference->save($paymentreferencepath, $_FILES['net30reference']['name']);
76
+ $paymentreferenceImage = 'net30Reference/' . $_FILES['net30reference']['name'];
77
+ } catch (Exception $e) {
78
+ echo $e->getMessage();
79
+ Mage::log($e->getMessage());
80
+ }
81
+ $customer->setNet30Reference($paymentreferenceImage);
82
+ $customer->save();
83
+ $this->_dispatchRegisterSuccess($customer);
84
+ $this->_successProcessRegistration($customer);
85
+ return;
86
+ } else {
87
+ $this->_addSessionError($errors);
88
+ }
89
+ } catch (Mage_Core_Exception $e) {
90
+ $variable = $this->getRequest()->getPost('customer_activation');
91
+ $session->setCustomerFormData($this->getRequest()->getPost());
92
+ if ($e->getCode() === Mage_Customer_Model_Customer::EXCEPTION_EMAIL_EXISTS) {
93
+ $url = $this->_getUrl('customer/account/forgotpassword');
94
+ if ($variable != 'customerActivation') {
95
+ $message = $this->__('There is already an account with this email address. If you are sure that it is your email address, <a href="%s">click here</a> to get your password and access your account.', $url);
96
+ }
97
+ $session->setEscapeMessages(false);
98
+ } else {
99
+ $message = $e->getMessage();
100
+ }
101
+ if ($variable != 'customerActivation') {
102
+ $session->addError($message);
103
+ }
104
+ } catch (Exception $e) {
105
+ $session->setCustomerFormData($this->getRequest()->getPost())
106
+ ->addException($e, $this->__('Cannot save the customer.'));
107
+ }
108
+ if ($variable == 'customerActivation') {
109
+ $errUrl = $this->_getUrl('customerActivation/index/wholesale', array('_secure' => true));
110
+ $emailError = 'emailerror';
111
+ Mage::getSingleton('core/session')->setEmailError($emailError);
112
+ } else {
113
+ $errUrl = $this->_getUrl('*/*/create', array('_secure' => true));
114
+ }
115
+
116
+ $this->_redirectError($errUrl);
117
+ }
118
+
119
+ public function loginPostAction() {
120
+
121
+ $groupid = $this->getRequest()->getParam('groupname');
122
+
123
+ Mage::register('groupId', $groupid);
124
+ if (!$this->_validateFormKey()) {
125
+ $this->_redirect('*/*/');
126
+ return;
127
+ }
128
+
129
+ if ($this->_getSession()->isLoggedIn()) {
130
+ $this->_redirect('*/*/');
131
+ return;
132
+ }
133
+ $session = $this->_getSession();
134
+
135
+ if ($this->getRequest()->isPost()) {
136
+ $login = $this->getRequest()->getPost('login');
137
+
138
+ if (!empty($login['username']) && !empty($login['password'])) {
139
+ try {
140
+ $session->login($login['username'], $login['password']);
141
+ if ($session->getCustomer()->getIsJustConfirmed()) {
142
+ $this->_welcomeCustomer($session->getCustomer(), true);
143
+ }
144
+ } catch (Mage_Core_Exception $e) {
145
+ switch ($e->getCode()) {
146
+ case Mage_Customer_Model_Customer::EXCEPTION_EMAIL_NOT_CONFIRMED:
147
+ $value = $this->_getHelper('customer')->getEmailConfirmationUrl($login['username']);
148
+ $message = $this->_getHelper('customer')->__('This account is not confirmed. <a href="%s">Click here</a> to resend confirmation email.', $value);
149
+ break;
150
+ case Mage_Customer_Model_Customer::EXCEPTION_INVALID_EMAIL_OR_PASSWORD:
151
+ $message = $e->getMessage();
152
+ break;
153
+ default:
154
+ $message = $e->getMessage();
155
+ }
156
+ $session->addError($message);
157
+ $session->setUsername($login['username']);
158
+ } catch (Exception $e) {
159
+ // Mage::logException($e); // PA DSS violation: this exception log can disclose customer password
160
+ }
161
+ } else {
162
+ $session->addError($this->__('Login and password are required.'));
163
+ }
164
+ }
165
+
166
+ $this->_loginPostRedirect();
167
+ }
168
+
169
+ }
170
+
171
+ ?>
app/code/community/Exinent/CustomerActivation/controllers/AdminController.php ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_AdminController extends Mage_Adminhtml_Controller_Action {
4
+
5
+ public function massActivationAction() {
6
+
7
+ $customerIds = $this->getRequest()->getParam('customer');
8
+
9
+
10
+ if (!is_array($customerIds)) {
11
+ Mage::getSingleton('adminhtml/session')->addError(
12
+ Mage::helper('customeractivation')->__('Please select item(s)')
13
+ );
14
+ } else {
15
+ $paramValue = $this->getRequest()->getParam('customer_activated');
16
+
17
+
18
+ try {
19
+ $updatedCustomerIds = Mage::getResourceModel('customeractivation/customer')->massSetActivationStatus(
20
+ $customerIds, $this->_shouldSetToActivated($paramValue)
21
+ );
22
+
23
+ Mage::getSingleton('adminhtml/session')->addSuccess(
24
+ Mage::helper('customeractivation')->__(
25
+ 'Total of %d record(s) were successfully saved', count($updatedCustomerIds)
26
+ )
27
+ );
28
+
29
+ if ($this->_shouldSendActivationNotification($paramValue)) {
30
+ $this->_sendActivationNotificationEmails($updatedCustomerIds);
31
+ }
32
+ } catch (Exception $e) {
33
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
34
+ }
35
+ }
36
+
37
+ $this->_redirect('adminhtml/customer');
38
+ }
39
+
40
+ protected function _shouldSetToActivated($paramValue) {
41
+ switch ($paramValue) {
42
+ case 0:
43
+ $activationStatus = 0;
44
+ break;
45
+ case 1:
46
+ $activationStatus = 1;
47
+ break;
48
+ case 2:
49
+ $activationStatus = 2;
50
+ break;
51
+ case 4:
52
+ $activationStatus = 4;
53
+ break;
54
+ case 5:
55
+ $activationStatus = 5;
56
+ break;
57
+ default:
58
+ $activationStatus = 'New';
59
+ break;
60
+ }
61
+ return $activationStatus;
62
+ }
63
+
64
+ protected function _shouldSendActivationNotification($paramValue) {
65
+ switch ($paramValue) {
66
+ case Exinent_CustomerActivation_Helper_Data::STATUS_ACTIVATE_WITH_EMAIL:
67
+ $sendEmail = true;
68
+ break;
69
+ case Exinent_CustomerActivation_Helper_Data::STATUS_ACTIVATE_WITHOUT_EMAIL:
70
+ case Exinent_CustomerActivation_Helper_Data::STATUS_DEACTIVATE:
71
+ default:
72
+ $sendEmail = false;
73
+ break;
74
+ }
75
+ return $sendEmail;
76
+ }
77
+
78
+ protected function _sendActivationNotificationEmails(array $customerIds) {
79
+ $helper = Mage::helper('customeractivation');
80
+ $customers = Mage::getResourceModel('customer/customer_collection')
81
+ ->addAttributeToFilter('entity_id', array('in' => $customerIds))
82
+ ->addAttributeToSelect('*')
83
+ ->addNameToSelect();
84
+ foreach ($customers as $customer) {
85
+ $helper->sendCustomerNotificationEmail($customer);
86
+ }
87
+ }
88
+
89
+ protected function _isAllowed() {
90
+ return Mage::getSingleton('admin/session')->isAllowed('customer/manage');
91
+ }
92
+
93
+ }
app/code/community/Exinent/CustomerActivation/controllers/CategoryController.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ include(Mage::getBaseDir() . "/app/code/core/Mage/Catalog/controllers/CategoryController.php");
4
+
5
+ class Exinent_CustomerActivation_CategoryController extends Mage_Catalog_CategoryController {
6
+
7
+ protected function _initCatagory() {
8
+ $ModuleStatus = Mage::getStoreConfig('customer/customeractivation/disable_ext');
9
+ if ($ModuleStatus == 1) {
10
+ $cmsPagesList = Mage::getStoreConfig('customer/customeractivation/require_aunthenticate_categories');
11
+ $pages = explode(',', $cmsPagesList);
12
+ $currentUrl = Mage::helper('core/url')->getCurrentUrl();
13
+ $baseUrl = Mage::getBaseUrl();
14
+ $cmspage = explode($baseUrl, $currentUrl);
15
+ $cmspage = explode('.html', $cmspage[1]);
16
+
17
+ $position = strrpos($cmspage[0], "/");
18
+ if ($position) {
19
+ $cmspage = substr($cmspage[0], $position + 1);
20
+ } else {
21
+ $cmspage = substr($cmspage[0], $position + 0);
22
+ }
23
+ if (in_array($cmspage, $pages)) {
24
+
25
+ if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
26
+
27
+ Mage::app()->getFrontController()->getResponse()
28
+ ->setRedirect(Mage::getUrl('customer/account/login'))
29
+ ->sendResponse();
30
+ } else {
31
+ $customerGroups = Mage::getStoreConfig('customer/customeractivation/require_activation_groups');
32
+ $customers = explode(',', $customerGroups);
33
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
34
+ $customerId = $customer->getGroupId();
35
+ if (in_array($customerId, $customers)) {
36
+
37
+ } else {
38
+ Mage::app()->getFrontController()->getResponse()
39
+ ->setRedirect(Mage::getBaseUrl())
40
+ ->sendResponse();
41
+ }
42
+ }
43
+ }
44
+ }
45
+ Mage::dispatchEvent('catalog_controller_category_init_before', array('controller_action' => $this));
46
+ $categoryId = (int) $this->getRequest()->getParam('id', false);
47
+ if (!$categoryId) {
48
+ return false;
49
+ }
50
+
51
+ $category = Mage::getModel('catalog/category')
52
+ ->setStoreId(Mage::app()->getStore()->getId())
53
+ ->load($categoryId);
54
+
55
+ if (!Mage::helper('catalog/category')->canShow($category)) {
56
+ return false;
57
+ }
58
+ Mage::getSingleton('catalog/session')->setLastVisitedCategoryId($category->getId());
59
+ Mage::register('current_category', $category);
60
+ Mage::register('current_entity_key', $category->getPath());
61
+
62
+ try {
63
+ Mage::dispatchEvent(
64
+ 'catalog_controller_category_init_after', array(
65
+ 'category' => $category,
66
+ 'controller_action' => $this
67
+ )
68
+ );
69
+ } catch (Mage_Core_Exception $e) {
70
+ Mage::logException($e);
71
+ return false;
72
+ }
73
+
74
+ return $category;
75
+ }
76
+
77
+ }
app/code/community/Exinent/CustomerActivation/controllers/IndexController.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once 'Mage/Cms/controllers/IndexController.php';
4
+ class Exinent_CustomerActivation_IndexController extends Mage_Cms_IndexController
5
+ {
6
+
7
+ public function indexAction($coreRoute = null) {
8
+
9
+ $pageId = Mage::getStoreConfig(Mage_Cms_Helper_Page::XML_PATH_HOME_PAGE);
10
+ if (!Mage::helper('cms/page')->renderPage($this, $pageId)) {
11
+ $this->_forward('defaultIndex');
12
+ }
13
+ $this->loadLayout();
14
+ // $this->renderLayout();
15
+
16
+ }
17
+
18
+ public function wholesaleAction() {
19
+
20
+ $this->loadLayout();
21
+ $this->renderLayout();
22
+ }
23
+
24
+ public function wholesaleloginAction() {
25
+ $this->loadLayout();
26
+ $this->renderLayout();
27
+ }
28
+
29
+ }
app/code/community/Exinent/CustomerActivation/controllers/PageController.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once 'Mage/Cms/controllers/PageController.php';
4
+ class Exinent_CustomerActivation_PageController extends Mage_Cms_PageController
5
+ {
6
+
7
+ public function viewAction()
8
+ {
9
+ // echo 'hii';exit;
10
+ $ModuleStatus = Mage::getStoreConfig('customer/customeractivation/disable_ext');
11
+ if($ModuleStatus==1){
12
+ $cmsPagesList = Mage::getStoreConfig('customer/customeractivation/require_aunthenticate_cms');
13
+ $pages = explode(',', $cmsPagesList);
14
+ $currentUrl = Mage::helper('core/url')->getCurrentUrl();
15
+ $baseUrl = Mage::getBaseUrl();
16
+ $cmspage = explode($baseUrl, $currentUrl);
17
+ $strlen = strlen($cmspage[1]);
18
+ $slashchar = substr($cmspage[1], $strlen-1, $strlen);
19
+ if($slashchar=='/'){
20
+ $cmspage = substr($cmspage[1], 0, -1);
21
+ }else{
22
+ $cmspage = $cmspage[1];
23
+ }
24
+ if(in_array($cmspage, $pages)){
25
+
26
+ if(!Mage::getSingleton('customer/session')->isLoggedIn()) {
27
+
28
+ Mage::app()->getFrontController()->getResponse()
29
+ ->setRedirect(Mage::getUrl('customer/account/login'))
30
+ ->sendResponse();
31
+ }else{
32
+ $customerGroups = Mage::getStoreConfig('customer/customeractivation/require_activation_groups');
33
+ $customers = explode(',', $customerGroups);
34
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
35
+ $customerId = $customer->getGroupId();
36
+ if(in_array($customerId, $customers)){
37
+
38
+
39
+ }else{
40
+ Mage::app()->getFrontController()->getResponse()
41
+ ->setRedirect(Mage::getBaseUrl())
42
+ ->sendResponse();
43
+ }
44
+ }
45
+ }
46
+ }
47
+ $pageId = $this->getRequest()
48
+ ->getParam('page_id', $this->getRequest()->getParam('id', false));
49
+ if (!Mage::helper('cms/page')->renderPage($this, $pageId)) {
50
+ $this->_forward('noRoute');
51
+ }
52
+ }
53
+ }
app/code/community/Exinent/CustomerActivation/controllers/ProductController.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ include(Mage::getBaseDir() . "/app/code/core/Mage/Catalog/controllers/ProductController.php");
4
+
5
+ class Exinent_CustomerActivation_ProductController extends Mage_Catalog_ProductController {
6
+
7
+ public function viewAction() {
8
+ $ModuleStatus = Mage::getStoreConfig('customer/customeractivation/disable_ext');
9
+ if($ModuleStatus==1){
10
+ $cmsPagesList = Mage::getStoreConfig('customer/customeractivation/require_aunthenticate_products');
11
+ $pages = explode(',', $cmsPagesList);
12
+ $currentUrl = Mage::helper('core/url')->getCurrentUrl();
13
+ $baseUrl = Mage::getBaseUrl();
14
+ $cmspage = explode($baseUrl, $currentUrl);
15
+ $cmspage = explode('.html', $cmspage[1]);
16
+ $position = strrpos($cmspage[0], "/");
17
+ if ($position) {
18
+ $cmspage = substr($cmspage[0], $position + 1);
19
+ } else {
20
+ $cmspage = substr($cmspage[0], $position + 0);
21
+ }
22
+
23
+ if (in_array($cmspage, $pages)) {
24
+ if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
25
+ Mage::app()->getFrontController()->getResponse()
26
+ ->setRedirect(Mage::getUrl('customer/account/login'))
27
+ ->sendResponse();
28
+ }else{
29
+ $customerGroups = Mage::getStoreConfig('customer/customeractivation/require_activation_groups');
30
+ $customers = explode(',', $customerGroups);
31
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
32
+ $customerId = $customer->getGroupId();
33
+ if(in_array($customerId, $customers)){
34
+
35
+
36
+ }else{
37
+ Mage::app()->getFrontController()->getResponse()
38
+ ->setRedirect(Mage::getBaseUrl())
39
+ ->sendResponse();
40
+ }
41
+ }
42
+ }
43
+ }
44
+ // Get initial data from request
45
+ $categoryId = (int) $this->getRequest()->getParam('category', false);
46
+ $productId = (int) $this->getRequest()->getParam('id');
47
+ $specifyOptions = $this->getRequest()->getParam('options');
48
+
49
+ // Prepare helper and params
50
+ $viewHelper = Mage::helper('catalog/product_view');
51
+
52
+ $params = new Varien_Object();
53
+ $params->setCategoryId($categoryId);
54
+ $params->setSpecifyOptions($specifyOptions);
55
+
56
+ // Render page
57
+ try {
58
+ $viewHelper->prepareAndRender($productId, $this, $params);
59
+ } catch (Exception $e) {
60
+ if ($e->getCode() == $viewHelper->ERR_NO_PRODUCT_LOADED) {
61
+ if (isset($_GET['store']) && !$this->getResponse()->isRedirect()) {
62
+ $this->_redirect('');
63
+ } elseif (!$this->getResponse()->isRedirect()) {
64
+ $this->_forward('noRoute');
65
+ }
66
+ } else {
67
+ Mage::logException($e);
68
+ $this->_forward('noRoute');
69
+ }
70
+ }
71
+ }
72
+
73
+ }
app/code/community/Exinent/CustomerActivation/controllers/productOrderController.php ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Exinent_CustomerActivation_productOrderController extends Mage_Core_Controller_Front_Action {
4
+
5
+ public function preDispatch() {
6
+ parent::preDispatch();
7
+ $action = $this->getRequest()->getActionName();
8
+ $loginUrl = Mage::helper('customer')->getLoginUrl();
9
+ $ModuleStatus = Mage::getStoreConfig('customer/customeractivation/disable_ext');
10
+
11
+ $customerGroups = Mage::getStoreConfig('customer/customeractivation/require_activation_groups');
12
+ $customers = explode(',', $customerGroups);
13
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
14
+ $customerId = $customer->getGroupId();
15
+ if (in_array($customerId, $customers)) {
16
+
17
+ } else {
18
+ Mage::app()->getFrontController()->getResponse()
19
+ ->setRedirect(Mage::getBaseUrl())
20
+ ->sendResponse();
21
+ }
22
+ if (!Mage::getSingleton('customer/session')->authenticate($this, $loginUrl)) {
23
+ $this->setFlag('', self::FLAG_NO_DISPATCH, true);
24
+ } else if ($ModuleStatus == 0) {
25
+ Mage::app()->getFrontController()->getResponse()
26
+ ->setRedirect(Mage::getBaseUrl())
27
+ ->sendResponse();
28
+ }
29
+ }
30
+
31
+ public function indexAction() {
32
+ $this->loadLayout();
33
+ $this->renderLayout();
34
+ }
35
+
36
+ public function quickorderproductAction() {
37
+ $this->loadLayout();
38
+ $this->renderLayout();
39
+ }
40
+
41
+ public function submitorderbySimpleproductAction() {
42
+ $minQty = Mage::getStoreConfig('customer/customeractivation/min_qty');
43
+
44
+ $params = $this->getRequest()->getParams();
45
+ $cart = Mage::getModel('checkout/cart');
46
+ foreach ($params as $sku => $qty) {
47
+
48
+ $ids = explode('_', $sku);
49
+ $productId = $ids[0];
50
+ $product = Mage::getModel('catalog/product')->load($productId);
51
+
52
+ if (($qty != null || $qty != '') && is_numeric($qty)) {
53
+
54
+ $stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product);
55
+ $productQty = $stock->getQty();
56
+
57
+ if ($qty < $minQty )
58
+ $qty = $minQty;
59
+ if($qty > $productQty){
60
+ $message = Mage::helper('cataloginventory')->__('The requested quantity for "%s" is not available.', $product->getName());
61
+ Mage::getSingleton('core/session')->addError($message);
62
+ $options = array("product" => $productId, "qty" => $productQty);
63
+ $cart->addProduct($product, $options);
64
+ }else{
65
+ $options = array("product" => $productId, "qty" => $qty);
66
+ $cart->addProduct($product, $options);
67
+ }
68
+ }
69
+ }
70
+ $cart->save();
71
+ $this->_redirect('checkout/cart');
72
+ }
73
+
74
+ public function submitorderbyproductAction() {
75
+ $params = $this->getRequest()->getParams();
76
+ $cart = Mage::getModel('checkout/cart');
77
+ foreach ($params as $sku => $qty) {
78
+ $ids = explode('_', $sku);
79
+ $confId = $ids[0];
80
+ $productId = $ids[1];
81
+ $_product = Mage::getModel('catalog/product')->load($productId);
82
+ $optionvalue = $_product->getSize();
83
+ $product = Mage::getModel('catalog/product')->load($confId);
84
+ $options = array("product" => $productId, "super_attribute" => array(134 => $optionvalue), "qty" => $qty);
85
+ if (($qty != null || $qty != '') && is_numeric($qty)) {
86
+ $cart->addProduct($product, $options);
87
+ }
88
+ }
89
+ $cart->save();
90
+ $this->_redirect('checkout/cart');
91
+ }
92
+
93
+ }
app/code/community/Exinent/CustomerActivation/etc/config.xml ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Exinent_CustomerActivation>
5
+ <version>0.3.4</version>
6
+ </Exinent_CustomerActivation>
7
+ </modules>
8
+ <global>
9
+ <rewrite>
10
+ <customeractivation>
11
+ <from><![CDATA[#^/customer/account/createpost/#]]></from>
12
+ <to>/customerActivation/account/createpost/</to>
13
+ </customeractivation>
14
+ </rewrite>
15
+ <models>
16
+ <customeractivation>
17
+ <class>Exinent_CustomerActivation_Model</class>
18
+ <resourceModel>customeractivation_resource</resourceModel>
19
+ </customeractivation>
20
+ <customeractivation_resource>
21
+ <class>Exinent_CustomerActivation_Model_Resource</class>
22
+ </customeractivation_resource>
23
+ <customer>
24
+ <rewrite>
25
+ <customer>Exinent_CustomerActivation_Model_Customer</customer>
26
+ </rewrite>
27
+ </customer>
28
+ <sales>
29
+ <rewrite>
30
+ <order>Exinent_CustomerActivation_Model_Order</order>
31
+ </rewrite>
32
+ </sales>
33
+ </models>
34
+ <helpers>
35
+ <customeractivation>
36
+ <class>Exinent_CustomerActivation_Helper</class>
37
+ </customeractivation>
38
+ </helpers>
39
+ <blocks>
40
+ <customeractivation>
41
+ <class>Exinent_CustomerActivation_Block</class>
42
+ </customeractivation>
43
+ <page>
44
+ <rewrite>
45
+ <html_topmenu>Exinent_CustomerActivation_Block_Page_Html_Topmenu</html_topmenu>
46
+ </rewrite>
47
+ </page>
48
+ </blocks>
49
+ <resources>
50
+ <customeractivation_setup>
51
+ <setup>
52
+ <module>Exinent_CustomerActivation</module>
53
+ <class>Mage_Customer_Model_Entity_Setup</class>
54
+ </setup>
55
+ </customeractivation_setup>
56
+ </resources>
57
+ <template>
58
+ <email>
59
+ <customer_customeractivation_registration_admin_template translate="label" module="customeractivation">
60
+ <label>Customer Registration Admin Notification</label>
61
+ <file>Exinent/customeractivation/customer_registration_admin.html</file>
62
+ <type>html</type>
63
+ </customer_customeractivation_registration_admin_template>
64
+ <customer_customeractivation_activation_template translate="label" module="customeractivation">
65
+ <label>Customer Activation Notification</label>
66
+ <file>Exinent/customeractivation/customer_activation.html</file>
67
+ <type>html</type>
68
+ </customer_customeractivation_activation_template>
69
+ </email>
70
+ </template>
71
+ <events>
72
+
73
+
74
+ <customer_save_before>
75
+ <observers>
76
+ <customeractivation>
77
+ <type>singleton</type>
78
+ <class>customeractivation/observer</class>
79
+ <method>customerSaveBefore</method>
80
+ </customeractivation>
81
+ </observers>
82
+ </customer_save_before>
83
+ <customer_save_after>
84
+ <observers>
85
+ <customeractivation>
86
+ <type>model</type>
87
+ <class>customeractivation/observer</class>
88
+ <method>customerSaveAfter</method>
89
+ </customeractivation>
90
+ </observers>
91
+ </customer_save_after>
92
+
93
+ </events>
94
+ </global>
95
+ <frontend>
96
+
97
+ <events>
98
+ <page_block_html_topmenu_gethtml_before>
99
+ <observers>
100
+ <customeractivation>
101
+ <type>singleton</type>
102
+ <class>customeractivation/observer</class>
103
+ <method>page_block_html_topmenu_gethtml_before</method>
104
+ </customeractivation>
105
+ </observers>
106
+ </page_block_html_topmenu_gethtml_before>
107
+ </events>
108
+ <routers>
109
+ <customeractivation>
110
+ <use>standard</use>
111
+ <args>
112
+ <module>Exinent_CustomerActivation</module>
113
+ <frontName>customerActivation</frontName>
114
+ </args>
115
+ </customeractivation>
116
+
117
+ <cms>
118
+ <use>standard</use>
119
+ <args>
120
+ <modules>
121
+ <Exinent_CustomerActivation before="Mage_Cms">Exinent_CustomerActivation</Exinent_CustomerActivation>
122
+ </modules>
123
+ </args>
124
+ </cms>
125
+ <catalog>
126
+ <args>
127
+ <modules>
128
+ <Exinent_CustomerActivation before="Mage_Catalog">Exinent_CustomerActivation</Exinent_CustomerActivation>
129
+ </modules>
130
+ </args>
131
+ </catalog>
132
+ </routers>
133
+ <layout>
134
+ <updates>
135
+ <customeractivation>
136
+ <file>customerActivation.xml</file>
137
+ </customeractivation>
138
+ </updates>
139
+ </layout>
140
+ </frontend>
141
+ <admin>
142
+ <routers>
143
+ <customeractivation>
144
+ <use>admin</use>
145
+ <args>
146
+ <module>Exinent_CustomerActivation</module>
147
+ <frontName>customeractivation</frontName>
148
+ </args>
149
+ </customeractivation>
150
+ </routers>
151
+ </admin>
152
+ <frontend>
153
+ <events>
154
+ <customer_login>
155
+ <observers>
156
+ <customeractivation>
157
+ <type>singleton</type>
158
+ <class>customeractivation/observer</class>
159
+ <method>customerLogin</method>
160
+ </customeractivation>
161
+ </observers>
162
+ </customer_login>
163
+ <sales_convert_quote_address_to_order>
164
+ <observers>
165
+ <customeractivation>
166
+ <type>singleton</type>
167
+ <class>customeractivation/observer</class>
168
+ <method>salesCovertQuoteAddressToOrder</method>
169
+ </customeractivation>
170
+ </observers>
171
+ </sales_convert_quote_address_to_order>
172
+ </events>
173
+ <translate>
174
+ <modules>
175
+ <Exinent_CustomerActivation>
176
+ <files>
177
+ <default>Exinent_CustomerActivation.csv</default>
178
+ </files>
179
+ </Exinent_CustomerActivation>
180
+ </modules>
181
+ </translate>
182
+ </frontend>
183
+ <default>
184
+ <customer>
185
+ <customeractivation>
186
+ <disable_ext>0</disable_ext>
187
+ <always_active_in_admin>1</always_active_in_admin>
188
+ <alert_admin>1</alert_admin>
189
+ <admin_email></admin_email>
190
+ <registration_admin_template>customer_customeractivation_registration_admin_template</registration_admin_template>
191
+ <alert_customer>0</alert_customer>
192
+ <activation_template>customer_customeractivation_activation_template</activation_template>
193
+ <activation_status_default>0</activation_status_default>
194
+ <always_send_admin_email>0</always_send_admin_email>
195
+ <require_activation_for_specific_groups>0</require_activation_for_specific_groups>
196
+ <require_activation_groups></require_activation_groups>
197
+ </customeractivation>
198
+ </customer>
199
+ <payment>
200
+ <net30>
201
+ <active>0</active>
202
+ <model>customeractivation/net30</model>
203
+ <order_status>pending</order_status>
204
+ <title>NET 30</title>
205
+ <group>offline</group>
206
+ <allowspecific>0</allowspecific>
207
+ </net30>
208
+ <net15>
209
+ <active>0</active>
210
+ <model>customeractivation/net15</model>
211
+ <order_status>pending</order_status>
212
+ <title>NET 15</title>
213
+ <group>offline</group>
214
+ <allowspecific>0</allowspecific>
215
+ </net15>
216
+ </payment>
217
+
218
+ <carriers>
219
+ <thirdpartyfedex>
220
+ <active>1</active>
221
+
222
+ <model>Exinent_CustomerActivation_Model_Thirdpartyfedex</model>
223
+ <title>3rd Party Fed Ex</title>
224
+ <sort_order>10</sort_order>
225
+ <sallowspecific>0</sallowspecific>
226
+ </thirdpartyfedex>
227
+
228
+ <thirdpartyups>
229
+ <active>1</active>
230
+ <model>Exinent_CustomerActivation_Model_Thirdpartyups</model>
231
+ <title>3rd Party UPS</title>
232
+ <sort_order>10</sort_order>
233
+ <sallowspecific>0</sallowspecific>
234
+ </thirdpartyups>
235
+
236
+ </carriers>
237
+ </default>
238
+ <adminhtml>
239
+ <layout>
240
+ <updates>
241
+ <customeractivation>
242
+ <file>customerActivation.xml</file>
243
+ </customeractivation>
244
+ </updates>
245
+ </layout>
246
+ <translate>
247
+ <modules>
248
+ <Exinent_CustomerActivation>
249
+ <files>
250
+ <default>Exinent_CustomerActivation.csv</default>
251
+ </files>
252
+ </Exinent_CustomerActivation>
253
+ </modules>
254
+ </translate>
255
+ <events>
256
+ <!-- The massaction block can't be added in the block abstract event, this needs to be used -->
257
+ <adminhtml_block_html_before>
258
+ <observers>
259
+ <customeractivation>
260
+ <type>model</type>
261
+ <class>customeractivation/observer</class>
262
+ <method>adminhtmlBlockHtmlBefore</method>
263
+ </customeractivation>
264
+ </observers>
265
+ </adminhtml_block_html_before>
266
+
267
+ <!-- Add attribute to grid collection -->
268
+ <eav_collection_abstract_load_before>
269
+ <observers>
270
+ <customeractivation>
271
+ <type>model</type>
272
+ <class>customeractivation/observer</class>
273
+ <method>eavCollectionAbstractLoadBefore</method>
274
+ </customeractivation>
275
+ </observers>
276
+ </eav_collection_abstract_load_before>
277
+
278
+
279
+ </events>
280
+ </adminhtml>
281
+ <phpunit>
282
+ <suite>
283
+ <modules>
284
+ <Exinent_CustomerActivation/>
285
+ </modules>
286
+ </suite>
287
+ </phpunit>
288
+ </config>
app/code/community/Exinent/CustomerActivation/etc/system.xml ADDED
@@ -0,0 +1,383 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+
3
+ <config>
4
+ <sections>
5
+ <customer translate="label" module="customer">
6
+ <groups>
7
+ <customeractivation translate="label" module="customeractivation">
8
+ <label>Customer Activation</label>
9
+ <sort_order>768</sort_order>
10
+ <show_in_default>1</show_in_default>
11
+ <show_in_website>1</show_in_website>
12
+ <show_in_store>1</show_in_store>
13
+ <fields>
14
+ <disable_ext translate="label" module="customeractivation">
15
+ <label>CustomerActivation</label>
16
+ <frontend_type>select</frontend_type>
17
+ <source_model>adminhtml/system_config_source_yesno</source_model>
18
+ <sort_order>10</sort_order>
19
+ <show_in_default>1</show_in_default>
20
+ <show_in_website>1</show_in_website>
21
+ <show_in_store>1</show_in_store>
22
+ </disable_ext>
23
+
24
+ <always_active_in_admin translate="label" module="customeractivation">
25
+ <label>Always enable in admin interface</label>
26
+ <frontend_type>select</frontend_type>
27
+ <source_model>adminhtml/system_config_source_yesno</source_model>
28
+ <sort_order>11</sort_order>
29
+ <show_in_default>1</show_in_default>
30
+ <show_in_website>0</show_in_website>
31
+ <show_in_store>0</show_in_store>
32
+ <comment>If you want to activate accounts created via the admin interface</comment>
33
+ <depends>
34
+ <disable_ext>1</disable_ext>
35
+ </depends>
36
+ </always_active_in_admin>
37
+
38
+ <require_activation_groups>
39
+ <label>Require Activation for Groups</label>
40
+ <frontend_type>multiselect</frontend_type>
41
+ <source_model>customeractivation/adminhtml_system_config_source_customer_group_multiselect</source_model>
42
+ <sort_order>12</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>1</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ </require_activation_groups>
47
+
48
+ <address_field translate="label" module="customeractivation">
49
+ <label>Enable Address Fields on Register Form</label>
50
+ <frontend_type>select</frontend_type>
51
+ <source_model>adminhtml/system_config_source_yesno</source_model>
52
+ <sort_order>13</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ </address_field>
57
+
58
+ <min_qty translate="label" module="customeractivation">
59
+ <label>Minimum Quantity allowed in Quick order Form</label>
60
+ <fontend_type>text</fontend_type>
61
+ <sort_order>14</sort_order>
62
+ <show_in_default>1</show_in_default>
63
+ <show_in_website>1</show_in_website>
64
+ <show_in_store>0</show_in_store>
65
+ </min_qty>
66
+
67
+ <require_aunthenticate_cms>
68
+ <label>Authentication required for pages</label>
69
+ <frontend_type>multiselect</frontend_type>
70
+ <source_model>customeractivation/adminhtml_system_config_source_pages_group_multiselect</source_model>
71
+ <sort_order>15</sort_order>
72
+ <show_in_default>1</show_in_default>
73
+ <show_in_website>1</show_in_website>
74
+ <show_in_store>1</show_in_store>
75
+ </require_aunthenticate_cms>
76
+
77
+ <require_aunthenticate_categories>
78
+ <label>Authentication required for Categories</label>
79
+ <frontend_type>multiselect</frontend_type>
80
+ <source_model>customeractivation/adminhtml_system_config_source_categories_group_multiselect</source_model>
81
+ <sort_order>16</sort_order>
82
+ <show_in_default>1</show_in_default>
83
+ <show_in_website>1</show_in_website>
84
+ <show_in_store>1</show_in_store>
85
+ </require_aunthenticate_categories>
86
+
87
+ <require_aunthenticate_products>
88
+ <label>Authentication required for Products</label>
89
+ <frontend_type>multiselect</frontend_type>
90
+ <source_model>customeractivation/adminhtml_system_config_source_products_group_multiselect</source_model>
91
+ <sort_order>17</sort_order>
92
+ <show_in_default>1</show_in_default>
93
+ <show_in_website>1</show_in_website>
94
+ <show_in_store>1</show_in_store>
95
+ </require_aunthenticate_products>
96
+
97
+ <!-- <price_field translate="label" module="customeractivation">
98
+ <label>Hide Price</label>
99
+ <frontend_type>select</frontend_type>
100
+ <source_model>adminhtml/system_config_source_yesno</source_model>
101
+ <sort_order>18</sort_order>
102
+ <show_in_default>1</show_in_default>
103
+ <show_in_website>1</show_in_website>
104
+ <show_in_store>1</show_in_store>
105
+ </price_field>
106
+
107
+ <price_hide_products>
108
+ <label>Price Hide Products List</label>
109
+ <frontend_type>multiselect</frontend_type>
110
+ <source_model>customeractivation/adminhtml_system_config_source_products_price_multiselect</source_model>
111
+ <sort_order>19</sort_order>
112
+ <show_in_default>1</show_in_default>
113
+ <show_in_website>1</show_in_website>
114
+ <show_in_store>1</show_in_store>
115
+ <depends>
116
+ <price_field>1</price_field>
117
+ </depends>
118
+ </price_hide_products>-->
119
+
120
+ <activation_status_default translate="label" module="customeractivation">
121
+ <label>Activate Wholesaler Accounts by Default</label>
122
+ <frontend_type>select</frontend_type>
123
+ <source_model>adminhtml/system_config_source_yesno</source_model>
124
+ <sort_order>20</sort_order>
125
+ <show_in_default>1</show_in_default>
126
+ <show_in_website>1</show_in_website>
127
+ <show_in_store>1</show_in_store>
128
+ </activation_status_default>
129
+ <date_start>
130
+ <label>Start Date</label>
131
+ <frontend_type>text</frontend_type>
132
+ <frontend_model>customeractivation/adminhtml_system_config_date</frontend_model>
133
+ <sort_order>21</sort_order>
134
+ <show_in_default>1</show_in_default>
135
+ <show_in_website>1</show_in_website>
136
+ <show_in_store>1</show_in_store>
137
+ <depends>
138
+ <activation_status_default>1</activation_status_default>
139
+ </depends>
140
+ </date_start>
141
+
142
+ <date_end>
143
+ <label>End Date</label>
144
+ <frontend_type>text</frontend_type>
145
+ <frontend_model>customeractivation/adminhtml_system_config_date</frontend_model>
146
+ <sort_order>22</sort_order>
147
+ <show_in_default>1</show_in_default>
148
+ <show_in_website>1</show_in_website>
149
+ <show_in_store>1</show_in_store>
150
+ <depends>
151
+ <activation_status_default>1</activation_status_default>
152
+ </depends>
153
+ </date_end>
154
+
155
+
156
+ </fields>
157
+ </customeractivation>
158
+ </groups>
159
+ </customer>
160
+ <carriers translate="label" module="shipping">
161
+ <groups>
162
+ <thirdpartyfedex translate="label">
163
+ <label>3rd Party Fed Ex</label>
164
+ <frontend_type>text</frontend_type>
165
+ <sort_order>2</sort_order>
166
+ <show_in_default>1</show_in_default>
167
+ <show_in_website>1</show_in_website>
168
+ <show_in_store>1</show_in_store>
169
+ <fields>
170
+
171
+ <active translate="label">
172
+ <label>Enabled</label>
173
+ <frontend_type>select</frontend_type>
174
+ <source_model>adminhtml/system_config_source_yesno</source_model>
175
+ <sort_order>1</sort_order>
176
+ <show_in_default>1</show_in_default>
177
+ <show_in_website>1</show_in_website>
178
+ <show_in_store>0</show_in_store>
179
+ </active>
180
+
181
+ <title translate="label">
182
+ <label>Title</label>
183
+ <frontend_type>text</frontend_type>
184
+ <sort_order>2</sort_order>
185
+ <show_in_default>1</show_in_default>
186
+ <show_in_website>1</show_in_website>
187
+ <show_in_store>1</show_in_store>
188
+ </title>
189
+
190
+ <sort_order translate="label">
191
+ <label>Sort Order</label>
192
+ <frontend_type>text</frontend_type>
193
+ <sort_order>100</sort_order>
194
+ <show_in_default>1</show_in_default>
195
+ <show_in_website>1</show_in_website>
196
+ <show_in_store>0</show_in_store>
197
+ </sort_order>
198
+
199
+ <sallowspecific translate="label">
200
+ <label>Ship to Applicable Countries</label>
201
+ <frontend_type>select</frontend_type>
202
+ <sort_order>90</sort_order>
203
+ <frontend_class>shipping-applicable-country</frontend_class>
204
+ <source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
205
+ <show_in_default>1</show_in_default>
206
+ <show_in_website>1</show_in_website>
207
+ <show_in_store>0</show_in_store>
208
+ </sallowspecific>
209
+
210
+ <specificcountry translate="label">
211
+ <label>Ship to Specific Countries</label>
212
+ <frontend_type>multiselect</frontend_type>
213
+ <sort_order>91</sort_order>
214
+ <source_model>adminhtml/system_config_source_country</source_model>
215
+ <show_in_default>1</show_in_default>
216
+ <show_in_website>1</show_in_website>
217
+ <show_in_store>0</show_in_store>
218
+ <can_be_empty>1</can_be_empty>
219
+ </specificcountry>
220
+
221
+ </fields>
222
+ </thirdpartyfedex>
223
+
224
+ <thirdpartyups translate="label">
225
+ <label>3rd Party UPS</label>
226
+ <frontend_type>text</frontend_type>
227
+ <sort_order>2</sort_order>
228
+ <show_in_default>1</show_in_default>
229
+ <show_in_website>1</show_in_website>
230
+ <show_in_store>1</show_in_store>
231
+ <fields>
232
+
233
+ <active translate="label">
234
+ <label>Enabled</label>
235
+ <frontend_type>select</frontend_type>
236
+ <source_model>adminhtml/system_config_source_yesno</source_model>
237
+ <sort_order>1</sort_order>
238
+ <show_in_default>1</show_in_default>
239
+ <show_in_website>1</show_in_website>
240
+ <show_in_store>0</show_in_store>
241
+ </active>
242
+
243
+ <title translate="label">
244
+ <label>Title</label>
245
+ <frontend_type>text</frontend_type>
246
+ <sort_order>2</sort_order>
247
+ <show_in_default>1</show_in_default>
248
+ <show_in_website>1</show_in_website>
249
+ <show_in_store>1</show_in_store>
250
+ </title>
251
+
252
+ <sort_order translate="label">
253
+ <label>Sort Order</label>
254
+ <frontend_type>text</frontend_type>
255
+ <sort_order>100</sort_order>
256
+ <show_in_default>1</show_in_default>
257
+ <show_in_website>1</show_in_website>
258
+ <show_in_store>0</show_in_store>
259
+ </sort_order>
260
+
261
+ <sallowspecific translate="label">
262
+ <label>Ship to Applicable Countries</label>
263
+ <frontend_type>select</frontend_type>
264
+ <sort_order>90</sort_order>
265
+ <frontend_class>shipping-applicable-country</frontend_class>
266
+ <source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
267
+ <show_in_default>1</show_in_default>
268
+ <show_in_website>1</show_in_website>
269
+ <show_in_store>0</show_in_store>
270
+ </sallowspecific>
271
+
272
+ <specificcountry translate="label">
273
+ <label>Ship to Specific Countries</label>
274
+ <frontend_type>multiselect</frontend_type>
275
+ <sort_order>91</sort_order>
276
+ <source_model>adminhtml/system_config_source_country</source_model>
277
+ <show_in_default>1</show_in_default>
278
+ <show_in_website>1</show_in_website>
279
+ <show_in_store>0</show_in_store>
280
+ <can_be_empty>1</can_be_empty>
281
+ </specificcountry>
282
+
283
+ </fields>
284
+ </thirdpartyups>
285
+ </groups>
286
+ </carriers>
287
+
288
+ <payment>
289
+ <groups>
290
+ <net30 translate="label" module="paygate">
291
+ <!-- will have title 'New Module' -->
292
+ <label>NET 30</label>
293
+ <!-- position between other payment methods -->
294
+ <sort_order>670</sort_order>
295
+ <!-- do not show this configuration options in store scope -->
296
+ <show_in_default>1</show_in_default>
297
+ <show_in_website>1</show_in_website>
298
+ <show_in_store>0</show_in_store>
299
+ <fields>
300
+ <!-- is this payment method active for the website? -->
301
+ <active translate="label">
302
+ <!-- label for the field -->
303
+ <label>Enabled</label>
304
+ <!-- input type for configuration value -->
305
+ <frontend_type>select</frontend_type>
306
+ <!-- model to take the option values from -->
307
+ <source_model>adminhtml/system_config_source_yesno</source_model>
308
+ <!-- field position -->
309
+ <sort_order>1</sort_order>
310
+ <!-- do not show this field in store scope -->
311
+ <show_in_default>1</show_in_default>
312
+ <show_in_website>1</show_in_website>
313
+ <show_in_store>0</show_in_store>
314
+ </active>
315
+ <order_status translate="label">
316
+ <label>New order status</label>
317
+ <frontend_type>select</frontend_type>
318
+ <source_model>adminhtml/system_config_source_order_status_new</source_model>
319
+ <sort_order>4</sort_order>
320
+ <show_in_default>1</show_in_default>
321
+ <show_in_website>1</show_in_website>
322
+ <show_in_store>0</show_in_store>
323
+ </order_status>
324
+ <title translate="label">
325
+ <label>Title</label>
326
+ <frontend_type>text</frontend_type>
327
+ <sort_order>2</sort_order>
328
+ <show_in_default>1</show_in_default>
329
+ <show_in_website>1</show_in_website>
330
+ <show_in_store>0</show_in_store>
331
+ </title>
332
+ </fields>
333
+ </net30>
334
+
335
+ <net15 translate="label" module="paygate">
336
+ <!-- will have title 'New Module' -->
337
+ <label>NET 15</label>
338
+ <!-- position between other payment methods -->
339
+ <sort_order>670</sort_order>
340
+ <!-- do not show this configuration options in store scope -->
341
+ <show_in_default>1</show_in_default>
342
+ <show_in_website>1</show_in_website>
343
+ <show_in_store>0</show_in_store>
344
+ <fields>
345
+ <!-- is this payment method active for the website? -->
346
+ <active translate="label">
347
+ <!-- label for the field -->
348
+ <label>Enabled</label>
349
+ <!-- input type for configuration value -->
350
+ <frontend_type>select</frontend_type>
351
+ <!-- model to take the option values from -->
352
+ <source_model>adminhtml/system_config_source_yesno</source_model>
353
+ <!-- field position -->
354
+ <sort_order>1</sort_order>
355
+ <!-- do not show this field in store scope -->
356
+ <show_in_default>1</show_in_default>
357
+ <show_in_website>1</show_in_website>
358
+ <show_in_store>0</show_in_store>
359
+ </active>
360
+ <order_status translate="label">
361
+ <label>New order status</label>
362
+ <frontend_type>select</frontend_type>
363
+ <source_model>adminhtml/system_config_source_order_status_new</source_model>
364
+ <sort_order>4</sort_order>
365
+ <show_in_default>1</show_in_default>
366
+ <show_in_website>1</show_in_website>
367
+ <show_in_store>0</show_in_store>
368
+ </order_status>
369
+ <title translate="label">
370
+ <label>Title</label>
371
+ <frontend_type>text</frontend_type>
372
+ <sort_order>2</sort_order>
373
+ <show_in_default>1</show_in_default>
374
+ <show_in_website>1</show_in_website>
375
+ <show_in_store>0</show_in_store>
376
+ </title>
377
+ </fields>
378
+ </net15>
379
+
380
+ </groups>
381
+ </payment>
382
+ </sections>
383
+ </config>
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/install-0.1.0.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+ $installer->startSetup();
5
+ $installer->run("
6
+ ALTER TABLE `{$installer->getTable('sales/quote_payment')}` ADD `cancel_date` VARCHAR( 255 ) NOT NULL ;
7
+ ALTER TABLE `{$installer->getTable('sales/order_payment')}` ADD `cancel_date` VARCHAR( 255 ) NOT NULL ;
8
+ ");
9
+ $installer->endSetup();
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-install-0.1.0.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $this->startSetup();
4
+
5
+ $this->addAttribute('customer', 'customer_activated', array(
6
+ 'type' => 'varchar',
7
+ 'input' => 'text',
8
+ 'label' => 'Is activated',
9
+ 'global' => 1,
10
+ 'visible' => 1,
11
+ 'required' => 0,
12
+ 'user_defined' => 1,
13
+ 'visible_on_front' => 0,
14
+ ));
15
+
16
+ $this->endSetup();
17
+
18
+
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.2.3-0.2.4.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $this->startSetup();
4
+
5
+ $this->updateAttribute('customer', 'customer_activated', 'frontend_input', 'select');
6
+ $this->updateAttribute('customer', 'customer_activated', 'source_model', 'customeractivation/resource_attribute_source_customeractivation');
7
+
8
+ $this->endSetup();
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.2.4-0.2.5.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $this->startSetup();
4
+
5
+ $customer = Mage::getModel('customer/customer');
6
+ $attrSetId = $customer->getResource()->getEntityType()->getDefaultAttributeSetId();
7
+
8
+ $this->addAttributeToSet('customer', $attrSetId, 'General', 'customer_activated');
9
+
10
+ $this->endSetup();
11
+
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.2.7-0.2.8.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+ if (version_compare(Mage::getVersion(), '1.4.2', '>=')) {
8
+ Mage::getSingleton('eav/config')
9
+ ->getAttribute('customer', 'customer_activated')
10
+ ->setData('used_in_forms', array('adminhtml_customer'))
11
+ ->save();
12
+ }
13
+
14
+ $installer->endSetup();
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.2.8-0.2.9.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+ $installer->startSetup();
5
+
6
+
7
+ $installer->addAttribute("customer", "paymentmethods", array(
8
+ "type" => "varchar",
9
+ "backend" => "",
10
+ "label" => "Payment Methods",
11
+ "input" => "multiselect",
12
+ "source" => "customeractivation/resource_attribute_source_Customerpayment",
13
+ "backend" => "",
14
+ "user_defined" => "1",
15
+ "visible" => true,
16
+ "required" => false,
17
+ "default" => "",
18
+ "frontend" => "",
19
+ "unique" => false,
20
+ "note" => ""
21
+ ));
22
+
23
+ $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "paymentmethods");
24
+
25
+
26
+ $used_in_forms = array();
27
+
28
+ $used_in_forms[] = "adminhtml_customer";
29
+ $attribute->setData("used_in_forms", $used_in_forms)
30
+ ->setData("is_used_for_customer_segment", true)
31
+ ->setData("is_system", 0)
32
+ ->setData("is_user_defined", 1)
33
+ ->setData("is_visible", 1)
34
+ ->setData("sort_order", 100)
35
+ ;
36
+ $attribute->save();
37
+
38
+
39
+ $installer->addAttribute("customer", "logo_image", array(
40
+ "type" => "varchar",
41
+ "backend" => "",
42
+ "label" => "Logo Image",
43
+ "input" => "text",
44
+ "source" => "",
45
+ "visible" => true,
46
+ "required" => false,
47
+ "default" => "",
48
+ "frontend" => "",
49
+ "user_defined" => "0",
50
+ "unique" => false,
51
+ "note" => "Logo Image"
52
+ ));
53
+
54
+ $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "logo_image");
55
+
56
+
57
+ $used_in_forms = array();
58
+
59
+ $used_in_forms[] = "adminhtml_customer";
60
+ $attribute->setData("used_in_forms", $used_in_forms)
61
+ ->setData("is_used_for_customer_segment", true)
62
+ ->setData("is_system", 0)
63
+ ->setData("is_user_defined", 0)
64
+ ->setData("is_visible", 1)
65
+ ->setData("sort_order", 100)
66
+ ;
67
+ $attribute->save();
68
+ $installer->endSetup();
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.2.9-0.3.0.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*$installer = new Mage_Sales_Model_Resource_Setup('core_setup');
3
+ $installer ->addAttribute('order', 'rep_name', array(
4
+ 'label' => 'Rep Name',
5
+ 'type' => 'text',
6
+ 'input' => 'text',
7
+ 'visible' => true,
8
+ 'required' => false,
9
+ ));
10
+ $installer->endSetup();*/
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.3.0-0.3.1.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*$installer = $this;
3
+ $installer->startSetup();
4
+ Mage::register('isSecureArea', 1);
5
+
6
+ // Force the store to be admin
7
+ Mage::app()->setUpdateMode(false);
8
+ Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
9
+
10
+ $category = Mage::getModel('catalog/category');
11
+ $category->setPath('1/2') // set parent to be root category
12
+ ->setStoreId(Mage_Core_Model_App::ADMIN_STORE_ID)
13
+ ->setName('Wholesale')
14
+ ->setUrlKey('wholesale')
15
+ ->setDescription('Description')
16
+ ->setIsActive(1)
17
+ ->setIsAnchor(1)
18
+ ->setIncludeInMenu(1)
19
+ ->setInfinitescroll(1)
20
+ ->setDisplayMode('PRODUCTS')
21
+ ->save();
22
+ $installer->endSetup();*/
23
+
24
+ ?>
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.3.1-0.3.2.php ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+ $installer->startSetup();
5
+ $installer->addAttribute("customer", "store_type", array(
6
+ "type" => "varchar",
7
+ "backend" => "",
8
+ "label" => "Store Type",
9
+ "input" => "select",
10
+ "source" => "customeractivation/resource_attribute_source_StoreType",
11
+ "visible" => true,
12
+ "required" => false,
13
+ "default" => "",
14
+ "frontend" => "",
15
+ "user_defined" => "1",
16
+ "unique" => false,
17
+ "note" => "Store Type"
18
+ ));
19
+
20
+ $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "store_type");
21
+
22
+
23
+ $used_in_forms = array();
24
+
25
+ $used_in_forms[] = "adminhtml_customer";
26
+ $attribute->setData("used_in_forms", $used_in_forms)
27
+ ->setData("is_used_for_customer_segment", true)
28
+ ->setData("is_system", 0)
29
+ ->setData("is_user_defined", 1)
30
+ ->setData("is_visible", 1)
31
+ ->setData("sort_order", 100)
32
+ ;
33
+ $attribute->save();
34
+
35
+
36
+ $installer->addAttribute("customer", "iswebsite_live", array(
37
+ "type" => "varchar",
38
+ "backend" => "",
39
+ "label" => "Iswebsite Live",
40
+ "input" => "select",
41
+ "source" => "customeractivation/resource_attribute_source_Iswebsitelive",
42
+ "visible" => true,
43
+ "required" => false,
44
+ "default" => "",
45
+ "frontend" => "",
46
+ "user_defined" => "1",
47
+ "unique" => false,
48
+ "note" => "Iswebsite Live"
49
+ ));
50
+
51
+ $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "iswebsite_live");
52
+
53
+
54
+ $used_in_forms = array();
55
+
56
+ $used_in_forms[] = "adminhtml_customer";
57
+ $attribute->setData("used_in_forms", $used_in_forms)
58
+ ->setData("is_used_for_customer_segment", true)
59
+ ->setData("is_system", 0)
60
+ ->setData("is_user_defined", 1)
61
+ ->setData("is_visible", 1)
62
+ ->setData("sort_order", 100)
63
+ ;
64
+ $attribute->save();
65
+
66
+ $installer->addAttribute("customer", "date_founded", array(
67
+ "type" => "varchar",
68
+ "backend" => "",
69
+ "label" => "Date Founded",
70
+ "input" => "text",
71
+ "source" => "",
72
+ "visible" => true,
73
+ "required" => false,
74
+ "default" => "",
75
+ "frontend" => "",
76
+ "user_defined" => "1",
77
+ "unique" => false,
78
+ "note" => "Date Founded"
79
+ ));
80
+
81
+ $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "date_founded");
82
+
83
+
84
+ $used_in_forms = array();
85
+
86
+ $used_in_forms[] = "adminhtml_customer";
87
+ $attribute->setData("used_in_forms", $used_in_forms)
88
+ ->setData("is_used_for_customer_segment", true)
89
+ ->setData("is_system", 0)
90
+ ->setData("is_user_defined", 1)
91
+ ->setData("is_visible", 1)
92
+ ->setData("sort_order", 100)
93
+ ;
94
+ $attribute->save();
95
+
96
+
97
+ $installer->addAttribute("customer", "accountspayable_email", array(
98
+ "type" => "varchar",
99
+ "backend" => "",
100
+ "label" => "Accounts Payable Email Address",
101
+ "input" => "text",
102
+ "source" => "",
103
+ "visible" => true,
104
+ "required" => false,
105
+ "default" => "",
106
+ "frontend" => "",
107
+ "user_defined" => "1",
108
+ "unique" => false,
109
+ "note" => "Accounts Payable Email Address"
110
+ ));
111
+
112
+ $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "accountspayable_email");
113
+
114
+
115
+ $used_in_forms = array();
116
+
117
+ $used_in_forms[] = "adminhtml_customer";
118
+ $attribute->setData("used_in_forms", $used_in_forms)
119
+ ->setData("is_used_for_customer_segment", true)
120
+ ->setData("is_system", 0)
121
+ ->setData("is_user_defined", 1)
122
+ ->setData("is_visible", 1)
123
+ ->setData("sort_order", 100)
124
+ ;
125
+ $attribute->save();
126
+
127
+ $installer->addAttribute("customer", "website_url", array(
128
+ "type" => "varchar",
129
+ "backend" => "",
130
+ "label" => "Website URL",
131
+ "input" => "text",
132
+ "source" => "",
133
+ "visible" => true,
134
+ "required" => false,
135
+ "default" => "",
136
+ "frontend" => "",
137
+ "user_defined" => "1",
138
+ "unique" => false,
139
+ "note" => "Website URL"
140
+ ));
141
+
142
+ $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "website_url");
143
+
144
+
145
+ $used_in_forms = array();
146
+
147
+ $used_in_forms[] = "adminhtml_customer";
148
+ $attribute->setData("used_in_forms", $used_in_forms)
149
+ ->setData("is_used_for_customer_segment", true)
150
+ ->setData("is_system", 0)
151
+ ->setData("is_user_defined", 1)
152
+ ->setData("is_visible", 1)
153
+ ->setData("sort_order", 100)
154
+ ;
155
+ $attribute->save();
156
+ ?>
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.3.2-0.3.3.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*$installer = $this;
3
+ $installer->startSetup();
4
+ $installer->getConnection()->addColumn(
5
+ $this->getTable('sales/order_grid'),
6
+ 'rep_name',
7
+ "varchar(255) DEFAULT NULL"
8
+ );
9
+
10
+ $installer->getConnection()->addKey(
11
+ $this->getTable('sales/order_grid'),
12
+ 'rep_name',
13
+ 'rep_name');
14
+ $installer->endSetup();*/
app/code/community/Exinent/CustomerActivation/sql/customeractivation_setup/mysql4-upgrade-0.3.3-0.3.4.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+ $installer->startSetup();
5
+
6
+ $installer->addAttribute("customer", "shippingmethods", array(
7
+ "type" => "varchar",
8
+ "backend" => "",
9
+ "label" => "Shipping Methods",
10
+ "input" => "multiselect",
11
+ "source" => "customeractivation/resource_attribute_source_Customershippingmethods",
12
+ "backend" => "",
13
+ "user_defined" => "1",
14
+ "visible" => true,
15
+ "required" => false,
16
+ "default" => "",
17
+ "frontend" => "",
18
+ "unique" => false,
19
+ "note" => ""
20
+ ));
21
+
22
+ $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "shippingmethods");
23
+
24
+ $used_in_forms = array();
25
+ $used_in_forms[] = "adminhtml_customer";
26
+ $attribute->setData("used_in_forms", $used_in_forms)
27
+ ->setData("is_used_for_customer_segment", true)
28
+ ->setData("is_system", 0)
29
+ ->setData("is_user_defined", 1)
30
+ ->setData("is_visible", 1)
31
+ ->setData("sort_order", 100);
32
+
33
+ $attribute->save();
34
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/customerActivation.xml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+
4
+ <adminhtml_customer_edit>
5
+ <reference name="customer_edit_tabs">
6
+ <action method="addTab">
7
+ <name>customer_edit_tab_customerimages</name>
8
+ <block>customeractivation/adminhtml_customer_edit_tab_customerimages</block>
9
+ </action>
10
+ </reference>
11
+ </adminhtml_customer_edit>
12
+
13
+ </layout>
app/design/adminhtml/default/default/template/customerActivation/customerActivation.phtml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $customerId = $this->getRequest()->getParam('id');
3
+ $customerData = Mage::getSingleton('customer/customer')->load($customerId);
4
+ ?>
5
+ <?php $_element = $this->getElement() ?>
6
+ <?php echo $_element->getFieldsetContainerId(); ?>
7
+ <?php if ($_element->getFieldsetContainerId()): ?>
8
+
9
+ <div id="<?php echo $_element->getFieldsetContainerId(); ?>">
10
+ <?php endif; ?>
11
+ <?php if ($_element->getLegend()): ?>
12
+ <div class="entry-edit-head">
13
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $_element->getLegend() ?></h4>
14
+ <div class="form-buttons"><?php echo $_element->getHeaderBar() ?></div>
15
+ </div>
16
+ <?php endif; ?>
17
+ <?php if (!$_element->getNoContainer()): ?>
18
+
19
+ <div class="fieldset <?php echo $_element->getClass() ?>" id="<?php echo $_element->getHtmlId() ?>">
20
+ <?php endif; ?>
21
+ <div class="hor-scroll">
22
+ <?php if ($_element->getComment()): ?>
23
+ <p class="comment"><?php echo $this->escapeHtml($_element->getComment()) ?></p>
24
+ <?php endif; ?>
25
+ <?php if ($_element->hasHtmlContent()): ?>
26
+ <?php echo $_element->getHtmlContent(); ?>
27
+ <?php else: ?>
28
+ <table cellspacing="0" class="<?php echo $_element->hasTableClass() ? $_element->getTableClass() : 'form-list' ?>">
29
+ <?php $img = $_element->getFieldsetContainerId(); ?>
30
+ <tbody>
31
+ <?php echo $_element->getChildrenHtml(); ?>
32
+
33
+ <?php if ($_element->getHtmlId() == '_accountbase_fieldset'): ?>
34
+
35
+ <tr>
36
+ <td></td>
37
+ <td>
38
+ <?php if ($customerData->getLogoImage() != ''): ?>
39
+ <a target="_blank" href ="<?php echo Mage::getBaseUrl('media') . $customerData->getLogoImage() ?>"><img src = "<?php echo Mage::getBaseUrl('media') . $customerData->getLogoImage() ?>" width="20%" height="20%"/></a>
40
+ <?php endif; ?>
41
+ </td>
42
+ </tr>
43
+ <?php endif; ?>
44
+
45
+
46
+ </tbody>
47
+ </table>
48
+ <?php endif; ?>
49
+ </div>
50
+
51
+ <?php echo $_element->getSubFieldsetHtml() ?>
52
+ <?php if (!$_element->getNoContainer()): ?>
53
+
54
+ </div>
55
+ <?php endif; ?>
56
+ <?php if ($_element->getFieldsetContainerId()): ?>
57
+ </div>
58
+ <?php endif; ?>
app/design/adminhtml/default/default/template/customerActivation/customerImages.phtml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $customerData = $this->getCustomerimages();
3
+ ?>
4
+ <div id="customer_info_tabs_customer_edit_tab_action_content">
5
+
6
+ <div class="entry-edit">
7
+ <div class="entry-edit-head">
8
+ <h4 class="icon-head head-edit-form fieldset-legend">Customer Logo</h4>
9
+ </div>
10
+ <div id="group_fields4" class="fieldset fieldset-wide">
11
+ <div class="hor-scroll">
12
+ <table class="form-list" cellspacing="0">
13
+ <tbody>
14
+ <tr>
15
+
16
+ <td>
17
+ <?php if ($customerData->getLogoImage() != ''): ?>
18
+ <a target="_blank" href ="<?php echo Mage::getBaseUrl('media') . $customerData->getLogoImage() ?>"><img src = "<?php echo Mage::getBaseUrl('media') . $customerData->getLogoImage() ?>"/></a>
19
+ <?php endif; ?>
20
+ </td>
21
+ </tr>
22
+ </tbody>
23
+ </table>
24
+ </div>
25
+ </div>
26
+
27
+ </div>
28
+ <?php if ($customerData->getNet30Reference() != ''): ?>
29
+ <div class="entry-edit">
30
+ <div class="entry-edit-head">
31
+ <h4 class="icon-head head-edit-form fieldset-legend">Net30 Reference</h4>
32
+ </div>
33
+ <div id="group_fields4" class="fieldset fieldset-wide">
34
+ <div class="hor-scroll">
35
+ <table class="form-list" cellspacing="0">
36
+ <tbody>
37
+ <tr>
38
+
39
+ <td>
40
+
41
+ <a target="_blank" href ="<?php echo Mage::getBaseUrl('media') . $customerData->getNet30Reference() ?>"><img src = "<?php echo Mage::getBaseUrl('media') . $customerData->getNet30Reference() ?>" width="100px" height="100px"/></a>
42
+
43
+ </td>
44
+ </tr>
45
+ </tbody>
46
+ </table>
47
+ </div>
48
+ </div>
49
+
50
+ </div>
51
+ <?php endif; ?>
52
+ </div>
app/design/adminhtml/default/default/template/customerActivation/info/purchaseorder.phtml ADDED
@@ -0,0 +1 @@
 
1
+ <p><?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?></p>
app/design/frontend/base/default/etc/theme.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <theme>
29
+ <parent />
30
+ </theme>
app/design/frontend/base/default/etc/widget.xml ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <widgets>
29
+ <new_products>
30
+ <parameters>
31
+ <template>
32
+ <values>
33
+ <list_default translate="label">
34
+ <value>catalog/product/widget/new/column/new_default_list.phtml</value>
35
+ <label>New Products Images and Names Template</label>
36
+ </list_default>
37
+ <list_names translate="label">
38
+ <value>catalog/product/widget/new/column/new_names_list.phtml</value>
39
+ <label>New Products Names Only Template</label>
40
+ </list_names>
41
+ <list_images translate="label">
42
+ <value>catalog/product/widget/new/column/new_images_list.phtml</value>
43
+ <label>New Products Images Only Template</label>
44
+ </list_images>
45
+ </values>
46
+ </template>
47
+ </parameters>
48
+ <supported_blocks>
49
+ <left_column>
50
+ <block_name>left</block_name>
51
+ <template>
52
+ <default>list_default</default>
53
+ <names_only>list_names</names_only>
54
+ <images_only>list_images</images_only>
55
+ </template>
56
+ </left_column>
57
+ <main_content>
58
+ <block_name>content</block_name>
59
+ <template>
60
+ <grid>default</grid>
61
+ <list>list</list>
62
+ </template>
63
+ </main_content>
64
+ <right_column>
65
+ <block_name>right</block_name>
66
+ <template>
67
+ <default>list_default</default>
68
+ <names_only>list_names</names_only>
69
+ <images_only>list_images</images_only>
70
+ </template>
71
+ </right_column>
72
+ </supported_blocks>
73
+ </new_products>
74
+
75
+ <recently_viewed>
76
+ <parameters>
77
+ <template>
78
+ <values>
79
+ <list_default translate="label">
80
+ <value>reports/widget/viewed/column/viewed_default_list.phtml</value>
81
+ <label>Viewed Products Images and Names Template</label>
82
+ </list_default>
83
+ <list_names translate="label">
84
+ <value>reports/widget/viewed/column/viewed_names_list.phtml</value>
85
+ <label>Viewed Products Names Only Template</label>
86
+ </list_names>
87
+ <list_images translate="label">
88
+ <value>reports/widget/viewed/column/viewed_images_list.phtml</value>
89
+ <label>Viewed Products Images Only Template</label>
90
+ </list_images>
91
+ </values>
92
+ </template>
93
+ </parameters>
94
+ <supported_blocks>
95
+ <left_column>
96
+ <block_name>left</block_name>
97
+ <template>
98
+ <default>list_default</default>
99
+ <names_only>list_names</names_only>
100
+ <images_only>list_images</images_only>
101
+ </template>
102
+ </left_column>
103
+ <main_content>
104
+ <block_name>content</block_name>
105
+ <template>
106
+ <grid>default</grid>
107
+ <list>list</list>
108
+ </template>
109
+ </main_content>
110
+ <right_column>
111
+ <block_name>right</block_name>
112
+ <template>
113
+ <default>list_default</default>
114
+ <names_only>list_names</names_only>
115
+ <images_only>list_images</images_only>
116
+ </template>
117
+ </right_column>
118
+ </supported_blocks>
119
+ </recently_viewed>
120
+
121
+ <recently_compared>
122
+ <parameters>
123
+ <template>
124
+ <values>
125
+ <list_default translate="label">
126
+ <value>reports/widget/compared/column/compared_default_list.phtml</value>
127
+ <label>Compared Products Images and Names Template</label>
128
+ </list_default>
129
+ <list_names translate="label">
130
+ <value>reports/widget/compared/column/compared_names_list.phtml</value>
131
+ <label>Compared Product Names Only Template</label>
132
+ </list_names>
133
+ <list_images translate="label">
134
+ <value>reports/widget/compared/column/compared_images_list.phtml</value>
135
+ <label>Compared Product Images Only Template</label>
136
+ </list_images>
137
+ </values>
138
+ </template>
139
+ </parameters>
140
+ <supported_blocks>
141
+ <left_column>
142
+ <block_name>left</block_name>
143
+ <template>
144
+ <default>list_default</default>
145
+ <names_only>list_names</names_only>
146
+ <images_only>list_images</images_only>
147
+ </template>
148
+ </left_column>
149
+ <main_content>
150
+ <block_name>content</block_name>
151
+ <template>
152
+ <grid>default</grid>
153
+ <list>list</list>
154
+ </template>
155
+ </main_content>
156
+ <right_column>
157
+ <block_name>right</block_name>
158
+ <template>
159
+ <default>list_default</default>
160
+ <names_only>list_names</names_only>
161
+ <images_only>list_images</images_only>
162
+ </template>
163
+ </right_column>
164
+ </supported_blocks>
165
+ </recently_compared>
166
+ </widgets>
app/design/frontend/base/default/layout/authorizenet.xml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <checkout_onepage_index>
31
+ <reference name="head">
32
+ <action method="addJs"><file>mage/directpost.js</file></action>
33
+ </reference>
34
+ </checkout_onepage_index>
35
+ <checkout_onepage_review>
36
+ <reference name="checkout.onepage.review.info.items.after">
37
+ <block type="directpost/form" name="payment.form.directpost" template="authorizenet/directpost/form.phtml">
38
+ <action method="setMethodInfo"></action>
39
+ </block>
40
+ </reference>
41
+ </checkout_onepage_review>
42
+ </layout>
app/design/frontend/base/default/layout/bml.xml ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <cms_index_index>
31
+ <reference name="top.container">
32
+ <block type="paypal/bml_banners" name="bml.center.logo" template="paypal/bml.phtml">
33
+ <action method="setSection"><section>homepage</section></action>
34
+ <action method="setPosition"><position>0</position></action>
35
+ </block>
36
+ </reference>
37
+ <reference name="right">
38
+ <block type="paypal/bml_banners" name="bml.right.logo" template="paypal/bml.phtml">
39
+ <action method="setSection"><section>homepage</section></action>
40
+ <action method="setPosition"><position>1</position></action>
41
+ </block>
42
+ </reference>
43
+ </cms_index_index>
44
+
45
+ <cms_index_defaultindex>
46
+ <reference name="top.container">
47
+ <block type="paypal/bml_banners" name="bml.center.logo" template="paypal/bml.phtml">
48
+ <action method="setSection"><section>homepage</section></action>
49
+ <action method="setPosition"><position>0</position></action>
50
+ </block>
51
+ </reference>
52
+ <reference name="right">
53
+ <block type="paypal/bml_banners" name="bml.right.logo" template="paypal/bml.phtml">
54
+ <action method="setSection"><section>homepage</section></action>
55
+ <action method="setPosition"><position>1</position></action>
56
+ </block>
57
+ </reference>
58
+ </cms_index_defaultindex>
59
+
60
+ <catalog_category_default>
61
+ <reference name="top.container">
62
+ <block type="paypal/bml_banners" name="bml.center.logo" template="paypal/bml.phtml">
63
+ <action method="setSection"><section>categorypage</section></action>
64
+ <action method="setPosition"><position>0</position></action>
65
+ </block>
66
+ </reference>
67
+ <reference name="right">
68
+ <block type="paypal/bml_banners" name="bml.right.logo" template="paypal/bml.phtml">
69
+ <action method="setSection"><section>categorypage</section></action>
70
+ <action method="setPosition"><position>1</position></action>
71
+ </block>
72
+ </reference>
73
+ </catalog_category_default>
74
+
75
+ <catalog_category_layered>
76
+ <reference name="top.container">
77
+ <block type="paypal/bml_banners" name="bml.center.logo" template="paypal/bml.phtml">
78
+ <action method="setSection"><section>categorypage</section></action>
79
+ <action method="setPosition"><position>0</position></action>
80
+ </block>
81
+ </reference>
82
+ <reference name="right">
83
+ <block type="paypal/bml_banners" name="bml.right.logo" template="paypal/bml.phtml">
84
+ <action method="setSection"><section>categorypage</section></action>
85
+ <action method="setPosition"><position>1</position></action>
86
+ </block>
87
+
88
+ </reference>
89
+ </catalog_category_layered>
90
+
91
+ <catalog_product_view>
92
+ <reference name="top.container">
93
+ <block type="paypal/bml_banners" name="bml.center.logo" template="paypal/bml.phtml">
94
+ <action method="setSection"><section>productpage</section></action>
95
+ <action method="setPosition"><position>0</position></action>
96
+ </block>
97
+ </reference>
98
+ <reference name="product.info.addtocart">
99
+ <block type="paypal/bml_banners" name="bml.right.logo" after="product.info.addtocart.paypal" template="paypal/bml.phtml">
100
+ <action method="setSection"><section>productpage</section></action>
101
+ <action method="setPosition"><position>1</position></action>
102
+ </block>
103
+ </reference>
104
+ </catalog_product_view>
105
+
106
+ <checkout_cart_index>
107
+ <reference name="top.container">
108
+ <block type="paypal/bml_banners" name="bml.center.logo" template="paypal/bml.phtml">
109
+ <action method="setSection"><section>checkout</section></action>
110
+ <action method="setPosition"><position>0</position></action>
111
+ </block>
112
+ </reference>
113
+ <reference name="checkout.cart.methods">
114
+ <block type="paypal/bml_banners" name="bml.right.logo" after="checkout.cart.methods.onepage.bottom" template="paypal/bml.phtml">
115
+ <action method="setSection"><section>checkout</section></action>
116
+ <action method="setPosition"><position>1</position></action>
117
+ </block>
118
+ </reference>
119
+ </checkout_cart_index>
120
+
121
+ <checkout_onepage_index>
122
+ <reference name="top.container">
123
+ <block type="paypal/bml_banners" name="bml.center.logo" template="paypal/bml.phtml">
124
+ <action method="setSection"><section>checkout</section></action>
125
+ <action method="setPosition"><position>0</position></action>
126
+ </block>
127
+ </reference>
128
+ </checkout_onepage_index>
129
+ </layout>
app/design/frontend/base/default/layout/bundle.xml ADDED
@@ -0,0 +1,380 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Adding custom product price block
33
+ -->
34
+
35
+ <catalog_category_default>
36
+ <reference name="product_list">
37
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
38
+ </reference>
39
+ </catalog_category_default>
40
+
41
+ <catalog_category_view>
42
+ <reference name="product_list">
43
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
44
+ </reference>
45
+ </catalog_category_view>
46
+
47
+ <catalog_category_layered>
48
+ <reference name="product_list">
49
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
50
+ </reference>
51
+ </catalog_category_layered>
52
+
53
+ <catalog_product_compare_index>
54
+ <reference name="catalog.compare.list">
55
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
56
+ </reference>
57
+ </catalog_product_compare_index>
58
+
59
+ <catalogsearch_result_index>
60
+ <reference name="search_result_list">
61
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
62
+ </reference>
63
+ </catalogsearch_result_index>
64
+
65
+ <catalogsearch_advanced_result>
66
+ <reference name="search_result_list">
67
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
68
+ </reference>
69
+ </catalogsearch_advanced_result>
70
+
71
+ <tag_product_list>
72
+ <reference name="search_result_list">
73
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
74
+ </reference>
75
+ </tag_product_list>
76
+
77
+ <tag_customer_view>
78
+ <reference name="customer_view">
79
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
80
+ </reference>
81
+ </tag_customer_view>
82
+
83
+ <default>
84
+ <reference name="cart_sidebar">
85
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
86
+ </reference>
87
+ <reference name="wishlist_sidebar">
88
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
89
+ </reference>
90
+ <reference name="catalog_product_price_template">
91
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
92
+ </reference>
93
+ </default>
94
+
95
+ <catalog_product_view>
96
+ <reference name="catalog.product.related">
97
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
98
+ </reference>
99
+ </catalog_product_view>
100
+
101
+ <!--
102
+ Partof block for simple products
103
+ -->
104
+
105
+ <PRODUCT_TYPE_simple>
106
+ <!--
107
+ <reference name="product.info.additional">
108
+
109
+ <block type="bundle/catalog_product_list_partof" before="-" name="product.info.partof" as="partof_products" template="bundle/catalog/product/list/partof.phtml">
110
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
111
+ </block>
112
+ -->
113
+ <reference name="product.info.upsell">
114
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
115
+ <action method="setItemLimit"><type>bundle</type><limit>4</limit></action>
116
+ </reference>
117
+ </PRODUCT_TYPE_simple>
118
+
119
+ <!--
120
+ Shopping cart item renderer (sidebar)
121
+ -->
122
+
123
+ <customer_account>
124
+ <reference name="cart_sidebar">
125
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
126
+ </reference>
127
+ </customer_account>
128
+
129
+ <!--
130
+ Shopping cart item renderer
131
+ -->
132
+
133
+ <checkout_cart_index>
134
+ <reference name="checkout.cart">
135
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
136
+ </reference>
137
+ <reference name="checkout.cart.crosssell">
138
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
139
+ </reference>
140
+ </checkout_cart_index>
141
+
142
+ <!--
143
+ Onepage Checkout Review Page
144
+ -->
145
+
146
+ <checkout_onepage_review>
147
+ <reference name="root">
148
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
149
+ </reference>
150
+ </checkout_onepage_review>
151
+
152
+ <checkout_multishipping_addresses>
153
+ <reference name="checkout_addresses">
154
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
155
+ </reference>
156
+ </checkout_multishipping_addresses>
157
+
158
+ <checkout_multishipping_shipping>
159
+ <reference name="checkout_shipping">
160
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
161
+ </reference>
162
+ <reference name="checkout_billing_items">
163
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
164
+ </reference>
165
+ </checkout_multishipping_shipping>
166
+
167
+ <checkout_multishipping_overview>
168
+ <reference name="checkout_overview">
169
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
170
+ </reference>
171
+ </checkout_multishipping_overview>
172
+
173
+ <paypal_express_review>
174
+ <reference name="paypal.express.review.details">
175
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
176
+ </reference>
177
+ </paypal_express_review>
178
+ <paypal_express_review_details>
179
+ <reference name="root">
180
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
181
+ </reference>
182
+ </paypal_express_review_details>
183
+
184
+ <paypaluk_express_review>
185
+ <reference name="paypal.express.review.details">
186
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
187
+ </reference>
188
+ </paypaluk_express_review>
189
+ <paypaluk_express_review_details>
190
+ <reference name="root">
191
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
192
+ </reference>
193
+ </paypaluk_express_review_details>
194
+
195
+ <!--
196
+ Additional block for bundle product type
197
+ -->
198
+
199
+ <PRODUCT_TYPE_bundle translate="label" module="bundle">
200
+ <label>Catalog Product View (Bundle)</label>
201
+ <reference name="head">
202
+ <action method="addItem"><type>skin_js</type><name>js/bundle.js</name></action>
203
+ </reference>
204
+ <reference name="product.info">
205
+ <block type="bundle/catalog_product_view_type_bundle" name="product.info.bundle" as="product_type_data" template="bundle/catalog/product/view/type/bundle.phtml">
206
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
207
+ <block type="bundle/catalog_product_price" name="bundle.prices" as="bundle_prices" template="bundle/catalog/product/view/price.phtml">
208
+ <action method="setMAPTemplate"><tmpl>catalog/product/price_msrp_item.phtml</tmpl></action>
209
+ </block>
210
+ </block>
211
+ </reference>
212
+ <reference name="product.info.options.wrapper">
213
+ <block type="bundle/catalog_product_view_type_bundle" name="product.info.bundle.options" as="type_bundle_options" template="bundle/catalog/product/view/type/bundle/options.phtml">
214
+ <action method="addRenderer"><type>select</type><block>bundle/catalog_product_view_type_bundle_option_select</block></action>
215
+ <action method="addRenderer"><type>multi</type><block>bundle/catalog_product_view_type_bundle_option_multi</block></action>
216
+ <action method="addRenderer"><type>radio</type><block>bundle/catalog_product_view_type_bundle_option_radio</block></action>
217
+ <action method="addRenderer"><type>checkbox</type><block>bundle/catalog_product_view_type_bundle_option_checkbox</block></action>
218
+ </block>
219
+ <action method="insert"><block>product.info.bundle.options</block></action>
220
+ </reference>
221
+ <reference name="product.info.options.wrapper.bottom">
222
+ <remove name="product.tierprices" />
223
+ <block type="bundle/catalog_product_view" name="bundle.tierprices" as="tierprices" before="-" template="bundle/catalog/product/view/tierprices.phtml"/>
224
+ <block type="cataloginventory/qtyincrements" name="product.info.qtyincrements" before="-" template="cataloginventory/qtyincrements.phtml"/>
225
+ </reference>
226
+ <reference name="product.clone_prices">
227
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/view/price.phtml</template></action>
228
+ </reference>
229
+ </PRODUCT_TYPE_bundle>
230
+
231
+ <sales_order_view>
232
+ <reference name="order_items">
233
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/items/renderer.phtml</template></action>
234
+ </reference>
235
+ </sales_order_view>
236
+
237
+ <sales_order_invoice>
238
+ <reference name="invoice_items">
239
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/invoice/items/renderer.phtml</template></action>
240
+ </reference>
241
+ </sales_order_invoice>
242
+
243
+ <sales_order_shipment>
244
+ <reference name="shipment_items">
245
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/shipment/items/renderer.phtml</template></action>
246
+ </reference>
247
+ </sales_order_shipment>
248
+
249
+ <sales_order_creditmemo>
250
+ <reference name="creditmemo_items">
251
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/creditmemo/items/renderer.phtml</template></action>
252
+ </reference>
253
+ </sales_order_creditmemo>
254
+
255
+ <!--
256
+ Print pages
257
+ -->
258
+
259
+ <sales_order_print>
260
+ <reference name="sales.order.print">
261
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/items/renderer.phtml</template></action>
262
+ </reference>
263
+ </sales_order_print>
264
+
265
+ <sales_order_printinvoice>
266
+ <reference name="sales.order.print.invoice">
267
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/invoice/items/renderer.phtml</template></action>
268
+ </reference>
269
+ </sales_order_printinvoice>
270
+
271
+ <sales_order_printshipment>
272
+ <reference name="sales.order.print.shipment">
273
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/shipment/items/renderer.phtml</template></action>
274
+ </reference>
275
+ </sales_order_printshipment>
276
+
277
+ <sales_order_printcreditmemo>
278
+ <reference name="sales.order.print.creditmemo">
279
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/creditmemo/items/renderer.phtml</template></action>
280
+ </reference>
281
+ </sales_order_printcreditmemo>
282
+
283
+ <!--
284
+ For guests
285
+ -->
286
+ <sales_guest_view>
287
+ <reference name="order_items">
288
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/items/renderer.phtml</template></action>
289
+ </reference>
290
+ </sales_guest_view>
291
+
292
+ <sales_guest_invoice>
293
+ <reference name="invoice_items">
294
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/invoice/items/renderer.phtml</template></action>
295
+ </reference>
296
+ </sales_guest_invoice>
297
+
298
+ <sales_guest_shipment>
299
+ <reference name="shipment_items">
300
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/shipment/items/renderer.phtml</template></action>
301
+ </reference>
302
+ </sales_guest_shipment>
303
+
304
+ <sales_guest_creditmemo>
305
+ <reference name="creditmemo_items">
306
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/creditmemo/items/renderer.phtml</template></action>
307
+ </reference>
308
+ </sales_guest_creditmemo>
309
+
310
+ <sales_guest_print>
311
+ <reference name="sales.order.print">
312
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/items/renderer.phtml</template></action>
313
+ </reference>
314
+ </sales_guest_print>
315
+
316
+ <sales_guest_printinvoice>
317
+ <reference name="sales.order.print.invoice">
318
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/invoice/items/renderer.phtml</template></action>
319
+ </reference>
320
+ </sales_guest_printinvoice>
321
+
322
+ <sales_guest_printshipment>
323
+ <reference name="sales.order.print.shipment">
324
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/shipment/items/renderer.phtml</template></action>
325
+ </reference>
326
+ </sales_guest_printshipment>
327
+
328
+ <sales_guest_printcreditmemo>
329
+ <reference name="sales.order.print.creditmemo">
330
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/creditmemo/items/renderer.phtml</template></action>
331
+ </reference>
332
+ </sales_guest_printcreditmemo>
333
+
334
+ <!--
335
+ Emails
336
+ -->
337
+ <sales_email_order_items>
338
+ <reference name="items">
339
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/order/default.phtml</template></action>
340
+ </reference>
341
+ </sales_email_order_items>
342
+
343
+ <sales_email_order_invoice_items>
344
+ <reference name="items">
345
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/invoice/default.phtml</template></action>
346
+ </reference>
347
+ </sales_email_order_invoice_items>
348
+
349
+
350
+ <sales_email_order_shipment_items>
351
+ <reference name="items">
352
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/shipment/default.phtml</template></action>
353
+ </reference>
354
+ </sales_email_order_shipment_items>
355
+
356
+ <sales_email_order_creditmemo_items>
357
+ <reference name="items">
358
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/creditmemo/default.phtml</template></action>
359
+ </reference>
360
+ </sales_email_order_creditmemo_items>
361
+
362
+ <!--
363
+ RSS
364
+ -->
365
+ <rss_catalog_category>
366
+ <reference name="rss.catalog.category">
367
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/rss/catalog/product/price.phtml</template></action>
368
+ </reference>
369
+ </rss_catalog_category>
370
+ <rss_catalog_new>
371
+ <reference name="rss.catalog.new">
372
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/rss/catalog/product/price.phtml</template></action>
373
+ </reference>
374
+ </rss_catalog_new>
375
+ <rss_catalog_tag>
376
+ <reference name="rss.catalog.tag">
377
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/rss/catalog/product/price.phtml</template></action>
378
+ </reference>
379
+ </rss_catalog_tag>
380
+ </layout>
app/design/frontend/base/default/layout/captcha.xml ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <customer_account_login>
31
+ <reference name="customer_form_login">
32
+ <block type="core/text_list" name="form.additional.info">
33
+ <block type="captcha/captcha" name="captcha">
34
+ <reference name="head">
35
+ <action method="addJs"><file>mage/captcha.js</file></action>
36
+ </reference>
37
+ <action method="setFormId"><formId>user_login</formId></action>
38
+ <action method="setImgWidth"><width>230</width></action>
39
+ <action method="setImgHeight"><width>50</width></action>
40
+ </block>
41
+ </block>
42
+ </reference>
43
+ </customer_account_login>
44
+ <customer_account_forgotpassword>
45
+ <reference name="forgotPassword">
46
+ <block type="core/text_list" name="form.additional.info">
47
+ <block type="captcha/captcha" name="captcha">
48
+ <reference name="head">
49
+ <action method="addJs"><file>mage/captcha.js</file></action>
50
+ </reference>
51
+ <action method="setFormId"><formId>user_forgotpassword</formId></action>
52
+ <action method="setImgWidth"><width>230</width></action>
53
+ <action method="setImgHeight"><width>50</width></action>
54
+ </block>
55
+ </block>
56
+ </reference>
57
+ </customer_account_forgotpassword>
58
+ <customer_account_create>
59
+ <reference name="customer_form_register">
60
+ <block type="core/text_list" name="form.additional.info">
61
+ <block type="captcha/captcha" name="captcha">
62
+ <reference name="head">
63
+ <action method="addJs"><file>mage/captcha.js</file></action>
64
+ </reference>
65
+ <action method="setFormId"><formId>user_create</formId></action>
66
+ <action method="setImgWidth"><width>230</width></action>
67
+ <action method="setImgHeight"><width>50</width></action>
68
+ </block>
69
+ </block>
70
+ </reference>
71
+ </customer_account_create>
72
+ <checkout_onepage_index>
73
+ <reference name="checkout.onepage.login">
74
+ <block type="core/text_list" name="form.additional.info">
75
+ <block type="captcha/captcha" name="captcha">
76
+ <reference name="head">
77
+ <action method="addJs"><file>mage/captcha.js</file></action>
78
+ </reference>
79
+ <action method="setFormId"><formId>user_login</formId></action>
80
+ <action method="setImgWidth"><width>230</width></action>
81
+ <action method="setImgHeight"><width>50</width></action>
82
+ </block>
83
+ </block>
84
+ </reference>
85
+ <reference name="checkout.onepage.billing">
86
+ <block type="core/text_list" name="form.additional.info">
87
+ <block type="captcha/captcha" name="captcha.guest.checkout">
88
+ <reference name="head">
89
+ <action method="addJs"><file>mage/captcha.js</file></action>
90
+ </reference>
91
+ <action method="setFormId"><formId>guest_checkout</formId></action>
92
+ <action method="setImgWidth"><width>230</width></action>
93
+ <action method="setImgHeight"><width>50</width></action>
94
+ </block>
95
+ <block type="captcha/captcha" name="captcha.register.during.checkout">
96
+ <reference name="head">
97
+ <action method="addJs"><file>mage/captcha.js</file></action>
98
+ </reference>
99
+ <action method="setFormId"><formId>register_during_checkout</formId></action>
100
+ <action method="setImgWidth"><width>230</width></action>
101
+ <action method="setImgHeight"><width>50</width></action>
102
+ </block>
103
+ </block>
104
+ </reference>
105
+ </checkout_onepage_index>
106
+ </layout>
app/design/frontend/base/default/layout/catalog.xml ADDED
@@ -0,0 +1,418 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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="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
+ </default>
67
+
68
+
69
+ <!--
70
+ Category default layout
71
+ -->
72
+
73
+ <catalog_category_default translate="label">
74
+ <label>Catalog Category (Non-Anchor)</label>
75
+ <reference name="left">
76
+ <block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
77
+ </reference>
78
+ <reference name="content">
79
+ <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
80
+ <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
81
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
82
+ <block type="page/html_pager" name="product_list_toolbar_pager"/>
83
+ <!-- The following code shows how to set your own pager increments -->
84
+ <!--
85
+ <action method="setDefaultListPerPage"><limit>4</limit></action>
86
+ <action method="setDefaultGridPerPage"><limit>9</limit></action>
87
+ <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
88
+ <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
89
+ <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
90
+ <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
91
+ <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
92
+ -->
93
+ </block>
94
+ <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
95
+ <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
96
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
97
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
98
+ <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
99
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
100
+ </block>
101
+ </block>
102
+ </reference>
103
+ </catalog_category_default>
104
+
105
+ <!--
106
+ Category layered navigation layout
107
+ -->
108
+
109
+ <catalog_category_layered translate="label">
110
+ <label>Catalog Category (Anchor)</label>
111
+ <reference name="left">
112
+ <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
113
+ </reference>
114
+ <reference name="content">
115
+ <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
116
+ <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
117
+ <!-- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action> -->
118
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
119
+ <block type="page/html_pager" name="product_list_toolbar_pager"/>
120
+ <!-- The following code shows how to set your own pager increments -->
121
+ <!--
122
+ <action method="setDefaultListPerPage"><limit>4</limit></action>
123
+ <action method="setDefaultGridPerPage"><limit>3</limit></action>
124
+ <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
125
+ <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
126
+ <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
127
+ <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
128
+ <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
129
+ <action method="addPagerLimit"><mode>grid</mode><limit>3</limit></action>
130
+ <action method="addPagerLimit"><mode>grid</mode><limit>6</limit></action>
131
+ <action method="addPagerLimit"><mode>grid</mode><limit>9</limit></action>
132
+ <action method="addPagerLimit" translate="label"><mode>grid</mode><limit>all</limit><label>All</label></action>
133
+ -->
134
+ </block>
135
+ <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
136
+ <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
137
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
138
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
139
+ <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
140
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
141
+ </block>
142
+ </block>
143
+ </reference>
144
+ </catalog_category_layered>
145
+
146
+ <!--
147
+ Compare products page
148
+ -->
149
+
150
+ <catalog_product_compare_index translate="label">
151
+ <label>Catalog Product Compare List</label>
152
+ <!-- Mage_Catalog -->
153
+ <reference name="root">
154
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
155
+ </reference>
156
+ <reference name="head">
157
+ <action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
158
+ <action method="addJs"><script>varien/product.js</script></action>
159
+ </reference>
160
+ <reference name="content">
161
+ <block type="catalog/product_compare_list" name="catalog.compare.list" template="catalog/product/compare/list.phtml"/>
162
+ </reference>
163
+ </catalog_product_compare_index>
164
+
165
+ <customer_account_index>
166
+ <reference name="right">
167
+ <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
168
+ </reference>
169
+ </customer_account_index>
170
+
171
+ <!--
172
+ Product view
173
+ -->
174
+
175
+ <catalog_product_view translate="label">
176
+ <label>Catalog Product View (Any)</label>
177
+ <!-- Mage_Catalog -->
178
+ <reference name="root">
179
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
180
+ </reference>
181
+ <reference name="head">
182
+ <action method="addJs"><script>varien/product.js</script></action>
183
+ <action method="addJs"><script>varien/configurable.js</script></action>
184
+
185
+ <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
186
+ <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
187
+ <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
188
+ </reference>
189
+ <reference name="content">
190
+ <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
191
+ <!--
192
+ <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/summary.phtml</template></action>
193
+ <action method="addReviewSummaryTemplate"><type>short</type><template>review/helper/summary_short.phtml</template></action>
194
+ <action method="addReviewSummaryTemplate"><type>...</type><template>...</template></action>
195
+ -->
196
+ <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
197
+ <block type="core/text_list" name="alert.urls" as="alert_urls" translate="label">
198
+ <label>Alert Urls</label>
199
+ </block>
200
+
201
+ <action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
202
+
203
+ <block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
204
+ <action method="setColumnCount"><columns>4</columns></action>
205
+ <action method="setItemLimit"><type>upsell</type><limit>4</limit></action>
206
+ </block>
207
+
208
+ <block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
209
+ <block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
210
+ <action method="addToParentGroup"><group>detailed_info</group></action>
211
+ </block>
212
+ <block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
213
+ <action method="addToParentGroup"><group>detailed_info</group></action>
214
+ </block>
215
+ <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
216
+ <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
217
+
218
+ <block type="core/text_list" name="product.info.extrahint" as="extrahint" translate="label">
219
+ <label>Product View Extra Hint</label>
220
+ </block>
221
+
222
+ <block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
223
+ <label>Info Column Options Wrapper</label>
224
+ <block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
225
+ <block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
226
+ <action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
227
+ <action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
228
+ <action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
229
+ <action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
230
+ </block>
231
+ <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
232
+ </block>
233
+ <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">
234
+ <label>Bottom Block Options Wrapper</label>
235
+ <action method="insert"><block>product.tierprices</block></action>
236
+ <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
237
+ <action method="append"><block>product.info.addtocart</block></action>
238
+ <action method="append"><block>product.info.addto</block></action>
239
+ </block>
240
+
241
+ <block type="core/template_facade" name="product.info.container1" as="container1">
242
+ <action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
243
+ <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
244
+ <action method="append"><block>product.info.options.wrapper</block></action>
245
+ <action method="append"><block>product.info.options.wrapper.bottom</block></action>
246
+ </block>
247
+ <block type="core/template_facade" name="product.info.container2" as="container2">
248
+ <action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
249
+ <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
250
+ <action method="append"><block>product.info.options.wrapper</block></action>
251
+ <action method="append"><block>product.info.options.wrapper.bottom</block></action>
252
+ </block>
253
+ <action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
254
+ <action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
255
+ </block>
256
+ </reference>
257
+ <reference name="right">
258
+ <block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
259
+ </reference>
260
+ </catalog_product_view>
261
+
262
+ <!--
263
+ Additional block dependant on product type
264
+ -->
265
+ <PRODUCT_TYPE_simple translate="label" module="catalog">
266
+ <label>Catalog Product View (Simple)</label>
267
+ <reference name="product.info">
268
+ <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
269
+ <block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
270
+ <label>Product Extra Info</label>
271
+ </block>
272
+ </block>
273
+ </reference>
274
+ </PRODUCT_TYPE_simple>
275
+ <PRODUCT_TYPE_configurable translate="label" module="catalog">
276
+ <label>Catalog Product View (Configurable)</label>
277
+ <reference name="product.info">
278
+ <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
279
+ <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
280
+ <label>Product Extra Info</label>
281
+ </block>
282
+ </block>
283
+ </reference>
284
+ <reference name="product.info.options.wrapper">
285
+ <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
286
+ </reference>
287
+ </PRODUCT_TYPE_configurable>
288
+ <PRODUCT_TYPE_grouped translate="label" module="catalog">
289
+ <label>Catalog Product View (Grouped)</label>
290
+ <reference name="product.info">
291
+ <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
292
+ <block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
293
+ <label>Product Extra Info</label>
294
+ </block>
295
+ </block>
296
+ </reference>
297
+ </PRODUCT_TYPE_grouped>
298
+ <PRODUCT_TYPE_virtual translate="label" module="catalog">
299
+ <label>Catalog Product View (Virtual)</label>
300
+ <reference name="product.info">
301
+ <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
302
+ <block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
303
+ <label>Product Extra Info</label>
304
+ </block>
305
+ </block>
306
+ </reference>
307
+ </PRODUCT_TYPE_virtual>
308
+
309
+
310
+
311
+ <!--
312
+ Product send to friend
313
+ -->
314
+
315
+ <catalog_product_send translate="label">
316
+ <label>Catalog Product Email to a Friend</label>
317
+ <!-- Mage_Catalog -->
318
+ <reference name="root">
319
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
320
+ </reference>
321
+ <reference name="head">
322
+ <action method="addJs"><script>varien/product.js</script></action>
323
+ </reference>
324
+ <reference name="content">
325
+ <block type="catalog/product_send" name="product.send" template="catalog/product/send.phtml">
326
+ </block>
327
+ </reference>
328
+ </catalog_product_send>
329
+
330
+ <!--
331
+ Product additional images gallery popup
332
+ -->
333
+
334
+ <catalog_product_gallery translate="label">
335
+ <label>Catalog Product Image Gallery Popup</label>
336
+ <!-- Mage_Catalog -->
337
+ <reference name="root">
338
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
339
+ </reference>
340
+ <reference name="content">
341
+ <block type="catalog/product_gallery" name="catalog_product_gallery" template="catalog/product/gallery.phtml"/>
342
+ </reference>
343
+ </catalog_product_gallery>
344
+
345
+ <!--
346
+ SEO Site Map
347
+ -->
348
+
349
+ <catalog_seo_sitemap translate="label">
350
+ <label>Catalog Seo Sitemap (Common)</label>
351
+ <remove name="right"/>
352
+ <remove name="left"/>
353
+
354
+ <reference name="root">
355
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
356
+ </reference>
357
+ <reference name="content">
358
+ <block type="page/template_container" name="seo.sitemap.container" template="catalog/seo/sitemap/container.phtml">
359
+ <block type="page/template_links" name="seo.sitemap.links" as="links" template="page/template/links.phtml"/>
360
+ <block type="page/html_pager" name="seo.sitemap.pager.top" as="pager_top" template="page/html/pager.phtml"/>
361
+ <block type="page/html_pager" name="seo.sitemap.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
362
+ </block>
363
+ </reference>
364
+ </catalog_seo_sitemap>
365
+
366
+ <catalog_seo_sitemap_category translate="label">
367
+ <label>Catalog Seo Sitemap (Category List)</label>
368
+ <reference name="head">
369
+ <action method="setTitle" translate="title" module="catalog"><title>Site Map</title></action>
370
+ </reference>
371
+ <update handle="catalog_seo_sitemap" />
372
+ <reference name="seo.sitemap.container">
373
+ <action method="setTitle" translate="title" module="catalog"><title>Categories</title></action>
374
+ <block type="catalog/seo_sitemap_category" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
375
+ <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
376
+ <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
377
+ <action method="setItemsTitle" translate="title" module="catalog"><title>categories</title></action>
378
+ </block>
379
+ </reference>
380
+ <reference name="seo.sitemap.links">
381
+ <action method="addLink" translate="label title" module="catalog"><label>Products Sitemap</label><url helper="catalog/map/getProductUrl"/><title>Products Sitemap</title></action>
382
+ </reference>
383
+ </catalog_seo_sitemap_category>
384
+
385
+ <catalog_seo_sitemap_category_tree translate="label">
386
+ <label>Catalog Seo Sitemap (Category Tree)</label>
387
+ <reference name="seo.sitemap.container">
388
+ <remove name="seo.sitemap.pager.top" />
389
+ <remove name="seo.sitemap.pager.bottom" />
390
+ <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.top" as="pager_top" template="page/html/pager.phtml"/>
391
+ <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
392
+ <remove name="seo.sitemap.sitemap" />
393
+ <block type="catalog/seo_sitemap_tree_category" name="seo.sitemap.sitemap_tree" as="sitemap" after="pager_top" template="catalog/seo/tree.phtml">
394
+ <action method="bindPager"><pager>seo.sitemap.tree.pager.top</pager></action>
395
+ <action method="bindPager"><pager>seo.sitemap.tree.pager.bottom</pager></action>
396
+ </block>
397
+ </reference>
398
+ </catalog_seo_sitemap_category_tree>
399
+
400
+ <catalog_seo_sitemap_product translate="label">
401
+ <label>Catalog Seo Sitemap (Product List)</label>
402
+ <reference name="head">
403
+ <action method="setTitle" translate="title" module="catalog"><title>Site Map</title></action>
404
+ </reference>
405
+ <update handle="catalog_seo_sitemap" />
406
+ <reference name="seo.sitemap.container">
407
+ <action method="setTitle" translate="title" module="catalog"><title>Products</title></action>
408
+ <block type="catalog/seo_sitemap_product" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
409
+ <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
410
+ <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
411
+ <action method="setItemsTitle" translate="title" module="catalog"><title>products</title></action>
412
+ </block>
413
+ </reference>
414
+ <reference name="seo.sitemap.links">
415
+ <action method="addLink" translate="label title" module="catalog"><label>Categories Sitemap</label><url helper="catalog/map/getCategoryUrl"/><title>Categories Sitemap</title></action>
416
+ </reference>
417
+ </catalog_seo_sitemap_product>
418
+ </layout>
app/design/frontend/base/default/layout/catalog_msrp.xml ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <!--
31
+ Default layout, loads most of the pages
32
+ -->
33
+ <catalog_category_default>
34
+ <update handle="MAP_popup" />
35
+ </catalog_category_default>
36
+ <catalog_category_layered>
37
+ <update handle="MAP_popup" />
38
+ </catalog_category_layered>
39
+ <catalog_product_compare_index>
40
+ <update handle="MAP_popup" />
41
+ </catalog_product_compare_index>
42
+ <catalog_product_view>
43
+ <update handle="MAP_popup" />
44
+ <update handle="MAP_price_msrp_item" />
45
+ </catalog_product_view>
46
+ <checkout_cart_index>
47
+ <update handle="MAP_popup" />
48
+ </checkout_cart_index>
49
+ <checkout_onepage_success>
50
+ <update handle="MAP_popup" />
51
+ </checkout_onepage_success>
52
+ <checkout_onepage_failure>
53
+ <update handle="MAP_popup" />
54
+ </checkout_onepage_failure>
55
+ <wishlist_index_index>
56
+ <update handle="MAP_popup" />
57
+ <update handle="MAP_price_msrp_wishlist_item" />
58
+ </wishlist_index_index>
59
+ <wishlist_shared_index>
60
+ <update handle="MAP_popup" />
61
+ <update handle="MAP_price_msrp_wishlist_item" />
62
+ </wishlist_shared_index>
63
+ <review_product_list>
64
+ <update handle="MAP_popup" />
65
+ <update handle="MAP_price_msrp_item" />
66
+ </review_product_list>
67
+ <catalogsearch_result_index>
68
+ <update handle="MAP_popup" />
69
+ </catalogsearch_result_index>
70
+ <catalogsearch_advanced_result>
71
+ <update handle="MAP_popup" />
72
+ </catalogsearch_advanced_result>
73
+ <tag_product_list>
74
+ <update handle="MAP_popup" />
75
+ </tag_product_list>
76
+ <tag_customer_view>
77
+ <update handle="MAP_popup" />
78
+ </tag_customer_view>
79
+
80
+ <MAP_popup>
81
+ <reference name="head">
82
+ <action method="addItem" ifconfig="sales/msrp/enabled"><type>skin_js</type><name>js/msrp.js</name></action>
83
+ </reference>
84
+ <reference name="content">
85
+ <block type="core/template" template="catalog/msrp/popup.phtml" name="product.tooltip"></block>
86
+ </reference>
87
+ </MAP_popup>
88
+ <MAP_price_msrp_item>
89
+ <reference name="catalog_product_price_template">
90
+ <action method="addPriceBlockType"><type>msrp</type><block>catalog/product_price</block><template>catalog/product/price_msrp_item.phtml</template></action>
91
+ </reference>
92
+ <reference name="product.clone_prices">
93
+ <action method="addPriceBlockType"><type>msrp</type><block>catalog/product_price</block><template>catalog/product/price_msrp_item.phtml</template></action>
94
+ </reference>
95
+ </MAP_price_msrp_item>
96
+ <MAP_price_msrp_wishlist_item>
97
+ <reference name="catalog_product_price_template">
98
+ <action method="addPriceBlockType"><type>msrp</type><block>catalog/product_price</block><template>wishlist/render/item/price_msrp_item.phtml</template></action>
99
+ </reference>
100
+ </MAP_price_msrp_wishlist_item>
101
+ <default>
102
+ <reference name="catalog_product_price_template">
103
+ <action method="addPriceBlockType"><type>msrp</type><block>catalog/product_price</block><template>catalog/product/price_msrp.phtml</template></action>
104
+ <action method="addPriceBlockType"><type>msrp_item</type><block>catalog/product_price</block><template>catalog/product/price_msrp_item.phtml</template></action>
105
+ <action method="addPriceBlockType"><type>msrp_noform</type><block>catalog/product_price</block><template>catalog/product/price_msrp_noform.phtml</template></action>
106
+ </reference>
107
+ </default>
108
+ </layout>
app/design/frontend/base/default/layout/cataloginventory.xml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Product view
33
+ -->
34
+ <catalog_product_view>
35
+ <reference name="product.info.extrahint">
36
+ <block type="cataloginventory/qtyincrements" name="product.info.extrahint.qtyincrements" template="cataloginventory/qtyincrements.phtml"/>
37
+ </reference>
38
+ </catalog_product_view>
39
+
40
+ <!--
41
+ Additional block dependent on product type
42
+ -->
43
+ <PRODUCT_TYPE_simple>
44
+ <reference name="product.info.simple.extra">
45
+ <block type="cataloginventory/stockqty_default" template="cataloginventory/stockqty/default.phtml"/>
46
+ </reference>
47
+ </PRODUCT_TYPE_simple>
48
+ <PRODUCT_TYPE_virtual>
49
+ <reference name="product.info.virtual.extra">
50
+ <block type="cataloginventory/stockqty_default" template="cataloginventory/stockqty/default.phtml"/>
51
+ </reference>
52
+ </PRODUCT_TYPE_virtual>
53
+ <PRODUCT_TYPE_grouped>
54
+ <reference name="product.info.grouped.extra">
55
+ <block type="cataloginventory/stockqty_type_grouped" template="cataloginventory/stockqty/composite.phtml"/>
56
+ </reference>
57
+ </PRODUCT_TYPE_grouped>
58
+ <PRODUCT_TYPE_configurable>
59
+ <reference name="product.info.configurable.extra">
60
+ <block type="cataloginventory/stockqty_type_configurable" template="cataloginventory/stockqty/composite.phtml"/>
61
+ </reference>
62
+ </PRODUCT_TYPE_configurable>
63
+
64
+ </layout>
app/design/frontend/base/default/layout/catalogsearch.xml ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <default>
32
+ <reference name="header">
33
+ <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
34
+ </reference>
35
+ <reference name="footer_links">
36
+ <action method="addLink" translate="label title" module="catalogsearch" ifconfig="catalog/seo/search_terms">
37
+ <label>Search Terms</label>
38
+ <url helper="catalogsearch/getSearchTermUrl" />
39
+ <title>Search Terms</title>
40
+ </action>
41
+ <action method="addLink" translate="label title" module="catalogsearch">
42
+ <label>Advanced Search</label>
43
+ <url helper="catalogsearch/getAdvancedSearchUrl" />
44
+ <title>Advanced Search</title>
45
+ </action>
46
+ </reference>
47
+ </default>
48
+
49
+ <catalogsearch_result_index translate="label">
50
+ <label>Quick Search Form</label>
51
+ <reference name="root">
52
+ <action method="setTemplate"><template>page/3columns.phtml</template></action>
53
+ </reference>
54
+ <reference name="left">
55
+ <block type="catalogsearch/layer" name="catalogsearch.leftnav" after="currency" template="catalog/layer/view.phtml"/>
56
+ </reference>
57
+ <reference name="content">
58
+ <block type="catalogsearch/result" name="search.result" template="catalogsearch/result.phtml">
59
+ <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
60
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
61
+ <block type="page/html_pager" name="product_list_toolbar_pager"/>
62
+ </block>
63
+ <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
64
+ <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
65
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
66
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
67
+ <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
68
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
69
+ </block>
70
+ <action method="setListOrders"/>
71
+ <action method="setListModes"/>
72
+ <action method="setListCollection"/>
73
+ </block>
74
+ </reference>
75
+ </catalogsearch_result_index>
76
+
77
+ <catalogsearch_advanced_index translate="label">
78
+ <label>Advanced Search Form</label>
79
+ <!-- Mage_Catalogsearch -->
80
+ <reference name="root">
81
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
82
+ </reference>
83
+ <reference name="head">
84
+ <action method="setTitle" translate="title" module="catalogsearch"><title>Advanced Search</title></action>
85
+ <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
86
+ <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
87
+ <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
88
+ </reference>
89
+ <reference name="content">
90
+ <block type="catalogsearch/advanced_form" name="catalogsearch_advanced_form" template="catalogsearch/advanced/form.phtml"/>
91
+ <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
92
+ </reference>
93
+ </catalogsearch_advanced_index>
94
+
95
+ <!--
96
+ Advanced search results
97
+ -->
98
+
99
+ <catalogsearch_advanced_result translate="label">
100
+ <label>Advanced Search Result</label>
101
+ <update handle="page_two_columns_right" />
102
+ <!-- Mage_Catalogsearch -->
103
+ <reference name="root">
104
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
105
+ </reference>
106
+ <reference name="content">
107
+ <block type="catalogsearch/advanced_result" name="catalogsearch_advanced_result" template="catalogsearch/advanced/result.phtml">
108
+ <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
109
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
110
+ <block type="page/html_pager" name="product_list_toolbar_pager"/>
111
+ </block>
112
+ <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
113
+ <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
114
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
115
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
116
+ <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
117
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
118
+ </block>
119
+ <action method="setListOrders"/>
120
+ <action method="setListModes"/>
121
+ <action method="setListCollection"/>
122
+ </block>
123
+ </reference>
124
+ </catalogsearch_advanced_result>
125
+
126
+ <catalogsearch_term_popular translate="label">
127
+ <label>Popular Search Terms</label>
128
+ <remove name="right"/>
129
+ <remove name="left"/>
130
+
131
+ <reference name="head">
132
+ <action method="setTitle" translate="title" module="catalogsearch"><title>Search Terms</title></action>
133
+ </reference>
134
+ <reference name="root">
135
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
136
+ </reference>
137
+ <reference name="content">
138
+ <block type="catalogsearch/term" name="seo.searchterm" template="catalogsearch/term.phtml"/>
139
+ </reference>
140
+ </catalogsearch_term_popular>
141
+
142
+ </layout>
app/design/frontend/base/default/layout/centinel.xml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <centinel_index_authenticationstart>
31
+ <block type="centinel/authentication_start" name="root" output="toHtml" template="centinel/authentication/start.phtml"/>
32
+ </centinel_index_authenticationstart>
33
+
34
+ <centinel_index_authenticationcomplete>
35
+ <block type="centinel/authentication_complete" name="root" output="toHtml" template="centinel/authentication/complete.phtml"/>
36
+ </centinel_index_authenticationcomplete>
37
+
38
+ <checkout_multishipping_overview>
39
+ <reference name="head">
40
+ <action method="addJs"><script>mage/centinel.js</script></action>
41
+ </reference>
42
+ <reference name="checkout.multishipping.overview.items.after">
43
+ <block type="centinel/authentication" name="centinel.frame" template="centinel/authentication.phtml">
44
+ <action method="addRelatedBlock"><blockId>checkout-review-submit</blockId></action>
45
+ <action method="setAuthenticationStartMode"><mode>window</mode></action>
46
+ </block>
47
+ </reference>
48
+ </checkout_multishipping_overview>
49
+
50
+ <checkout_onepage_savepayment>
51
+ <reference name="checkout.onepage.review.info.items.before">
52
+ <block type="centinel/authentication" name="centinel.frame" template="centinel/authentication.phtml">
53
+ <action method="addRelatedBlock"><blockId>checkout-review-submit</blockId></action>
54
+ <action method="addRelatedBlock"><blockId>checkout-review-table-wrapper</blockId></action>
55
+ <action method="setAuthenticationStartMode"><mode>instant</mode></action>
56
+ </block>
57
+ </reference>
58
+ </checkout_onepage_savepayment>
59
+
60
+ <checkout_onepage_index>
61
+ <reference name="head">
62
+ <action method="addJs"><script>mage/centinel.js</script></action>
63
+ </reference>
64
+ </checkout_onepage_index>
65
+ </layout>
app/design/frontend/base/default/layout/checkout.xml ADDED
@@ -0,0 +1,491 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Default layout, loads most of the pages
33
+ -->
34
+
35
+ <default>
36
+
37
+ <!-- Mage_Checkout -->
38
+ <reference name="top.links">
39
+ <block type="checkout/links" name="checkout_cart_link">
40
+ <action method="addCartLink"></action>
41
+ <action method="addCheckoutLink"></action>
42
+ </block>
43
+ </reference>
44
+ <reference name="right">
45
+ <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
46
+ <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
47
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
48
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
49
+ <block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
50
+ <label>Shopping Cart Sidebar Extra Actions</label>
51
+ </block>
52
+ </block>
53
+ </reference>
54
+ </default>
55
+
56
+ <checkout_cart_index translate="label">
57
+ <label>Shopping Cart</label>
58
+ <remove name="right"/>
59
+ <remove name="left"/>
60
+ <!-- Mage_Checkout -->
61
+ <reference name="root">
62
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
63
+ </reference>
64
+ <reference name="content">
65
+ <block type="checkout/cart" name="checkout.cart">
66
+ <action method="setCartTemplate"><value>checkout/cart.phtml</value></action>
67
+ <action method="setEmptyTemplate"><value>checkout/cart/noItems.phtml</value></action>
68
+ <action method="chooseTemplate"/>
69
+ <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
70
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/item/default.phtml</template></action>
71
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/item/default.phtml</template></action>
72
+
73
+ <block type="core/text_list" name="checkout.cart.top_methods" as="top_methods" translate="label">
74
+ <label>Payment Methods Before Checkout Button</label>
75
+ <block type="checkout/onepage_link" name="checkout.cart.methods.onepage" template="checkout/onepage/link.phtml"/>
76
+ </block>
77
+
78
+ <block type="page/html_wrapper" name="checkout.cart.form.before" as="form_before" translate="label">
79
+ <label>Shopping Cart Form Before</label>
80
+ </block>
81
+
82
+ <block type="core/text_list" name="checkout.cart.methods" as="methods" translate="label">
83
+ <label>Payment Methods After Checkout Button</label>
84
+ <block type="checkout/onepage_link" name="checkout.cart.methods.onepage" template="checkout/onepage/link.phtml"/>
85
+ <block type="checkout/multishipping_link" name="checkout.cart.methods.multishipping" template="checkout/multishipping/link.phtml"/>
86
+ </block>
87
+
88
+ <block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="checkout/cart/coupon.phtml"/>
89
+ <block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" template="checkout/cart/shipping.phtml"/>
90
+ <block type="checkout/cart_crosssell" name="checkout.cart.crosssell" as="crosssell" template="checkout/cart/crosssell.phtml"/>
91
+
92
+ <block type="checkout/cart_totals" name="checkout.cart.totals" as="totals" template="checkout/cart/totals.phtml"/>
93
+ </block>
94
+ </reference>
95
+ <block type="core/text_list" name="additional.product.info" translate="label">
96
+ <label>Additional Product Info</label>
97
+ </block>
98
+ </checkout_cart_index>
99
+
100
+ <checkout_cart_configure translate="label">
101
+ <label>Configure Cart Item</label>
102
+ <update handle="catalog_product_view"/>
103
+ <reference name="product.info">
104
+ <block type="checkout/cart_item_configure" name="checkout.cart.item.configure.block"></block>
105
+ </reference>
106
+ </checkout_cart_configure>
107
+
108
+ <!--
109
+ Multi address shipping checkout main layout,
110
+ will be rendered on all checkout pages
111
+ -->
112
+
113
+ <checkout_multishipping translate="label">
114
+ <label>Multishipping Checkout</label>
115
+ <!-- Mage_Checkout -->
116
+ <remove name="right"/>
117
+ <remove name="left"/>
118
+
119
+ <reference name="root">
120
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
121
+ </reference>
122
+ <reference name="content">
123
+ <block type="checkout/multishipping_state" name="checkout_state" template="checkout/multishipping/state.phtml"/>
124
+ </reference>
125
+ </checkout_multishipping>
126
+
127
+ <checkout_multishipping_login>
128
+ <update handle="customer_account_login"/>
129
+ </checkout_multishipping_login>
130
+
131
+ <checkout_multishipping_register>
132
+ <update handle="customer_account_create"/>
133
+ </checkout_multishipping_register>
134
+
135
+ <!--
136
+ Multi address shipping checkout selection of address per item page
137
+ -->
138
+
139
+ <checkout_multishipping_address_select translate="label">
140
+ <label>Multishipping Checkout Shipping Address Selection</label>
141
+ <update handle="checkout_multishipping"/>
142
+ <!-- Mage_Checkout -->
143
+ <reference name="content">
144
+ <block type="checkout/multishipping_address_select" name="checkout_address_select" template="checkout/multishipping/address/select.phtml"/>
145
+ </reference>
146
+ </checkout_multishipping_address_select>
147
+
148
+ <checkout_multishipping_address_selectbilling translate="label">
149
+ <label>Multishipping Checkout Billing Address Selection</label>
150
+ <update handle="checkout_multishipping"/>
151
+ <!-- Mage_Checkout -->
152
+ <reference name="content">
153
+ <block type="checkout/multishipping_address_select" name="checkout_address_select" template="checkout/multishipping/address/select.phtml"/>
154
+ </reference>
155
+ </checkout_multishipping_address_selectbilling>
156
+
157
+
158
+ <checkout_multishipping_address_newshipping translate="label">
159
+ <label>Multishipping Checkout Shipping Address Creation</label>
160
+ <update handle="checkout_multishipping"/>
161
+ <update handle="checkout_multishipping_customer_address"/>
162
+ </checkout_multishipping_address_newshipping>
163
+
164
+ <checkout_multishipping_address_newbilling translate="label">
165
+ <label>Multishipping Checkout Billing Address Creation</label>
166
+ <update handle="checkout_multishipping"/>
167
+ <update handle="checkout_multishipping_customer_address"/>
168
+ </checkout_multishipping_address_newbilling>
169
+
170
+ <checkout_multishipping_address_editshipping translate="label">
171
+ <label>Multishipping Checkout Shipping Address Edit Form</label>
172
+ <update handle="checkout_multishipping"/>
173
+ <update handle="checkout_multishipping_customer_address"/>
174
+ </checkout_multishipping_address_editshipping>
175
+
176
+ <checkout_multishipping_address_editaddress>
177
+ <update handle="checkout_multishipping"/>
178
+ <update handle="checkout_multishipping_customer_address"/>
179
+ </checkout_multishipping_address_editaddress>
180
+
181
+ <checkout_multishipping_address_editbilling translate="label">
182
+ <label>Multishipping Checkout Billing Address Edit Form</label>
183
+ <update handle="checkout_multishipping"/>
184
+ <update handle="checkout_multishipping_customer_address"/>
185
+ </checkout_multishipping_address_editbilling>
186
+
187
+ <checkout_multishipping_customer_address translate="label">
188
+ <label>Multishipping Checkout Customer Address Edit Form</label>
189
+ <reference name="content">
190
+ <block type="customer/address_edit" name="customer_address_edit" template="customer/address/edit.phtml"/>
191
+ </reference>
192
+ </checkout_multishipping_customer_address>
193
+
194
+ <!--
195
+ Multi address shipping checkout address page
196
+ -->
197
+
198
+ <checkout_multishipping_addresses translate="label">
199
+ <label>Multishipping Checkout Address (Any) Form</label>
200
+ <update handle="checkout_multishipping"/>
201
+ <!-- Mage_Checkout -->
202
+ <reference name="content">
203
+ <block type="checkout/multishipping_addresses" name="checkout_addresses" template="checkout/multishipping/addresses.phtml">
204
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
205
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
206
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
207
+ </block>
208
+ </reference>
209
+ </checkout_multishipping_addresses>
210
+
211
+ <!--
212
+ Multi address shipping checkout shipping information
213
+ -->
214
+
215
+ <checkout_multishipping_shipping translate="label">
216
+ <label>Multishipping Checkout Shipping Information Step</label>
217
+ <update handle="checkout_multishipping"/>
218
+ <!-- Mage_Checkout -->
219
+ <reference name="content">
220
+ <block type="checkout/multishipping_shipping" name="checkout_shipping" template="checkout/multishipping/shipping.phtml">
221
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
222
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
223
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
224
+
225
+ <block type="checkout/multishipping_billing_items" name="checkout_billing_items" template="checkout/multishipping/billing/items.phtml">
226
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
227
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
228
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
229
+ </block>
230
+ </block>
231
+ </reference>
232
+ </checkout_multishipping_shipping>
233
+
234
+ <!--
235
+ Multi address shipping checkout billing information
236
+ -->
237
+
238
+ <checkout_multishipping_billing translate="label">
239
+ <label>Multishipping Checkout Billing Information Step</label>
240
+ <update handle="checkout_multishipping"/>
241
+ <!-- Mage_Checkout -->
242
+ <reference name="content">
243
+ <block type="checkout/multishipping_billing" name="checkout_billing" template="checkout/multishipping/billing.phtml">
244
+ <action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
245
+
246
+ <!--<block type="checkout/multishipping_billing_items" name="checkout_billing_items" template="checkout/multishipping/billing/items.phtml">
247
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
248
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
249
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
250
+ </block>-->
251
+
252
+ </block>
253
+ </reference>
254
+ </checkout_multishipping_billing>
255
+
256
+ <!--
257
+ Multi address shipping checkout overview
258
+ -->
259
+
260
+ <checkout_multishipping_overview translate="label">
261
+ <label>Multishipping Checkout Overview</label>
262
+ <update handle="checkout_multishipping"/>
263
+ <!-- Mage_Checkout -->
264
+ <reference name="content">
265
+ <block type="checkout/multishipping_overview" name="checkout_overview" template="checkout/multishipping/overview.phtml">
266
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
267
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
268
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
269
+ <action method="addRowItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/overview/item.phtml</template></action>
270
+ <action method="addRowItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/overview/item.phtml</template></action>
271
+ <block type="checkout/multishipping_payment_info" name="payment_info">
272
+ <action method="setInfoTemplate"><method></method><template></template></action>
273
+ </block>
274
+ <block type="checkout/agreements" name="checkout.multishipping.agreements" as="agreements" template="checkout/multishipping/agreements.phtml"/>
275
+ <block type="checkout/cart_totals" name="totals" />
276
+ <block type="core/text_list" name="checkout.multishipping.overview.items.after" as="items_after" translate="label">
277
+ <label>Overview Items After</label>
278
+ </block>
279
+ </block>
280
+ </reference>
281
+ </checkout_multishipping_overview>
282
+
283
+ <!--
284
+ Multi address shipping checkout success
285
+ -->
286
+
287
+ <checkout_multishipping_success translate="label">
288
+ <label>Multishipping Checkout Success</label>
289
+ <update handle="checkout_multishipping"/>
290
+ <!-- Mage_Checkout -->
291
+ <reference name="content">
292
+ <block type="checkout/multishipping_success" name="checkout_success" template="checkout/multishipping/success.phtml"/>
293
+ </reference>
294
+ </checkout_multishipping_success>
295
+
296
+ <!--
297
+ One page checkout main layout
298
+ -->
299
+
300
+ <checkout_onepage_index translate="label">
301
+ <label>One Page Checkout</label>
302
+ <!-- Mage_Checkout -->
303
+ <remove name="left"/>
304
+
305
+ <reference name="root">
306
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
307
+ </reference>
308
+ <reference name="right">
309
+ <action method="unsetChildren"></action>
310
+ <block type="page/html_wrapper" name="checkout.progress.wrapper" translate="label">
311
+ <label>Checkout Progress Wrapper</label>
312
+ <action method="setElementId"><value>checkout-progress-wrapper</value></action>
313
+ <block type="checkout/onepage_progress" name="checkout.progress" before="-" template="checkout/onepage/progress.phtml">
314
+ <block type="checkout/onepage_progress" name="billing.progress" template="checkout/onepage/progress/billing.phtml"></block>
315
+ <block type="checkout/onepage_progress" name="shipping.progress" template="checkout/onepage/progress/shipping.phtml"></block>
316
+ <block type="checkout/onepage_progress" name="shippingmethod.progress" template="checkout/onepage/progress/shipping_method.phtml"></block>
317
+ <block type="checkout/onepage_progress" name="payment.progress" template="checkout/onepage/progress/payment.phtml"></block>
318
+ </block>
319
+ </block>
320
+ </reference>
321
+ <reference name="content">
322
+ <block type="checkout/onepage" name="checkout.onepage" template="checkout/onepage.phtml">
323
+ <block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="checkout/onepage/login.phtml">
324
+ <block type="page/html_wrapper" name="checkout.onepage.login.before" as="login_before" translate="label">
325
+ <label>Login/Registration Before</label>
326
+ <action method="setMayBeInvisible"><value>1</value></action>
327
+ </block>
328
+ </block>
329
+ <block type="checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="checkout/onepage/billing.phtml"/>
330
+ <block type="checkout/onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="checkout/onepage/shipping.phtml"/>
331
+ <block type="checkout/onepage_shipping_method" name="checkout.onepage.shipping_method" as="shipping_method" template="checkout/onepage/shipping_method.phtml">
332
+ <block type="checkout/onepage_shipping_method_available" name="checkout.onepage.shipping_method.available" as="available" template="checkout/onepage/shipping_method/available.phtml"/>
333
+ <block type="checkout/onepage_shipping_method_additional" name="checkout.onepage.shipping_method.additional" as="additional" template="checkout/onepage/shipping_method/additional.phtml"/>
334
+ </block>
335
+ <block type="checkout/onepage_payment" name="checkout.onepage.payment" as="payment" template="checkout/onepage/payment.phtml">
336
+ <block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/info.phtml">
337
+ <action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
338
+ </block>
339
+ </block>
340
+ <block type="checkout/onepage_review" name="checkout.onepage.review" as="review" template="checkout/onepage/review.phtml"/>
341
+ </block>
342
+ </reference>
343
+ </checkout_onepage_index>
344
+
345
+ <!--
346
+ One page checkout progress block
347
+ -->
348
+
349
+ <checkout_onepage_progress>
350
+ <!-- Mage_Checkout -->
351
+ <remove name="right"/>
352
+ <remove name="left"/>
353
+
354
+ <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress.phtml">
355
+ <action method="setInfoTemplate"><method></method><template></template></action>
356
+ <block type="checkout/onepage_progress" name="billing.progress" template="checkout/onepage/progress/billing.phtml"></block>
357
+ <block type="checkout/onepage_progress" name="shipping.progress" template="checkout/onepage/progress/shipping.phtml"></block>
358
+ <block type="checkout/onepage_progress" name="shippingmethod.progress" template="checkout/onepage/progress/shipping_method.phtml"></block>
359
+ <block type="checkout/onepage_progress" name="payment.progress" template="checkout/onepage/progress/payment.phtml"></block>
360
+ </block>
361
+ </checkout_onepage_progress>
362
+
363
+ <!-- Individual blocks for Progress steps begins -->
364
+ <checkout_onepage_progress_billing>
365
+ <!-- Mage_Checkout -->
366
+ <remove name="right"/>
367
+ <remove name="left"/>
368
+
369
+ <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress/billing.phtml">
370
+ <action method="setInfoTemplate"><method></method><template></template></action>
371
+ </block>
372
+ </checkout_onepage_progress_billing>
373
+
374
+
375
+ <checkout_onepage_progress_shipping>
376
+ <!-- Mage_Checkout -->
377
+ <remove name="right"/>
378
+ <remove name="left"/>
379
+
380
+ <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress/shipping.phtml">
381
+ <action method="setInfoTemplate"><method></method><template></template></action>
382
+ </block>
383
+ </checkout_onepage_progress_shipping>
384
+
385
+
386
+ <checkout_onepage_progress_shipping_method>
387
+ <!-- Mage_Checkout -->
388
+ <remove name="right"/>
389
+ <remove name="left"/>
390
+
391
+ <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress/shipping_method.phtml">
392
+ <action method="setInfoTemplate"><method></method><template></template></action>
393
+ </block>
394
+ </checkout_onepage_progress_shipping_method>
395
+
396
+ <checkout_onepage_progress_payment>
397
+ <!-- Mage_Checkout -->
398
+ <remove name="right"/>
399
+ <remove name="left"/>
400
+
401
+ <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress/payment.phtml">
402
+ <block type="checkout/onepage_payment_info" name="payment_info">
403
+ <action method="setInfoTemplate"><method></method><template></template></action>
404
+ </block>
405
+ <action method="setInfoTemplate"><method></method><template></template></action>
406
+ </block>
407
+ </checkout_onepage_progress_payment>
408
+
409
+ <!-- end individual progress blocks -->
410
+
411
+ <!--
412
+ One page checkout payment methods block
413
+ -->
414
+ <checkout_onepage_paymentmethod>
415
+ <remove name="right"/>
416
+ <remove name="left"/>
417
+
418
+ <block type="checkout/onepage_payment_methods" name="root" output="toHtml" template="checkout/onepage/payment/methods.phtml">
419
+ <action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
420
+ </block>
421
+ </checkout_onepage_paymentmethod>
422
+
423
+
424
+ <!--
425
+ One page checkout shipping methods block
426
+ -->
427
+
428
+ <checkout_onepage_shippingmethod>
429
+ <!-- Mage_Checkout -->
430
+ <remove name="right"/>
431
+ <remove name="left"/>
432
+
433
+ <block type="checkout/onepage_shipping_method_available" name="root" output="toHtml" template="checkout/onepage/shipping_method/available.phtml"/>
434
+ </checkout_onepage_shippingmethod>
435
+
436
+ <checkout_onepage_additional>
437
+ <!-- Mage_Checkout -->
438
+ <remove name="right"/>
439
+ <remove name="left"/>
440
+
441
+ <block type="checkout/onepage_shipping_method_additional" name="root" output="toHtml" template="checkout/onepage/shipping_method/additional.phtml">
442
+ <action method="setDontDisplayContainer"><param>1</param></action>
443
+ </block>
444
+ </checkout_onepage_additional>
445
+
446
+ <!--
447
+ One page checkout order review block
448
+ -->
449
+
450
+ <checkout_onepage_review translate="label">
451
+ <label>One Page Checkout Overview</label>
452
+ <!-- Mage_Checkout -->
453
+ <remove name="right"/>
454
+ <remove name="left"/>
455
+
456
+ <block type="checkout/onepage_review_info" name="root" output="toHtml" template="checkout/onepage/review/info.phtml">
457
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
458
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
459
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
460
+ <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
461
+ <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
462
+ <label>Items Before</label>
463
+ </block>
464
+ <block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
465
+ <label>Items After</label>
466
+ </block>
467
+ <block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
468
+ <block type="core/template" name="checkout.onepage.review.button" as="button" template="checkout/onepage/review/button.phtml"/>
469
+ </block>
470
+ </checkout_onepage_review>
471
+
472
+ <checkout_onepage_success translate="label">
473
+ <label>One Page Checkout Success</label>
474
+ <reference name="root">
475
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
476
+ </reference>
477
+ <reference name="content">
478
+ <block type="checkout/onepage_success" name="checkout.success" template="checkout/success.phtml"/>
479
+ </reference>
480
+ </checkout_onepage_success>
481
+ <checkout_onepage_failure translate="label">
482
+ <label>One Page Checkout Failure</label>
483
+ <reference name="root">
484
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
485
+ </reference>
486
+ <reference name="content">
487
+ <block type="checkout/onepage_failure" name="checkout.failure" template="checkout/onepage/failure.phtml"/>
488
+ </reference>
489
+ </checkout_onepage_failure>
490
+ <block type="core/list" name="additional.product.info"/>
491
+ </layout>
app/design/frontend/base/default/layout/cms.xml ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <layout version="0.1.0">
29
+ <!--
30
+ Default layout, loads most of the pages
31
+ -->
32
+
33
+ <default>
34
+ <reference name="footer">
35
+ <block type="cms/block" name="cms_footer_links" before="footer_links">
36
+ <!--
37
+ The content of this block is taken from the database by its block_id.
38
+ You can manage it in admin CMS -> Static Blocks
39
+ -->
40
+ <action method="setBlockId"><block_id>footer_links</block_id></action>
41
+ </block>
42
+ </reference>
43
+ </default>
44
+
45
+ <cms_page translate="label">
46
+ <label>CMS Pages (All)</label>
47
+ <reference name="content">
48
+ <block type="core/template" name="page_content_heading" template="cms/content_heading.phtml"/>
49
+ <block type="page/html_wrapper" name="cms.wrapper" translate="label">
50
+ <label>CMS Content Wrapper</label>
51
+ <action method="setElementClass"><value>std</value></action>
52
+ <block type="cms/page" name="cms_page"/>
53
+ </block>
54
+ </reference>
55
+ </cms_page>
56
+
57
+ <cms_index_index translate="label">
58
+ <label>CMS Home Page</label>
59
+ </cms_index_index>
60
+
61
+ <cms_index_defaultindex>
62
+ <remove name="right"/>
63
+ <remove name="left"/>
64
+
65
+ <reference name="root">
66
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
67
+ </reference>
68
+ <reference name="content">
69
+ <block type="core/template" name="default_home_page" template="cms/default/home.phtml"/>
70
+ </reference>
71
+ </cms_index_defaultindex>
72
+
73
+ <cms_index_noroute translate="label">
74
+ <label>CMS No-Route Page</label>
75
+ </cms_index_noroute>
76
+
77
+ <cms_index_defaultnoroute>
78
+ <remove name="right"/>
79
+ <remove name="left"/>
80
+
81
+ <reference name="root">
82
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
83
+ </reference>
84
+ <reference name="content">
85
+ <block type="core/template" name="default_no_route" template="cms/default/no-route.phtml"/>
86
+ </reference>
87
+ </cms_index_defaultnoroute>
88
+
89
+ </layout>
app/design/frontend/base/default/layout/contacts.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <layout version="0.1.0">
29
+ <default>
30
+ <reference name="footer_links">
31
+ <action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled"><label>Contact Us</label><url>contacts</url><title>Contact Us</title><prepare>true</prepare></action>
32
+ </reference>
33
+ </default>
34
+
35
+ <contacts_index_index translate="label">
36
+ <label>Contact Us Form</label>
37
+ <reference name="head">
38
+ <action method="setTitle" translate="title" module="contacts"><title>Contact Us</title></action>
39
+ </reference>
40
+ <reference name="root">
41
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
42
+ <action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action>
43
+ </reference>
44
+ <reference name="content">
45
+ <block type="core/template" name="contactForm" template="contacts/form.phtml"/>
46
+ </reference>
47
+ </contacts_index_index>
48
+ </layout>
app/design/frontend/base/default/layout/core.xml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <default>
31
+ <block name="formkey" type="core/template" template="core/formkey.phtml" />
32
+ </default>
33
+ </layout>
app/design/frontend/base/default/layout/customer.xml ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - 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
+ </reference>
54
+ </default>
55
+
56
+ <!--
57
+ Load this update on every page when customer is logged in
58
+ -->
59
+
60
+ <customer_logged_in>
61
+ <reference name="top.links">
62
+ <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>
63
+ </reference>
64
+ </customer_logged_in>
65
+
66
+ <!--
67
+ Load this update on every page when customer is logged out
68
+ -->
69
+
70
+ <customer_logged_out>
71
+ <!---<reference name="right">
72
+ <block type="customer/form_login" name="customer_form_mini_login" before="-" template="customer/form/mini.login.phtml"/>
73
+ </reference>-->
74
+ <reference name="top.links">
75
+ <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>
76
+ </reference>
77
+ <remove name="reorder"></remove>
78
+ </customer_logged_out>
79
+
80
+ <!--
81
+ Layout for customer login page
82
+ -->
83
+
84
+ <customer_account_login translate="label">
85
+ <label>Customer Account Login Form</label>
86
+ <!-- Mage_Customer -->
87
+ <remove name="right"/>
88
+ <remove name="left"/>
89
+
90
+ <reference name="root">
91
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
92
+ </reference>
93
+ <reference name="content">
94
+ <block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml" />
95
+ </reference>
96
+ </customer_account_login>
97
+
98
+ <!--
99
+ Layout for customer log out page
100
+ -->
101
+
102
+ <customer_account_logoutsuccess translate="label">
103
+ <label>Customer Account Logout Success</label>
104
+ <!-- Mage_Customer -->
105
+ <remove name="right"/>
106
+ <remove name="left"/>
107
+
108
+ <reference name="root">
109
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
110
+ </reference>
111
+ <reference name="content">
112
+ <block type="core/template" name="customer_logout" template="customer/logout.phtml"/>
113
+ </reference>
114
+ </customer_account_logoutsuccess>
115
+
116
+ <!--
117
+ New customer registration
118
+ -->
119
+
120
+ <customer_account_create translate="label">
121
+ <label>Customer Account Registration Form</label>
122
+ <!-- Mage_Customer -->
123
+ <remove name="right"/>
124
+ <remove name="left"/>
125
+
126
+ <reference name="root">
127
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
128
+ </reference>
129
+ <reference name="content">
130
+ <block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
131
+ <block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" translate="label">
132
+ <label>Form Fields Before</label>
133
+ </block>
134
+ </block>
135
+ </reference>
136
+ </customer_account_create>
137
+
138
+ <customer_account_forgotpassword translate="label">
139
+ <label>Customer Forgot Password Form</label>
140
+ <remove name="right"/>
141
+ <remove name="left"/>
142
+
143
+ <reference name="head">
144
+ <action method="setTitle" translate="title" module="customer"><title>Forgot Your Password</title></action>
145
+ </reference>
146
+ <reference name="root">
147
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
148
+ <action method="setHeaderTitle" translate="title" module="customer"><title>Password forgotten</title></action>
149
+ </reference>
150
+ <reference name="content">
151
+ <!--<block type="core/template" name="forgotPassword" template="customer/form/forgotpassword.phtml"/>-->
152
+ <block type="customer/account_forgotpassword" name="forgotPassword" template="customer/form/forgotpassword.phtml" />
153
+ </reference>
154
+ </customer_account_forgotpassword>
155
+
156
+ <customer_account_resetpassword translate="label">
157
+ <label>Reset a Password</label>
158
+ <remove name="right"/>
159
+ <remove name="left"/>
160
+
161
+ <reference name="head">
162
+ <action method="setTitle" translate="title" module="customer">
163
+ <title>Reset a Password</title>
164
+ </action>
165
+ </reference>
166
+ <reference name="root">
167
+ <action method="setTemplate">
168
+ <template>page/1column.phtml</template>
169
+ </action>
170
+ <action method="setHeaderTitle" translate="title" module="customer">
171
+ <title>Reset a Password</title>
172
+ </action>
173
+ </reference>
174
+ <reference name="content">
175
+ <block type="customer/account_resetpassword" name="resetPassword" template="customer/form/resetforgottenpassword.phtml"/>
176
+ </reference>
177
+ </customer_account_resetpassword>
178
+
179
+ <customer_account_confirmation>
180
+ <remove name="right"/>
181
+ <remove name="left"/>
182
+
183
+ <reference name="root">
184
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
185
+ <action method="setHeaderTitle" translate="title" module="customer"><title>Send confirmation link</title></action>
186
+ </reference>
187
+ <reference name="content">
188
+ <block type="core/template" name="accountConfirmation" template="customer/form/confirmation.phtml"/>
189
+ </reference>
190
+ </customer_account_confirmation>
191
+
192
+ <customer_account_edit translate="label">
193
+ <label>Customer Account Edit Form</label>
194
+ <update handle="customer_account"/>
195
+ <reference name="root">
196
+ <action method="setHeaderTitle" translate="title" module="customer"><title>Edit Account Info</title></action>
197
+ </reference>
198
+ <reference name="my.account.wrapper">
199
+ <block type="customer/form_edit" name="customer_edit" template="customer/form/edit.phtml"/>
200
+ </reference>
201
+
202
+ <reference name="left">
203
+ <action method="unsetChild"><name>left.permanent.callout</name></action>
204
+ </reference>
205
+ </customer_account_edit>
206
+
207
+ <!--
208
+ Customer account pages, rendered for all tabs in dashboard
209
+ -->
210
+
211
+ <customer_account translate="label">
212
+ <label>Customer My Account (All Pages)</label>
213
+ <!--remove name="catalog.compare.sidebar"/>
214
+ <remove name="sale.reorder.sidebar"/-->
215
+ <!-- Mage_Customer -->
216
+ <reference name="root">
217
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
218
+ </reference>
219
+
220
+ <reference name="content">
221
+ <block type="page/html_wrapper" name="my.account.wrapper" translate="label">
222
+ <label>My Account Wrapper</label>
223
+ <action method="setElementClass"><value>my-account</value></action>
224
+ </block>
225
+ </reference>
226
+
227
+ <reference name="left">
228
+ <block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml">
229
+ <action method="addLink" translate="label" module="customer"><name>account</name><path>customer/account/</path><label>Account Dashboard</label></action>
230
+ <action method="addLink" translate="label" module="customer"><name>account_edit</name><path>customer/account/edit/</path><label>Account Information</label></action>
231
+ <action method="addLink" translate="label" module="customer"><name>address_book</name><path>customer/address/</path><label>Address Book</label></action>
232
+ </block>
233
+ <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml">
234
+ <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
235
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
236
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
237
+ </block>
238
+ <block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
239
+ <remove name="tags_popular"/>
240
+
241
+ </reference>
242
+ </customer_account>
243
+
244
+ <!--
245
+ Customer account home dashboard layout
246
+ -->
247
+
248
+ <customer_account_index translate="label">
249
+ <label>Customer My Account Dashboard</label>
250
+ <update handle="customer_account"/>
251
+ <!-- Mage_Customer -->
252
+ <reference name="root">
253
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
254
+ </reference>
255
+ <reference name="my.account.wrapper">
256
+ <block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml">
257
+ <block type="customer/account_dashboard_hello" name="customer_account_dashboard_hello" as="hello" template="customer/account/dashboard/hello.phtml"/>
258
+ <block type="core/template" name="customer_account_dashboard_top" as="top" />
259
+ <block type="customer/account_dashboard_info" name="customer_account_dashboard_info" as="info" template="customer/account/dashboard/info.phtml"/>
260
+ <block type="customer/account_dashboard_newsletter" name="customer_account_dashboard_newsletter" as="newsletter" template="customer/account/dashboard/newsletter.phtml"/>
261
+ <block type="customer/account_dashboard_address" name="customer_account_dashboard_address" as="address" template="customer/account/dashboard/address.phtml"/>
262
+ </block>
263
+ </reference>
264
+
265
+ </customer_account_index>
266
+
267
+ <!--
268
+ Customer account address book
269
+ -->
270
+
271
+ <customer_address_index translate="label">
272
+ <label>Customer My Account Address Book</label>
273
+ <!-- Mage_Customer -->
274
+ <update handle="customer_account"/>
275
+ <reference name="my.account.wrapper">
276
+ <block type="customer/address_book" name="address_book" template="customer/address/book.phtml"/>
277
+ </reference>
278
+ </customer_address_index>
279
+
280
+ <!--
281
+ Customer account address edit page
282
+ -->
283
+
284
+ <customer_address_form translate="label">
285
+ <label>Customer My Account Address Edit Form</label>
286
+ <!-- Mage_Customer -->
287
+ <update handle="customer_account"/>
288
+ <reference name="my.account.wrapper">
289
+ <block type="customer/address_edit" name="customer_address_edit" template="customer/address/edit.phtml"/>
290
+ </reference>
291
+ </customer_address_form>
292
+
293
+ </layout>
app/design/frontend/base/default/layout/customerActivation.xml ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <customer_account_login>
4
+ <reference name="customer_form_login">
5
+ <action method="setTemplate">
6
+ <template>customerActivation/customerActivation.phtml</template>
7
+ </action>
8
+ </reference>
9
+ </customer_account_login>
10
+ <default>
11
+ <reference name="catalog.topnav">
12
+ <action method="addLink" translate="label">
13
+ <label>Quick Order</label>
14
+ <type>path</type>
15
+ <path>customeractivation/productorder/quickorderproduct/</path>
16
+ </action>
17
+ </reference>
18
+ </default>
19
+
20
+ <customer_logged_out>
21
+ <reference name="top.links">
22
+ <action method="addLink" translate="label title" module="customer" ifconfig="customer/customeractivation/disable_ext">
23
+ <label>Wholesale Registration</label>
24
+ <url>customerActivation/index/wholesale</url>
25
+ <title>Wholesale Registration</title>
26
+ <prepare>true</prepare>
27
+ <urlParams/>
28
+ <position>155</position>
29
+ </action>
30
+ </reference>
31
+ </customer_logged_out>
32
+ <customeractivation_index_wholesale>
33
+ <remove name="customer_form_register"/>
34
+ <reference name="content">
35
+ <block type = 'customer/form_register' name = 'wholesaleregister' template = 'customerActivation/wholesaleRegister.phtml'></block>
36
+ </reference>
37
+ </customeractivation_index_wholesale>
38
+ <customeractivation_index_wholesalelogin>
39
+ <remove name="customer_form_login"/>
40
+ <reference name="content">
41
+ <block type = 'customer/form_login' name = 'wholesalelogin' template = 'customerActivation/wholesaleLogin.phtml'></block>
42
+ </reference>
43
+ </customeractivation_index_wholesalelogin>
44
+ <checkout_onepage_paymentmethod>
45
+ <block type="checkout/onepage_payment_methods" name="root" output="toHtml" template="customerActivation/checkout/onepage/payment/methods.phtml">
46
+ <action method="setMethodFormTemplate">
47
+ <method>purchaseorder</method>
48
+ <template>payment/form/purchaseorder.phtml</template>
49
+ </action>
50
+ </block>
51
+ </checkout_onepage_paymentmethod>
52
+ <checkout_onepage_shippingmethod>
53
+ <!-- Mage_Checkout -->
54
+ <remove name="right"/>
55
+ <remove name="left"/>
56
+
57
+ <block type="checkout/onepage_shipping_method_available" name="root" output="toHtml" template="customerActivation/checkout/onepage/shipping_method/available.phtml"/>
58
+ </checkout_onepage_shippingmethod>
59
+ <customeractivation_productorder_quickorderproduct>
60
+ <reference name="root">
61
+ <action method="setTemplate">
62
+ <template>page/1column.phtml</template>
63
+ </action>
64
+ </reference>
65
+ <update handle="customer_account" />
66
+ <reference name="my.account.wrapper">
67
+ <block type="customeractivation/orderproduct" name="ordermgt" template="customerActivation/quickorderproduct.phtml"/>
68
+ </reference>
69
+ </customeractivation_productorder_quickorderproduct>
70
+
71
+ </layout>
app/design/frontend/base/default/layout/directory.xml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Category default layout
33
+ -->
34
+ <default>
35
+ <reference name="head">
36
+ <block type="core/template" name="optional_zip_countries" as="optional_zip_countries" template="directory/js/optional_zip_countries.phtml" />
37
+ </reference>
38
+ </default>
39
+
40
+ <catalog_category_default>
41
+ <reference name="left">
42
+ <block type="directory/currency" name="currency" before="catalog.leftnav" template="directory/currency.phtml"/>
43
+ </reference>
44
+ </catalog_category_default>
45
+
46
+ <!--
47
+ Category layered navigation layout
48
+ -->
49
+
50
+ <catalog_category_layered>
51
+ <reference name="left">
52
+ <block type="directory/currency" name="currency" before="catalog.leftnav" template="directory/currency.phtml"/>
53
+ </reference>
54
+ </catalog_category_layered>
55
+
56
+ <!--
57
+ Catalog Search layout
58
+ -->
59
+
60
+ <catalogsearch_advanced_index>
61
+ <reference name="left">
62
+ <block type="directory/currency" name="right_currency" before="-" template="directory/currency.phtml"/>
63
+ </reference>
64
+ </catalogsearch_advanced_index>
65
+
66
+ <catalogsearch_result_index>
67
+ <reference name="left">
68
+ <block type="directory/currency" name="currency" before="-" template="directory/currency.phtml"/>
69
+ </reference>
70
+ </catalogsearch_result_index>
71
+
72
+ <catalogsearch_advanced_result>
73
+ <reference name="right">
74
+ <block type="directory/currency" name="right_currency" before="-" template="directory/currency.phtml"/>
75
+ </reference>
76
+ </catalogsearch_advanced_result>
77
+
78
+ </layout>
app/design/frontend/base/default/layout/downloadable.xml ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <customer_account>
32
+ <reference name="customer_account_navigation">
33
+ <action method="addLink" translate="label" module="downloadable"><name>downloadable_products</name><path>downloadable/customer/products</path><label>My Downloadable Products</label></action>
34
+ </reference>
35
+ </customer_account>
36
+
37
+ <downloadable_customer_products translate="label">
38
+ <label>Customer My Account Downloadable Items</label>
39
+ <update handle="customer_account"/>
40
+ <reference name="my.account.wrapper">
41
+ <block type="downloadable/customer_products_list" name="downloadable_customer_products_list" template="downloadable/customer/products/list.phtml" />
42
+ </reference>
43
+ <reference name="root">
44
+ <action method="setHeaderTitle" translate="title" module="downloadable"><title>My Downloadable Products</title></action>
45
+ </reference>
46
+ </downloadable_customer_products>
47
+
48
+ <checkout_cart_index>
49
+ <reference name="checkout.cart">
50
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/checkout_cart_item_renderer</block><template>downloadable/checkout/cart/item/default.phtml</template></action>
51
+ </reference>
52
+ </checkout_cart_index>
53
+
54
+ <checkout_onepage_review>
55
+ <reference name="root">
56
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/checkout_cart_item_renderer</block><template>downloadable/checkout/onepage/review/item.phtml</template></action>
57
+ </reference>
58
+ </checkout_onepage_review>
59
+
60
+ <checkout_onepage_success>
61
+ <reference name="checkout.success">
62
+ <block type="downloadable/checkout_success" name="downloadable.checkout.success" template="downloadable/checkout/success.phtml"/>
63
+ </reference>
64
+ </checkout_onepage_success>
65
+
66
+ <checkout_multishipping_addresses>
67
+ <reference name="checkout_addresses">
68
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/checkout_cart_item_renderer</block><template>downloadable/checkout/multishipping/item/downloadable.phtml</template></action>
69
+ </reference>
70
+ </checkout_multishipping_addresses>
71
+
72
+ <checkout_multishipping_shipping>
73
+ <reference name="checkout_billing_items">
74
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/checkout_cart_item_renderer</block><template>downloadable/checkout/multishipping/item/downloadable.phtml</template></action>
75
+ </reference>
76
+ </checkout_multishipping_shipping>
77
+
78
+ <checkout_multishipping_overview>
79
+ <reference name="checkout_overview">
80
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/checkout_cart_item_renderer</block><template>downloadable/checkout/multishipping/item/downloadable.phtml</template></action>
81
+ </reference>
82
+ </checkout_multishipping_overview>
83
+
84
+ <checkout_multishipping_success>
85
+ <reference name="checkout_success">
86
+ <block type="downloadable/checkout_success" name="downloadable.checkout.success" template="downloadable/checkout/success.phtml"/>
87
+ </reference>
88
+ </checkout_multishipping_success>
89
+
90
+ <paypal_express_review>
91
+ <reference name="paypal.express.review.details">
92
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/checkout_cart_item_renderer</block><template>downloadable/checkout/onepage/review/item.phtml</template></action>
93
+ </reference>
94
+ </paypal_express_review>
95
+ <paypal_express_review_details>
96
+ <reference name="root">
97
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/checkout_cart_item_renderer</block><template>downloadable/checkout/onepage/review/item.phtml</template></action>
98
+ </reference>
99
+ </paypal_express_review_details>
100
+
101
+ <paypaluk_express_review>
102
+ <reference name="paypal.express.review.details">
103
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/checkout_cart_item_renderer</block><template>downloadable/checkout/onepage/review/item.phtml</template></action>
104
+ </reference>
105
+ </paypaluk_express_review>
106
+ <paypaluk_express_review_details>
107
+ <reference name="root">
108
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/checkout_cart_item_renderer</block><template>downloadable/checkout/onepage/review/item.phtml</template></action>
109
+ </reference>
110
+ </paypaluk_express_review_details>
111
+
112
+ <sales_order_view>
113
+ <reference name="order_items">
114
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/items/renderer/downloadable.phtml</template></action>
115
+ </reference>
116
+ </sales_order_view>
117
+
118
+ <sales_order_invoice>
119
+ <reference name="invoice_items">
120
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/invoice/items/renderer/downloadable.phtml</template></action>
121
+ </reference>
122
+ </sales_order_invoice>
123
+
124
+ <sales_order_creditmemo>
125
+ <reference name="creditmemo_items">
126
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/creditmemo/items/renderer/downloadable.phtml</template></action>
127
+ </reference>
128
+ </sales_order_creditmemo>
129
+
130
+ <!--
131
+ Print pages
132
+ -->
133
+
134
+ <sales_order_print>
135
+ <reference name="sales.order.print">
136
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/items/renderer/downloadable.phtml</template></action>
137
+ </reference>
138
+ </sales_order_print>
139
+
140
+ <sales_order_printinvoice>
141
+ <reference name="sales.order.print.invoice">
142
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/invoice/items/renderer/downloadable.phtml</template></action>
143
+ </reference>
144
+ </sales_order_printinvoice>
145
+
146
+ <sales_order_printcreditmemo>
147
+ <reference name="sales.order.print.creditmemo">
148
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/creditmemo/items/renderer/downloadable.phtml</template></action>
149
+ </reference>
150
+ </sales_order_printcreditmemo>
151
+
152
+ <!--
153
+ EOF Print pages
154
+ -->
155
+
156
+ <!--
157
+ For guests
158
+ -->
159
+ <sales_guest_view>
160
+ <reference name="order_items">
161
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/items/renderer/downloadable.phtml</template></action>
162
+ </reference>
163
+ </sales_guest_view>
164
+
165
+ <sales_guest_invoice>
166
+ <reference name="invoice_items">
167
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/invoice/items/renderer/downloadable.phtml</template></action>
168
+ </reference>
169
+ </sales_guest_invoice>
170
+
171
+ <sales_guest_creditmemo>
172
+ <reference name="creditmemo_items">
173
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/creditmemo/items/renderer/downloadable.phtml</template></action>
174
+ </reference>
175
+ </sales_guest_creditmemo>
176
+
177
+ <sales_guest_print>
178
+ <reference name="sales.order.print">
179
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/items/renderer/downloadable.phtml</template></action>
180
+ </reference>
181
+ </sales_guest_print>
182
+
183
+ <sales_guest_printinvoice>
184
+ <reference name="sales.order.print.invoice">
185
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/invoice/items/renderer/downloadable.phtml</template></action>
186
+ </reference>
187
+ </sales_guest_printinvoice>
188
+
189
+ <sales_guest_printcreditmemo>
190
+ <reference name="sales.order.print.creditmemo">
191
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/creditmemo/items/renderer/downloadable.phtml</template></action>
192
+ </reference>
193
+ </sales_guest_printcreditmemo>
194
+
195
+ <!--
196
+ Emails
197
+ -->
198
+
199
+ <sales_email_order_items>
200
+ <reference name="items">
201
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_email_items_order_downloadable</block><template>downloadable/email/order/items/order/downloadable.phtml</template></action>
202
+ </reference>
203
+ </sales_email_order_items>
204
+
205
+ <sales_email_order_invoice_items>
206
+ <reference name="items">
207
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_email_items_downloadable</block><template>downloadable/email/order/items/invoice/downloadable.phtml</template></action>
208
+ </reference>
209
+ </sales_email_order_invoice_items>
210
+
211
+ <sales_email_order_creditmemo_items>
212
+ <reference name="items">
213
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_email_items_downloadable</block><template>downloadable/email/order/items/creditmemo/downloadable.phtml</template></action>
214
+ </reference>
215
+ </sales_email_order_creditmemo_items>
216
+
217
+ <PRODUCT_TYPE_downloadable translate="label" module="downloadable">
218
+ <label>Catalog Product View (Downloadable)</label>
219
+ <reference name="product.info">
220
+ <block type="downloadable/catalog_product_view_type" name="product.info.downloadable" as="product_type_data" template="downloadable/catalog/product/type.phtml">
221
+ <block type="downloadable/catalog_product_samples" name="product.info.downloadable.samples" as="samples" template="downloadable/catalog/product/samples.phtml"/>
222
+ <block type="cataloginventory/stockqty_default" name="product.info.downloadable.extra" as="product_type_data_extra" template="cataloginventory/stockqty/default.phtml"/>
223
+ </block>
224
+ </reference>
225
+ <reference name="product.info.options.wrapper">
226
+ <block type="downloadable/catalog_product_links" name="product.info.downloadable.options" as="type_downloadable_options" before="-" template="downloadable/catalog/product/links.phtml"/>
227
+ <action method="insert"><block>product.info.downloadable.options</block></action>
228
+ </reference>
229
+ </PRODUCT_TYPE_downloadable>
230
+
231
+ </layout>
app/design/frontend/base/default/layout/em_quickshop.xml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="head">
5
+ <block type="page/html" name="top.Js" as="topJs" template="em_quickshop/page/html/jshead.phtml"/>
6
+ <action method="addCss"><stylesheet>css/em_quickshop.css</stylesheet></action>
7
+ <action method="addCss"><stylesheet>css/jquery.fancybox-1.3.4.css</stylesheet></action>
8
+ <action method="addItem"><type>skin_js</type><name>js/jquery.js</name></action>
9
+ <action method="addItem"><type>skin_js</type><name>js/jquery.fancybox-1.3.4.pack.js</name></action>
10
+ <action method="addItem"><type>skin_js</type><name>js/em_quickshop.js</name></action>
11
+ </reference>
12
+ </default>
13
+
14
+
15
+
16
+
17
+ <quickshop_index_view>
18
+ <update handle="catalog_product_view"/>
19
+ </quickshop_index_view>
20
+
21
+ <quickshop_index_view_FINAL>
22
+ <reference name="root">
23
+ <action method="setTemplate"><template>em_quickshop/product.phtml</template></action>
24
+ <action method="setIsHandle"><applied>1</applied></action>
25
+ </reference>
26
+ <reference name="head">
27
+ <action method="addCss"><stylesheet>css/em_quickshop_frame.css</stylesheet></action>
28
+ </reference>
29
+ <reference name="content">
30
+ <remove name="product.info.upsell"/>
31
+ <remove name="product.info.additional"/>
32
+ <remove name="product.description"/>
33
+ <remove name="product.attributes"/>
34
+ </reference>
35
+ <reference name="before_body_end">
36
+ <block type="core/template" template="em_quickshop/page/html/credits.phtml" />
37
+ </reference>
38
+ </quickshop_index_view_FINAL>
39
+
40
+ </layout>
app/design/frontend/base/default/layout/googleanalytics.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Default layout, loads most of the pages
33
+ -->
34
+
35
+ <default>
36
+ <!-- Mage_GoogleAnalytics -->
37
+ <reference name="head" before="-">
38
+ <block type="googleanalytics/ga" name="google_analytics" as="google_analytics" template="googleanalytics/ga.phtml" />
39
+ </reference>
40
+ </default>
41
+ </layout>
app/design/frontend/base/default/layout/moneybookers.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-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
+ * @category design
17
+ * @package base_default
18
+ * @copyright Copyright (c) 2014 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+ -->
23
+ <layout version="0.1.0">
24
+ <moneybookers_processing_payment>
25
+ <reference name="root">
26
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
27
+ </reference>
28
+ <reference name="content">
29
+ <block type="moneybookers/payment" name="moneybookers_payment" template="moneybookers/payment.phtml" />
30
+ </reference>
31
+ </moneybookers_processing_payment>
32
+
33
+ <moneybookers_processing_placeform>
34
+ <reference name="root">
35
+ <action method="setTemplate"><template>moneybookers/blank.phtml</template></action>
36
+ </reference>
37
+ <reference name="content">
38
+ <block type="moneybookers/placeform" name="moneybookers_placeform" template="moneybookers/placeform.phtml" />
39
+ </reference>
40
+ </moneybookers_processing_placeform>
41
+ </layout>
app/design/frontend/base/default/layout/newsletter.xml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Default layout, loads most of the pages
33
+ -->
34
+
35
+ <default>
36
+
37
+ <!-- Mage_Newsletter -->
38
+ <reference name="left">
39
+ <block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
40
+ </reference>
41
+
42
+ </default>
43
+
44
+ <!--
45
+ Customer account pages, rendered for all tabs in dashboard
46
+ -->
47
+
48
+ <customer_account>
49
+ <!-- Mage_Newsletter -->
50
+ <reference name="customer_account_navigation">
51
+ <action method="addLink" translate="label" module="newsletter"><name>newsletter</name><path>newsletter/manage/</path><label>Newsletter Subscriptions</label></action>
52
+ </reference>
53
+ <remove name="left.newsletter"/>
54
+ </customer_account>
55
+
56
+ <newsletter_manage_index translate="label">
57
+ <label>Customer My Account Newsletter Subscriptions</label>
58
+ <update handle="customer_account"/>
59
+ <reference name="my.account.wrapper">
60
+ <block type="customer/newsletter" name="customer_newsletter">
61
+ <block type="page/html_wrapper" name="customer.newsletter.form.before" as="form_before" translate="label">
62
+ <label>Newsletter Subscription Form Before</label>
63
+ <action method="setMayBeInvisible"><value>1</value></action>
64
+ </block>
65
+ </block>
66
+ </reference>
67
+ </newsletter_manage_index>
68
+
69
+ </layout>
app/design/frontend/base/default/layout/oauth.xml ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <layout version="1.0.0.0">
29
+ <oauth_root_handle>
30
+ <reference name="root">
31
+ <action method="setTemplate">
32
+ <template>page/1column.phtml</template>
33
+ </action>
34
+ </reference>
35
+ <reference name="head">
36
+ <action method="removeItem"><type>js</type><name>lib/ccard.js</name></action>
37
+ <action method="removeItem"><type>js</type><name>scriptaculous/controls.js</name></action>
38
+ <action method="removeItem"><type>js</type><name>scriptaculous/builder.js</name></action>
39
+ <action method="removeItem"><type>js</type><name>scriptaculous/dragdrop.js</name></action>
40
+ <action method="removeItem"><type>js</type><name>scriptaculous/controls.js</name></action>
41
+ <action method="removeItem"><type>js</type><name>scriptaculous/slider.js</name></action>
42
+ <action method="removeItem"><type>js</type><name>varien/js.js</name></action>
43
+ <action method="removeItem"><type>js</type><name>varien/menu.js</name></action>
44
+ </reference>
45
+ <remove name="top.links"/>
46
+ <remove name="top.search"/>
47
+ <remove name="top.menu"/>
48
+ <remove name="footer"/>
49
+ </oauth_root_handle>
50
+
51
+ <oauth_root_handle_simple>
52
+ <remove name="js_cookie" />
53
+ <block type="page/html" name="root" output="toHtml" template="page/empty.phtml">
54
+ <block type="page/html_head" name="head" as="head" template="oauth/authorize/head-simple.phtml">
55
+ <action method="addCss"><stylesheet>css/oauth-simple.css</stylesheet></action>
56
+ </block>
57
+ <block type="core/text_list" name="content"/>
58
+ </block>
59
+ </oauth_root_handle_simple>
60
+
61
+ <!-- Authorization -->
62
+ <oauth_authorize_index translate="label">
63
+ <update handle="oauth_root_handle"/>
64
+ <label>OAuth authorization for customer</label>
65
+ <reference name="content">
66
+ <block type="oauth/authorize" name="oauth.authorize.form" template="oauth/authorize/form/login.phtml"/>
67
+ <block type="oauth/authorize_button" name="oauth.authorize.button" template="oauth/authorize/button.phtml" />
68
+ </reference>
69
+ </oauth_authorize_index>
70
+
71
+ <oauth_authorize_simple translate="label">
72
+ <update handle="oauth_root_handle_simple"/>
73
+ <remove name="header"/>
74
+ <label>OAuth authorization Pop Up for customer</label>
75
+ <reference name="content">
76
+ <block type="oauth/authorize" name="oauth.authorize.form" template="oauth/authorize/form/login-simple.phtml"/>
77
+ <block type="oauth/authorize_button" name="oauth.authorize.button" template="oauth/authorize/button-simple.phtml" />
78
+ </reference>
79
+ </oauth_authorize_simple>
80
+ <!-- EOF Authorization -->
81
+
82
+ <!-- Confirm Authorization -->
83
+ <oauth_authorize_confirm translate="label">
84
+ <update handle="oauth_root_handle"/>
85
+ <label>Confirm OAuth token authorization</label>
86
+ <reference name="content">
87
+ <block type="oauth/authorize_button" name="oauth.authorize.confirm" template="oauth/authorize/confirm.phtml"/>
88
+ </reference>
89
+ </oauth_authorize_confirm>
90
+
91
+ <oauth_authorize_confirmsimple translate="label">
92
+ <update handle="oauth_root_handle_simple"/>
93
+ <remove name="header"/>
94
+ <reference name="content">
95
+ <block type="oauth/authorize_button" name="oauth.authorize.confirm" template="oauth/authorize/confirm-simple.phtml"/>
96
+ </reference>
97
+ </oauth_authorize_confirmsimple>
98
+ <!-- EOF Confirm Authorization -->
99
+
100
+ <!-- Reject Authorization -->
101
+ <oauth_authorize_reject translate="label">
102
+ <update handle="oauth_root_handle"/>
103
+ <label>Reject OAuth token authorization</label>
104
+ <reference name="content">
105
+ <block type="oauth/authorize_button" name="oauth.authorize.reject" template="oauth/authorize/reject.phtml"/>
106
+ </reference>
107
+ </oauth_authorize_reject>
108
+
109
+ <oauth_authorize_rejectsimple translate="label">
110
+ <update handle="oauth_root_handle_simple"/>
111
+ <remove name="header"/>
112
+ <reference name="content">
113
+ <block type="oauth/authorize_button" name="oauth.authorize.reject" template="oauth/authorize/reject-simple.phtml"/>
114
+ </reference>
115
+ </oauth_authorize_rejectsimple>
116
+ <!-- EOF Reject Authorization -->
117
+
118
+ <!-- My Applications-->
119
+ <customer_account>
120
+ <reference name="customer_account_navigation">
121
+ <action method="addLink" translate="label" module="oauth">
122
+ <name>OAuth Customer Tokens</name>
123
+ <path>oauth/customer_token</path>
124
+ <label>My Applications</label>
125
+ </action>
126
+ </reference>
127
+ </customer_account>
128
+
129
+ <oauth_customer_token_index translate="label">
130
+ <label>Customer My Account My OAuth Applications</label>
131
+ <update handle="customer_account"/>
132
+ <reference name="my.account.wrapper">
133
+ <block type="oauth/customer_token_list" name="oauth_customer_token_list" template="oauth/customer/token/list.phtml"/>
134
+ </reference>
135
+ </oauth_customer_token_index>
136
+ <!-- EOF My Applications-->
137
+ </layout>
app/design/frontend/base/default/layout/page.xml ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <layout version="0.1.0">
29
+ <!--
30
+ Default layout, loads most of the pages
31
+ -->
32
+
33
+ <default translate="label" module="page">
34
+ <label>All Pages</label>
35
+ <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">
36
+
37
+ <block type="page/html_head" name="head" as="head">
38
+ <action method="addJs"><script>prototype/prototype.js</script></action>
39
+ <action method="addJs"><script>lib/ccard.js</script></action>
40
+ <action method="addJs"><script>prototype/validation.js</script></action>
41
+ <action method="addJs"><script>scriptaculous/builder.js</script></action>
42
+ <action method="addJs"><script>scriptaculous/effects.js</script></action>
43
+ <action method="addJs"><script>scriptaculous/dragdrop.js</script></action>
44
+ <action method="addJs"><script>scriptaculous/controls.js</script></action>
45
+ <action method="addJs"><script>scriptaculous/slider.js</script></action>
46
+ <action method="addJs"><script>varien/js.js</script></action>
47
+ <action method="addJs"><script>varien/form.js</script></action>
48
+ <action method="addJs"><script>varien/menu.js</script></action>
49
+ <action method="addJs"><script>mage/translate.js</script></action>
50
+ <action method="addJs"><script>mage/cookies.js</script></action>
51
+
52
+ <block type="page/js_cookie" name="js_cookies" template="page/js/cookie.phtml"/>
53
+
54
+ <action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
55
+ <action method="addItem"><type>skin_css</type><name>css/styles-ie.css</name><params/><if>lt IE 8</if></action>
56
+ <action method="addCss"><stylesheet>css/widgets.css</stylesheet></action>
57
+ <action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
58
+
59
+ <action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
60
+ <action method="addItem"><type>skin_js</type><name>js/ie6.js</name><params/><if>lt IE 7</if></action>
61
+ </block>
62
+
63
+ <block type="core/text_list" name="after_body_start" as="after_body_start" translate="label">
64
+ <label>Page Top</label>
65
+ </block>
66
+
67
+ <block type="page/html_notices" name="global_notices" as="global_notices" template="page/html/notices.phtml" />
68
+
69
+ <block type="page/html_header" name="header" as="header">
70
+ <block type="page/template_links" name="top.links" as="topLinks"/>
71
+ <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
72
+ <block type="core/text_list" name="top.menu" as="topMenu" translate="label">
73
+ <label>Navigation Bar</label>
74
+ <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
75
+ </block>
76
+ <block type="page/html_wrapper" name="top.container" as="topContainer" translate="label">
77
+ <label>Page Header</label>
78
+ <action method="setElementClass"><value>top-container</value></action>
79
+ </block>
80
+ <block type="page/html_welcome" name="welcome" as="welcome"/>
81
+ </block>
82
+
83
+ <block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
84
+
85
+ <block type="core/text_list" name="left" as="left" translate="label">
86
+ <label>Left Column</label>
87
+ </block>
88
+
89
+ <block type="core/messages" name="global_messages" as="global_messages"/>
90
+ <block type="core/messages" name="messages" as="messages"/>
91
+
92
+ <block type="core/text_list" name="content" as="content" translate="label">
93
+ <label>Main Content Area</label>
94
+ </block>
95
+
96
+ <block type="core/text_list" name="right" as="right" translate="label">
97
+ <label>Right Column</label>
98
+ </block>
99
+
100
+ <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
101
+ <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
102
+ <label>Page Footer</label>
103
+ <action method="setElementClass"><value>bottom-container</value></action>
104
+ </block>
105
+ <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>
106
+ <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>
107
+ </block>
108
+
109
+ <block type="core/text_list" name="before_body_end" as="before_body_end" translate="label">
110
+ <label>Page Bottom</label>
111
+ <block type="page/html_cookieNotice" name="global_cookie_notice" as ="global_cookie_notice" template="page/html/cookienotice.phtml" before="-" />
112
+ </block>
113
+ </block>
114
+
115
+ <block type="core/profiler" output="toHtml" name="core_profiler"/>
116
+ </default>
117
+
118
+ <print translate="label" module="page">
119
+ <label>All Pages (Print Version)</label>
120
+ <!-- Mage_Page -->
121
+ <block type="page/html" name="root" output="toHtml" template="page/print.phtml">
122
+
123
+ <block type="page/html_head" name="head" as="head">
124
+ <action method="addJs"><script>prototype/prototype.js</script></action>
125
+ <action method="addJs"><script>mage/translate.js</script></action>
126
+ <action method="addJs"><script>lib/ccard.js</script></action>
127
+ <action method="addJs"><script>prototype/validation.js</script></action>
128
+ <action method="addJs"><script>varien/js.js</script></action>
129
+
130
+ <action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
131
+ <action method="addItem"><type>skin_css</type><name>css/styles-ie.css</name><params/><if>lt IE 8</if></action>
132
+ <action method="addCss"><stylesheet>css/widgets.css</stylesheet></action>
133
+ <action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
134
+
135
+ <action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
136
+ <action method="addItem"><type>skin_js</type><name>js/ie6.js</name><params/><if>lt IE 7</if></action>
137
+
138
+ </block>
139
+
140
+ <block type="core/text_list" name="content" as="content" translate="label">
141
+ <label>Main Content Area</label>
142
+ </block>
143
+
144
+ </block>
145
+ </print>
146
+
147
+ <!-- Custom page layout handles -->
148
+ <page_empty translate="label">
149
+ <label>All Empty Layout Pages</label>
150
+ <reference name="root">
151
+ <action method="setTemplate"><template>page/empty.phtml</template></action>
152
+ <!-- Mark root page block that template is applied -->
153
+ <action method="setIsHandle"><applied>1</applied></action>
154
+ </reference>
155
+ </page_empty>
156
+
157
+ <page_one_column translate="label">
158
+ <label>All One-Column Layout Pages</label>
159
+ <reference name="root">
160
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
161
+ <!-- Mark root page block that template is applied -->
162
+ <action method="setIsHandle"><applied>1</applied></action>
163
+ </reference>
164
+ </page_one_column>
165
+
166
+ <page_two_columns_left translate="label">
167
+ <label>All Two-Column Layout Pages (Left Column)</label>
168
+ <reference name="root">
169
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
170
+ <!-- Mark root page block that template is applied -->
171
+ <action method="setIsHandle"><applied>1</applied></action>
172
+ </reference>
173
+ </page_two_columns_left>
174
+
175
+ <page_two_columns_right translate="label">
176
+ <label>All Two-Column Layout Pages (Right Column)</label>
177
+ <reference name="root">
178
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
179
+ <!-- Mark root page block that template is applied -->
180
+ <action method="setIsHandle"><applied>1</applied></action>
181
+ </reference>
182
+ </page_two_columns_right>
183
+
184
+ <page_three_columns translate="label">
185
+ <label>All Three-Column Layout Pages</label>
186
+ <reference name="root">
187
+ <action method="setTemplate"><template>page/3columns.phtml</template></action>
188
+ <!-- Mark root page block that template is applied -->
189
+ <action method="setIsHandle"><applied>1</applied></action>
190
+ </reference>
191
+ </page_three_columns>
192
+ </layout>
app/design/frontend/base/default/layout/pagecache.xml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <catalog_product_view>
31
+ <reference name="content">
32
+ <block type="core/template" name="external.pagecache.cookie" template="pagecache/cookie.phtml"/>
33
+ </reference>
34
+ </catalog_product_view>
35
+ </layout>
app/design/frontend/base/default/layout/payment.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <catalog_product_view>
31
+ <reference name="product.info">
32
+ <block type="payment/catalog_product_view_profile" name="product.info.additional.recurring.schedule" as="recurring_info" template="payment/catalog/product/view/profile/schedule.phtml">
33
+ <action method="addToParentGroup"><group>detailed_info</group></action>
34
+ <action method="setTitle" translate="value"><value>Recurring Profile</value></action>
35
+ </block>
36
+ </reference>
37
+ <reference name="product.info.options.wrapper">
38
+ <block type="payment/catalog_product_view_profile" name="product.info.options.recurring" as="recurring_options" template="payment/catalog/product/view/profile/options.phtml"/>
39
+ </reference>
40
+ </catalog_product_view>
41
+ </layout>
app/design/frontend/base/default/layout/paypal.xml ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <checkout_cart_index>
31
+ <reference name="checkout.cart.top_methods">
32
+ <block type="paypal/express_shortcut" name="checkout.cart.methods.paypal_express.top" before="-" template="paypal/express/shortcut.phtml">
33
+ <action method="setIsQuoteAllowed"><value>1</value></action>
34
+ </block>
35
+ </reference>
36
+
37
+ <reference name="checkout.cart.methods">
38
+ <block type="paypal/express_shortcut" name="checkout.cart.methods.paypal_express.bottom" before="-" template="paypal/express/shortcut.phtml">
39
+ <action method="setIsQuoteAllowed"><value>1</value></action>
40
+ </block>
41
+ </reference>
42
+
43
+ <update handle="SHORTCUT_popup" />
44
+ </checkout_cart_index>
45
+
46
+ <paypal_express_review translate="label">
47
+ <label>PayPal Express Order Review Form</label>
48
+ <remove name="right"/>
49
+ <remove name="left"/>
50
+
51
+ <reference name="root">
52
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
53
+ </reference>
54
+ <reference name="content">
55
+ <block type="paypal/express_review" name="paypal.express.review" template="paypal/express/review.phtml">
56
+ <block type="paypal/express_review" name="express.review.shipping.method" as="shipping_method" template="paypal/express/review/shipping/method.phtml"/>
57
+ <block type="paypal/express_review_details" name="paypal.express.review.details" as="details" template="paypal/express/review/details.phtml">
58
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
59
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
60
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
61
+ <block type="checkout/cart_totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
62
+ </block>
63
+ <block type="checkout/agreements" name="paypal.express.review.details.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
64
+ </block>
65
+ </reference>
66
+ <reference name="head">
67
+ <action method="addItem"><type>skin_js</type><name>js/checkout/review.js</name></action>
68
+ </reference>
69
+ <block type="core/text_list" name="additional.product.info" />
70
+ </paypal_express_review>
71
+
72
+ <paypal_express_review_details>
73
+ <block type="paypal/express_review_details" name="root" output="toHtml" template="paypal/express/review/details.phtml">
74
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
75
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
76
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
77
+ <block type="checkout/cart_totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
78
+ </block>
79
+ </paypal_express_review_details>
80
+
81
+ <!--
82
+ Available logo types can be assigned with action="setLogoType":
83
+ - wePrefer_150x60
84
+ - wePrefer_150x40
85
+ - nowAccepting_150x60
86
+ - nowAccepting_150x40
87
+ - paymentsBy_150x60
88
+ - paymentsBy_150x40
89
+ - shopNowUsing_150x60
90
+ - shopNowUsing_150x40
91
+ -->
92
+ <catalog_product_view>
93
+ <reference name="product.info.addtocart">
94
+ <block type="page/html_wrapper" name="product.info.addtocart.paypal.wrapper" translate="label">
95
+ <label>PayPal Express Checkout Shortcut Wrapper</label>
96
+ <block type="paypal/express_shortcut" name="product.info.addtocart.paypal" template="paypal/express/shortcut.phtml">
97
+ <action method="setIsInCatalogProduct"><value>1</value></action>
98
+ </block>
99
+ </block>
100
+ </reference>
101
+ <update handle="SHORTCUT_popup" />
102
+ <reference name="right">
103
+ <block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml">
104
+ <!--action method="setLogoType"><value>wePrefer_150x60</value></action-->
105
+ </block>
106
+ </reference>
107
+ </catalog_product_view>
108
+
109
+ <catalog_category_default>
110
+ <update handle="SHORTCUT_popup" />
111
+ <reference name="right">
112
+ <block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/>
113
+ </reference>
114
+ </catalog_category_default>
115
+
116
+ <catalog_category_layered>
117
+ <update handle="SHORTCUT_popup" />
118
+ <reference name="right">
119
+ <block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/>
120
+ </reference>
121
+ </catalog_category_layered>
122
+
123
+ <catalog_product_compare_index>
124
+ <update handle="SHORTCUT_popup" />
125
+ </catalog_product_compare_index>
126
+
127
+ <catalogsearch_result_index>
128
+ <update handle="SHORTCUT_popup" />
129
+ </catalogsearch_result_index>
130
+
131
+ <catalogsearch_advanced_result>
132
+ <update handle="SHORTCUT_popup" />
133
+ </catalogsearch_advanced_result>
134
+
135
+ <tag_product_list>
136
+ <update handle="SHORTCUT_popup" />
137
+ </tag_product_list>
138
+ <tag_customer_view>
139
+ <update handle="SHORTCUT_popup" />
140
+ </tag_customer_view>
141
+
142
+ <wishlist_index_index>
143
+ <update handle="SHORTCUT_popup" />
144
+ </wishlist_index_index>
145
+ <review_product_list>
146
+ <update handle="SHORTCUT_popup" />
147
+ </review_product_list>
148
+
149
+ <checkout_onepage_success>
150
+ <update handle="SHORTCUT_popup" />
151
+ </checkout_onepage_success>
152
+ <checkout_onepage_failure>
153
+ <update handle="SHORTCUT_popup" />
154
+ </checkout_onepage_failure>
155
+
156
+ <cms_index_index>
157
+ <reference name="right">
158
+ <block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/>
159
+ </reference>
160
+ </cms_index_index>
161
+
162
+ <default>
163
+ <reference name="topCart.extra_actions">
164
+ <block type="paypal/express_shortcut" name="paypal.partner.top_cart.shortcut" template="paypal/express/shortcut.phtml"/>
165
+ </reference>
166
+ <reference name="cart_sidebar.extra_actions">
167
+ <block type="paypal/express_shortcut" name="paypal.partner.cart_sidebar.shortcut" template="paypal/express/shortcut.phtml"/>
168
+ </reference>
169
+ </default>
170
+
171
+ <checkout_onepage_review>
172
+ <reference name="checkout.onepage.review.info.items.after">
173
+ <block type="paypal/iframe" name="paypal.iframe" />
174
+ </reference>
175
+ <reference name="checkout.onepage.review.button">
176
+ <action method="setTemplate"><template helper="paypal/hss/getReviewButtonTemplate"><name>paypal/hss/review/button.phtml</name><block>checkout.onepage.review.button</block></template></action>
177
+ </reference>
178
+ </checkout_onepage_review>
179
+
180
+ <paypal_payflow_link_iframe>
181
+ <block type="paypal/payflow_link_iframe" name="payflow.link.iframe" template="paypal/payflowlink/form.phtml" />
182
+ </paypal_payflow_link_iframe>
183
+
184
+ <paypal_payflow_advanced_iframe>
185
+ <block type="paypal/payflow_advanced_iframe" name="payflow.advanced.iframe" template="paypal/payflowadvanced/form.phtml" />
186
+ </paypal_payflow_advanced_iframe>
187
+
188
+ <paypal_hosted_pro_iframe>
189
+ <block type="paypal/hosted_pro_iframe" name="hosted.pro.iframe" template="paypal/hss/form.phtml"/>
190
+ </paypal_hosted_pro_iframe>
191
+
192
+ <SHORTCUT_popup>
193
+ <reference name="product.tooltip">
194
+ <block type="page/html_wrapper" name="product.info.addtocart.paypal.wrapper" translate="label">
195
+ <block type="paypal/express_shortcut" name="product.info.addtocart.paypal" template="paypal/express/shortcut.phtml">
196
+ <action method="setIsInCatalogProduct"><value>1</value></action>
197
+ <action method="setShowOrPosition"><value>after</value></action>
198
+ </block>
199
+ </block>
200
+ </reference>
201
+ </SHORTCUT_popup>
202
+ </layout>
app/design/frontend/base/default/layout/paypaluk.xml ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <checkout_cart_index>
31
+ <reference name="checkout.cart.top_methods">
32
+ <block type="paypaluk/express_shortcut" name="checkout.cart.methods.paypaluk_express.top" before="-" template="paypal/express/shortcut.phtml">
33
+ <action method="setIsQuoteAllowed"><value>1</value></action>
34
+ </block>
35
+ </reference>
36
+ <reference name="checkout.cart.methods">
37
+ <block type="paypaluk/express_shortcut" name="checkout.cart.methods.paypaluk_express.bottom" before="-" template="paypal/express/shortcut.phtml">
38
+ <action method="setIsQuoteAllowed"><value>1</value></action>
39
+ </block>
40
+ </reference>
41
+
42
+ <update handle="SHORTCUT_uk_popup" />
43
+ </checkout_cart_index>
44
+
45
+ <paypaluk_express_review translate="label">
46
+ <label>PayPal Express Order Review Form</label>
47
+ <remove name="right"/>
48
+ <remove name="left"/>
49
+
50
+ <reference name="root">
51
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
52
+ </reference>
53
+ <reference name="content">
54
+ <block type="paypal/express_review" name="paypal.express.review" template="paypal/express/review.phtml">
55
+ <action method="setPaypalActionPrefix"><prefix>paypaluk</prefix></action>
56
+ <block type="paypal/express_review" name="express.review.shipping.method" as="shipping_method" template="paypal/express/review/shipping/method.phtml"/>
57
+ <block type="paypal/express_review_details" name="paypal.express.review.details" as="details" template="paypal/express/review/details.phtml">
58
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
59
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
60
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
61
+ <block type="checkout/cart_totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
62
+ </block>
63
+ <block type="checkout/agreements" name="paypal.express.review.details.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
64
+ </block>
65
+ </reference>
66
+ <reference name="head">
67
+ <action method="addItem"><type>skin_js</type><name>js/checkout/review.js</name></action>
68
+ </reference>
69
+ </paypaluk_express_review>
70
+
71
+ <paypal_express_review_details>
72
+ <block type="paypal/express_review_details" name="root" output="toHtml" template="paypal/express/review/details.phtml">
73
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
74
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
75
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
76
+ <block type="checkout/cart_totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
77
+ </block>
78
+ </paypal_express_review_details>
79
+
80
+ <catalog_product_view>
81
+ <reference name="product.info.addtocart">
82
+ <block type="page/html_wrapper" name="product.info.addtocart.paypaluk.wrapper" translate="label">
83
+ <label>PayPal Express Checkout (Payflow Edition) Shortcut Wrapper</label>
84
+ <action method="setHtmlTagName"><tag>p</tag></action>
85
+ <action method="setElementClass"><class>paypal-logo</class></action>
86
+ <block type="paypaluk/express_shortcut" name="product.info.addtocart.paypaluk" template="paypal/express/shortcut.phtml">
87
+ <action method="setIsInCatalogProduct"><value>1</value></action>
88
+ </block>
89
+ </block>
90
+ </reference>
91
+ <update handle="SHORTCUT_uk_popup" />
92
+ </catalog_product_view>
93
+
94
+ <default>
95
+ <reference name="topCart.extra_actions">
96
+ <block type="paypaluk/express_shortcut" name="paypaluk.partner.top_cart.shortcut" template="paypal/express/shortcut.phtml"/>
97
+ </reference>
98
+ <reference name="cart_sidebar.extra_actions">
99
+ <block type="paypaluk/express_shortcut" name="paypaluk.partner.cart_sidebar.shortcut" template="paypal/express/shortcut.phtml"/>
100
+ </reference>
101
+ </default>
102
+
103
+ <catalog_category_default>
104
+ <update handle="SHORTCUT_uk_popup" />
105
+ </catalog_category_default>
106
+
107
+ <catalog_category_layered>
108
+ <update handle="SHORTCUT_uk_popup" />
109
+ </catalog_category_layered>
110
+
111
+ <catalog_product_compare_index>
112
+ <update handle="SHORTCUT_uk_popup" />
113
+ </catalog_product_compare_index>
114
+
115
+ <catalogsearch_result_index>
116
+ <update handle="SHORTCUT_uk_popup" />
117
+ </catalogsearch_result_index>
118
+
119
+ <catalogsearch_advanced_result>
120
+ <update handle="SHORTCUT_uk_popup" />
121
+ </catalogsearch_advanced_result>
122
+
123
+ <tag_product_list>
124
+ <update handle="SHORTCUT_uk_popup" />
125
+ </tag_product_list>
126
+ <tag_customer_view>
127
+ <update handle="SHORTCUT_uk_popup" />
128
+ </tag_customer_view>
129
+
130
+ <wishlist_index_index>
131
+ <update handle="SHORTCUT_uk_popup" />
132
+ </wishlist_index_index>
133
+
134
+ <review_product_list>
135
+ <update handle="SHORTCUT_uk_popup" />
136
+ </review_product_list>
137
+
138
+ <checkout_onepage_success>
139
+ <update handle="SHORTCUT_uk_popup" />
140
+ </checkout_onepage_success>
141
+ <checkout_onepage_failure>
142
+ <update handle="SHORTCUT_uk_popup" />
143
+ </checkout_onepage_failure>
144
+
145
+ <SHORTCUT_uk_popup>
146
+ <reference name="product.tooltip">
147
+ <block type="page/html_wrapper" name="product.info.addtocart.paypaluk.wrapper" translate="label">
148
+ <block type="paypaluk/express_shortcut" name="product.info.addtocart.paypaluk" template="paypal/express/shortcut.phtml">
149
+ <action method="setIsInCatalogProduct"><value>1</value></action>
150
+ <action method="setShowOrPosition"><value>after</value></action>
151
+ </block>
152
+ </block>
153
+ </reference>
154
+ </SHORTCUT_uk_popup>
155
+ </layout>
app/design/frontend/base/default/layout/persistent.xml ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <customer_account_login>
31
+ <reference name="customer_form_login">
32
+ <action method="setTemplate"><template>persistent/customer/form/login.phtml</template></action>
33
+ <block type="persistent/form_remember" name="persistent.remember.me" template="persistent/remember_me.phtml" />
34
+ <block type="core/template" name="persistent.remember.me.tooltip" template="persistent/remember_me_tooltip.phtml" />
35
+ </reference>
36
+ </customer_account_login>
37
+
38
+ <customer_account_create>
39
+ <reference name="customer_form_register">
40
+ <action method="setTemplate"><template>persistent/customer/form/register.phtml</template></action>
41
+ <block type="persistent/form_remember" name="persistent.remember.me" template="persistent/remember_me.phtml" />
42
+ <block type="core/template" name="persistent.remember.me.tooltip" template="persistent/remember_me_tooltip.phtml" />
43
+ </reference>
44
+ </customer_account_create>
45
+
46
+ <checkout_onepage_index>
47
+ <reference name="checkout.onepage.login">
48
+ <action method="setTemplate"><template>persistent/checkout/onepage/login.phtml</template></action>
49
+ <block type="persistent/form_remember" name="persistent.remember.me" template="persistent/remember_me.phtml" />
50
+ </reference>
51
+ <reference name="checkout.onepage.billing">
52
+ <action method="setTemplate"><template>persistent/checkout/onepage/billing.phtml</template></action>
53
+ <block type="persistent/form_remember" name="persistent.remember.me" template="persistent/remember_me.phtml" />
54
+ <block type="core/template" name="persistent.remember.me.tooltip" template="persistent/remember_me_tooltip.phtml" />
55
+ </reference>
56
+ </checkout_onepage_index>
57
+ <customer_logged_out>
58
+ <reference name="right">
59
+ <block type="sales/reorder_sidebar" name="sale.reorder.sidebar" as="reorder" template="sales/reorder/sidebar.phtml"/>
60
+ </reference>
61
+ </customer_logged_out>
62
+ </layout>
app/design/frontend/base/default/layout/poll.xml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Default layout, loads most of the pages
33
+ -->
34
+
35
+ <default>
36
+
37
+ <!-- Mage_Poll -->
38
+ <reference name="right">
39
+ <block type="poll/activePoll" name="right.poll">
40
+ <action method="setPollTemplate"><template>poll/active.phtml</template><type>poll</type></action>
41
+ <action method="setPollTemplate"><template>poll/result.phtml</template><type>results</type></action>
42
+ </block>
43
+ </reference>
44
+
45
+ </default>
46
+
47
+ <!--
48
+ Customer account home dashboard layout
49
+ -->
50
+
51
+ <customer_account_index>
52
+ <reference name="right">
53
+ <action method="unsetChild"><name>right.poll</name></action>
54
+ </reference>
55
+ </customer_account_index>
56
+
57
+ </layout>
app/design/frontend/base/default/layout/productalert.xml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <layout version="0.1.0">
29
+ <catalog_product_view>
30
+ <reference name="content">
31
+ <reference name="product.info">
32
+ <reference name="alert.urls">
33
+ <block type="productalert/product_view" name="productalert.price" as="productalert_price" template="productalert/product/view.phtml">
34
+ <action method="preparePriceAlertData"/>
35
+ <action method="setHtmlClass"><value>alert-price link-price-alert</value></action>
36
+ <action method="setSignupLabel" translate="value"><value>Sign up for price alert</value></action>
37
+ </block>
38
+ <block type="productalert/product_view" name="productalert.stock" as="productalert_stock" template="productalert/product/view.phtml">
39
+ <action method="prepareStockAlertData"/>
40
+ <action method="setHtmlClass"><value>alert-stock link-stock-alert</value></action>
41
+ <action method="setSignupLabel" translate="value"><value>Sign up to get notified when this product is back in stock</value></action>
42
+ </block>
43
+ </reference>
44
+ </reference>
45
+ </reference>
46
+ </catalog_product_view>
47
+ </layout>
app/design/frontend/base/default/layout/reports.xml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <default>
31
+ <!-- Mage_Reports -->
32
+ <reference name="right">
33
+ <block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />
34
+ <block type="reports/product_compared" before="right.permanent.callout" name="right.reports.product.compared" template="reports/product_compared.phtml" />
35
+ </reference>
36
+ </default>
37
+
38
+ <catalog_category_layered_nochildren translate="label">
39
+ <label>Catalog Category (Without Subcategories)</label>
40
+ <remove name="right.reports.product.viewed" />
41
+ <reference name="right">
42
+ <block type="reports/product_viewed" before="right.permanent.callout" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
43
+ </reference>
44
+ </catalog_category_layered_nochildren>
45
+ </layout>
app/design/frontend/base/default/layout/review.xml ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <customer_account>
32
+ <!-- Mage_Review -->
33
+ <reference name="customer_account_navigation">
34
+ <action method="addLink" translate="label" module="review"><name>reviews</name><path>review/customer</path><label>My Product Reviews</label></action>
35
+ </reference>
36
+
37
+ </customer_account>
38
+
39
+ <!--
40
+ Customer account home dashboard layout
41
+ -->
42
+
43
+ <customer_account_index>
44
+
45
+ <!-- Mage_Review -->
46
+ <reference name="customer_account_dashboard">
47
+ <block type="review/customer_recent" name="customer_account_dashboard_info1" as="info1" template="review/customer/recent.phtml"/>
48
+ </reference>
49
+
50
+ </customer_account_index>
51
+
52
+
53
+ <!--
54
+ Product reviews page (?)
55
+ -->
56
+
57
+ <reviews>
58
+ <!-- Mage_Review -->
59
+ <reference name="root">
60
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
61
+ </reference>
62
+ </reviews>
63
+
64
+ <!--
65
+ Product reviews page
66
+ -->
67
+
68
+ <review_product_list translate="label">
69
+ <label>Catalog Product Reviews List</label>
70
+ <reference name="root">
71
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
72
+ </reference>
73
+ <reference name="head">
74
+ <action method="addJs"><script>varien/product.js</script></action>
75
+ <action method="addJs"><script>varien/configurable.js</script></action>
76
+ </reference>
77
+ <reference name="content">
78
+ <block type="review/product_view" name="product.info" template="catalog/product/view.phtml">
79
+ <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml">
80
+ <action method="disableGallery"/>
81
+ </block>
82
+ <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
83
+ <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml">
84
+ <!-- workaround: a better place for this code is in paypal.xml -->
85
+ <block type="page/html_wrapper" name="review.product.info.addtocart.paypal.wrapper" translate="label" module="paypal">
86
+ <label>PayPal Express Checkout Shortcut Wrapper</label>
87
+ <block type="paypal/express_shortcut" name="review.product.info.addtocart.paypal" template="paypal/express/shortcut.phtml">
88
+ <action method="setIsInCatalogProduct"><value>1</value></action>
89
+ </block>
90
+ </block>
91
+ </block>
92
+ <block type="catalog/product_view" name="product.tierprices" as="tierprices" template="catalog/product/view/tierprices.phtml"/>
93
+ <block type="core/template" name="product.info.other" as="other" template="review/product/view/other.phtml"/>
94
+ <block type="page/html_pager" name="product_review_list.toolbar" />
95
+ <block type="core/template" name="product_review_list.count" template="review/product/view/count.phtml" />
96
+ <block type="review/product_view_list" name="product.info.product_additional_data" as="product_additional_data" template="review/product/view/list.phtml">
97
+ <block type="review/form" name="product.review.form" as="review_form">
98
+ <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label">
99
+ <label>Review Form Fields Before</label>
100
+ <action method="setMayBeInvisible"><value>1</value></action>
101
+ </block>
102
+ </block>
103
+ </block>
104
+ </block>
105
+ </reference>
106
+ </review_product_list>
107
+
108
+ <review_product_view translate="label">
109
+ <label>Catalog Product Review View</label>
110
+ <reference name="root">
111
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
112
+ </reference>
113
+ <reference name="content">
114
+ <block type="review/view" name="review_view"/>
115
+ </reference>
116
+ </review_product_view>
117
+
118
+ <review_customer_index translate="label">
119
+ <label>Customer My Account Product Reviews</label>
120
+ <update handle="customer_account"/>
121
+ <reference name="my.account.wrapper">
122
+ <block type="review/customer_list" name="review_customer_list" template="review/customer/list.phtml"/>
123
+ </reference>
124
+ </review_customer_index>
125
+
126
+ <review_customer_view translate="label">
127
+ <label>Customer My Account Review Details</label>
128
+ <update handle="customer_account"/>
129
+ <reference name="my.account.wrapper">
130
+ <block type="review/customer_view" name="customers_review"/>
131
+ </reference>
132
+ </review_customer_view>
133
+
134
+ </layout>
app/design/frontend/base/default/layout/rss.xml ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <layout version="0.1.0">
29
+ <!--
30
+ Default layout, loads most of the pages
31
+ -->
32
+ <default>
33
+ <reference name="footer_links">
34
+ <action method="addLink" translate="label title" module="rss" ifconfig="rss/config/active"><label>RSS</label><url>rss</url><title>RSS</title><prepare>true</prepare><urlParams/><position/><li/><a>class="link-rss"</a></action>
35
+ </reference>
36
+ <block type="rss/list" name="head_rss" ifconfig="rss/config/active" />
37
+ </default>
38
+
39
+ <rss_index_index translate="label">
40
+ <label>RSS Feeds List</label>
41
+ <reference name="root">
42
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
43
+ </reference>
44
+ <reference name="content">
45
+ <block type="rss/list" name="rss.list" template="rss/list.phtml"/>
46
+ </reference>
47
+ </rss_index_index>
48
+
49
+ <rss_index_nofeed>
50
+ <block type="core/template" name="root" output="toHtml" template="rss/nofeed.phtml"/>
51
+ </rss_index_nofeed>
52
+
53
+ <rss_index_wishlist>
54
+ <block type="rss/wishlist" name="rss.wishlist" output="toHtml">
55
+ <action method="addPriceBlockType"><type>msrp_rss</type><block>catalog/product_price</block><template>wishlist/render/item/price_msrp_rss.phtml</template></action>
56
+ </block>
57
+ </rss_index_wishlist>
58
+ <!--
59
+ Catalog layout
60
+ -->
61
+ <rss_catalog_new>
62
+ <block type="rss/catalog_new" output="toHtml" name="rss.catalog.new">
63
+ <action method="addPriceBlockType"><type>msrp_rss</type><block>catalog/product_price</block><template>catalog/product/price_msrp_rss.phtml</template></action>
64
+ </block>
65
+ </rss_catalog_new>
66
+
67
+ <rss_catalog_special>
68
+ <block type="rss/catalog_special" output="toHtml" name="rss.catalog.special" />
69
+ </rss_catalog_special>
70
+
71
+ <rss_catalog_salesrule>
72
+ <block type="rss/catalog_salesrule" output="toHtml" name="rss.catalog.salesrule" />
73
+ </rss_catalog_salesrule>
74
+
75
+ <rss_catalog_tag>
76
+ <block type="rss/catalog_tag" output="toHtml" name="rss.catalog.tag">
77
+ <action method="addPriceBlockType"><type>msrp_rss</type><block>catalog/product_price</block><template>catalog/product/price_msrp_rss.phtml</template></action>
78
+ </block>
79
+ </rss_catalog_tag>
80
+
81
+ <rss_catalog_notifystock>
82
+ <block type="rss/catalog_notifyStock" output="toHtml" name="rss.catalog.notifystock" />
83
+ </rss_catalog_notifystock>
84
+
85
+ <rss_catalog_review>
86
+ <block type="rss/catalog_review" output="toHtml" name="rss.catalog.review" />
87
+ </rss_catalog_review>
88
+
89
+ <rss_catalog_category>
90
+ <block type="rss/catalog_category" output="toHtml" name="rss.catalog.category">
91
+ <action method="addPriceBlockType"><type>msrp_rss</type><block>catalog/product_price</block><template>catalog/product/price_msrp_rss.phtml</template></action>
92
+ </block>
93
+ </rss_catalog_category>
94
+ <!--
95
+ Order layout
96
+ -->
97
+ <rss_order_new>
98
+ <block type="rss/order_new" output="toHtml" name="rss.order.new"/>
99
+ </rss_order_new>
100
+ <rss_order_status>
101
+ <block type="rss/order_status" output="toHtml" name="rss.order.status"/>
102
+ </rss_order_status>
103
+ </layout>
app/design/frontend/base/default/layout/sales.xml ADDED
@@ -0,0 +1,526 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Customer account pages, rendered for all tabs in dashboard
33
+ -->
34
+
35
+
36
+ <customer_logged_in>
37
+ <reference name="right">
38
+ <block type="sales/reorder_sidebar" name="sale.reorder.sidebar" as="reorder" template="sales/reorder/sidebar.phtml"/>
39
+ </reference>
40
+ </customer_logged_in>
41
+ <checkout_onepage_index>
42
+ <remove name="sale.reorder.sidebar"/>
43
+ </checkout_onepage_index>
44
+ <checkout_onepage_reorder>
45
+ <reference name="right">
46
+ <action method="unsetChild"><name>reorder</name></action>
47
+ </reference>
48
+ </checkout_onepage_reorder>
49
+
50
+ <customer_account>
51
+ <!-- Mage_Sales -->
52
+ <reference name="customer_account_navigation">
53
+ <action method="addLink" translate="label" module="sales"><name>orders</name><path>sales/order/history/</path><label>My Orders</label></action>
54
+ </reference>
55
+ <reference name="left">
56
+ <block type="sales/reorder_sidebar" name="sale.reorder.sidebar" as="reorder" template="sales/reorder/sidebar.phtml"/>
57
+ </reference>
58
+
59
+ </customer_account>
60
+
61
+ <!--
62
+ Customer account home dashboard layout
63
+ -->
64
+
65
+ <customer_account_index>
66
+ <!-- Mage_Sales -->
67
+ <!--remove name="customer_account_dashboard_top"/-->
68
+ <reference name="customer_account_dashboard">
69
+ <block type="sales/order_recent" name="customer_account_dashboard_top" as="top" template="sales/order/recent.phtml"/>
70
+ </reference>
71
+
72
+ </customer_account_index>
73
+
74
+ <sales_order_history translate="label">
75
+ <label>Customer My Account Order History</label>
76
+ <update handle="customer_account"/>
77
+ <reference name="my.account.wrapper">
78
+ <block type="sales/order_history" name="sales.order.history">
79
+ <block type="core/text_list" name="sales.order.history.info" as="info" translate="label">
80
+ <label>Order History Info</label>
81
+ </block>
82
+ </block>
83
+ <block type="customer/account_dashboard" name="customer.account.link.back" template="customer/account/link/back.phtml"/>
84
+ </reference>
85
+ </sales_order_history>
86
+
87
+
88
+ <sales_order_view translate="label">
89
+ <label>Customer My Account Order View</label>
90
+ <update handle="customer_account"/>
91
+ <reference name="my.account.wrapper">
92
+ <block type="sales/order_info" as="info" name="sales.order.info">
93
+ <block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
94
+ </block>
95
+ <block type="sales/order_view" name="sales.order.view">
96
+ <block type="sales/order_items" name="order_items" template="sales/order/items.phtml">
97
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
98
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
99
+ <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
100
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
101
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
102
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
103
+ </block>
104
+ </block>
105
+ </block>
106
+ </reference>
107
+ <reference name="sales.order.info">
108
+ <action method="addLink" translate="label" module="sales"><name>view</name><path></path><label>Order Information</label></action>
109
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
110
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
111
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
112
+ </reference>
113
+ <block type="core/text_list" name="additional.product.info" translate="label">
114
+ <label>Additional Product Info</label>
115
+ </block>
116
+ </sales_order_view>
117
+
118
+ <sales_order_invoice translate="label">
119
+ <label>Customer My Account Order Invoice View</label>
120
+ <update handle="customer_account"/>
121
+ <reference name="my.account.wrapper">
122
+ <block type="sales/order_info" as="info" name="sales.order.info">
123
+ <block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
124
+ </block>
125
+ <block type="sales/order_invoice" name="sales.order.invoice">
126
+ <block type="sales/order_invoice_items" name="invoice_items" template="sales/order/invoice/items.phtml">
127
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
128
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
129
+ <block type="sales/order_invoice_totals" name="invoice_totals" template="sales/order/totals.phtml">
130
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
131
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
132
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
133
+ </block>
134
+ <block type="sales/order_comments" name="invoice_comments" template="sales/order/comments.phtml" />
135
+ </block>
136
+ </block>
137
+ </reference>
138
+ <reference name="sales.order.info">
139
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
140
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path></path><label>Invoices</label></action>
141
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
142
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
143
+ </reference>
144
+ <block type="core/text_list" name="additional.product.info" />
145
+ </sales_order_invoice>
146
+
147
+ <sales_order_shipment translate="label">
148
+ <label>Customer My Account Order Shipment View</label>
149
+ <update handle="customer_account"/>
150
+ <reference name="my.account.wrapper">
151
+ <block type="sales/order_info" as="info" name="sales.order.info">
152
+ <block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
153
+ </block>
154
+ <block type="sales/order_shipment" name="sales.order.shipment">
155
+ <block type="sales/order_shipment_items" name="shipment_items" template="sales/order/shipment/items.phtml">
156
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
157
+ <block type="sales/order_comments" name="shipment_comments" template="sales/order/comments.phtml" />
158
+ </block>
159
+ </block>
160
+ </reference>
161
+ <reference name="sales.order.info">
162
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
163
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
164
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path></path><label>Shipments</label></action>
165
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
166
+ </reference>
167
+ <block type="core/text_list" name="additional.product.info" />
168
+ </sales_order_shipment>
169
+
170
+ <sales_order_creditmemo translate="label">
171
+ <label>Customer My Account Order Creditmemo View</label>
172
+ <update handle="customer_account"/>
173
+ <reference name="my.account.wrapper">
174
+ <block type="sales/order_info" as="info" name="sales.order.info">
175
+ <block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
176
+ </block>
177
+ <block type="sales/order_creditmemo" name="sales.order.creditmemo">
178
+ <block type="sales/order_creditmemo_items" name="creditmemo_items" template="sales/order/creditmemo/items.phtml">
179
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
180
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
181
+ <block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="sales/order/totals.phtml">
182
+ <action method="setLabelProperties"><value>colspan="6" class="a-right"</value></action>
183
+ <action method="setValueProperties"><value>class="a-right"</value></action>
184
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
185
+ </block>
186
+ <block type="sales/order_comments" name="creditmemo_comments" template="sales/order/comments.phtml" />
187
+ </block>
188
+ </block>
189
+ </reference>
190
+ <reference name="sales.order.info">
191
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
192
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
193
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
194
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path></path><label>Refunds</label></action>
195
+ </reference>
196
+ <block type="core/text_list" name="additional.product.info" />
197
+ </sales_order_creditmemo>
198
+
199
+ <sales_order_reorder>
200
+ <update handle="customer_account"/>
201
+ <reference name="content">
202
+ <block type="sales/order_view" name="sales.order.view"/>
203
+ </reference>
204
+ </sales_order_reorder>
205
+
206
+ <sales_order_print translate="label">
207
+ <label>Sales Order Print View</label>
208
+ <reference name="content">
209
+ <block type="sales/order_print" name="sales.order.print" template="sales/order/print.phtml">
210
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
211
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
212
+ <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
213
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
214
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
215
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
216
+ <action method="setIsPlaneMode"><value>1</value></action>
217
+ </block>
218
+ </block>
219
+ </block>
220
+ </reference>
221
+ <block type="core/text_list" name="additional.product.info" />
222
+ </sales_order_print>
223
+
224
+ <sales_order_printinvoice translate="label">
225
+ <label>Sales Invoice Print View</label>
226
+ <reference name="content">
227
+ <block type="sales/order_print_invoice" name="sales.order.print.invoice" template="sales/order/print/invoice.phtml">
228
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
229
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
230
+ <block type="sales/order_invoice_totals" name="invoice_totals" template="sales/order/totals.phtml">
231
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
232
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
233
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
234
+ <action method="setIsPlaneMode"><value>1</value></action>
235
+ </block>
236
+ </block>
237
+ </block>
238
+ </reference>
239
+ <block type="core/text_list" name="additional.product.info" />
240
+ </sales_order_printinvoice>
241
+
242
+ <sales_order_printshipment translate="label">
243
+ <label>Sales Shipment Print View</label>
244
+ <reference name="content">
245
+ <block type="sales/order_print_shipment" name="sales.order.print.shipment" template="sales/order/print/shipment.phtml">
246
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
247
+ </block>
248
+ </reference>
249
+ <block type="core/text_list" name="additional.product.info" />
250
+ </sales_order_printshipment>
251
+
252
+ <sales_order_printcreditmemo>
253
+ <reference name="content">
254
+ <block type="sales/order_print_creditmemo" name="sales.order.print.creditmemo" template="sales/order/print/creditmemo.phtml">
255
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
256
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
257
+ <block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="sales/order/totals.phtml">
258
+ <action method="setLabelProperties"><value>colspan="6" class="a-right"</value></action>
259
+ <action method="setValueProperties"><value>class="a-right"</value></action>
260
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
261
+ <action method="setIsPlaneMode"><value>1</value></action>
262
+ </block>
263
+ </block>
264
+ </block>
265
+ </reference>
266
+ <block type="core/text_list" name="additional.product.info" />
267
+ </sales_order_printcreditmemo>
268
+
269
+ <!--
270
+ Email layouts section
271
+ -->
272
+ <sales_email_order_items>
273
+ <block type="sales/order_email_items" name="items" template="email/order/items.phtml">
274
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_order_default</block><template>email/order/items/order/default.phtml</template></action>
275
+ <action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/order/default.phtml</template></action>
276
+ <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
277
+ <action method="setLabelProperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
278
+ <action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
279
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
280
+ <action method="setIsPlaneMode"><value>1</value></action>
281
+ </block>
282
+ </block>
283
+ </block>
284
+ <block type="core/text_list" name="additional.product.info" />
285
+ </sales_email_order_items>
286
+
287
+ <sales_email_order_invoice_items>
288
+ <block type="sales/order_email_invoice_items" name="items" template="email/order/invoice/items.phtml">
289
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/invoice/default.phtml</template></action>
290
+ <action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/invoice/default.phtml</template></action>
291
+ <block type="sales/order_invoice_totals" name="invoice_totals" template="sales/order/totals.phtml">
292
+ <action method="setLabelProperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
293
+ <action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
294
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
295
+ <action method="setIsPlaneMode"><value>1</value></action>
296
+ </block>
297
+ </block>
298
+ </block>
299
+ <block type="core/text_list" name="additional.product.info" />
300
+ </sales_email_order_invoice_items>
301
+
302
+ <sales_email_order_shipment_items>
303
+ <block type="sales/order_email_shipment_items" name="items" template="email/order/shipment/items.phtml">
304
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/shipment/default.phtml</template></action>
305
+ </block>
306
+ <block type="core/text_list" name="additional.product.info" />
307
+ </sales_email_order_shipment_items>
308
+
309
+ <sales_email_order_creditmemo_items>
310
+ <block type="sales/order_email_creditmemo_items" name="items" template="email/order/creditmemo/items.phtml">
311
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/creditmemo/default.phtml</template></action>
312
+ <action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/creditmemo/default.phtml</template></action>
313
+ <block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="sales/order/totals.phtml">
314
+ <action method="setLabelProperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
315
+ <action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
316
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
317
+ <action method="setIsPlaneMode"><value>1</value></action>
318
+ </block>
319
+ </block>
320
+ </block>
321
+ <block type="core/text_list" name="additional.product.info" />
322
+ </sales_email_order_creditmemo_items>
323
+
324
+ <!--
325
+ Guest
326
+ -->
327
+
328
+ <sales_guest_form translate="label">
329
+ <label>Returns</label>
330
+ <reference name="root">
331
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
332
+ </reference>
333
+ <reference name="content">
334
+ <block type="sales/widget_guest_form" name="guest.form" template="sales/guest/form.phtml"/>
335
+ </reference>
336
+ </sales_guest_form>
337
+
338
+
339
+ <sales_guest_view translate="label">
340
+ <label>Customer My Account Order View</label>
341
+ <reference name="root">
342
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
343
+ </reference>
344
+ <reference name="content">
345
+ <block type="sales/order_info" as="info" name="sales.order.info">
346
+ <block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
347
+ </block>
348
+ <block type="sales/order_view" name="sales.order.view">
349
+ <block type="sales/order_items" name="order_items" template="sales/order/items.phtml">
350
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
351
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
352
+ <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
353
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
354
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
355
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
356
+ </block>
357
+ </block>
358
+ </block>
359
+ </reference>
360
+ <reference name="sales.order.info">
361
+ <action method="addLink" translate="label" module="sales"><name>view</name><path></path><label>Order Information</label></action>
362
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
363
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
364
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
365
+ </reference>
366
+ </sales_guest_view>
367
+
368
+ <sales_guest_invoice translate="label">
369
+ <label>Customer My Account Order Invoice View</label>
370
+ <reference name="root">
371
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
372
+ </reference>
373
+ <reference name="content">
374
+ <block type="sales/order_info" as="info" name="sales.order.info">
375
+ <block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
376
+ </block>
377
+ <block type="sales/order_invoice" name="sales.order.invoice">
378
+ <block type="sales/order_invoice_items" name="invoice_items" template="sales/order/invoice/items.phtml">
379
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
380
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
381
+ <block type="sales/order_invoice_totals" name="invoice_totals" template="sales/order/totals.phtml">
382
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
383
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
384
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
385
+ </block>
386
+ <block type="sales/order_comments" name="invoice_comments" template="sales/order/comments.phtml" />
387
+ </block>
388
+ </block>
389
+ </reference>
390
+ <reference name="sales.order.info">
391
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
392
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path></path><label>Invoices</label></action>
393
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
394
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
395
+ </reference>
396
+ </sales_guest_invoice>
397
+
398
+ <sales_guest_shipment translate="label">
399
+ <label>Customer My Account Order Shipment View</label>
400
+ <reference name="root">
401
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
402
+ </reference>
403
+ <reference name="content">
404
+ <block type="sales/order_info" as="info" name="sales.order.info">
405
+ <block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
406
+ </block>
407
+ <block type="sales/order_shipment" name="sales.order.shipment">
408
+ <block type="sales/order_shipment_items" name="shipment_items" template="sales/order/shipment/items.phtml">
409
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
410
+ <block type="sales/order_comments" name="shipment_comments" template="sales/order/comments.phtml" />
411
+ </block>
412
+ </block>
413
+ </reference>
414
+ <reference name="sales.order.info">
415
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
416
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
417
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path></path><label>Shipments</label></action>
418
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
419
+ </reference>
420
+ </sales_guest_shipment>
421
+
422
+ <sales_guest_creditmemo translate="label">
423
+ <label>Customer My Account Order Creditmemo View</label>
424
+ <reference name="root">
425
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
426
+ </reference>
427
+ <reference name="content">
428
+ <block type="sales/order_info" as="info" name="sales.order.info">
429
+ <block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
430
+ </block>
431
+ <block type="sales/order_creditmemo" name="sales.order.creditmemo">
432
+ <block type="sales/order_creditmemo_items" name="creditmemo_items" template="sales/order/creditmemo/items.phtml">
433
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
434
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
435
+ <block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="sales/order/totals.phtml">
436
+ <action method="setLabelProperties"><value>colspan="6" class="a-right"</value></action>
437
+ <action method="setValueProperties"><value>class="a-right"</value></action>
438
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
439
+ </block>
440
+ <block type="sales/order_comments" name="creditmemo_comments" template="sales/order/comments.phtml" />
441
+ </block>
442
+ </block>
443
+ </reference>
444
+ <reference name="sales.order.info">
445
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
446
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
447
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
448
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path></path><label>Refunds</label></action>
449
+ </reference>
450
+ </sales_guest_creditmemo>
451
+
452
+ <sales_guest_reorder>
453
+ <reference name="root">
454
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
455
+ </reference>
456
+ <reference name="content">
457
+ <block type="sales/order_view" name="sales.order.view"/>
458
+ </reference>
459
+ </sales_guest_reorder>
460
+
461
+ <sales_guest_print translate="label">
462
+ <label>Sales Order Print View</label>
463
+ <reference name="content">
464
+ <block type="sales/order_print" name="sales.order.print" template="sales/order/print.phtml">
465
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
466
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
467
+ <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
468
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
469
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
470
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
471
+ <action method="setIsPlaneMode"><value>1</value></action>
472
+ </block>
473
+ </block>
474
+ </block>
475
+ </reference>
476
+ </sales_guest_print>
477
+
478
+ <sales_guest_printinvoice translate="label">
479
+ <label>Sales Invoice Print View</label>
480
+ <reference name="content">
481
+ <block type="sales/order_print_invoice" name="sales.order.print.invoice" template="sales/order/print/invoice.phtml">
482
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
483
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
484
+ <block type="sales/order_invoice_totals" name="invoice_totals" template="sales/order/totals.phtml">
485
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
486
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
487
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
488
+ <action method="setIsPlaneMode"><value>1</value></action>
489
+ </block>
490
+ </block>
491
+ </block>
492
+ </reference>
493
+ </sales_guest_printinvoice>
494
+
495
+ <sales_guest_printshipment translate="label">
496
+ <label>Sales Shipment Print View</label>
497
+ <reference name="content">
498
+ <block type="sales/order_print_shipment" name="sales.order.print.shipment" template="sales/order/print/shipment.phtml">
499
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
500
+ </block>
501
+ </reference>
502
+ </sales_guest_printshipment>
503
+
504
+ <sales_guest_printcreditmemo>
505
+ <reference name="content">
506
+ <block type="sales/order_print_creditmemo" name="sales.order.print.creditmemo" template="sales/order/print/creditmemo.phtml">
507
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
508
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
509
+ <block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="sales/order/totals.phtml">
510
+ <action method="setLabelProperties"><value>colspan="6" class="a-right"</value></action>
511
+ <action method="setValueProperties"><value>class="a-right"</value></action>
512
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
513
+ <action method="setIsPlaneMode"><value>1</value></action>
514
+ </block>
515
+ </block>
516
+ </block>
517
+ </reference>
518
+ </sales_guest_printcreditmemo>
519
+
520
+ <default>
521
+ <reference name="footer_links">
522
+ <block type="sales/guest_links" name="return_link"/>
523
+ <action method="addLinkBlock"><blockName>return_link</blockName></action>
524
+ </reference>
525
+ </default>
526
+ </layout>
app/design/frontend/base/default/layout/sales/billing_agreement.xml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <sales_billing_agreement_index>
31
+ <update handle="customer_account"/>
32
+ <reference name="root">
33
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
34
+ </reference>
35
+ <reference name="my.account.wrapper">
36
+ <block type="sales/billing_agreements" name="customer.account.billing.agreement" template="sales/billing/agreements.phtml"/>
37
+ </reference>
38
+ </sales_billing_agreement_index>
39
+
40
+ <sales_billing_agreement_view>
41
+ <update handle="customer_account"/>
42
+ <reference name="root">
43
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
44
+ </reference>
45
+ <reference name="my.account.wrapper">
46
+ <block type="sales/billing_agreement_view" name="customer.account.billing.agreement" template="sales/billing/agreement/view.phtml"/>
47
+ </reference>
48
+ </sales_billing_agreement_view>
49
+
50
+ <customer_account>
51
+ <reference name="customer_account_navigation" >
52
+ <action method="addLink" translate="label"><name>billing_agreements</name><path>sales/billing_agreement/</path><label>Billing Agreements</label></action>
53
+ </reference>
54
+ </customer_account>
55
+ </layout>
app/design/frontend/base/default/layout/sales/recurring_profile.xml ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <customer_account>
31
+ <reference name="customer_account_navigation" >
32
+ <action method="addLink" translate="label"><name>recurring_profiles</name><path>sales/recurring_profile/</path><label>Recurring Profiles</label></action>
33
+ </reference>
34
+ </customer_account>
35
+
36
+ <sales_recurring_profile_index>
37
+ <update handle="customer_account"/>
38
+ <reference name="root">
39
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
40
+ </reference>
41
+ <reference name="my.account.wrapper">
42
+ <block type="sales/recurring_profiles" name="sales.recurring.profiles" template="sales/recurring/profiles.phtml">
43
+ <block type="sales/recurring_profiles" name="sales.recurring.profiles.grid" as="grid" template="sales/recurring/grid.phtml">
44
+ <action method="prepareProfilesGrid"/>
45
+ <action method="setEmptyGridMessage" translate="value"><value>There are no recurring profiles yet.</value></action>
46
+ <action method="setGridHtmlId"><value>recurring_profile_list_view</value></action>
47
+ </block>
48
+ </block>
49
+ </reference>
50
+ </sales_recurring_profile_index>
51
+
52
+ <sales_recurring_profile_view__tabs>
53
+ <reference name="root">
54
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
55
+ </reference>
56
+ <reference name="my.account.wrapper">
57
+ <block type="sales/recurring_profile_view" name="sales.recurring.profile.view" template="sales/recurring/profile/view.phtml">
58
+ <action method="prepareViewData"/>
59
+ <action method="setShouldPrepareInfoTabs"><value>1</value></action>
60
+ <block type="core/text" as="profile_info" name="sales.recurring.profile.view.tab.profile">
61
+ <action method="addToParentGroup"><value>info_tabs</value></action>
62
+ <action method="setViewLabel" translate="value"><value>Profile Information</value></action>
63
+ <action method="setViewAction"><value>view</value></action>
64
+ </block>
65
+ <!-- not implemented
66
+ <block type="core/text" as="history" name="sales.recurring.profile.view.tab.history">
67
+ <action method="addToParentGroup"><value>info_tabs</value></action>
68
+ <action method="setViewLabel" translate="value"><value>History</value></action>
69
+ <action method="setViewAction"><value>history</value></action>
70
+ </block>
71
+ -->
72
+ <block type="core/text" as="related_orders" name="sales.recurring.profile.view.tab.orders">
73
+ <action method="addToParentGroup"><value>info_tabs</value></action>
74
+ <action method="setViewLabel" translate="value"><value>Related Orders</value></action>
75
+ <action method="setViewAction"><value>orders</value></action>
76
+ </block>
77
+ <!-- not implemented
78
+ <block type="core/text" as="vendor_info" name="sales.recurring.profile.view.tab.vendor">
79
+ <action method="addToParentGroup"><value>info_tabs</value></action>
80
+ <action method="setViewLabel" translate="value"><value>Gateway Information</value></action>
81
+ <action method="setViewAction"><value>vendor</value></action>
82
+ </block>
83
+ -->
84
+ </block>
85
+ </reference>
86
+ </sales_recurring_profile_view__tabs>
87
+
88
+ <sales_recurring_profile_view>
89
+ <update handle="customer_account"/>
90
+ <update handle="sales_recurring_profile_view__tabs"/>
91
+ <reference name="sales.recurring.profile.view.tab.profile">
92
+ <action method="setIsViewCurrent"><v>1</v></action>
93
+ </reference>
94
+ <reference name="sales.recurring.profile.view">
95
+ <block type="sales/recurring_profile_view" name="sales.recurring.profile.view.general" as="general" template="sales/recurring/profile/view/info.phtml">
96
+ <action method="prepareReferenceInfo"/>
97
+ <action method="addToParentGroup"><value>info_blocks_row_1</value></action>
98
+ <action method="setViewColumn"><value>1</value></action>
99
+ <action method="setViewLabel" translate="value"><value>Reference</value></action>
100
+ </block>
101
+ <block type="sales/recurring_profile_view" name="sales.recurring.profile.view.item" as="item" template="sales/recurring/profile/view/info.phtml">
102
+ <action method="prepareItemInfo"/>
103
+ <action method="addToParentGroup"><value>info_blocks_row_1</value></action>
104
+ <action method="setViewColumn"><value>2</value></action>
105
+ <action method="setViewLabel" translate="value"><value>Purchased Item</value></action>
106
+ </block>
107
+ <block type="sales/recurring_profile_view" name="sales.recurring.profile.view.schedule" as="profile" template="sales/recurring/profile/view/info.phtml">
108
+ <action method="prepareScheduleInfo"/>
109
+ <action method="addToParentGroup"><value>info_blocks_row_2</value></action>
110
+ <action method="setViewColumn"><value>1</value></action>
111
+ <action method="setViewLabel" translate="value"><value>Profile Schedule</value></action>
112
+ </block>
113
+ <block type="sales/recurring_profile_view" name="sales.recurring.profile.view.fees" as="fees" template="sales/recurring/profile/view/info.phtml">
114
+ <action method="prepareFeesInfo"/>
115
+ <action method="addToParentGroup"><value>info_blocks_row_2</value></action>
116
+ <action method="setViewColumn"><value>2</value></action>
117
+ <action method="setViewLabel" translate="value"><value>Profile Payments</value></action>
118
+ </block>
119
+ <block type="sales/recurring_profile_view" name="sales.recurring.profile.view.billing" as="billing_address" template="sales/recurring/profile/view/info.phtml">
120
+ <action method="prepareAddressInfo"/>
121
+ <action method="addToParentGroup"><value>info_blocks_row_3</value></action>
122
+ <action method="setViewColumn"><value>1</value></action>
123
+ <action method="setViewLabel" translate="value"><value>Billing Address</value></action>
124
+ </block>
125
+ <block type="sales/recurring_profile_view" name="sales.recurring.profile.view.shipping" as="shipping_address" template="sales/recurring/profile/view/info.phtml">
126
+ <action method="setAddressType"><value>shipping</value></action>
127
+ <action method="prepareAddressInfo"/>
128
+ <action method="addToParentGroup"><value>info_blocks_row_3</value></action>
129
+ <action method="setViewColumn"><value>2</value></action>
130
+ <action method="setViewLabel" translate="value"><value>Shipping Address</value></action>
131
+ </block>
132
+ </reference>
133
+ </sales_recurring_profile_view>
134
+
135
+ <!-- not implemented
136
+ <sales_recurring_profile_history>
137
+ <update handle="customer_account"/>
138
+ <update handle="sales_recurring_profile_view__tabs"/>
139
+ <reference name="sales.recurring.profile.view.tab.history">
140
+ <action method="setIsViewCurrent"><v>1</v></action>
141
+ </reference>
142
+ </sales_recurring_profile_history>
143
+ -->
144
+
145
+ <sales_recurring_profile_orders>
146
+ <update handle="customer_account"/>
147
+ <update handle="sales_recurring_profile_view__tabs"/>
148
+ <reference name="sales.recurring.profile.view.tab.orders">
149
+ <action method="setIsViewCurrent"><v>1</v></action>
150
+ </reference>
151
+ <reference name="sales.recurring.profile.view">
152
+ <block type="sales/recurring_profile_view" name="sales.recurring.profile.view.orders" as="table" template="sales/recurring/grid.phtml">
153
+ <action method="prepareRelatedOrdersFrontendGrid"/>
154
+ <action method="setViewLabel" translate="value"><value>Orders Based on This Profile</value></action>
155
+ <action method="setEmptyGridMessage" translate="value"><value>There are no orders yet.</value></action>
156
+ <action method="setGridHtmlClass"><value>info-box</value></action>
157
+ <action method="setGridHtmlCss"><value>border:0</value></action>
158
+ </block>
159
+ </reference>
160
+ </sales_recurring_profile_orders>
161
+
162
+ <!-- not implemented
163
+ <sales_recurring_profile_vendor>
164
+ <update handle="customer_account"/>
165
+ <update handle="sales_recurring_profile_view__tabs"/>
166
+ <reference name="sales.recurring.profile.view.tab.vendor">
167
+ <action method="setIsViewCurrent"><v>1</v></action>
168
+ </reference>
169
+ </sales_recurring_profile_vendor>
170
+ -->
171
+ </layout>
app/design/frontend/base/default/layout/sendfriend.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <layout version="0.1.0">
29
+ <sendfriend_product_send translate="label">
30
+ <label>Catalog Product Email to a Friend</label>
31
+ <reference name="root">
32
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
33
+ </reference>
34
+ <reference name="head">
35
+ <action method="addJs"><script>varien/product.js</script></action>
36
+ </reference>
37
+ <reference name="content">
38
+ <block type="sendfriend/send" name="sendfriend.send" template="sendfriend/send.phtml" />
39
+ </reference>
40
+ </sendfriend_product_send>
41
+ </layout>
app/design/frontend/base/default/layout/shipping.xml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <shipping_tracking_ajax>
32
+ <reference name="root">
33
+ <action method="setTemplate"><template></template></action>
34
+ </reference>
35
+ <reference name="content">
36
+ <block type="shipping/tracking_ajax" name="shipping.tracking.ajax" template="shipping/tracking/ajax.phtml" />
37
+ </reference>
38
+ </shipping_tracking_ajax>
39
+ <shipping_tracking_popup translate="label">
40
+ <label>Shipment Tracking Popup</label>
41
+ <reference name="root">
42
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
43
+ </reference>
44
+ <!--<reference name="head">
45
+ <action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
46
+ </reference>-->
47
+ <reference name="content">
48
+ <block type="shipping/tracking_popup" name="shipping.tracking.popup" template="shipping/tracking/popup.phtml" />
49
+ </reference>
50
+ </shipping_tracking_popup>
51
+ </layout>
52
+
app/design/frontend/base/default/layout/tag.xml ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Default layout, loads most of the pages
33
+ -->
34
+
35
+ <default>
36
+ <!-- Mage_Tag -->
37
+ <reference name="left">
38
+ <block type="tag/popular" name="tags_popular" template="tag/popular.phtml"/>
39
+ </reference>
40
+
41
+ </default>
42
+
43
+ <!--
44
+ Customer account pages, rendered for all tabs in dashboard
45
+ -->
46
+
47
+ <customer_account>
48
+ <!-- Mage_Tag -->
49
+ <reference name="customer_account_navigation">
50
+ <action method="addLink" translate="label" module="tag"><name>tags</name><path>tag/customer/</path><label>My Tags</label></action>
51
+ </reference>
52
+ </customer_account>
53
+
54
+ <!--
55
+ Customer account home dashboard layout
56
+ -->
57
+
58
+ <customer_account_index>
59
+ <!-- Mage_Tag -->
60
+ <reference name="customer_account_dashboard">
61
+ <action method="unsetChild"><name>customer_account_dashboard_info2</name></action>
62
+ <block type="tag/customer_recent" name="customer_account_dashboard_info2" as="info2" template="tag/customer/recent.phtml"/>
63
+ </reference>
64
+ </customer_account_index>
65
+
66
+ <catalog_product_view translate="label">
67
+ <label>Catalog Product View</label>
68
+ <!-- Mage_Tag -->
69
+ <reference name="product.info.additional">
70
+ <block type="tag/product_list" name="product_tag_list" before="-" template="tag/list.phtml">
71
+ <block type="page/html_wrapper" name="product.tag.list.list.before" as="list_before" translate="label">
72
+ <label>Tags List Before</label>
73
+ <action method="setMayBeInvisible"><value>1</value></action>
74
+ </block>
75
+ </block>
76
+ </reference>
77
+ </catalog_product_view>
78
+
79
+ <!--
80
+ All tags page
81
+ -->
82
+
83
+ <tag_list_index translate="label">
84
+ <label>Tags List (All Available)</label>
85
+ <!-- Mage_Tag -->
86
+ <reference name="root">
87
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
88
+ </reference>
89
+ <reference name="content">
90
+ <block type="tag/all" name="tags_all" template="tag/cloud.phtml"/>
91
+ </reference>
92
+ </tag_list_index>
93
+
94
+ <tag_product_list translate="label">
95
+ <label>Tagged Products List</label>
96
+ <!-- Mage_Tag -->
97
+ <reference name="content">
98
+ <block type="tag/product_result" name="tag_products" template="catalogsearch/result.phtml">
99
+ <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
100
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
101
+ <block type="page/html_pager" name="product_list_toolbar_pager"/>
102
+ </block>
103
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
104
+ </block>
105
+ <action method="setListOrders"/>
106
+ <action method="setListModes"/>
107
+ <action method="setListCollection"/>
108
+ </block>
109
+ </reference>
110
+ </tag_product_list>
111
+
112
+ <tag_customer_index translate="label">
113
+ <label>Customer My Account My Tags List</label>
114
+ <update handle="customer_account"/>
115
+ <reference name="root">
116
+ <action method="setHeaderTitle" translate="title" module="customer"><title>My Account</title></action>
117
+ </reference>
118
+ <reference name="my.account.wrapper">
119
+ <block type="tag/customer_tags" name="customer_tags" template="tag/customer/tags.phtml"/>
120
+ </reference>
121
+ </tag_customer_index>
122
+
123
+ <tag_customer_view translate="label">
124
+ <label>Customer My Account Tag View</label>
125
+ <update handle="customer_account"/>
126
+ <reference name="root">
127
+ <action method="setHeaderTitle" translate="title" module="customer"><title>My Account</title></action>
128
+ </reference>
129
+ <reference name="my.account.wrapper">
130
+ <block type="tag/customer_view" name="customer_view" template="tag/customer/view.phtml"/>
131
+ </reference>
132
+ </tag_customer_view>
133
+
134
+ </layout>
app/design/frontend/base/default/layout/weee.xml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+ <checkout_cart_index>
31
+ <reference name="head">
32
+ <action method="addItem"><type>js</type><name>varien/weee.js</name></action>
33
+ </reference>
34
+ </checkout_cart_index>
35
+
36
+ <checkout_onepage_index>
37
+ <reference name="head">
38
+ <action method="addItem"><type>js</type><name>varien/weee.js</name></action>
39
+ </reference>
40
+ </checkout_onepage_index>
41
+
42
+ <checkout_multishipping>
43
+ <reference name="head">
44
+ <action method="addItem"><type>js</type><name>varien/weee.js</name></action>
45
+ </reference>
46
+ </checkout_multishipping>
47
+
48
+ <customer_logged_in>
49
+ <reference name="head">
50
+ <action method="addItem"><type>js</type><name>varien/weee.js</name></action>
51
+ </reference>
52
+ </customer_logged_in>
53
+ </layout>
app/design/frontend/base/default/layout/wishlist.xml ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Default layout, loads most of the pages
33
+ -->
34
+
35
+ <default>
36
+ <reference name="top.links">
37
+ <block type="wishlist/links" name="wishlist_link" />
38
+ <action method="addLinkBlock"><blockName>wishlist_link</blockName></action>
39
+ </reference>
40
+
41
+ <!-- Mage_Wishlist -->
42
+ <reference name="right">
43
+ <block type="wishlist/customer_sidebar" name="wishlist_sidebar" as="wishlist" after="cart_sidebar" template="wishlist/sidebar.phtml" />
44
+ </reference>
45
+ </default>
46
+
47
+ <!--
48
+ Customer account pages, rendered for all tabs in dashboard
49
+ -->
50
+
51
+ <customer_account>
52
+ <!-- Mage_Wishlist -->
53
+ <reference name="customer_account_navigation">
54
+ <action method="addLink" translate="label" module="wishlist" ifconfig="wishlist/general/active"><name>wishlist</name><path>wishlist/</path><label>My Wishlist</label></action>
55
+ </reference>
56
+ </customer_account>
57
+
58
+ <!--
59
+ Customer account home dashboard layout
60
+ -->
61
+
62
+ <customer_account_index>
63
+ <reference name="right">
64
+ <action method="unsetChild"><name>wishlist</name></action>
65
+ </reference>
66
+ </customer_account_index>
67
+
68
+ <!--
69
+ Wishlist pages
70
+ -->
71
+
72
+ <wishlist_index_index translate="label">
73
+ <label>Customer My Account My Wishlist</label>
74
+ <!-- Mage_Wishlist -->
75
+ <update handle="customer_account" />
76
+ <reference name="my.account.wrapper">
77
+ <block type="wishlist/customer_wishlist" name="customer.wishlist" template="wishlist/view.phtml">
78
+ <action method="setTitle" translate="title">
79
+ <title>My Wishlist</title>
80
+ </action>
81
+ <block type="wishlist/customer_wishlist_items" name="customer.wishlist.items" as="items" template="wishlist/item/list.phtml">
82
+ <block type="wishlist/customer_wishlist_item_column_image" name="customer.wishlist.item.image" template="wishlist/item/column/image.phtml" />
83
+ <block type="wishlist/customer_wishlist_item_column_comment" name="customer.wishlist.item.info" template="wishlist/item/column/info.phtml">
84
+ <action method="setTitle" translate="title">
85
+ <title>Product Details and Comment</title>
86
+ </action>
87
+ </block>
88
+ <block type="wishlist/customer_wishlist_item_column_cart" name="customer.wishlist.item.cart" template="wishlist/item/column/cart.phtml">
89
+ <action method="setTitle" translate="title">
90
+ <title>Add to Cart</title>
91
+ </action>
92
+ <block type="wishlist/customer_wishlist_item_options" name="customer.wishlist.item.options" />
93
+ </block>
94
+ <block type="wishlist/customer_wishlist_item_column_remove" name="customer.wishlist.item.remove" template="wishlist/item/column/remove.phtml" />
95
+ </block>
96
+ <block type="core/text_list" name="customer.wishlist.buttons" as="control_buttons">
97
+ <block type="wishlist/customer_wishlist_button" name="customer.wishlist.button.share" template="wishlist/button/share.phtml" />
98
+ <block type="wishlist/customer_wishlist_button" name="customer.wishlist.button.toCart" template="wishlist/button/tocart.phtml" />
99
+ <block type="wishlist/customer_wishlist_button" name="customer.wishlist.button.update" template="wishlist/button/update.phtml" />
100
+ </block>
101
+ </block>
102
+ </reference>
103
+ <reference name="right">
104
+ <action method="unsetChild"><name>wishlist_customer_sidebar</name></action>
105
+ </reference>
106
+ </wishlist_index_index>
107
+
108
+ <wishlist_index_share translate="label">
109
+ <label>Customer My Account Wishlist Sharing Form</label>
110
+ <!-- Mage_Wishlist -->
111
+ <update handle="customer_account" />
112
+ <reference name="my.account.wrapper">
113
+ <block type="wishlist/customer_sharing" name="wishlist.sharing" template="wishlist/sharing.phtml" />
114
+ </reference>
115
+ <reference name="right">
116
+ <action method="unsetChild"><name>wishlist_customer_sidebar</name></action>
117
+ </reference>
118
+ </wishlist_index_share>
119
+
120
+ <wishlist_index_configure translate="label">
121
+ <label>Configure Wishlist Item</label>
122
+ <update handle="catalog_product_view" />
123
+ <reference name="product.info">
124
+ <block type="wishlist/item_configure" name="product.info.addto" as="addto" template="wishlist/item/configure/addto.phtml" />
125
+ </reference>
126
+ <reference name="product.info.options.wrapper.bottom">
127
+ <action method="unsetChild"><name>product.info.addto</name></action>
128
+ <action method="append"><block>product.info.addto</block></action>
129
+ </reference>
130
+ </wishlist_index_configure>
131
+
132
+ <wishlist_shared_index translate="label">
133
+ <label>Customer Shared Wishlist View</label>
134
+ <!-- Mage_Wishlist -->
135
+ <reference name="content">
136
+ <block type="wishlist/share_wishlist" name="customer.wishlist" template="wishlist/shared.phtml" />
137
+ </reference>
138
+ </wishlist_shared_index>
139
+ </layout>
app/design/frontend/base/default/layout/xmlconnect.xml ADDED
@@ -0,0 +1,466 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <layout version="0.1.0">
29
+ <default>
30
+ </default>
31
+
32
+ <!-- Home -->
33
+ <xmlconnect_index_index>
34
+ <block type="xmlconnect/home" name="xmlconnect.home" output="toHtml"/>
35
+ </xmlconnect_index_index>
36
+
37
+ <!-- Localization -->
38
+ <xmlconnect_localization_index>
39
+ <block type="xmlconnect/localization" name="xmlconnect.localization" output="toHtml"/>
40
+ </xmlconnect_localization_index>
41
+
42
+ <!-- Home banners -->
43
+ <xmlconnect_homebanners_index>
44
+ <block type="xmlconnect/homebanners" name="xmlconnect.homebanners" output="toHtml"/>
45
+ </xmlconnect_homebanners_index>
46
+
47
+ <!-- Catalog -->
48
+
49
+ <xmlconnect_catalog_filters>
50
+ <block type="xmlconnect/catalog_filters" name="xmlconnect.catalog.filters" output="toHtml"/>
51
+ </xmlconnect_catalog_filters>
52
+
53
+ <!-- Category -->
54
+ <xmlconnect_catalog_category>
55
+ <block type="xmlconnect/catalog_category" name="xmlconnect.catalog.category" output="toHtml">
56
+ <block type="xmlconnect/catalog_product_list" name="xmlconnect.catalog.product.list" as="product_list" output="">
57
+ <block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
58
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
59
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_price_giftcard</renderer></action>
60
+ </block>
61
+ </block>
62
+
63
+ <block type="xmlconnect/catalog_category_info" name="xmlconnect.catalog.category.info" as="category_info" output=""/>
64
+ </block>
65
+ </xmlconnect_catalog_category>
66
+
67
+ <xmlconnect_catalog_categorydetails>
68
+ <block type="xmlconnect/catalog_category" name="xmlconnect.catalog.category" output="toHtml">
69
+ <block type="xmlconnect/catalog_product_list" name="xmlconnect.catalog.product.list" as="product_list" output="">
70
+ <block type="xmlconnect/catalog_product_itemPrice" name="xmlconnect.catalog.product.itemprice" as="product_price" output="">
71
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_itemPrice_bundle</renderer></action>
72
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_itemPrice_giftcard</renderer></action>
73
+ </block>
74
+ </block>
75
+
76
+ <block type="xmlconnect/catalog_category_info" name="xmlconnect.catalog.category.info" as="category_info" output=""/>
77
+ </block>
78
+ </xmlconnect_catalog_categorydetails>
79
+
80
+ <!-- Product -->
81
+
82
+ <xmlconnect_catalog_product>
83
+ <block type="xmlconnect/catalog_product" name="xmlconnect.catalog.product" output="toHtml">
84
+ <block type="xmlconnect/catalog_product_related" name="xmlconnect.product.related" as="related_products" output=""/>
85
+
86
+ <block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
87
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
88
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_price_giftcard</renderer></action>
89
+ </block>
90
+
91
+ <block type="xmlconnect/catalog_product_attributes" name="xmlconnect.catalog.product.attributes" as="additional_info" output="" />
92
+
93
+ <block type="xmlconnect/catalog_product_options" name="xmlconnect.catalog.product.options" output="">
94
+ <action method="addRenderer"><type>simple</type><renderer>xmlconnect/catalog_product_options_simple</renderer></action>
95
+ <action method="addRenderer"><type>virtual</type><renderer>xmlconnect/catalog_product_options_virtual</renderer></action>
96
+ <action method="addRenderer"><type>configurable</type><renderer>xmlconnect/catalog_product_options_configurable</renderer></action>
97
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_options_bundle</renderer></action>
98
+ <action method="addRenderer"><type>grouped</type><renderer>xmlconnect/catalog_product_options_grouped</renderer></action>
99
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_options_giftcard</renderer></action>
100
+ <action method="addRenderer"><type>downloadable</type><renderer>xmlconnect/catalog_product_options_downloadable</renderer></action>
101
+ </block>
102
+ </block>
103
+ </xmlconnect_catalog_product>
104
+
105
+ <xmlconnect_catalog_productview>
106
+ <block type="xmlconnect/catalog_product" name="xmlconnect.catalog.product" output="toHtml">
107
+ <block type="xmlconnect/catalog_product_related" name="xmlconnect.product.related" as="related_products" output=""/>
108
+
109
+ <block type="xmlconnect/catalog_product_itemPrice" name="xmlconnect.catalog.product.price" as="product_price" output="">
110
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_itemPrice_bundle</renderer></action>
111
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_itemPrice_giftcard</renderer></action>
112
+ </block>
113
+
114
+ <block type="xmlconnect/catalog_product_attributes" name="xmlconnect.catalog.product.attributes" as="additional_info" output="" />
115
+
116
+ <block type="xmlconnect/catalog_product_options" name="xmlconnect.catalog.product.options" output="">
117
+ <action method="addRenderer"><type>simple</type><renderer>xmlconnect/catalog_product_options_simple</renderer></action>
118
+ <action method="addRenderer"><type>virtual</type><renderer>xmlconnect/catalog_product_options_virtual</renderer></action>
119
+ <action method="addRenderer"><type>configurable</type><renderer>xmlconnect/catalog_product_options_configurable</renderer></action>
120
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_options_bundle</renderer></action>
121
+ <action method="addRenderer"><type>grouped</type><renderer>xmlconnect/catalog_product_options_grouped</renderer></action>
122
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_options_giftcard</renderer></action>
123
+ <action method="addRenderer"><type>downloadable</type><renderer>xmlconnect/catalog_product_options_downloadable</renderer></action>
124
+ </block>
125
+ </block>
126
+ </xmlconnect_catalog_productview>
127
+
128
+ <xmlconnect_catalog_productoptions>
129
+ <block type="xmlconnect/catalog_product_options" name="xmlconnect.catalog.product.options" output="toHtml">
130
+ <action method="addRenderer"><type>simple</type><renderer>xmlconnect/catalog_product_options_simple</renderer></action>
131
+ <action method="addRenderer"><type>virtual</type><renderer>xmlconnect/catalog_product_options_virtual</renderer></action>
132
+ <action method="addRenderer"><type>configurable</type><renderer>xmlconnect/catalog_product_options_configurable</renderer></action>
133
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_options_bundle</renderer></action>
134
+ <action method="addRenderer"><type>grouped</type><renderer>xmlconnect/catalog_product_options_grouped</renderer></action>
135
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_options_giftcard</renderer></action>
136
+ <action method="addRenderer"><type>downloadable</type><renderer>xmlconnect/catalog_product_options_downloadable</renderer></action>
137
+ </block>
138
+ </xmlconnect_catalog_productoptions>
139
+
140
+ <xmlconnect_catalog_productgallery>
141
+ <block type="xmlconnect/catalog_product_gallery" name="xmlconnect.catalog.product.gallery" output="toHtml"/>
142
+ </xmlconnect_catalog_productgallery>
143
+
144
+ <xmlconnect_catalog_productreview>
145
+ <block type="xmlconnect/catalog_product_review" name="xmlconnect.catalog.product.review" output="toHtml"/>
146
+ </xmlconnect_catalog_productreview>
147
+
148
+ <xmlconnect_catalog_productreviews>
149
+ <block type="xmlconnect/catalog_product_review_list" name="xmlconnect.catalog.product.reviews" output="toHtml"/>
150
+ </xmlconnect_catalog_productreviews>
151
+
152
+ <!-- Search -->
153
+
154
+ <xmlconnect_catalog_search>
155
+ <block type="xmlconnect/catalog_search" name="xmlconnect.catalog.search" output="toHtml">
156
+ <block type="xmlconnect/catalog_product_list" name="xmlconnect.catalog.product.list" as="product_list" output="">
157
+ <block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
158
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
159
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_price_giftcard</renderer></action>
160
+ </block>
161
+ </block>
162
+ </block>
163
+ </xmlconnect_catalog_search>
164
+
165
+ <xmlconnect_catalog_searchdetails>
166
+ <block type="xmlconnect/catalog_search" name="xmlconnect.catalog.search" output="toHtml">
167
+ <block type="xmlconnect/catalog_product_list" name="xmlconnect.catalog.product.list" as="product_list" output="">
168
+ <block type="xmlconnect/catalog_product_itemPrice" name="xmlconnect.catalog.product.price" as="product_price" output="">
169
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_itemPrice_bundle</renderer></action>
170
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_itemPrice_giftcard</renderer></action>
171
+ </block>
172
+ </block>
173
+ </block>
174
+ </xmlconnect_catalog_searchdetails>
175
+
176
+ <xmlconnect_catalog_searchsuggest>
177
+ <block type="xmlconnect/catalog_search_suggest" name="xmlconnect.catalog.search.suggest" output="toHtml"/>
178
+ </xmlconnect_catalog_searchsuggest>
179
+
180
+ <!-- Shopping Cart -->
181
+ <xmlconnect_cart_index>
182
+ <block type="xmlconnect/cart" name="xmlconnect.cart" output="toHtml">
183
+ <action method="addItemRender"><type>simple</type><block>xmlconnect/checkout_cart_item_renderer</block><template></template></action>
184
+ <action method="addItemRender"><type>virtual</type><block>xmlconnect/checkout_cart_item_renderer</block><template></template></action>
185
+ <action method="addItemRender"><type>configurable</type><block>xmlconnect/checkout_cart_item_renderer_configurable</block><template></template></action>
186
+ <action method="addItemRender"><type>bundle</type><block>xmlconnect/checkout_cart_item_renderer_bundle</block><template></template></action>
187
+ <action method="addItemRender"><type>grouped</type><block>xmlconnect/checkout_cart_item_renderer_grouped</block><template></template></action>
188
+ <action method="addItemRender"><type>giftcard</type><block>xmlconnect/checkout_cart_item_renderer_giftcard</block><template></template></action>
189
+ <action method="addItemRender"><type>downloadable</type><block>xmlconnect/checkout_cart_item_renderer_downloadable</block><template></template></action>
190
+
191
+ <block type="xmlconnect/cart_crosssell" name="xmlconnect.cart.crosssell" as="crosssell">
192
+ <block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
193
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
194
+ <action method="addRenderer"><type>giftcard</type><renderer>giftcard/catalog_product_price_giftcard</renderer></action>
195
+ </block>
196
+ </block>
197
+ </block>
198
+ </xmlconnect_cart_index>
199
+
200
+ <xmlconnect_cart_info>
201
+ <block type="xmlconnect/cart_info" name="xmlconnect.cart.info" as="cart_info" output="toHtml">
202
+ <block type="xmlconnect/cart_totals" name="xmlconnect.cart.totals" as="totals"/>
203
+ </block>
204
+ </xmlconnect_cart_info>
205
+
206
+ <xmlconnect_cart_shoppingcart>
207
+ <block type="xmlconnect/shoppingCart" name="xmlconnect.cart" output="toHtml">
208
+ <block type="xmlconnect/cart_items" name="xmlconnect.cart.items" as="items">
209
+ <action method="addItemRender"><type>simple</type><block>xmlconnect/checkout_cart_item_renderer</block><template></template></action>
210
+ <action method="addItemRender"><type>virtual</type><block>xmlconnect/checkout_cart_item_renderer</block><template></template></action>
211
+ <action method="addItemRender"><type>configurable</type><block>xmlconnect/checkout_cart_item_renderer_configurable</block><template></template></action>
212
+ <action method="addItemRender"><type>bundle</type><block>xmlconnect/checkout_cart_item_renderer_bundle</block><template></template></action>
213
+ <action method="addItemRender"><type>grouped</type><block>xmlconnect/checkout_cart_item_renderer_grouped</block><template></template></action>
214
+ <action method="addItemRender"><type>giftcard</type><block>xmlconnect/checkout_cart_item_renderer_giftcard</block><template></template></action>
215
+ <action method="addItemRender"><type>downloadable</type><block>xmlconnect/checkout_cart_item_renderer_downloadable</block><template></template></action>
216
+ </block>
217
+ <block type="xmlconnect/cart_crosssell" name="xmlconnect.cart.crosssell" as="crosssell">
218
+ <block type="xmlconnect/catalog_product_itemPrice" name="xmlconnect.catalog.product.price" as="product_price" output="">
219
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_itemPrice_bundle</renderer></action>
220
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_itemPrice_giftcard</renderer></action>
221
+ </block>
222
+ </block>
223
+ <block type="xmlconnect/cart_cartTotals" name="xmlconnect.cart.totals" as="totals"/>
224
+ </block>
225
+ </xmlconnect_cart_shoppingcart>
226
+
227
+ <xmlconnect_cart_configure translate="label">
228
+ <label>Configure Cart Item</label>
229
+ <update handle="xmlconnect_catalog_product"/>
230
+ <reference name="product.info">
231
+ <block type="xmlconnect/cart_item_configure" name="checkout.cart.item.configure.block"/>
232
+ </reference>
233
+ </xmlconnect_cart_configure>
234
+
235
+ <!-- Customer -->
236
+
237
+ <xmlconnect_customer_form>
238
+ <block type="xmlconnect/customer_form" name="xmlconnect.customer.form" output="toHtml"/>
239
+ </xmlconnect_customer_form>
240
+
241
+ <xmlconnect_customer_checkoutregistration>
242
+ <block type="xmlconnect/customer_form" name="xmlconnect.customer.checkout.registration" output="toHtml"/>
243
+ </xmlconnect_customer_checkoutregistration>
244
+
245
+ <xmlconnect_wishlist_index>
246
+ <block type="xmlconnect/wishlist" name="xmlconnect.wishlist" output="toHtml">
247
+ <block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
248
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
249
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_price_giftcard</renderer></action>
250
+ </block>
251
+ </block>
252
+ </xmlconnect_wishlist_index>
253
+
254
+ <xmlconnect_wishlist_details>
255
+ <block type="xmlconnect/wishlist" name="xmlconnect.wishlist" output="toHtml">
256
+ <block type="xmlconnect/catalog_product_itemPrice" name="xmlconnect.catalog.product.price" as="product_price" output="">
257
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_itemPrice_bundle</renderer></action>
258
+ <action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_itemPrice_giftcard</renderer></action>
259
+ </block>
260
+ </block>
261
+ </xmlconnect_wishlist_details>
262
+
263
+ <xmlconnect_customer_address>
264
+ <block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" output="toHtml"/>
265
+ </xmlconnect_customer_address>
266
+
267
+ <xmlconnect_customer_addressform>
268
+ <block type="xmlconnect/customer_address_form" name="xmlconnect.customer.address.form" output="toHtml"/>
269
+ </xmlconnect_customer_addressform>
270
+
271
+ <xmlconnect_customer_orderlist>
272
+ <block type="xmlconnect/customer_order_list" name="xmlconnect.customer.order.list" output="toHtml"/>
273
+ </xmlconnect_customer_orderlist>
274
+
275
+ <xmlconnect_customer_orderdetails>
276
+ <block type="xmlconnect/customer_order_details" name="order.details" output="toHtml">
277
+ <block type="xmlconnect/customer_order_items" name="order.items" output="">
278
+ <action method="addItemRender"><type>default</type><block>xmlconnect/customer_order_item_renderer_default</block><template></template></action>
279
+ <action method="addItemRender"><type>grouped</type><block>xmlconnect/customer_order_item_renderer_grouped</block><template></template></action>
280
+ <action method="addItemRender"><type>bundle</type><block>xmlconnect/customer_order_item_renderer_bundle</block><template></template></action>
281
+ <action method="addItemRender"><type>giftcard</type><block>xmlconnect/customer_order_item_renderer_giftcard</block><template></template></action>
282
+ <action method="addItemRender"><type>downloadable</type><block>xmlconnect/customer_order_item_renderer_downloadable</block><template></template></action>
283
+ <block type="xmlconnect/customer_order_totals" name="order.totals" output="">
284
+ <block type="xmlconnect/customer_order_totals_tax" name="xmlconnect.customer.order.tax" output=""/>
285
+ </block>
286
+ </block>
287
+ </block>
288
+ </xmlconnect_customer_orderdetails>
289
+
290
+ <xmlconnect_customer_storecredit>
291
+ <block type="xmlconnect/customer_storecredit" name="xmlconnect.customer.storecredit" output="toHtml"/>
292
+ </xmlconnect_customer_storecredit>
293
+
294
+ <xmlconnect_customer_giftcardcheck>
295
+ <block type="xmlconnect/customer_giftcardCheck" name="xmlconnect.customer.giftcardCheck" output="toHtml"/>
296
+ </xmlconnect_customer_giftcardcheck>
297
+
298
+ <xmlconnect_customer_downloads>
299
+ <block type="xmlconnect/customer_downloads" name="xmlconnect.customer.downloads" output="toHtml"/>
300
+ </xmlconnect_customer_downloads>
301
+
302
+ <!-- Configuration -->
303
+
304
+ <xmlconnect_configuration_index>
305
+ <block type="xmlconnect/configuration" name="xmlconnect.configuration" output="toHtml"/>
306
+ </xmlconnect_configuration_index>
307
+
308
+ <!-- Checkout (OnePage) -->
309
+
310
+ <xmlconnect_checkout_addressmassaction>
311
+ <block type="xmlconnect/checkout_onepage_address" name="xmlconnect.checkout.onepage.address" output="toHtml">
312
+ <block type="xmlconnect/checkout_onepage_address_list" name="xmlconnect.checkout.onepage.address.list" as="address_list" output=""/>
313
+ <block type="xmlconnect/checkout_onepage_address_form" name="xmlconnect.checkout.onepage.address.form" as="address_form" output=""/>
314
+ </block>
315
+ </xmlconnect_checkout_addressmassaction>
316
+
317
+ <xmlconnect_checkout_index>
318
+ <block type="xmlconnect/checkout_address_billing" name="xmlconnect.checkout.address.billing" output="toHtml">
319
+ <block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" as="address_list" output=""/>
320
+ </block>
321
+ </xmlconnect_checkout_index>
322
+
323
+ <xmlconnect_checkout_billingaddress>
324
+ <block type="xmlconnect/checkout_address_billing" name="xmlconnect.checkout.address.billing" output="toHtml">
325
+ <block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" as="address_list" output=""/>
326
+ </block>
327
+ </xmlconnect_checkout_billingaddress>
328
+
329
+ <xmlconnect_checkout_newbillingaddressform>
330
+ <block type="xmlconnect/checkout_address_form" name="xmlconnect.checkout.new.billing.address.form" output="toHtml">
331
+ <action method="setType"><type>billing</type></action>
332
+ </block>
333
+ </xmlconnect_checkout_newbillingaddressform>
334
+
335
+ <xmlconnect_checkout_shippingaddress>
336
+ <block type="xmlconnect/checkout_address_shipping" name="xmlconnect.checkout.address.shipping" output="toHtml">
337
+ <block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" as="address_list" output=""/>
338
+ </block>
339
+ </xmlconnect_checkout_shippingaddress>
340
+
341
+ <xmlconnect_checkout_newshippingaddressform>
342
+ <block type="xmlconnect/checkout_address_form" name="xmlconnect.checkout.new.billing.address.form" output="toHtml">
343
+ <action method="setType"><type>shipping</type></action>
344
+ </block>
345
+ </xmlconnect_checkout_newshippingaddressform>
346
+
347
+ <xmlconnect_checkout_shippingmethods>
348
+ <block type="xmlconnect/checkout_shipping_method_available" name="xmlconnect.checkout.shipping.method.available" output="toHtml"/>
349
+ </xmlconnect_checkout_shippingmethods>
350
+
351
+ <xmlconnect_checkout_shippingmethodslist>
352
+ <block type="xmlconnect/checkout_shipping_method_availableList" name="xmlconnect.checkout.shipping.method.available" output="toHtml"/>
353
+ </xmlconnect_checkout_shippingmethodslist>
354
+
355
+ <xmlconnect_checkout_paymentmethods>
356
+ <block type="xmlconnect/checkout_payment_method_list" name="payment.methods" output="">
357
+ <block type="xmlconnect/checkout_payment_method_ccsave" name="xmlconnect.checkout.method.ccsave" as="payment_ccsave" output=""/>
358
+ <block type="xmlconnect/checkout_payment_method_checkmo" name="xmlconnect.checkout.method.checkmo" as="payment_checkmo" output=""/>
359
+ <block type="xmlconnect/checkout_payment_method_purchaseorder" name="xmlconnect.checkout.method.purchaseorder" as="payment_purchaseorder" output=""/>
360
+ <block type="xmlconnect/checkout_payment_method_paypal_payflow" name="xmlconnect.checkout.method.paypal.payflow" as="payment_paypal_payflow" output=""/>
361
+ <block type="xmlconnect/checkout_payment_method_paypal_direct" name="xmlconnect.checkout.method.paypal.direct" as="payment_paypal_direct" output=""/>
362
+ <block type="xmlconnect/checkout_payment_method_authorizenet" name="xmlconnect.checkout.method.authorizenet" as="payment_authorizenet" output=""/>
363
+ </block>
364
+ </xmlconnect_checkout_paymentmethods>
365
+
366
+ <xmlconnect_checkout_paymentmethodlist>
367
+ <block type="xmlconnect/checkout_payment_method_listApi23" name="payment.methods" output="">
368
+ <block type="xmlconnect/checkout_payment_method_ccsave" name="xmlconnect.checkout.method.ccsave" as="payment_ccsave" output=""/>
369
+ <block type="xmlconnect/checkout_payment_method_checkmo" name="xmlconnect.checkout.method.checkmo" as="payment_checkmo" output=""/>
370
+ <block type="xmlconnect/checkout_payment_method_purchaseorder" name="xmlconnect.checkout.method.purchaseorder" as="payment_purchaseorder" output=""/>
371
+ <block type="xmlconnect/checkout_payment_method_paypal_payflow" name="xmlconnect.checkout.method.paypal.payflow" as="payment_paypal_payflow" output=""/>
372
+ <block type="xmlconnect/checkout_payment_method_paypal_direct" name="xmlconnect.checkout.method.paypal.direct" as="payment_paypal_direct" output=""/>
373
+ <block type="xmlconnect/checkout_payment_method_authorizenet" name="xmlconnect.checkout.method.authorizenet" as="payment_authorizenet" output=""/>
374
+ </block>
375
+ </xmlconnect_checkout_paymentmethodlist>
376
+
377
+ <xmlconnect_checkout_orderreview>
378
+ <block type="xmlconnect/checkout_order_review" name="xmlconnect.checkout.order.review" output="toHtml">
379
+ <block type="xmlconnect/checkout_order_review_info" name="xmlconnect.checkout.order.info" as="order_products">
380
+ <action method="addItemRender"><type>default</type><block>xmlconnect/checkout_cart_item_renderer</block><template></template></action>
381
+ <action method="addItemRender"><type>configurable</type><block>xmlconnect/checkout_cart_item_renderer_configurable</block><template></template></action>
382
+ <action method="addItemRender"><type>bundle</type><block>xmlconnect/checkout_cart_item_renderer_bundle</block><template></template></action>
383
+ <action method="addItemRender"><type>grouped</type><block>xmlconnect/checkout_cart_item_renderer_grouped</block><template></template></action>
384
+ <action method="addItemRender"><type>giftcard</type><block>xmlconnect/checkout_cart_item_renderer_giftcard</block><template></template></action>
385
+ <action method="addItemRender"><type>downloadable</type><block>xmlconnect/checkout_cart_item_renderer_downloadable</block><template></template></action>
386
+ </block>
387
+
388
+ <block type="xmlconnect/cart_totals" name="xmlconnect.checkout.order.review.totals" as="totals"/>
389
+ <block type="xmlconnect/checkout_agreements" name="xmlconnect.checkout.agreements" as="agreements" output=""/>
390
+ </block>
391
+ </xmlconnect_checkout_orderreview>
392
+
393
+ <xmlconnect_checkout_ordersummary>
394
+ <block type="xmlconnect/checkout_onepage_review" name="xmlconnect.order.details" output="toHtml">
395
+ <block type="xmlconnect/cart_items" name="xmlconnect.cart.items" as="items">
396
+ <action method="addItemRender"><type>simple</type><block>xmlconnect/checkout_cart_item_renderer</block><template></template></action>
397
+ <action method="addItemRender"><type>virtual</type><block>xmlconnect/checkout_cart_item_renderer</block><template></template></action>
398
+ <action method="addItemRender"><type>configurable</type><block>xmlconnect/checkout_cart_item_renderer_configurable</block><template></template></action>
399
+ <action method="addItemRender"><type>bundle</type><block>xmlconnect/checkout_cart_item_renderer_bundle</block><template></template></action>
400
+ <action method="addItemRender"><type>grouped</type><block>xmlconnect/checkout_cart_item_renderer_grouped</block><template></template></action>
401
+ <action method="addItemRender"><type>giftcard</type><block>xmlconnect/checkout_cart_item_renderer_giftcard</block><template></template></action>
402
+ <action method="addItemRender"><type>downloadable</type><block>xmlconnect/checkout_cart_item_renderer_downloadable</block><template></template></action>
403
+ </block>
404
+ <block type="xmlconnect/cart_cartTotals" name="xmlconnect.cart.totals" as="totals"/>
405
+ <block type="xmlconnect/checkout_agreements" name="xmlconnect.checkout.agreements" as="agreements" output=""/>
406
+ </block>
407
+ </xmlconnect_checkout_ordersummary>
408
+
409
+ <!-- Checkout with PayPal MEP -->
410
+
411
+ <xmlconnect_paypal_mep_shippingmethods>
412
+ <block type="xmlconnect/checkout_shipping_method_available" name="xmlconnect.checkout.shipping.method.available" output="toHtml"/>
413
+ </xmlconnect_paypal_mep_shippingmethods>
414
+
415
+ <xmlconnect_paypal_mep_carttotals>
416
+ <block type="xmlconnect/cart_paypal_mep_totals" name="xmlconnect.cart.paypal.mep.totals" output="toHtml"/>
417
+ </xmlconnect_paypal_mep_carttotals>
418
+
419
+ <!-- Checkout with PayPal MECL -->
420
+
421
+ <xmlconnect_paypal_mecl_review>
422
+ <block type="xmlconnect/cart_paypal_mecl_review" name="xmlconnect.cart.paypal.mecl.review" output="toHtml">
423
+ <block type="xmlconnect/cart_paypal_mecl_details" name="xmlconnect.cart.paypal.mecl.details" as="details">
424
+ <action method="addItemRender"><type>default</type><block>xmlconnect/cart_item_renderer</block><template></template></action>
425
+ <action method="addItemRender"><type>grouped</type><block>xmlconnect/cart_item_renderer_grouped</block><template></template></action>
426
+ <action method="addItemRender"><type>configurable</type><block>xmlconnect/cart_item_renderer_configurable</block><template></template></action>
427
+ <block type="xmlconnect/cart_totals" name="xmlconnect.cart.totals" as="totals"/>
428
+ </block>
429
+ <block type="xmlconnect/checkout_agreements" name="xmlconnect.checkout.agreements" as="agreements" output=""/>
430
+ </block>
431
+ </xmlconnect_paypal_mecl_review>
432
+
433
+ <xmlconnect_paypal_mecl_orderreview>
434
+ <block type="xmlconnect/cart_paypal_mecl_review" name="xmlconnect.cart.paypal.mecl.review" output="toHtml">
435
+ <block type="xmlconnect/cart_paypal_mecl_orderDetails" name="xmlconnect.cart.paypal.mecl.details" as="details">
436
+ <action method="addItemRender"><type>default</type><block>xmlconnect/cart_item_renderer</block><template></template></action>
437
+ <action method="addItemRender"><type>grouped</type><block>xmlconnect/cart_item_renderer_grouped</block><template></template></action>
438
+ <action method="addItemRender"><type>configurable</type><block>xmlconnect/cart_item_renderer_configurable</block><template></template></action>
439
+ <block type="xmlconnect/cart_cartTotals" name="xmlconnect.cart.totals" as="totals"/>
440
+ </block>
441
+ <block type="xmlconnect/checkout_agreements" name="xmlconnect.checkout.agreements" as="agreements" output=""/>
442
+ </block>
443
+ </xmlconnect_paypal_mecl_orderreview>
444
+
445
+ <xmlconnect_paypal_mecl_shippingmethods>
446
+ <block type="xmlconnect/cart_paypal_mecl_shippingmethods" name="xmlconnect.cart.paypal.mecl.shippingmethods" output="toHtml"></block>
447
+ </xmlconnect_paypal_mecl_shippingmethods>
448
+
449
+ <!-- Cms -->
450
+
451
+ <xmlconnect_cms_page>
452
+ <block type="xmlconnect/cms_page" name="xmlconnect.cms.page" output="toHtml"/>
453
+ </xmlconnect_cms_page>
454
+
455
+ <!-- Payment bridge -->
456
+
457
+ <xmlconnect_pbridge_result>
458
+ <block type="xmlconnect/checkout_pbridge_result" name="xmlconnect.checkout.pbridge.result" template="xmlconnect/pbridge/result.phtml" output="toHtml" />
459
+ </xmlconnect_pbridge_result>
460
+
461
+ <!-- Product review -->
462
+
463
+ <xmlconnect_review_form>
464
+ <block type="xmlconnect/review_form" name="xmlconnect.review.form" output="toHtml"/>
465
+ </xmlconnect_review_form>
466
+ </layout>
app/design/frontend/base/default/template/authorizenet/directpost/form.phtml ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @see Mage_Authorizenet_Block_Directpost_Form
29
+ */
30
+ ?>
31
+ <?php
32
+ $_form = $this;
33
+ $_code = $_form->getMethodCode();
34
+ $_method = $_form->getMethod();
35
+ $_controller = $this->helper('authorizenet')->getControllerName();
36
+ $_orderUrl = $this->helper('authorizenet')->getPlaceOrderFrontUrl();
37
+ ?>
38
+ <div class="buttons-set">
39
+ <!-- IFRAME for request to Authorize.net -->
40
+ <iframe id="directpost-iframe" allowtransparency="true" frameborder="0" name="iframeDirectPost" style="display:none;width:100%;background-color:transparent" src="<?php echo $this->getJsUrl() ?>blank.html"></iframe>
41
+
42
+ <form id="co-directpost-form" action="#" method="post">
43
+ <fieldset>
44
+ <dl class="sp-methods">
45
+ <dt class="a-center"><?php echo $this->__('Credit Card Information') ?></dt>
46
+ <dd>
47
+ <ul id="payment_form_<?php echo $_code ?>" class="form-list">
48
+ <li>
49
+ <label for="<?php echo $_code ?>_cc_type" class="required"><em>*</em><?php echo $this->__('Credit Card Type') ?></label>
50
+ <div class="input-box">
51
+ <select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
52
+ <option value=""><?php echo $this->__('--Please Select--')?></option>
53
+ <?php $_ccType = $_form->getInfoData('cc_type') ?>
54
+ <?php foreach ($_form->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
55
+ <option value="<?php echo $_typeCode ?>"<?php if($_typeCode==$_ccType): ?> selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
56
+ <?php endforeach ?>
57
+ </select>
58
+ </div>
59
+ </li>
60
+ <li>
61
+ <label for="<?php echo $_code ?>_cc_number" class="required"><em>*</em><?php echo $this->__('Credit Card Number') ?></label>
62
+ <div class="input-box">
63
+ <input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo $this->__('Credit Card Number') ?>" class="input-text validate-cc-number validate-cc-type" value="" />
64
+ </div>
65
+ </li>
66
+ <li id="<?php echo $_code ?>_cc_type_exp_div">
67
+ <label for="<?php echo $_code ?>_expiration" class="required"><em>*</em><?php echo $this->__('Expiration Date') ?></label>
68
+ <div class="input-box">
69
+ <div class="v-fix">
70
+ <select id="<?php echo $_code ?>_expiration" name="payment[cc_exp_month]" class="month validate-cc-exp required-entry">
71
+ <?php $_ccExpMonth = $_form->getInfoData('cc_exp_month') ?>
72
+ <?php foreach ($_form->getCcMonths() as $k=>$v): ?>
73
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
74
+ <?php endforeach ?>
75
+ </select>
76
+ </div>
77
+ <div class="v-fix">
78
+ <?php $_ccExpYear = $_form->getInfoData('cc_exp_year') ?>
79
+ <select id="<?php echo $_code ?>_expiration_yr" name="payment[cc_exp_year]" class="year required-entry">
80
+ <?php foreach ($_form->getCcYears() as $k=>$v): ?>
81
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
82
+ <?php endforeach ?>
83
+ </select>
84
+ </div>
85
+ </div>
86
+ </li>
87
+ <?php echo $_form->getChildHtml() ?>
88
+ <?php if($_form->hasVerification()): ?>
89
+ <li id="<?php echo $_code ?>_cc_type_cvv_div">
90
+ <label for="<?php echo $_code ?>_cc_cid" class="required"><em>*</em><?php echo $this->__('Card Verification Number') ?></label>
91
+ <div class="input-box">
92
+ <div class="v-fix">
93
+ <input type="text" title="<?php echo $this->__('Card Verification Number') ?>" class="input-text cvv required-entry validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[cc_cid]" value="" />
94
+ </div>
95
+ <a href="#" id="directpost-cvv-what-is-this" style="cursor:help; margin-left:5px;"><?php echo $this->__('What is this?') ?></a>
96
+ </div>
97
+ </li>
98
+ <?php endif; ?>
99
+ </ul>
100
+ </dd>
101
+ </dl>
102
+ </fieldset>
103
+ </form>
104
+ </div>
105
+ <div class="tool-tip" id="directpost-tool-tip" style="display:none;">
106
+ <div class="btn-close"><a href="#" id="directpost-tool-tip-close" title="<?php echo $this->__('Close') ?>"><?php echo $this->__('Close') ?></a></div>
107
+ <div class="tool-tip-content"><img src="<?php echo $this->getSkinUrl('images/cvv.gif') ?>" alt="<?php echo $this->__('Card Verification Number Visual Reference') ?>" title="<?php echo $this->__('Card Verification Number Visual Reference') ?>" /></div>
108
+ </div>
109
+ <script type="text/javascript">
110
+ //<![CDATA[
111
+ if ($('directpost-cvv-what-is-this')) {
112
+ $('directpost-cvv-what-is-this').observe('click', toggleCvvToolTip);
113
+ }
114
+ new Validation('co-directpost-form');
115
+ function toggleCvvToolTip(event){
116
+ if($('directpost-tool-tip')){
117
+ $('directpost-tool-tip').setStyle({
118
+ top: (Event.pointerY(event)-560)+'px'
119
+ })
120
+ $('directpost-tool-tip').toggle();
121
+ }
122
+ Event.stop(event);
123
+ }
124
+ if($('directpost-tool-tip-close')){
125
+ Event.observe($('directpost-tool-tip-close'), 'click', toggleCvvToolTip);
126
+ }
127
+ directPostModel = new directPost(
128
+ '<?php echo $_code ?>',
129
+ 'directpost-iframe',
130
+ '<?php echo $_controller ?>',
131
+ '<?php echo $_orderUrl ?>',
132
+ '<?php echo $_method->getCgiUrl() ?>',
133
+ '<?php echo $this->getUrl('checkout/onepage/saveOrder', array('_secure' => $this->getRequest()->isSecure())) ?>');
134
+ //]]>
135
+ </script>
app/design/frontend/base/default/template/authorizenet/directpost/iframe.phtml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @var $this Mage_Authorizenet_Block_Directpost_Iframe
29
+ */
30
+ ?>
31
+ <?php
32
+ $_params = $this->getParams();
33
+ /* @var $_helper Mage_Authorizenet_Helper_Data */
34
+ $_helper = $this->helper('authorizenet');
35
+ ?>
36
+ <html>
37
+ <head>
38
+ <script type="text/javascript">
39
+ //<![CDATA[
40
+ <?php if (isset($_params['redirect'])): ?>
41
+ window.location="<?php echo $this->escapeUrl($_params['redirect']) ?>";
42
+ <?php endif; ?>
43
+ <?php if (isset($_params['redirect_parent'])): ?>
44
+ window.top.location="<?php echo $this->escapeUrl($_params['redirect_parent']) ?>";
45
+ <?php endif; ?>
46
+ <?php if (isset($_params['error_msg'])): ?>
47
+ window.top.directPostModel.showError(<?php echo $this->helper('core')->jsonEncode($_params['error_msg']) ?>);
48
+ <?php if (isset($_params['x_invoice_num'])): ?>
49
+ window.top.directPostModel.successUrl="<?php echo $_helper->getSuccessOrderUrl($_params) ?>";
50
+ <?php endif; ?>
51
+ <?php endif; ?>
52
+ //]]>
53
+ </script>
54
+ </head>
55
+ <body></body>
56
+ </html>
app/design/frontend/base/default/template/authorizenet/directpost/info.phtml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @see Mage_Authorizenet_Block_Directpost_Form
29
+ */
30
+ ?>
31
+ <ul id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
32
+ <li>
33
+ <?php echo $this->__('You will be required to enter your payment details before you place an order.') ?>
34
+ </li>
35
+ </ul>
app/design/frontend/base/default/template/bundle/catalog/product/list/partof.phtml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if($this->getItemCollection()->getSize()): ?>
28
+ <div class="box-collateral box-up-sell">
29
+ <h2><?php echo $this->__('This product is also part of bundle(s)') ?></h2>
30
+ <table class="products-grid" id="bundle-product-table">
31
+ <?php // $this->setColumnCount(4); // uncomment this line if you want to have another number of columns ?>
32
+ <?php $this->resetItemsIterator() ?>
33
+ <?php for($_i=0;$_i<$this->getRowCount();$_i++): ?>
34
+ <tr>
35
+ <?php for($_j=0;$_j<$this->getColumnCount();$_j++): ?>
36
+ <?php if($_bundle=$this->getIterableItem()): ?>
37
+ <td>
38
+ <a href="<?php echo $_bundle->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_bundle->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_bundle, 'small_image')->resize(125) ?>" width="125" height="125" alt="<?php echo $this->escapeHtml($_bundle->getName()) ?>" /></a>
39
+ <h3 class="product-name"><a href="<?php echo $_bundle->getProductUrl() ?>"><?php echo $this->escapeHtml($_bundle->getName()) ?></a></h3>
40
+ <?php echo $this->getPriceHtml($_bundle, true) ?>
41
+ <?php echo $this->getReviewsSummaryHtml($_bundle) ?>
42
+ </td>
43
+ <?php else: ?>
44
+ <td class="empty">&nbsp;</td>
45
+ <?php endif; ?>
46
+ <?php endfor; ?>
47
+ </tr>
48
+ <?php endfor; ?>
49
+ </table>
50
+ <script type="text/javascript">decorateTable('bundle-product-table')</script>
51
+ </div>
52
+ <?php endif ?>
app/design/frontend/base/default/template/bundle/catalog/product/price.phtml ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * @var $this Mage_Bundle_Block_Catalog_Product_Price
30
+ */
31
+ /**
32
+ * @var $_coreHelper Mage_Core_Helper_Data
33
+ * @var $_weeeHelper Mage_Weee_Helper_Data
34
+ * @var $_taxHelper Mage_Tax_Helper_Data
35
+ */
36
+ $_coreHelper = $this->helper('core');
37
+ $_weeeHelper = $this->helper('weee');
38
+ $_taxHelper = $this->helper('tax');
39
+
40
+ /**
41
+ * @var $_product Mage_Catalog_Model_Product
42
+ * @var $_priceModel Mage_Bundle_Model_Product_Price
43
+ */
44
+ $_product = $this->getProduct();
45
+ $_priceModel = $_product->getPriceModel();
46
+
47
+ list($_minimalPriceTax, $_maximalPriceTax) = $_priceModel->getTotalPrices($_product, null, null, false);
48
+ list($_minimalPriceInclTax, $_maximalPriceInclTax) = $_priceModel->getTotalPrices($_product, null, true, false);
49
+
50
+ $_weeeTaxAmount = 0;
51
+ ?>
52
+ <?php
53
+ if ($_product->getPriceType() == 1) {
54
+ $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product);
55
+ $_weeeTaxAmountInclTaxes = $_weeeTaxAmount;
56
+ if ($_weeeHelper->isTaxable()) {
57
+ $_attributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true);
58
+ $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_attributes);
59
+ }
60
+ if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1, 4))) {
61
+ $_minimalPriceTax += $_weeeTaxAmount;
62
+ $_minimalPriceInclTax += $_weeeTaxAmountInclTaxes;
63
+ $_maximalPriceTax += $_weeeTaxAmount;
64
+ $_maximalPriceInclTax += $_weeeTaxAmountInclTaxes;
65
+ }
66
+ if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)) {
67
+ $_minimalPriceInclTax += $_weeeTaxAmountInclTaxes;
68
+ $_maximalPriceInclTax += $_weeeTaxAmountInclTaxes;
69
+ }
70
+
71
+ if ($_weeeHelper->typeOfDisplay($_product, array(1, 2, 4))) {
72
+ $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true);
73
+ }
74
+ }
75
+ ?>
76
+
77
+ <div class="price-box">
78
+ <?php if ($_product->getPriceView()): ?>
79
+ <p class="minimal-price">
80
+ <span class="price-label"><?php echo $this->__('As low as') ?>:</span>
81
+ <?php if ($this->displayBothPrices()): ?>
82
+ <span class="price-excluding-tax">
83
+ <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
84
+ <?php echo $_coreHelper->currency($_minimalPriceTax) ?>
85
+ </span>
86
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && $_weeeHelper->typeOfDisplay($_product, array(2, 1, 4))): ?>
87
+ <span class="weee">(<small>
88
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
89
+ <?php if ($_weeeHelper->typeOfDisplay($_product, array(2, 4))): ?>
90
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
91
+ <?php else: ?>
92
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
93
+ <?php endif; ?>
94
+
95
+ <?php echo $_weeeSeparator; ?>
96
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($amount, true, true); ?>
97
+ <?php $_weeeSeparator = ' + '; ?>
98
+ <?php endforeach; ?>
99
+ </small>)</span>
100
+ <?php endif; ?>
101
+ <span class="price-including-tax">
102
+ <span class="label"><?php echo $_taxHelper->__('Incl. Tax:') ?></span>
103
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
104
+ </span>
105
+ <?php else: ?>
106
+ <?php if ($_taxHelper->displayPriceIncludingTax()): ?>
107
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
108
+ <?php else: ?>
109
+ <?php echo $_coreHelper->currency($_minimalPriceTax) ?>
110
+ <?php endif; ?>
111
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && $_weeeHelper->typeOfDisplay($_product, array(2, 1, 4))): ?>
112
+ <span class="weee">(<small>
113
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
114
+ <?php if ($_weeeHelper->typeOfDisplay($_product, array(2, 4))): ?>
115
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
116
+ <?php else: ?>
117
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
118
+ <?php endif; ?>
119
+
120
+ <?php echo $_weeeSeparator; ?>
121
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($amount, true, true); ?>
122
+ <?php $_weeeSeparator = ' + '; ?>
123
+ <?php endforeach; ?>
124
+ </small>)</span>
125
+ <?php endif; ?>
126
+ <?php if ($_weeeHelper->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
127
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
128
+ <?php endif; ?>
129
+ <?php endif; ?>
130
+ </p>
131
+ <?php else: ?>
132
+ <?php if ($_minimalPriceTax <> $_maximalPriceTax): ?>
133
+ <p class="price-from">
134
+ <span class="price-label"><?php echo $this->__('From') ?>:</span>
135
+ <?php if ($this->displayBothPrices()): ?>
136
+ <span class="price-excluding-tax">
137
+ <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
138
+ <?php echo $_coreHelper->currency($_minimalPriceTax) ?>
139
+ </span>
140
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && $_weeeHelper->typeOfDisplay($_product, array(2, 1, 4))): ?>
141
+ <span class="weee">(<small>
142
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
143
+ <?php if ($_weeeHelper->typeOfDisplay($_product, array(2, 4))): ?>
144
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
145
+ <?php else: ?>
146
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
147
+ <?php endif; ?>
148
+
149
+ <?php echo $_weeeSeparator; ?>
150
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($amount, true, true); ?>
151
+ <?php $_weeeSeparator = ' + '; ?>
152
+ <?php endforeach; ?>
153
+ </small>)</span>
154
+ <?php endif; ?>
155
+ <span class="price-including-tax">
156
+ <span class="label"><?php echo $_taxHelper->__('Incl. Tax:') ?></span>
157
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
158
+ </span>
159
+ <?php else: ?>
160
+ <?php if ($_taxHelper->displayPriceIncludingTax()) : ?>
161
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
162
+ <?php else: ?>
163
+ <?php echo $_coreHelper->currency($_minimalPriceTax) ?>
164
+ <?php endif; ?>
165
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && $_weeeHelper->typeOfDisplay($_product, array(2, 1, 4))): ?>
166
+ <span class="weee">(<small>
167
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
168
+ <?php if ($_taxHelper->displayPriceIncludingTax() || $_weeeHelper->typeOfDisplay($_product, array(2, 4))): ?>
169
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
170
+ <?php else: ?>
171
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
172
+ <?php endif; ?>
173
+
174
+ <?php echo $_weeeSeparator; ?>
175
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($amount, true, true); ?>
176
+ <?php $_weeeSeparator = ' + '; ?>
177
+ <?php endforeach; ?>
178
+ </small>)</span>
179
+ <?php endif; ?>
180
+ <?php if ($_weeeHelper->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
181
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
182
+ <?php endif; ?>
183
+ <?php endif; ?>
184
+ </p>
185
+ <p class="price-to">
186
+ <span class="price-label"><?php echo $this->__('To') ?>:</span>
187
+ <?php if ($this->displayBothPrices()): ?>
188
+ <span class="price-excluding-tax">
189
+ <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
190
+ <?php echo $_coreHelper->currency($_maximalPriceTax) ?>
191
+ </span>
192
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && $_weeeHelper->typeOfDisplay($_product, array(2, 1, 4))): ?>
193
+ <span class="weee">(<small>
194
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
195
+ <?php if ($_weeeHelper->typeOfDisplay($_product, array(2, 4))): ?>
196
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
197
+ <?php else: ?>
198
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
199
+ <?php endif; ?>
200
+
201
+ <?php echo $_weeeSeparator; ?>
202
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($amount, true, true); ?>
203
+ <?php $_weeeSeparator = ' + '; ?>
204
+ <?php endforeach; ?>
205
+ </small>)</span>
206
+ <?php endif; ?>
207
+ <span class="price-including-tax">
208
+ <span class="label"><?php echo $_taxHelper->__('Incl. Tax') ?></span>
209
+ <?php echo $_coreHelper->currency($_maximalPriceInclTax) ?>
210
+ </span>
211
+ <?php else: ?>
212
+ <?php if ($_taxHelper->displayPriceIncludingTax()) : ?>
213
+ <?php echo $_coreHelper->currency($_maximalPriceInclTax) ?>
214
+ <?php else: ?>
215
+ <?php echo $_coreHelper->currency($_maximalPriceTax) ?>
216
+ <?php endif; ?>
217
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && $_weeeHelper->typeOfDisplay($_product, array(2, 1, 4))): ?>
218
+ <span class="weee">(<small>
219
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
220
+ <?php if ($_taxHelper->displayPriceIncludingTax() || $_weeeHelper->typeOfDisplay($_product, array(2, 4))): ?>
221
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
222
+ <?php else: ?>
223
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
224
+ <?php endif; ?>
225
+
226
+ <?php echo $_weeeSeparator; ?>
227
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($amount, true, true); ?>
228
+ <?php $_weeeSeparator = ' + '; ?>
229
+ <?php endforeach; ?>
230
+ </small>)</span>
231
+ <?php endif; ?>
232
+ <?php if ($_weeeHelper->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
233
+ <?php echo $_coreHelper->currency($_maximalPriceInclTax) ?>
234
+ <?php endif; ?>
235
+ <?php endif; ?>
236
+ </p>
237
+ <?php else: ?>
238
+ <?php if ($this->displayBothPrices()): ?>
239
+ <span class="price-excluding-tax">
240
+ <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
241
+ <?php echo $_coreHelper->currency($_minimalPriceTax) ?>
242
+ </span>
243
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && $_weeeHelper->typeOfDisplay($_product, array(2, 1, 4))): ?>
244
+ <span class="weee">(<small>
245
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
246
+ <?php if ($_weeeHelper->typeOfDisplay($_product, array(2, 4))): ?>
247
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
248
+ <?php else: ?>
249
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
250
+ <?php endif; ?>
251
+
252
+ <?php echo $_weeeSeparator; ?>
253
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($amount, true, true); ?>
254
+ <?php $_weeeSeparator = ' + '; ?>
255
+ <?php endforeach; ?>
256
+ </small>)</span>
257
+ <?php endif; ?>
258
+ <span class="price-including-tax">
259
+ <span class="label"><?php echo $_taxHelper->__('Incl. Tax:') ?></span>
260
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
261
+ </span>
262
+ <?php else: ?>
263
+ <?php echo $_coreHelper->currency($_minimalPriceTax) ?>
264
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && $_weeeHelper->typeOfDisplay($_product, array(2, 1, 4))): ?>
265
+ <span class="weee">(<small>
266
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
267
+ <?php if ($_taxHelper->displayPriceIncludingTax()): ?>
268
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
269
+ <?php else: ?>
270
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
271
+ <?php endif; ?>
272
+
273
+ <?php echo $_weeeSeparator; ?>
274
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($amount, true, true); ?>
275
+ <?php $_weeeSeparator = ' + '; ?>
276
+ <?php endforeach; ?>
277
+ </small>)</span>
278
+ <?php endif; ?>
279
+ <?php if ($_weeeHelper->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
280
+ <?php if ($_taxHelper->displayPriceIncludingTax()) : ?>
281
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
282
+ <?php else: ?>
283
+ <?php echo $_coreHelper->currency($_minimalPriceTax + $_weeeTaxAmount) ?>
284
+ <?php endif; ?>
285
+ <?php endif; ?>
286
+ <?php endif; ?>
287
+ <?php endif; ?>
288
+ <?php endif; ?>
289
+ </div>
app/design/frontend/base/default/template/bundle/catalog/product/view/option_tierprices.phtml ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * @see Mage_Catalog_Block_Product_View
31
+ */
32
+ $_product = $this->getProduct();
33
+ if ($this->getParent()->getPriceType() != Mage_Bundle_Model_Product_Price::PRICE_TYPE_FIXED) {
34
+ $_tierPrices = $this->getTierPrices($_product, $this->getParent());
35
+ }
36
+ $_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(), true);
37
+
38
+ /** @var $_catalogHelper Mage_Catalog_Helper_Data */
39
+ $_catalogHelper = Mage::helper('catalog');
40
+
41
+ $_weeeTaxAmount = Mage::helper('weee')->getAmountForDisplay($_product);
42
+ if (Mage::helper('weee')->typeOfDisplay($_product, array(1,2,4))) {
43
+ $_weeeTaxAttributes = Mage::helper('weee')->getProductWeeeAttributesForDisplay($_product);
44
+ }
45
+
46
+ ?>
47
+ <?php if (isset($_tierPrices) && count($_tierPrices) > 0): ?>
48
+ <ul class="<?php echo ($this->getInGrouped() ? 'tier-prices-grouped product-pricing-grouped' : 'tier-prices product-pricing'); ?>">
49
+ <?php if ($this->getInGrouped()): ?>
50
+ <?php $_tierPrices = $this->getTierPrices($_product); ?>
51
+ <?php endif; ?>
52
+ <?php Mage::helper('weee')->processTierPrices($_product, $_tierPrices, false); ?>
53
+ <?php foreach ($_tierPrices as $_index => $_price): ?>
54
+ <li class="tier-price tier-<?php echo $_index; ?>">
55
+ <?php if ($_catalogHelper->canApplyMsrp($_product)): ?>
56
+ <?php if ($this->getInGrouped()): ?>
57
+ <?php echo $this->__('Buy %1$s for', $_price['price_qty']) ?>:
58
+ <?php else: ?>
59
+ <?php echo $this->__('Buy %1$s', $_price['price_qty']) ?>
60
+ <?php endif; ?>
61
+ <?php else: ?>
62
+
63
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
64
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 0)): ?>
65
+ <?php echo $this->__('Buy %1$s for %2$s (%3$s incl. tax) each', $_price['price_qty'], $_price['formated_price_incl_weee_only'], $_price['formated_price_incl_weee']) ?>
66
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 1)): ?>
67
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
68
+ <?php if ($_weeeTaxAttributes): ?>
69
+ (<small>
70
+ <?php echo $this->__('%1$s incl tax.', $_price['formated_price_incl_weee']); ?>
71
+ <?php $separator = ' + '; foreach ($_weeeTaxAttributes as $_attribute): ?>
72
+ <?php echo $separator; ?>
73
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
74
+ <?php endforeach; ?>
75
+ </small>)
76
+ <?php endif; ?>
77
+ <?php echo $this->__('each') ?>
78
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 4)): ?>
79
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
80
+ <?php if ($_weeeTaxAttributes): ?>
81
+ (<small>
82
+ <?php echo $this->__('%1$s incl tax.', $_price['formated_price_incl_weee']); ?>
83
+ <?php $separator = ' + '; foreach ($_weeeTaxAttributes as $_attribute): ?>
84
+ <?php echo $separator; ?>
85
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()+$_attribute->getTaxAmount()); ?>
86
+ <?php endforeach; ?>
87
+ </small>)
88
+ <?php endif; ?>
89
+ <?php echo $this->__('each') ?>
90
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 2)): ?>
91
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price']); ?>
92
+ <?php if ($_weeeTaxAttributes): ?>
93
+ (<small>
94
+ <?php foreach ($_weeeTaxAttributes as $_attribute): ?>
95
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
96
+ <?php endforeach; ?>
97
+ <?php echo $this->__('Total incl. Tax: %1$s', $_price['formated_price_incl_weee']); ?>
98
+ </small>)
99
+ <?php endif; ?>
100
+ <?php echo $this->__('each') ?>
101
+ <?php else: ?>
102
+ <?php echo $this->__('Buy %1$s for %2$s (%3$s incl. tax) each', $_price['price_qty'], $_price['formated_price'], $_price['formated_price_incl_tax']) ?>
103
+ <?php endif; ?>
104
+ <?php else: ?>
105
+ <?php if ($this->helper('tax')->displayPriceIncludingTax()): ?>
106
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 0)): ?>
107
+ <?php echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_weee']) ?>
108
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 1)): ?>
109
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee']); ?>
110
+ <?php if ($_weeeTaxAttributes): ?>
111
+ (<small>
112
+ <?php $separator = ''; foreach ($_weeeTaxAttributes as $_attribute): ?>
113
+ <?php echo $separator; ?>
114
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
115
+ <?php $separator = ' + '; endforeach; ?>
116
+ </small>)
117
+ <?php endif; ?>
118
+ <?php echo $this->__('each') ?>
119
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 4)): ?>
120
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee']); ?>
121
+ <?php if ($_weeeTaxAttributes): ?>
122
+ (<small>
123
+ <?php $separator = ''; foreach ($_weeeTaxAttributes as $_attribute): ?>
124
+ <?php echo $separator; ?>
125
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()+$_attribute->getTaxAmount()); ?>
126
+ <?php $separator = ' + '; endforeach; ?>
127
+ </small>)
128
+ <?php endif; ?>
129
+ <?php echo $this->__('each') ?>
130
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 2)): ?>
131
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_tax']); ?>
132
+ <?php if ($_weeeTaxAttributes): ?>
133
+ (<small>
134
+ <?php foreach ($_weeeTaxAttributes as $_attribute): ?>
135
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
136
+ <?php endforeach; ?>
137
+ <?php echo $this->__('Total incl. Tax: %1$s', $_price['formated_price_incl_weee']); ?>
138
+ </small>)
139
+ <?php endif; ?>
140
+ <?php echo $this->__('each') ?>
141
+ <?php else: ?>
142
+ <?php echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_tax']) ?>
143
+ <?php endif; ?>
144
+ <?php else: ?>
145
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 0)): ?>
146
+ <?php echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_weee_only']) ?>
147
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 1)): ?>
148
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
149
+ <?php if ($_weeeTaxAttributes): ?>
150
+ (<small>
151
+ <?php $separator = ''; foreach ($_weeeTaxAttributes as $_attribute): ?>
152
+ <?php echo $separator; ?>
153
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
154
+ <?php $separator = ' + '; endforeach; ?>
155
+ </small>)
156
+ <?php endif; ?>
157
+ <?php echo $this->__('each') ?>
158
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 4)): ?>
159
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
160
+ <?php if ($_weeeTaxAttributes): ?>
161
+ (<small>
162
+ <?php $separator = ''; foreach ($_weeeTaxAttributes as $_attribute): ?>
163
+ <?php echo $separator; ?>
164
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()+$_attribute->getTaxAmount()); ?>
165
+ <?php $separator = ' + '; endforeach; ?>
166
+ </small>)
167
+ <?php endif; ?>
168
+ <?php echo $this->__('each') ?>
169
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 2)): ?>
170
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price']); ?>
171
+ <?php if ($_weeeTaxAttributes): ?>
172
+ (<small>
173
+ <?php foreach ($_weeeTaxAttributes as $_attribute): ?>
174
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
175
+ <?php endforeach; ?>
176
+ <?php echo $this->__('Total incl. Tax: %1$s', $_price['formated_price_incl_weee_only']); ?>
177
+ </small>)
178
+ <?php endif; ?>
179
+ <?php echo $this->__('each') ?>
180
+ <?php else: ?>
181
+ <?php echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price']) ?>
182
+ <?php endif; ?>
183
+ <?php endif; ?>
184
+ <?php endif; ?>
185
+
186
+ <?php endif; // Can apply MSRP ?>
187
+
188
+ <?php if (!$this->getInGrouped()): ?>
189
+ <?php if(($_product->getPrice() == $_product->getFinalPrice() && $_product->getPrice() > $_price['price'])
190
+ || ($_product->getPrice() != $_product->getFinalPrice() && $_product->getFinalPrice() > $_price['price'])): ?>
191
+ <?php echo $this->__('and') ?>&nbsp;<strong class="benefit"><?php echo $this->__('save')?>&nbsp;<span class="percent tier-fixed"><?php echo $_price['savePercent']?></span>%
192
+ <?php endif ?></strong>
193
+ <?php endif; ?>
194
+
195
+ <?php if ($_catalogHelper->isShowPriceOnGesture($_product)):?>
196
+ <?php $popupId = 'msrp-popup-' . $_product->getId() . $this->helper('core')->getRandomString(20); ?>
197
+ <a href="#" id="<?php echo($popupId);?>"><?php echo $this->__('Click for price'); ?></a>
198
+ <script type="text/javascript">
199
+ <?php
200
+ $addToCartUrl = $this->getProduct()->isSalable()
201
+ ? $this->getAddToCartUrl($_product, array('qty' => $_price['price_qty']))
202
+ : '';
203
+ ?>
204
+ <?php if (!$this->getInGrouped()): ?>
205
+ var newLink = {
206
+ url: "<?php echo $addToCartUrl; ?>",
207
+ qty: "<?php echo $_price['price_qty']?>"
208
+ };
209
+ <?php else: ?>
210
+ var newLink = {
211
+ url: "<?php echo $addToCartUrl; ?>",
212
+ notUseForm: true
213
+ };
214
+ <?php endif ?>
215
+ Catalog.Map.addHelpLink(
216
+ $('<?php echo $popupId ?>'),
217
+ "<?php echo $_product->getName() ?>",
218
+ <?php echo json_encode($_price['real_price_html']) ?>,
219
+ "<?php echo $this->helper('core')->currency($_product->getMsrp(),true,false) ?>",
220
+ newLink
221
+ );
222
+ </script>
223
+ <?php else: ?>
224
+ <span class="msrp-price-hide-message">
225
+ <?php echo $_catalogHelper->getMsrpPriceMessage($_product) ?>
226
+ </span>
227
+ <?php endif; ?>
228
+
229
+
230
+ </li>
231
+
232
+ <?php endforeach ?>
233
+ </ul>
234
+ <?php endif;?>
app/design/frontend/base/default/template/bundle/catalog/product/view/options/notice.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
app/design/frontend/base/default/template/bundle/catalog/product/view/price.phtml ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $_product = $this->getProduct() ?>
28
+ <?php $_finalPrice = $_product->getFinalPrice() ?>
29
+ <?php $_finalPriceInclTax = $_product->getFinalPrice() ?>
30
+ <?php $_weeeTaxAmount = 0; ?>
31
+ <?php
32
+ if ($_product->getPriceType() == 1) {
33
+ $_weeeTaxAmount = Mage::helper('weee')->getAmount($_product);
34
+ if (Mage::helper('weee')->typeOfDisplay($_product, array(1,2,4))) {
35
+ $_weeeTaxAttributes = Mage::helper('weee')->getProductWeeeAttributesForRenderer($_product, null, null, null, true);
36
+ }
37
+ }
38
+ $isMAPTypeOnGesture = Mage::helper('catalog')->isShowPriceOnGesture($_product);
39
+ $canApplyMAP = Mage::helper('catalog')->canApplyMsrp($_product);
40
+ ?>
41
+ <?php if ($_product->getCanShowPrice() !== false):?>
42
+ <div class="price-box">
43
+ <p class="price-as-configured">
44
+ <span class="price-label"><?php echo $this->helper('bundle')->__('Price as configured') ?>:</span>
45
+ <?php if (!$this->getWithoutPrice()): ?>
46
+ <span<?php if (!$isMAPTypeOnGesture && $canApplyMAP): ?> style="display:none"<?php endif ?> class="full-product-price">
47
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
48
+ <span class="price-tax">
49
+ <span class="price-excluding-tax">
50
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
51
+ <span class="price" id="price-excluding-tax-<?php echo $_product->getId() ?><?php echo $this->getIdSuffix() ?>">
52
+ <?php if (!$canApplyMAP): ?>
53
+ <?php echo Mage::helper('core')->currency($_finalPrice,true,false) ?>
54
+ <?php endif ?>
55
+ </span>
56
+ </span>
57
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
58
+ <span class="weee">(<small>
59
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
60
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
61
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
62
+ <?php else: ?>
63
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
64
+ <?php endif; ?>
65
+
66
+ <?php echo $_weeeSeparator; ?>
67
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
68
+ <?php $_weeeSeparator = ' + '; ?>
69
+ <?php endforeach; ?>
70
+ </small>)</span>
71
+ <?php endif; ?>
72
+ <span class="price-including-tax">
73
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
74
+ <span class="price" id="price-including-tax-<?php echo $_product->getId() ?><?php echo $this->getIdSuffix() ?>">
75
+ <?php if (!$canApplyMAP): ?>
76
+ <?php echo Mage::helper('core')->currency($_finalPriceInclTax,true,false) ?>
77
+ <?php endif ?>
78
+ </span>
79
+ </span>
80
+ </span>
81
+ <?php else: ?>
82
+ <span class="price" id="product-price-<?php echo $_product->getId() ?><?php echo $this->getIdSuffix() ?>">
83
+ <?php if (!$canApplyMAP): ?>
84
+ <?php echo Mage::helper('core')->currency($_finalPrice,true,false) ?>
85
+ <?php endif ?>
86
+ </span>
87
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
88
+ <span class="weee">(<small>
89
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
90
+ <?php if ($this->helper('tax')->displayPriceIncludingTax()): ?>
91
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
92
+ <?php else: ?>
93
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
94
+ <?php endif; ?>
95
+
96
+ <?php echo $_weeeSeparator; ?>
97
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
98
+ <?php $_weeeSeparator = ' + '; ?>
99
+ <?php endforeach; ?>
100
+ </small>)</span>
101
+ <?php endif; ?>
102
+ <?php endif; ?>
103
+ </span>
104
+ <?php endif ?>
105
+ </p>
106
+ </div>
107
+ <?php endif; ?>
108
+ <?php if($_product->isSaleable()): ?>
109
+ <script type="text/javascript">
110
+ document.observe("dom:loaded", function() {
111
+ bundle.reloadPrice();
112
+ });
113
+ </script>
114
+ <?php endif; ?>
app/design/frontend/base/default/template/bundle/catalog/product/view/tierprices.phtml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * @see Mage_Catalog_Block_Product_View
31
+ */
32
+ $_product = $this->getProduct();
33
+ $_tierPrices = $this->getTierPrices();
34
+ ?>
35
+ <?php if (count($_tierPrices) > 0): ?>
36
+ <ul class="tier-prices product-pricing">
37
+ <?php foreach($_tierPrices as $_price): ?>
38
+ <li><?php echo $this->__('Buy %1$s with %2$s discount each', $_price['price_qty'], '<strong class="benefit">'.($_price['price']*1).'%</strong>') ?></li>
39
+ <?php endforeach ?>
40
+ </ul>
41
+ <?php endif;?>
app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle.phtml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ ?>
28
+ <?php $_product = $this->getProduct() ?>
29
+
30
+ <?php if ($_product->isSaleable()): ?>
31
+ <script type="text/javascript">
32
+ //<![CDATA[
33
+ var skipTierPricePercentUpdate = true;
34
+ var bundle = new Product.Bundle(<?php echo $this->getJsonConfig() ?>);
35
+ var taxCalcMethod = "<?php echo Mage::helper('tax')->getConfig()->getAlgorithm($_product->getStore()) ?>";
36
+ var CACL_UNIT_BASE = "<?php echo Mage_Tax_Model_Calculation::CALC_UNIT_BASE ?>";
37
+ var CACL_ROW_BASE = "<?php echo Mage_Tax_Model_Calculation::CALC_ROW_BASE ?>";
38
+ var CACL_TOTAL_BASE = "<?php echo Mage_Tax_Model_Calculation::CALC_TOTAL_BASE ?>";
39
+ //]]>
40
+ </script>
41
+ <?php endif; ?>
42
+ <?php if ($this->displayProductStockStatus()): ?>
43
+ <?php if ($_product->isAvailable()): ?>
44
+ <p class="availability in-stock"><?php echo $this->helper('catalog')->__('Availability:') ?>
45
+ <span><?php echo $this->helper('catalog')->__('In stock') ?></span></p>
46
+ <?php else: ?>
47
+ <p class="availability out-of-stock"><?php echo $this->helper('catalog')->__('Availability:') ?>
48
+ <span><?php echo $this->helper('catalog')->__('Out of stock') ?></span></p>
49
+ <?php endif; ?>
50
+ <?php endif; ?>
51
+ <div class="price-box-bundle">
52
+ <?php echo $this->getPriceHtml($_product) ?>
53
+ </div>
54
+ <?php echo $this->getChildHtml('bundle_prices') ?>
app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/option/checkbox.phtml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ ?>
28
+
29
+ <?php /* @var $this Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Checkbox */ ?>
30
+ <?php $_option = $this->getOption() ?>
31
+ <?php $_selections = $_option->getSelections() ?>
32
+ <dt><label<?php if ($_option->getRequired()) echo ' class="required"' ?>><?php echo $this->escapeHtml($_option->getTitle()) ?><?php if ($_option->getRequired()) echo '<em>*</em>' ?></label></dt>
33
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
34
+ <div class="input-box">
35
+ <?php if (count($_selections) == 1 && $_option->getRequired()): ?>
36
+ <?php echo $this->getSelectionQtyTitlePrice($_selections[0]) ?>
37
+ <input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>"/>
38
+ <?php else:?>
39
+ <ul class="options-list">
40
+ <?php foreach($_selections as $_selection): ?>
41
+ <li><input onclick="bundle.changeSelection(this)" class="change-container-classname checkbox bundle-option-<?php echo $_option->getId() ?> <?php if ($_option->getRequired()) echo 'validate-one-required-by-name' ?>" id="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>" type="checkbox" name="bundle_option[<?php echo $_option->getId() ?>][]"<?php if ($this->_isSelected($_selection)) echo ' checked="checked"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?> value="<?php echo $_selection->getSelectionId() ?>"/>
42
+ <span class="label"><label for="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>"><?php echo $this->getSelectionQtyTitlePrice($_selection) ?></label></span>
43
+ <?php if($_option->getRequired()): ?>
44
+ <?php echo $this->setValidationContainer('bundle-option-'.$_option->getId().'-'.$_selection->getSelectionId(), 'bundle-option-'.$_option->getId().'-container') ?>
45
+ <?php endif; ?>
46
+ </li>
47
+ <?php endforeach; ?>
48
+ </ul>
49
+ <div id="bundle-option-<?php echo $_option->getId() ?>-container"></div>
50
+ <?php endif; ?>
51
+ </div>
52
+ </dd>
app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/option/multi.phtml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ ?>
28
+
29
+ <?php /* @var $this Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Multi */ ?>
30
+ <?php $_option = $this->getOption() ?>
31
+ <?php $_selections = $_option->getSelections() ?>
32
+ <dt><label<?php if ($_option->getRequired()) echo ' class="required"' ?>><?php echo $this->escapeHtml($_option->getTitle()) ?><?php if ($_option->getRequired()) echo '<em>*</em>' ?></label></dt>
33
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
34
+ <div class="input-box">
35
+ <?php if (count($_selections) == 1 && $_option->getRequired()): ?>
36
+ <?php echo $this->getSelectionQtyTitlePrice($_selections[0]) ?>
37
+ <input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>"/>
38
+ <?php else: ?>
39
+ <select onchange="bundle.changeSelection(this)" multiple="multiple" size="5" id="bundle-option-<?php echo $_option->getId() ?>" name="bundle_option[<?php echo $_option->getId() ?>][]" class="bundle-option-<?php echo $_option->getId() ?><?php if ($_option->getRequired()) echo ' required-entry' ?> bundle-option-select multiselect change-container-classname">
40
+ <?php if(!$_option->getRequired()): ?>
41
+ <option value=""><?php echo $this->__('None') ?></option>
42
+ <?php endif; ?>
43
+ <?php foreach ($_selections as $_selection): ?>
44
+ <option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) echo ' selected="selected"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?>><?php echo $this->getSelectionQtyTitlePrice($_selection, false) ?></option>
45
+ <?php endforeach; ?>
46
+ </select>
47
+ <?php endif; ?>
48
+ </div>
49
+ </dd>
app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/option/radio.phtml ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ ?>
28
+
29
+ <?php /* @var $this Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Radio */ ?>
30
+ <?php $_option = $this->getOption(); ?>
31
+ <?php $_selections = $_option->getSelections(); ?>
32
+ <?php $_default = $_option->getDefaultSelection(); ?>
33
+ <?php list($_defaultQty, $_canChangeQty) = $this->_getDefaultValues(); ?>
34
+ <?php $tierPriceHtml = ''; ?>
35
+
36
+ <dt>
37
+ <label<?php if ($_option->getRequired()) echo ' class="required"' ?>><?php echo $this->escapeHtml($_option->getTitle()) ?><?php if ($_option->getRequired()) echo '<em>*</em>' ?></label>
38
+ </dt>
39
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
40
+ <div class="input-box">
41
+ <?php /** @var $_selection Mage_Catalog_Model_Product*/ ?>
42
+ <?php if ($this->_showSingle()): ?>
43
+ <?php echo $this->getSelectionTitlePrice($_selections[0]); ?>
44
+ <?php if ($_selections[0]->getSelectionCanChangeQty()): ?>
45
+ <?php $tierPriceHtml = $this->getTierPriceHtml($_selections[0]); ?>
46
+ <?php endif; ?>
47
+ <input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>" />
48
+ <?php else:?>
49
+ <ul class="options-list">
50
+ <?php if (!$_option->getRequired()): ?>
51
+ <li><input type="radio" onclick="bundle.changeSelection(this)" class="radio" id="bundle-option-<?php echo $_option->getId() ?>" name="bundle_option[<?php echo $_option->getId() ?>]"<?php echo ($_default && $_default->isSalable())?'':' checked="checked" ' ?> value=""/>
52
+ <span class="label"><label for="bundle-option-<?php echo $_option->getId() ?>"><?php echo $this->__('None') ?></label></span>
53
+ </li>
54
+ <?php endif; ?>
55
+ <?php foreach ($_selections as $_selection): ?>
56
+ <?php if ($_selection->getSelectionCanChangeQty() && $this->_isSelected($_selection)): ?>
57
+ <?php $tierPriceHtml = $this->getTierPriceHtml($_selection); ?>
58
+ <?php endif; ?>
59
+ <li><input type="radio" onclick="bundle.changeSelection(this)" class="radio<?php echo $_option->getRequired()?' validate-one-required-by-name':'' ?> change-container-classname" id="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>" name="bundle_option[<?php echo $_option->getId() ?>]"<?php if ($this->_isSelected($_selection)) echo ' checked="checked"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?>value="<?php echo $_selection->getSelectionId() ?>"/>
60
+ <span class="label"><label for="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>"><?php echo $this->getSelectionTitlePrice($_selection) ?></label></span>
61
+ <?php if ($_option->getRequired()): ?>
62
+ <?php echo $this->setValidationContainer('bundle-option-'.$_option->getId().'-'.$_selection->getSelectionId(), 'bundle-option-'.$_option->getId().'-container') ?>
63
+ <?php endif; ?>
64
+ </li>
65
+ <?php endforeach; ?>
66
+ </ul>
67
+ <div id="bundle-option-<?php echo $_option->getId() ?>-container"></div>
68
+ <?php endif; ?>
69
+ </div>
70
+ <span id="bundle-option-<?php echo $_option->getId() ?>-tier-prices"> <?php echo $tierPriceHtml; ?></span>
71
+ <span class="qty-holder">
72
+ <label for="bundle-option-<?php echo $_option->getId() ?>-qty-input"><?php echo $this->__('Qty:') ?>&nbsp;</label><input onkeyup="bundle.changeOptionQty(this, event)" onblur="bundle.changeOptionQty(this, event)" <?php if (!$_canChangeQty) echo ' disabled="disabled"' ?> id="bundle-option-<?php echo $_option->getId() ?>-qty-input" class="input-text qty<?php if (!$_canChangeQty) echo ' qty-disabled' ?>" type="text" name="bundle_option_qty[<?php echo $_option->getId() ?>]" value="<?php echo $_defaultQty ?>"/>
73
+ </span>
74
+ </dd>
app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/option/select.phtml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ ?>
28
+
29
+ <?php /* @var $this Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Select */ ?>
30
+ <?php $_option = $this->getOption(); ?>
31
+ <?php $_selections = $_option->getSelections(); ?>
32
+ <?php $_default = $_option->getDefaultSelection(); ?>
33
+ <?php list($_defaultQty, $_canChangeQty) = $this->_getDefaultValues(); ?>
34
+ <?php $tierPriceHtml = ''; ?>
35
+
36
+ <dt>
37
+ <label<?php if ($_option->getRequired()) echo ' class="required"' ?>><?php echo $this->escapeHtml($_option->getTitle()) ?><?php if ($_option->getRequired()) echo '<em>*</em>' ?></label>
38
+ </dt>
39
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
40
+ <div class="input-box">
41
+ <?php /** @var $_selection Mage_Catalog_Model_Product*/ ?>
42
+ <?php if ($this->_showSingle()): ?>
43
+ <?php echo $this->getSelectionTitlePrice($_selections[0]); ?>
44
+ <?php if ($_selections[0]->getSelectionCanChangeQty()): ?>
45
+ <?php $tierPriceHtml = $this->getTierPriceHtml($_selections[0]); ?>
46
+ <?php endif; ?>
47
+ <input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>"/>
48
+ <?php else:?>
49
+ <select onchange="bundle.changeSelection(this)" id="bundle-option-<?php echo $_option->getId() ?>" name="bundle_option[<?php echo $_option->getId() ?>]" class="bundle-option-<?php echo $_option->getId() ?><?php if ($_option->getRequired()) echo ' required-entry' ?> bundle-option-select change-container-classname">
50
+ <option value=""><?php echo $this->__('Choose a selection...') ?></option>
51
+ <?php foreach ($_selections as $_selection): ?>
52
+ <?php if ($_selection->getSelectionCanChangeQty() && $this->_isSelected($_selection)): ?>
53
+ <?php $tierPriceHtml = $this->getTierPriceHtml($_selection); ?>
54
+ <?php endif; ?>
55
+ <option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) echo ' selected="selected"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?>><?php echo $this->getSelectionTitlePrice($_selection, false) ?></option>
56
+ <?php endforeach; ?>
57
+ </select>
58
+ <?php endif; ?>
59
+ </div>
60
+ <span id="bundle-option-<?php echo $_option->getId() ?>-tier-prices"> <?php echo $tierPriceHtml; ?></span>
61
+ <span class="qty-holder">
62
+ <label for="bundle-option-<?php echo $_option->getId() ?>-qty-input"><?php echo $this->__('Qty:') ?>&nbsp;</label><input onkeyup="bundle.changeOptionQty(this, event)" onblur="bundle.changeOptionQty(this, event)" <?php if (!$_canChangeQty) echo ' disabled="disabled"' ?> id="bundle-option-<?php echo $_option->getId() ?>-qty-input" class="input-text qty<?php if (!$_canChangeQty) echo ' qty-disabled' ?>" type="text" name="bundle_option_qty[<?php echo $_option->getId() ?>]" value="<?php echo $_defaultQty ?>"/>
63
+ </span>
64
+ </dd>
app/design/frontend/base/default/template/bundle/catalog/product/view/type/bundle/options.phtml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php $_product = $this->getProduct(); ?>
29
+ <?php $_options = Mage::helper('core')->decorateArray($this->getOptions()); ?>
30
+ <?php if ($_product->isSaleable()):?>
31
+ <?php if (count($_options)): ?>
32
+ <dl>
33
+ <?php foreach ($_options as $_option): ?>
34
+ <?php if (!$_option->getSelections()): ?>
35
+ <?php continue; ?>
36
+ <?php endif; ?>
37
+ <?php echo $this->getOptionHtml($_option) ?>
38
+ <?php endforeach; ?>
39
+ </dl>
40
+ <?php else: ?>
41
+ <p><?php echo $this->__('No options of this product are available.') ?></p>
42
+ <?php endif; ?>
43
+ <?php endif;?>
app/design/frontend/base/default/template/bundle/email/order/items/creditmemo/default.phtml ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $parentItem = $this->getItem() ?>
28
+ <?php $_order = $this->getItem()->getOrder(); ?>
29
+
30
+ <?php $items = $this->getChilds($parentItem) ?>
31
+
32
+ <?php $_prevOptionId = '' ?>
33
+
34
+ <?php foreach ($items as $_item): ?>
35
+
36
+ <?php if($this->getItemOptions() || $parentItem->getDescription() || $this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
37
+ <?php $_showlastRow = true ?>
38
+ <?php else: ?>
39
+ <?php $_showlastRow = false ?>
40
+ <?php endif; ?>
41
+
42
+ <?php if ($_item->getOrderItem()->getParentItem()): ?>
43
+ <?php $attributes = $this->getSelectionAttributes($_item) ?>
44
+ <?php if ($_prevOptionId != $attributes['option_id']): ?>
45
+ <tr>
46
+ <td align="left" valign="top" style="padding:3px 9px"><strong><?php echo $attributes['option_label'] ?></strong></td>
47
+ <td>&nbsp;</td>
48
+ <td>&nbsp;</td>
49
+ <td>&nbsp;</td>
50
+ </tr>
51
+ <?php $_prevOptionId = $attributes['option_id'] ?>
52
+ <?php endif; ?>
53
+ <?php endif; ?>
54
+ <tr id="order-item-row-<?php echo $_item->getId() ?>">
55
+ <?php if (!$_item->getOrderItem()->getParentItem()): ?>
56
+ <td align="left" valign="top" style="padding:3px 9px"><strong><?php echo $this->escapeHtml($_item->getName()) ?></strong></td>
57
+ <?php else: ?>
58
+ <td align="left" valign="top" style="padding:3px 19px"><?php echo $this->getValueHtml($_item)?></td>
59
+ <?php endif; ?>
60
+ <td align="left" valign="top" style="padding:3px 9px"><?php echo $this->escapeHtml($_item->getSku()) ?></td>
61
+ <td align="center" valign="top" style="padding:3px 9px">
62
+ <?php if ($this->canShowPriceInfo($_item)): ?>
63
+ <?php echo $_item->getQty()*1 ?>
64
+ <?php else: ?>
65
+ &nbsp;
66
+ <?php endif; ?>
67
+ </td>
68
+ <td align="right" valign="top" style="padding:3px 9px">
69
+ <?php if ($this->canShowPriceInfo($_item)): ?>
70
+ <?php if ($this->helper('tax')->displaySalesPriceExclTax($_order->getStore()) || $this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
71
+ <?php if ($this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
72
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax'); ?>:</span>
73
+ <?php endif; ?>
74
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'email', $_order->getStore())): ?>
75
+ <?php echo $_order->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
76
+ <?php else: ?>
77
+ <?php echo $_order->formatPrice($_item->getRowTotal()) ?>
78
+ <?php endif; ?>
79
+
80
+
81
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
82
+ <br />
83
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'email', $_order->getStore())): ?>
84
+ <small>
85
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
86
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount'],true,true); ?></span><br />
87
+ <?php endforeach; ?>
88
+ </small>
89
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
90
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
91
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount'],true,true); ?></small></span><br />
92
+ <?php endforeach; ?>
93
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'email', $_order->getStore())): ?>
94
+ <small>
95
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
96
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount'],true,true); ?></span><br />
97
+ <?php endforeach; ?>
98
+ </small>
99
+ <?php endif; ?>
100
+
101
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
102
+ <br />
103
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $_order->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
104
+ <?php endif; ?>
105
+ <?php endif; ?>
106
+ <?php endif; ?>
107
+
108
+
109
+ <?php if ($this->helper('tax')->displaySalesPriceInclTax($_order->getStore()) || $this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
110
+ <?php if ($this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
111
+ <br /><span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax'); ?>:</span>
112
+ <?php endif; ?>
113
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
114
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'email', $_order->getStore())): ?>
115
+ <?php echo $_order->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
116
+ <?php else: ?>
117
+ <?php echo $_order->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
118
+ <?php endif; ?>
119
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
120
+ <br />
121
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'email', $_order->getStore())): ?>
122
+ <small>
123
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
124
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
125
+ <?php endforeach; ?>
126
+ </small>
127
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
128
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
129
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
130
+ <?php endforeach; ?>
131
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'email', $_order->getStore())): ?>
132
+ <small>
133
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
134
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
135
+ <?php endforeach; ?>
136
+ </small>
137
+ <?php endif; ?>
138
+
139
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
140
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $_order->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
141
+ <?php endif; ?>
142
+ <?php endif; ?>
143
+ <?php endif; ?>
144
+ <?php else: ?>
145
+ &nbsp;
146
+ <?php endif; ?>
147
+ </td>
148
+ </tr>
149
+ <?php endforeach; ?>
150
+
151
+ <?php if ($_showlastRow): ?>
152
+ <tr>
153
+ <td align="left" valign="top" style="padding:3px 9px">
154
+ <?php if ($this->getItemOptions()): ?>
155
+ <dl style="margin:0; padding:0;">
156
+ <?php foreach ($this->getItemOptions() as $option): ?>
157
+ <dt><strong><em><?php echo $option['label'] ?></em></strong></dt>
158
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
159
+ <?php endforeach; ?>
160
+ </dl>
161
+ <?php endif; ?>
162
+ <?php echo $this->escapeHtml($_item->getDescription()) ?>
163
+ </td>
164
+ <td>&nbsp;</td>
165
+ <td>&nbsp;</td>
166
+ <td>&nbsp;</td>
167
+ </tr>
168
+ <?php endif; ?>
app/design/frontend/base/default/template/bundle/email/order/items/invoice/default.phtml ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php $parentItem = $this->getItem() ?>
29
+ <?php $items = $this->getChilds($parentItem) ?>
30
+ <?php $_index = 0 ?>
31
+ <?php $_order = $this->getItem()->getOrder(); ?>
32
+
33
+ <?php $_prevOptionId = '' ?>
34
+
35
+ <?php foreach ($items as $_item): ?>
36
+
37
+ <?php if($this->getItemOptions() || $parentItem->getDescription() || $this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
38
+ <?php $_showlastRow = true ?>
39
+ <?php else: ?>
40
+ <?php $_showlastRow = false ?>
41
+ <?php endif; ?>
42
+
43
+ <?php if ($_item->getOrderItem()->getParentItem()): ?>
44
+ <?php $attributes = $this->getSelectionAttributes($_item) ?>
45
+ <?php if ($_prevOptionId != $attributes['option_id']): ?>
46
+ <tr>
47
+ <td align="left" valign="top" style="padding:3px 9px"><strong><em><?php echo $attributes['option_label'] ?></em></strong></td>
48
+ <td>&nbsp;</td>
49
+ <td>&nbsp;</td>
50
+ <td>&nbsp;</td>
51
+ </tr>
52
+ <?php $_prevOptionId = $attributes['option_id'] ?>
53
+ <?php endif; ?>
54
+ <?php endif; ?>
55
+ <tr id="order-item-row-<?php echo $_item->getId() ?>">
56
+ <?php if (!$_item->getOrderItem()->getParentItem()): ?>
57
+ <td align="left" valign="top" style="padding:3px 9px"><strong><?php echo $this->escapeHtml($_item->getName()) ?></strong></td>
58
+ <?php else: ?>
59
+ <td align="left" valign="top" style="padding:3px 19px"><?php echo $this->getValueHtml($_item)?></td>
60
+ <?php endif; ?>
61
+ <td align="left" valign="top" style="padding:3px 9px"><?php echo $this->escapeHtml($_item->getSku()) ?></td>
62
+ <td align="center" valign="top" style="padding:3px 9px">
63
+ <?php if ($this->canShowPriceInfo($_item)): ?>
64
+ <?php echo $_item->getQty()*1 ?>
65
+ <?php else: ?>
66
+ &nbsp;
67
+ <?php endif; ?>
68
+ </td>
69
+ <td align="right" valign="top" style="padding:3px 9px">
70
+ <?php if ($this->canShowPriceInfo($_item)): ?>
71
+ <?php if ($this->helper('tax')->displaySalesPriceExclTax($_order->getStore()) || $this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
72
+ <?php if ($this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
73
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax'); ?>:</span>
74
+ <?php endif; ?>
75
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'email', $_order->getStore())): ?>
76
+ <?php echo $_order->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
77
+ <?php else: ?>
78
+ <?php echo $_order->formatPrice($_item->getRowTotal()) ?>
79
+ <?php endif; ?>
80
+
81
+
82
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
83
+ <br />
84
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'email', $_order->getStore())): ?>
85
+ <small>
86
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
87
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount'],true,true); ?></span><br />
88
+ <?php endforeach; ?>
89
+ </small>
90
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
91
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
92
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount'],true,true); ?></small></span><br />
93
+ <?php endforeach; ?>
94
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'email', $_order->getStore())): ?>
95
+ <small>
96
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
97
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount'],true,true); ?></span><br />
98
+ <?php endforeach; ?>
99
+ </small>
100
+ <?php endif; ?>
101
+
102
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
103
+ <br />
104
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $_order->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
105
+ <?php endif; ?>
106
+ <?php endif; ?>
107
+ <?php endif; ?>
108
+
109
+
110
+ <?php if ($this->helper('tax')->displaySalesPriceInclTax($_order->getStore()) || $this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
111
+ <?php if ($this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
112
+ <br /><span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax'); ?>:</span>
113
+ <?php endif; ?>
114
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
115
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'email', $_order->getStore())): ?>
116
+ <?php echo $_order->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
117
+ <?php else: ?>
118
+ <?php echo $_order->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
119
+ <?php endif; ?>
120
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
121
+ <br />
122
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'email', $_order->getStore())): ?>
123
+ <small>
124
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
125
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
126
+ <?php endforeach; ?>
127
+ </small>
128
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
129
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
130
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
131
+ <?php endforeach; ?>
132
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'email', $_order->getStore())): ?>
133
+ <small>
134
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
135
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
136
+ <?php endforeach; ?>
137
+ </small>
138
+ <?php endif; ?>
139
+
140
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
141
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $_order->formatPrice($_inc + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
142
+ <?php endif; ?>
143
+ <?php endif; ?>
144
+ <?php endif; ?>
145
+ <?php else: ?>
146
+ &nbsp;
147
+ <?php endif; ?>
148
+ </td>
149
+ </tr>
150
+ <?php endforeach; ?>
151
+
152
+ <?php if ($_showlastRow): ?>
153
+ <tr>
154
+ <td align="left" valign="top" style="padding:3px 9px">
155
+ <?php if ($this->getItemOptions()): ?>
156
+ <dl style="margin:0; padding:0;">
157
+ <?php foreach ($this->getItemOptions() as $option): ?>
158
+ <dt><strong><em><?php echo $option['label'] ?></em></strong></dt>
159
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
160
+ <?php endforeach; ?>
161
+ </dl>
162
+ <?php endif; ?>
163
+ <?php echo $this->escapeHtml($_item->getDescription()) ?>
164
+ </td>
165
+ <td>&nbsp;</td>
166
+ <td>&nbsp;</td>
167
+ <td>&nbsp;</td>
168
+ </tr>
169
+ <?php endif; ?>
app/design/frontend/base/default/template/bundle/email/order/items/order/default.phtml ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $_item = $this->getItem() ?>
28
+ <?php $_order=$this->getOrder() ?>
29
+
30
+ <?php $parentItem = $this->getItem() ?>
31
+ <?php $items = array_merge(array($parentItem), $parentItem->getChildrenItems()); ?>
32
+
33
+ <?php if($this->getItemOptions() || $_item->getDescription() || $this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $_item) && $_item->getGiftMessageId()): ?>
34
+ <?php $_showlastRow = true ?>
35
+ <?php else: ?>
36
+ <?php $_showlastRow = false ?>
37
+ <?php endif; ?>
38
+
39
+ <?php $_prevOptionId = '' ?>
40
+
41
+ <?php foreach ($items as $_item): ?>
42
+
43
+ <?php if ($_item->getParentItem()): ?>
44
+ <?php $attributes = $this->getSelectionAttributes($_item) ?>
45
+ <?php if ($_prevOptionId != $attributes['option_id']): ?>
46
+ <tr>
47
+ <td align="left" valign="top" style="padding:3px 9px"><strong><em><?php echo $attributes['option_label'] ?></em></strong></td>
48
+ <td>&nbsp;</td>
49
+ <td>&nbsp;</td>
50
+ <td>&nbsp;</td>
51
+ </tr>
52
+ <?php $_prevOptionId = $attributes['option_id'] ?>
53
+ <?php endif; ?>
54
+ <?php endif; ?>
55
+ <tr id="order-item-row-<?php echo $_item->getId() ?>">
56
+ <?php if (!$_item->getParentItem()): ?>
57
+ <td align="left" valign="top" style="padding:3px 9px"><strong><?php echo $this->escapeHtml($_item->getName()) ?></strong></td>
58
+ <?php else: ?>
59
+ <td align="left" valign="top" style="padding:3px 19px"><?php echo $this->getValueHtml($_item)?></td>
60
+ <?php endif; ?>
61
+ <td align="left" valign="top" style="padding:3px 9px"><?php echo $this->escapeHtml($_item->getSku()) ?></td>
62
+ <td align="center" valign="top" style="padding:3px 9px">
63
+ <?php if (!$_item->getParentItem()): ?>
64
+ <?php echo $_item->getQtyOrdered()*1 ?>
65
+ <?php else: ?>
66
+ &nbsp;
67
+ <?php endif; ?>
68
+ </td>
69
+ <td align="right" valign="top" style="padding:3px 9px">
70
+ <?php if (!$_item->getParentItem()): ?>
71
+ <?php if ($this->helper('tax')->displaySalesPriceExclTax($_order->getStore()) || $this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
72
+ <?php if ($this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
73
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax'); ?>:</span>
74
+ <?php endif; ?>
75
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'email', $_order->getStore())): ?>
76
+ <?php echo $_order->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
77
+ <?php else: ?>
78
+ <?php echo $_order->formatPrice($_item->getRowTotal()) ?>
79
+ <?php endif; ?>
80
+
81
+
82
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
83
+ <br />
84
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'email', $_order->getStore())): ?>
85
+ <small>
86
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
87
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount'],true,true); ?></span><br />
88
+ <?php endforeach; ?>
89
+ </small>
90
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
91
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
92
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount'],true,true); ?></small></span><br />
93
+ <?php endforeach; ?>
94
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'email', $_order->getStore())): ?>
95
+ <small>
96
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
97
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount'],true,true); ?></span><br />
98
+ <?php endforeach; ?>
99
+ </small>
100
+ <?php endif; ?>
101
+
102
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
103
+ <br />
104
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $_order->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
105
+ <?php endif; ?>
106
+ <?php endif; ?>
107
+ <?php endif; ?>
108
+
109
+
110
+ <?php if ($this->helper('tax')->displaySalesPriceInclTax($_order->getStore()) || $this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
111
+ <?php if ($this->helper('tax')->displaySalesBothPrices($_order->getStore())): ?>
112
+ <br /><span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax'); ?>:</span>
113
+ <?php endif; ?>
114
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
115
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'email', $_order->getStore())): ?>
116
+ <?php echo $_order->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
117
+ <?php else: ?>
118
+ <?php echo $_order->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
119
+ <?php endif; ?>
120
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
121
+ <br />
122
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'email', $_order->getStore())): ?>
123
+ <small>
124
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
125
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
126
+ <?php endforeach; ?>
127
+ </small>
128
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
129
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
130
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
131
+ <?php endforeach; ?>
132
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'email', $_order->getStore())): ?>
133
+ <small>
134
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
135
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $_order->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
136
+ <?php endforeach; ?>
137
+ </small>
138
+ <?php endif; ?>
139
+
140
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'email', $_order->getStore())): ?>
141
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $_order->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
142
+ <?php endif; ?>
143
+ <?php endif; ?>
144
+ <?php endif; ?>
145
+ <?php else: ?>
146
+ &nbsp;
147
+ <?php endif; ?>
148
+ </td>
149
+ </tr>
150
+ <?php endforeach; ?>
151
+
152
+ <?php if ($_showlastRow): ?>
153
+ <tr>
154
+ <td align="left" valign="top" style="padding:3px 9px">
155
+ <?php if ($this->getItemOptions()): ?>
156
+ <dl style="margin:0; padding:0;">
157
+ <?php foreach ($this->getItemOptions() as $option): ?>
158
+ <dt><strong><em><?php echo $option['label'] ?></em></strong></dt>
159
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
160
+ <?php endforeach; ?>
161
+ </dl>
162
+ <?php endif; ?>
163
+ <?php if ($_item->getGiftMessageId() && $_giftMessage = $this->helper('giftmessage/message')->getGiftMessage($_item->getGiftMessageId())): ?>
164
+ <br /><strong><?php echo $this->__('Gift Message') ?></strong>
165
+ <br /><?php echo $this->__('From:'); ?> <?php echo $this->escapeHtml($_giftMessage->getSender()) ?>
166
+ <br /><?php echo $this->__('To:'); ?> <?php echo $this->escapeHtml($_giftMessage->getRecipient()) ?>
167
+ <br /><?php echo $this->__('Message:'); ?><br /> <?php echo $this->escapeHtml($_giftMessage->getMessage()) ?>
168
+ <?php endif; ?>
169
+ </td>
170
+ <td>&nbsp;</td>
171
+ <td>&nbsp;</td>
172
+ <td>&nbsp;</td>
173
+ </tr>
174
+ <?php endif; ?>
app/design/frontend/base/default/template/bundle/email/order/items/shipment/default.phtml ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $parentItem = $this->getItem() ?>
28
+
29
+ <?php $items = array_merge(array($parentItem->getOrderItem()), $parentItem->getOrderItem()->getChildrenItems()) ?>
30
+ <?php $shipItems = $this->getChilds($parentItem) ?>
31
+
32
+ <?php $_prevOptionId = '' ?>
33
+
34
+ <?php foreach ($items as $_item): ?>
35
+
36
+ <?php if($this->getItemOptions() || $parentItem->getDescription() || $this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
37
+ <?php $_showlastRow = true ?>
38
+ <?php else: ?>
39
+ <?php $_showlastRow = false ?>
40
+ <?php endif; ?>
41
+
42
+ <?php if ($_item->getParentItem()): ?>
43
+ <?php $attributes = $this->getSelectionAttributes($_item) ?>
44
+ <?php if ($_prevOptionId != $attributes['option_id']): ?>
45
+ <tr>
46
+ <td align="left" valign="top" style="padding:3px 9px"><strong><em><?php echo $attributes['option_label'] ?></em></strong></td>
47
+ <td>&nbsp;</td>
48
+ <td>&nbsp;</td>
49
+ </tr>
50
+ <?php $_prevOptionId = $attributes['option_id'] ?>
51
+ <?php endif; ?>
52
+ <?php endif; ?>
53
+ <tr id="order-item-row-<?php echo $_item->getId() ?>">
54
+ <?php if (!$_item->getParentItem()): ?>
55
+ <td align="left" valign="top" style="padding:3px 9px"><strong><?php echo $this->escapeHtml($_item->getName()) ?></strong></td>
56
+ <?php else: ?>
57
+ <td align="left" valign="top" style="padding:3px 19px"><?php echo $this->getValueHtml($_item) ?></td>
58
+ <?php endif; ?>
59
+ <td align="left" valign="top" style="padding:3px 9px"><?php echo $this->escapeHtml($_item->getSku()) ?></td>
60
+ <td align="center" valign="top" style="padding:3px 9px">
61
+ <?php if (($this->isShipmentSeparately() && $_item->getParentItem()) || (!$this->isShipmentSeparately() && !$_item->getParentItem())): ?>
62
+ <?php if (isset($shipItems[$_item->getId()])): ?>
63
+ <?php echo $shipItems[$_item->getId()]->getQty()*1 ?>
64
+ <?php elseif ($_item->getIsVirtual()): ?>
65
+ <?php echo $this->__('N/A') ?>
66
+ <?php else: ?>
67
+ 0
68
+ <?php endif; ?>
69
+ <?php else: ?>
70
+ &nbsp;
71
+ <?php endif; ?>
72
+ </td>
73
+ </tr>
74
+ <?php endforeach; ?>
75
+
76
+ <?php if ($_showlastRow): ?>
77
+ <tr>
78
+ <td align="left" valign="top" style="padding:3px 9px">
79
+ <?php if ($this->getItemOptions()): ?>
80
+ <dl style="margin:0; padding:0;">
81
+ <?php foreach ($this->getItemOptions() as $option): ?>
82
+ <dt><strong><em><?php echo $option['label'] ?></em></strong>
83
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
84
+ <?php endforeach; ?>
85
+ </dl>
86
+ <?php endif; ?>
87
+ <?php echo $this->escapeHtml($_item->getDescription()) ?>
88
+ </td>
89
+ <td>&nbsp;</td>
90
+ <td>&nbsp;</td>
91
+ </tr>
92
+ <?php endif; ?>
app/design/frontend/base/default/template/bundle/rss/catalog/product/price.phtml ADDED
@@ -0,0 +1,313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * Template for displaying bundle product price in RSS feeds
31
+ *
32
+ * @see Mage_Bundle_Block_Catalog_Product_Price
33
+ */
34
+ ?>
35
+
36
+ <?php $_product = $this->getProduct() ?>
37
+ <?php list($_minimalPrice, $_maximalPrice) = $_product->getPriceModel()->getPrices($_product) ?>
38
+ <?php $_id = $_product->getId() ?>
39
+
40
+ <?php
41
+ /**
42
+ * @var $_coreHelper Mage_Core_Helper_Data
43
+ * @var $_weeeHelper Mage_Weee_Helper_Data
44
+ * @var $_taxHelper Mage_Tax_Helper_Data
45
+ */
46
+ $_coreHelper = $this->helper('core');
47
+ $_weeeHelper = $this->helper('weee');
48
+ $_taxHelper = $this->helper('tax');
49
+ $_weeeTaxAmount = 0; ?>
50
+
51
+ <?php $_minimalPriceTax = Mage::helper('tax')->getPrice($_product, $_minimalPrice); ?>
52
+ <?php $_minimalPriceInclTax = Mage::helper('tax')->getPrice($_product, $_minimalPrice, true); ?>
53
+
54
+ <?php
55
+ if ($_product->getPriceType() == 1) {
56
+ $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product);
57
+ $_weeeTaxAmountInclTaxes = $_weeeTaxAmount;
58
+
59
+ if ($_weeeHelper->isTaxable()) {
60
+ $_attributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true);
61
+ $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_attributes);
62
+ }
63
+
64
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, array(0, 1, 4))) {
65
+ $_minimalPriceTax += $_weeeTaxAmount;
66
+ $_minimalPriceInclTax += $_weeeTaxAmountInclTaxes;
67
+ }
68
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)) {
69
+ $_minimalPriceInclTax += $_weeeTaxAmountInclTaxes;
70
+ }
71
+
72
+ if (Mage::helper('weee')->typeOfDisplay($_product, array(1, 2, 4))) {
73
+ $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true);
74
+ }
75
+ }
76
+ ?>
77
+
78
+ <div class="price-box">
79
+ <?php if ($_product->getPriceView()): ?>
80
+ <p class="minimal-price">
81
+ <span class="price-label"><?php echo $this->__('As low as') ?>:</span>
82
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
83
+ <span class="price-excluding-tax">
84
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
85
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
86
+ </span>
87
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
88
+ <span class="weee">(<small>
89
+ <?php $_weeeSeparator = '';
90
+ foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
91
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
92
+ <?php $amount = $_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(); ?>
93
+ <?php else: ?>
94
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
95
+ <?php endif; ?>
96
+
97
+ <?php echo $_weeeSeparator; ?>
98
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
99
+ <?php $_weeeSeparator = ' + '; ?>
100
+ <?php endforeach; ?>
101
+ </small>)</span>
102
+ <?php endif; ?>
103
+ <span class="price-including-tax">
104
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
105
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
106
+ </span>
107
+ <?php else: ?>
108
+ <?php if ($_taxHelper->displayPriceIncludingTax()): ?>
109
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
110
+ <?php else: ?>
111
+ <?php echo $_coreHelper->currency($_minimalPriceTax) ?>
112
+ <?php endif; ?>
113
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
114
+ <span class="weee">(<small>
115
+ <?php $_weeeSeparator = '';
116
+ foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
117
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
118
+ <?php $amount = $_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(); ?>
119
+ <?php else: ?>
120
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
121
+ <?php endif; ?>
122
+
123
+ <?php echo $_weeeSeparator; ?>
124
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
125
+ <?php $_weeeSeparator = ' + '; ?>
126
+ <?php endforeach; ?>
127
+ </small>)</span>
128
+ <?php endif; ?>
129
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
130
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
131
+ <?php endif; ?>
132
+ <?php endif; ?>
133
+ </p>
134
+ <?php else: ?>
135
+ <?php if ($_minimalPrice <> $_maximalPrice): ?>
136
+ <p class="price-from">
137
+ <span class="price-label"><?php echo $this->__('From') ?>:</span>
138
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
139
+ <span class="price-excluding-tax">
140
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
141
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
142
+ </span>
143
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
144
+ <span class="weee">(<small>
145
+ <?php $_weeeSeparator = '';
146
+ foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
147
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
148
+ <?php $amount = $_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(); ?>
149
+ <?php else: ?>
150
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
151
+ <?php endif; ?>
152
+
153
+ <?php echo $_weeeSeparator; ?>
154
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
155
+ <?php $_weeeSeparator = ' + '; ?>
156
+ <?php endforeach; ?>
157
+ </small>)</span>
158
+ <?php endif; ?>
159
+ <span class="price-including-tax">
160
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
161
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
162
+ </span>
163
+ <?php else: ?>
164
+ <?php if ($_taxHelper->displayPriceIncludingTax()) : ?>
165
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
166
+ <?php else: ?>
167
+ <?php echo $_coreHelper->currency($_minimalPriceTax) ?>
168
+ <?php endif; ?>
169
+
170
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
171
+ <span class="weee">(<small>
172
+ <?php $_weeeSeparator = '';
173
+ foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
174
+ <?php if ($_taxHelper->displayPriceIncludingTax() || Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
175
+ <?php $amount = $_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(); ?>
176
+ <?php else: ?>
177
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
178
+ <?php endif; ?>
179
+
180
+ <?php echo $_weeeSeparator; ?>
181
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
182
+ <?php $_weeeSeparator = ' + '; ?>
183
+ <?php endforeach; ?>
184
+ </small>)</span>
185
+ <?php endif; ?>
186
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
187
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
188
+ <?php endif; ?>
189
+ <?php endif; ?>
190
+ </p>
191
+ <?php $_maximalPriceTax = Mage::helper('tax')->getPrice($_product, $_maximalPrice); ?>
192
+ <?php $_maximalPriceInclTax = Mage::helper('tax')->getPrice($_product, $_maximalPrice, true); ?>
193
+ <?php
194
+ if ($_product->getPriceType() == 1) {
195
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, array(0, 1, 4))) {
196
+ $_maximalPriceTax += $_weeeTaxAmount;
197
+ $_maximalPriceInclTax += $_weeeTaxAmountInclTaxes;
198
+ }
199
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)) {
200
+ $_maximalPriceInclTax += $_weeeTaxAmountInclTaxes;
201
+ }
202
+ }
203
+ ?>
204
+ <p class="price-to">
205
+ <span class="price-label"><?php echo $this->__('To') ?>:</span>
206
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
207
+ <span class="price-excluding-tax">
208
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
209
+ <?php echo Mage::helper('core')->currency($_maximalPriceTax) ?>
210
+ </span>
211
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
212
+ <span class="weee">(<small>
213
+ <?php $_weeeSeparator = '';
214
+ foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
215
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
216
+ <?php $amount = $_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(); ?>
217
+ <?php else: ?>
218
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
219
+ <?php endif; ?>
220
+
221
+ <?php echo $_weeeSeparator; ?>
222
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
223
+ <?php $_weeeSeparator = ' + '; ?>
224
+ <?php endforeach; ?>
225
+ </small>)</span>
226
+ <?php endif; ?>
227
+ <span class="price-including-tax">
228
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax') ?></span>
229
+ <?php echo Mage::helper('core')->currency($_maximalPriceInclTax) ?>
230
+ </span>
231
+ <?php else: ?>
232
+ <?php if ($_taxHelper->displayPriceIncludingTax()) : ?>
233
+ <?php echo $_coreHelper->currency($_maximalPriceInclTax) ?>
234
+ <?php else: ?>
235
+ <?php echo $_coreHelper->currency($_maximalPriceTax) ?>
236
+ <?php endif; ?>
237
+
238
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
239
+ <span class="weee">(<small>
240
+ <?php $_weeeSeparator = '';
241
+ foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
242
+ <?php if ($_taxHelper->displayPriceIncludingTax() || Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
243
+ <?php $amount = $_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(); ?>
244
+ <?php else: ?>
245
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
246
+ <?php endif; ?>
247
+
248
+ <?php echo $_weeeSeparator; ?>
249
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
250
+ <?php $_weeeSeparator = ' + '; ?>
251
+ <?php endforeach; ?>
252
+ </small>)</span>
253
+ <?php endif; ?>
254
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
255
+ <?php echo Mage::helper('core')->currency($_maximalPriceInclTax) ?>
256
+ <?php endif; ?>
257
+ <?php endif; ?>
258
+ </p>
259
+ <?php else: ?>
260
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
261
+ <span class="price-excluding-tax">
262
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
263
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
264
+ </span>
265
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
266
+ <span class="weee">(<small>
267
+ <?php $_weeeSeparator = '';
268
+ foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
269
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
270
+ <?php $amount = $_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(); ?>
271
+ <?php else: ?>
272
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
273
+ <?php endif; ?>
274
+
275
+ <?php echo $_weeeSeparator; ?>
276
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
277
+ <?php $_weeeSeparator = ' + '; ?>
278
+ <?php endforeach; ?>
279
+ </small>)</span>
280
+ <?php endif; ?>
281
+ <span class="price-including-tax">
282
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
283
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
284
+ </span>
285
+ <?php else: ?>
286
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
287
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
288
+ <span class="weee">(<small>
289
+ <?php $_weeeSeparator = '';
290
+ foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
291
+ <?php if ($_taxHelper->displayPriceIncludingTax()): ?>
292
+ <?php $amount = $_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(); ?>
293
+ <?php else: ?>
294
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
295
+ <?php endif; ?>
296
+
297
+ <?php echo $_weeeSeparator; ?>
298
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
299
+ <?php $_weeeSeparator = ' + '; ?>
300
+ <?php endforeach; ?>
301
+ </small>)</span>
302
+ <?php endif; ?>
303
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
304
+ <?php if ($_taxHelper->displayPriceIncludingTax()) : ?>
305
+ <?php echo $_coreHelper->currency($_minimalPriceInclTax) ?>
306
+ <?php else: ?>
307
+ <?php echo $_coreHelper->currency($_minimalPriceTax + $_weeeTaxAmount) ?>
308
+ <?php endif; ?>
309
+ <?php endif; ?>
310
+ <?php endif; ?>
311
+ <?php endif; ?>
312
+ <?php endif; ?>
313
+ </div>
app/design/frontend/base/default/template/bundle/sales/order/creditmemo/items/renderer.phtml ADDED
@@ -0,0 +1,412 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $parentItem = $this->getItem() ?>
28
+
29
+ <?php $items = $this->getChilds($parentItem) ?>
30
+ <?php $_order = $this->getItem()->getOrderItem()->getOrder() ?>
31
+ <?php $_count = count($items) ?>
32
+ <?php $_index = 0 ?>
33
+
34
+ <?php $_prevOptionId = '' ?>
35
+
36
+ <?php foreach ($items as $_item): ?>
37
+
38
+ <?php if ($this->getItemOptions() || $parentItem->getDescription() || $this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
39
+ <?php $_showlastRow = true ?>
40
+ <?php else: ?>
41
+ <?php $_showlastRow = false ?>
42
+ <?php endif; ?>
43
+
44
+ <?php if ($_item->getOrderItem()->getParentItem()): ?>
45
+ <?php $attributes = $this->getSelectionAttributes($_item) ?>
46
+ <?php if ($_prevOptionId != $attributes['option_id']): ?>
47
+ <tr>
48
+ <td>
49
+ <div class="option-label"><?php echo $attributes['option_label'] ?></div>
50
+ </td>
51
+ <td>&nbsp;</td>
52
+ <td>&nbsp;</td>
53
+ <td>&nbsp;</td>
54
+ <td>&nbsp;</td>
55
+ <td>&nbsp;</td>
56
+ <td>&nbsp;</td>
57
+ </tr>
58
+ <?php $_prevOptionId = $attributes['option_id'] ?>
59
+ <?php endif; ?>
60
+ <?php endif; ?>
61
+ <tr<?php echo (++$_index == $_count && !$_showlastRow) ? ' class="border"' : '' ?>
62
+ id="order-item-row-<?php echo $_item->getId() ?>">
63
+ <?php if (!$_item->getOrderItem()->getParentItem()): ?>
64
+ <td><h4 class="product-name"><?php echo $this->escapeHtml($_item->getName()) ?></h4>
65
+ </td>
66
+ <?php else: ?>
67
+ <td>
68
+ <div class="option-value"><?php echo $this->getValueHtml($_item) ?></div>
69
+ </td>
70
+ <?php endif; ?>
71
+ <td><?php echo $this->escapeHtml($_item->getSku()) ?></td>
72
+ <td class="a-right">
73
+ <?php if ($this->canShowPriceInfo($_item)): ?>
74
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
75
+ <span class="price-excl-tax">
76
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
77
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
78
+ <span class="cart-price">
79
+ <?php endif; ?>
80
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
81
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
82
+ </span>
83
+ <?php endif; ?>
84
+ <?php endif; ?>
85
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
86
+ <span class="cart-tax-total"
87
+ onclick="taxToggle('eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
88
+ <?php else: ?>
89
+ <span class="cart-price">
90
+ <?php endif; ?>
91
+
92
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
93
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice() + $this->getItem()->getWeeeTaxAppliedAmount() + $this->getItem()->getWeeeTaxDisposition()); ?>
94
+ <?php else: ?>
95
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()) ?>
96
+ <?php endif; ?>
97
+
98
+ </span>
99
+
100
+
101
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
102
+
103
+ <span class="cart-tax-info" id="eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>"
104
+ style="display:none;">
105
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
106
+ <small>
107
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
108
+ <span class="nobr"><?php echo $tax['title']; ?>
109
+ : <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></span>
110
+ <?php endforeach; ?>
111
+ </small>
112
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
113
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
114
+ <span class="nobr"><small><?php echo $tax['title']; ?>
115
+ : <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></small></span>
116
+ <?php endforeach; ?>
117
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
118
+ <small>
119
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
120
+ <span class="nobr"><?php echo $tax['title']; ?>
121
+ : <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></span>
122
+ <?php endforeach; ?>
123
+ </small>
124
+ <?php endif; ?>
125
+ </span>
126
+
127
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
128
+ <span class="cart-tax-total"
129
+ onclick="taxToggle('eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
130
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>
131
+ :<br/> <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice() + $this->getItem()->getWeeeTaxAppliedAmount() + $this->getItem()->getWeeeTaxDisposition()); ?></span>
132
+ </span>
133
+ <?php endif; ?>
134
+ <?php endif; ?>
135
+ </span>
136
+ <br/>
137
+ <?php endif; ?>
138
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceInclTax()): ?>
139
+ <span class="price-incl-tax">
140
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
141
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
142
+ <span class="cart-price">
143
+ <?php endif; ?>
144
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
145
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
146
+ </span>
147
+ <?php endif; ?>
148
+ <?php endif; ?>
149
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($this->getItem()); ?>
150
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
151
+ <span class="cart-tax-total"
152
+ onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
153
+ <?php else: ?>
154
+ <span class="cart-price">
155
+ <?php endif; ?>
156
+
157
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
158
+ <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
159
+ <?php else: ?>
160
+ <?php echo $this->getOrder()->formatPrice($_incl - $this->getItem()->getWeeeTaxDisposition()) ?>
161
+ <?php endif; ?>
162
+
163
+ </span>
164
+
165
+
166
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
167
+
168
+ <span class="cart-tax-info" id="unit-item-tax-details<?php echo $this->getItem()->getId(); ?>"
169
+ style="display:none;">
170
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
171
+ <small>
172
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
173
+ <span class="nobr"><?php echo $tax['title']; ?>
174
+ : <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></span>
175
+ <?php endforeach; ?>
176
+ </small>
177
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
178
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
179
+ <span class="nobr"><small><?php echo $tax['title']; ?>
180
+ : <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></small></span>
181
+ <?php endforeach; ?>
182
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
183
+ <small>
184
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
185
+ <span class="nobr"><?php echo $tax['title']; ?>
186
+ : <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></span>
187
+ <?php endforeach; ?>
188
+ </small>
189
+ <?php endif; ?>
190
+ </span>
191
+
192
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
193
+ <span class="cart-tax-total"
194
+ onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
195
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total Incl. Tax'); ?>
196
+ :<br/> <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
197
+ </span>
198
+ <?php endif; ?>
199
+ <?php endif; ?>
200
+ </span>
201
+ <?php endif; ?>
202
+ <?php else: ?>
203
+ &nbsp;
204
+ <?php
205
+ endif;
206
+ ?>
207
+ </td>
208
+ <td class="a-center">
209
+ <?php if ($this->canShowPriceInfo($_item)): ?>
210
+ <?php echo $_item->getQty() * 1 ?>
211
+ <?php else: ?>
212
+ &nbsp;
213
+ <?php endif; ?>
214
+ </td>
215
+ <td class="a-right">
216
+ <?php if ($this->canShowPriceInfo($_item)): ?>
217
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
218
+ <span class="price-excl-tax">
219
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
220
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
221
+ <span class="cart-price">
222
+ <?php endif; ?>
223
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
224
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
225
+ </span>
226
+ <?php endif; ?>
227
+ <?php endif; ?>
228
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
229
+ <span class="cart-tax-total"
230
+ onclick="taxToggle('esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
231
+ <?php else: ?>
232
+ <span class="cart-price">
233
+ <?php endif; ?>
234
+
235
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
236
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal() + $this->getItem()->getWeeeTaxAppliedRowAmount() + $this->getItem()->getWeeeTaxRowDisposition()); ?>
237
+ <?php else: ?>
238
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()) ?>
239
+ <?php endif; ?>
240
+
241
+ </span>
242
+
243
+
244
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
245
+
246
+ <span class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>"
247
+ style="display:none;">
248
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
249
+ <small>
250
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
251
+ <span class="nobr"><?php echo $tax['title']; ?>
252
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></span>
253
+ <?php endforeach; ?>
254
+ </small>
255
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
256
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
257
+ <span class="nobr"><small><?php echo $tax['title']; ?>
258
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></small></span>
259
+ <?php endforeach; ?>
260
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
261
+ <small>
262
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
263
+ <span class="nobr"><?php echo $tax['title']; ?>
264
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></span>
265
+ <?php endforeach; ?>
266
+ </small>
267
+ <?php endif; ?>
268
+ </span>
269
+
270
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
271
+ <span class="cart-tax-total"
272
+ onclick="taxToggle('esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
273
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>
274
+ :<br/> <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal() + $this->getItem()->getWeeeTaxAppliedRowAmount() + $this->getItem()->getWeeeTaxRowDisposition()); ?></span>
275
+ </span>
276
+ <?php endif; ?>
277
+ <?php endif; ?>
278
+ </span>
279
+ <br/>
280
+ <?php endif; ?>
281
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
282
+ <span class="price-incl-tax">
283
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
284
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
285
+ <span class="cart-price">
286
+ <?php endif; ?>
287
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
288
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
289
+ </span>
290
+ <?php endif; ?>
291
+ <?php endif; ?>
292
+
293
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($this->getItem()); ?>
294
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
295
+ <span class="cart-tax-total"
296
+ onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
297
+ <?php else: ?>
298
+ <span class="cart-price">
299
+ <?php endif; ?>
300
+
301
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
302
+ <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
303
+ <?php else: ?>
304
+ <?php echo $this->getOrder()->formatPrice($_incl - $this->getItem()->getWeeeTaxRowDisposition()) ?>
305
+ <?php endif; ?>
306
+
307
+ </span>
308
+
309
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
310
+ <span class="cart-tax-info"
311
+ id="subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>"
312
+ style="display:none;">
313
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
314
+ <small>
315
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
316
+ <span class="nobr"><?php echo $tax['title']; ?>
317
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></span>
318
+ <?php endforeach; ?>
319
+ </small>
320
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
321
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
322
+ <span class="nobr"><small><?php echo $tax['title']; ?>
323
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></small></span>
324
+ <?php endforeach; ?>
325
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
326
+ <small>
327
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
328
+ <span class="nobr"><?php echo $tax['title']; ?>
329
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></span>
330
+ <?php endforeach; ?>
331
+ </small>
332
+ <?php endif; ?>
333
+ </span>
334
+
335
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
336
+ <span class="cart-tax-total"
337
+ onclick="taxToggle('subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
338
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>
339
+ :<br/> <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
340
+ </span>
341
+ <?php endif; ?>
342
+ <?php endif; ?>
343
+ </span>
344
+ <?php else: ?>
345
+ &nbsp;
346
+ <?php
347
+ endif;
348
+ ?>
349
+ <?php else: ?>
350
+ &nbsp;
351
+ <?php
352
+ endif;
353
+ ?>
354
+ </td>
355
+ <td class="a-right">
356
+ <?php if ($this->canShowPriceInfo($_item)): ?>
357
+ <?php echo $this->getOrder()->formatPrice(-$_item->getDiscountAmount()) ?>
358
+ <?php else: ?>
359
+ &nbsp;
360
+ <?php endif; ?>
361
+ </td>
362
+ <td class="last a-right">
363
+ <?php if ($this->canShowPriceInfo($_item)): ?>
364
+ <?php echo $this->getOrder()->formatPrice($_item->getRowTotal() - $_item->getDiscountAmount() + $_item->getTaxAmount() + $_item->getWeeeTaxAppliedRowAmount()) ?>
365
+ <?php else: ?>
366
+ &nbsp;
367
+ <?php endif; ?>
368
+ </td>
369
+ </tr>
370
+ <?php endforeach; ?>
371
+
372
+ <?php if ($_showlastRow): ?>
373
+ <tr class="border">
374
+ <td>
375
+ <?php if ($_options = $this->getItemOptions()): ?>
376
+ <dl class="item-options">
377
+ <?php foreach ($_options as $_option) : ?>
378
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
379
+ <?php if (!$this->getPrintStatus()): ?>
380
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
381
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
382
+ <?php echo $_formatedOptionValue['value'] ?>
383
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
384
+ <div class="truncated_full_value">
385
+ <dl class="item-options">
386
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
387
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
388
+ </dl>
389
+ </div>
390
+ <?php endif; ?>
391
+ </dd>
392
+ <?php else: ?>
393
+ <dd><?php echo $this->escapeHtml((isset($_option['print_value']) ? $_option['print_value'] : $_option['value'])) ?></dd>
394
+ <?php endif; ?>
395
+ <?php endforeach; ?>
396
+ </dl>
397
+ <?php endif; ?>
398
+ <?php echo $this->escapeHtml($_item->getDescription()) ?>
399
+ <?php if ($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
400
+ <a href="#" id="order-item-gift-message-link-<?php echo $parentItem->getId() ?>"
401
+ class="gift-message-link"
402
+ onclick="return giftMessageToogle('<?php echo $parentItem->getId() ?>')"><?php echo Mage::helper('sales')->__('Gift Message') ?></a>
403
+ <?php endif; ?>
404
+ </td>
405
+ <td>&nbsp;</td>
406
+ <td>&nbsp;</td>
407
+ <td>&nbsp;</td>
408
+ <td>&nbsp;</td>
409
+ <td>&nbsp;</td>
410
+ <td>&nbsp;</td>
411
+ </tr>
412
+ <?php endif; ?>
app/design/frontend/base/default/template/bundle/sales/order/invoice/items/renderer.phtml ADDED
@@ -0,0 +1,390 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $parentItem = $this->getItem() ?>
28
+ <?php $_order = $this->getItem()->getOrderItem()->getOrder() ?>
29
+
30
+ <?php $items = $this->getChilds($parentItem) ?>
31
+ <?php $_count = count($items) ?>
32
+ <?php $_index = 0 ?>
33
+
34
+ <?php $_prevOptionId = '' ?>
35
+
36
+ <?php foreach ($items as $_item): ?>
37
+
38
+ <?php if ($this->getItemOptions() || $parentItem->getDescription() || $this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
39
+ <?php $_showlastRow = true ?>
40
+ <?php else: ?>
41
+ <?php $_showlastRow = false ?>
42
+ <?php endif; ?>
43
+
44
+ <?php if ($_item->getOrderItem()->getParentItem()): ?>
45
+ <?php $attributes = $this->getSelectionAttributes($_item) ?>
46
+ <?php if ($_prevOptionId != $attributes['option_id']): ?>
47
+ <tr>
48
+ <td>
49
+ <div class="option-label"><?php echo $attributes['option_label'] ?></div>
50
+ </td>
51
+ <td>&nbsp;</td>
52
+ <td>&nbsp;</td>
53
+ <td>&nbsp;</td>
54
+ <td>&nbsp;</td>
55
+ </tr>
56
+ <?php $_prevOptionId = $attributes['option_id'] ?>
57
+ <?php endif; ?>
58
+ <?php endif; ?>
59
+ <tr<?php echo (++$_index == $_count && !$_showlastRow) ? ' class="border"' : '' ?>
60
+ id="order-item-row-<?php echo $_item->getId() ?>">
61
+ <?php if (!$_item->getOrderItem()->getParentItem()): ?>
62
+ <td><h4 class="product-name"><?php echo $this->escapeHtml($_item->getName()) ?></h4></td>
63
+ <?php else: ?>
64
+ <td>
65
+ <div class="option-value"><?php echo $this->getValueHtml($_item) ?></div>
66
+ </td>
67
+ <?php endif; ?>
68
+ <td><?php echo $this->escapeHtml($_item->getSku()) ?></td>
69
+ <td class="a-right">
70
+ <?php if ($this->canShowPriceInfo($_item)): ?>
71
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
72
+ <span class="price-excl-tax">
73
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
74
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
75
+ <span class="cart-price">
76
+ <?php endif; ?>
77
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
78
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
79
+ </span>
80
+ <?php endif; ?>
81
+ <?php endif; ?>
82
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
83
+ <span class="cart-tax-total"
84
+ onclick="taxToggle('eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
85
+ <?php else: ?>
86
+ <span class="cart-price">
87
+ <?php endif; ?>
88
+
89
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
90
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice() + $this->getItem()->getWeeeTaxAppliedAmount() + $this->getItem()->getWeeeTaxDisposition()); ?>
91
+ <?php else: ?>
92
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()) ?>
93
+ <?php endif; ?>
94
+
95
+ </span>
96
+
97
+
98
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
99
+
100
+ <span class="cart-tax-info" id="eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>"
101
+ style="display:none;">
102
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
103
+ <small>
104
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
105
+ <span class="nobr"><?php echo $tax['title']; ?>
106
+ : <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></span>
107
+ <?php endforeach; ?>
108
+ </small>
109
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
110
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
111
+ <span class="nobr"><small><?php echo $tax['title']; ?>
112
+ : <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></small></span>
113
+ <?php endforeach; ?>
114
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
115
+ <small>
116
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
117
+ <span class="nobr"><?php echo $tax['title']; ?>
118
+ : <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></span>
119
+ <?php endforeach; ?>
120
+ </small>
121
+ <?php endif; ?>
122
+ </span>
123
+
124
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
125
+ <span class="cart-tax-total"
126
+ onclick="taxToggle('eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
127
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>
128
+ :<br/> <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice() + $this->getItem()->getWeeeTaxAppliedAmount() + $this->getItem()->getWeeeTaxDisposition()); ?></span>
129
+ </span>
130
+ <?php endif; ?>
131
+ <?php endif; ?>
132
+ </span>
133
+ <br/>
134
+ <?php endif; ?>
135
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceInclTax()): ?>
136
+ <span class="price-incl-tax">
137
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
138
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
139
+ <span class="cart-price">
140
+ <?php endif; ?>
141
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
142
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
143
+ </span>
144
+ <?php endif; ?>
145
+ <?php endif; ?>
146
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($this->getItem()); ?>
147
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
148
+ <span class="cart-tax-total"
149
+ onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
150
+ <?php else: ?>
151
+ <span class="cart-price">
152
+ <?php endif; ?>
153
+
154
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
155
+ <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
156
+ <?php else: ?>
157
+ <?php echo $this->getOrder()->formatPrice($_incl - $this->getItem()->getWeeeTaxDisposition()) ?>
158
+ <?php endif; ?>
159
+
160
+ </span>
161
+
162
+
163
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
164
+
165
+ <span class="cart-tax-info" id="unit-item-tax-details<?php echo $this->getItem()->getId(); ?>"
166
+ style="display:none;">
167
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
168
+ <small>
169
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
170
+ <span class="nobr"><?php echo $tax['title']; ?>
171
+ : <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></span>
172
+ <?php endforeach; ?>
173
+ </small>
174
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
175
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
176
+ <span class="nobr"><small><?php echo $tax['title']; ?>
177
+ : <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></small></span>
178
+ <?php endforeach; ?>
179
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
180
+ <small>
181
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
182
+ <span class="nobr"><?php echo $tax['title']; ?>
183
+ : <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></span>
184
+ <?php endforeach; ?>
185
+ </small>
186
+ <?php endif; ?>
187
+ </span>
188
+
189
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
190
+ <span class="cart-tax-total"
191
+ onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
192
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>
193
+ :<br/> <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
194
+ </span>
195
+ <?php endif; ?>
196
+ <?php endif; ?>
197
+ </span>
198
+ <?php endif; ?>
199
+ <?php else: ?>
200
+ &nbsp;
201
+ <?php
202
+ endif; ?>
203
+ </td>
204
+ <td class="a-center">
205
+ <?php if ($this->canShowPriceInfo($_item)): ?>
206
+ <?php echo $_item->getQty() * 1 ?>
207
+ <?php else: ?>
208
+ &nbsp;
209
+ <?php endif; ?>
210
+ </td>
211
+ <td class="a-right">
212
+ <?php if ($this->canShowPriceInfo($_item)): ?>
213
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
214
+ <span class="price-excl-tax">
215
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
216
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
217
+ <span class="cart-price">
218
+ <?php endif; ?>
219
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
220
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
221
+ </span>
222
+ <?php endif; ?>
223
+ <?php endif; ?>
224
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
225
+ <span class="cart-tax-total"
226
+ onclick="taxToggle('esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
227
+ <?php else: ?>
228
+ <span class="cart-price">
229
+ <?php endif; ?>
230
+
231
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
232
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal() + $this->getItem()->getWeeeTaxAppliedRowAmount() + $this->getItem()->getWeeeTaxRowDisposition()); ?>
233
+ <?php else: ?>
234
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()) ?>
235
+ <?php endif; ?>
236
+
237
+ </span>
238
+
239
+
240
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
241
+
242
+ <span class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>"
243
+ style="display:none;">
244
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
245
+ <small>
246
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
247
+ <span class="nobr"><?php echo $tax['title']; ?>
248
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></span>
249
+ <?php endforeach; ?>
250
+ </small>
251
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
252
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
253
+ <span class="nobr"><small><?php echo $tax['title']; ?>
254
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></small></span>
255
+ <?php endforeach; ?>
256
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
257
+ <small>
258
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
259
+ <span class="nobr"><?php echo $tax['title']; ?>
260
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></span>
261
+ <?php endforeach; ?>
262
+ </small>
263
+ <?php endif; ?>
264
+ </span>
265
+
266
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
267
+ <span class="cart-tax-total"
268
+ onclick="taxToggle('esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
269
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>
270
+ :<br/> <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal() + $this->getItem()->getWeeeTaxAppliedRowAmount() + $this->getItem()->getWeeeTaxRowDisposition()); ?></span>
271
+ </span>
272
+ <?php endif; ?>
273
+ <?php endif; ?>
274
+ </span>
275
+ <br/>
276
+ <?php endif; ?>
277
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceInclTax()): ?>
278
+ <span class="price-incl-tax">
279
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
280
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
281
+ <span class="cart-price">
282
+ <?php endif; ?>
283
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
284
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
285
+ </span>
286
+ <?php endif; ?>
287
+ <?php endif; ?>
288
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($this->getItem()); ?>
289
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
290
+ <span class="cart-tax-total"
291
+ onclick="taxToggle('subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
292
+ <?php else: ?>
293
+ <span class="cart-price">
294
+ <?php endif; ?>
295
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
296
+ <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
297
+ <?php else: ?>
298
+ <?php echo $this->getOrder()->formatPrice($_incl - $this->getItem()->getWeeeTaxRowDisposition()) ?>
299
+ <?php endif; ?>
300
+
301
+ </span>
302
+
303
+
304
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
305
+
306
+ <span class="cart-tax-info"
307
+ id="subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>"
308
+ style="display:none;">
309
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
310
+ <small>
311
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
312
+ <span class="nobr"><?php echo $tax['title']; ?>
313
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></span>
314
+ <?php endforeach; ?>
315
+ </small>
316
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
317
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
318
+ <span class="nobr"><small><?php echo $tax['title']; ?>
319
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></small></span>
320
+ <?php endforeach; ?>
321
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
322
+ <small>
323
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
324
+ <span class="nobr"><?php echo $tax['title']; ?>
325
+ : <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></span>
326
+ <?php endforeach; ?>
327
+ </small>
328
+ <?php endif; ?>
329
+ </span>
330
+
331
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
332
+ <span class="cart-tax-total"
333
+ onclick="taxToggle('subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
334
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>
335
+ :<br/> <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
336
+ </span>
337
+ <?php endif; ?>
338
+ <?php endif; ?>
339
+
340
+
341
+
342
+ </span>
343
+ <?php endif; ?>
344
+ <?php else: ?>
345
+ &nbsp;
346
+ <?php
347
+ endif; ?>
348
+ </td>
349
+ </tr>
350
+ <?php endforeach; ?>
351
+
352
+ <?php if ($_showlastRow): ?>
353
+ <tr class="border">
354
+ <td>
355
+ <?php if ($_options = $this->getItemOptions()): ?>
356
+ <dl class="item-options">
357
+ <?php foreach ($_options as $_option) : ?>
358
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
359
+ <?php if (!$this->getPrintStatus()): ?>
360
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
361
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
362
+ <?php echo $_formatedOptionValue['value'] ?>
363
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
364
+ <div class="truncated_full_value">
365
+ <dl class="item-options">
366
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
367
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
368
+ </dl>
369
+ </div>
370
+ <?php endif; ?>
371
+ </dd>
372
+ <?php else: ?>
373
+ <dd><?php echo $this->escapeHtml((isset($_option['print_value']) ? $_option['print_value'] : $_option['value'])) ?></dd>
374
+ <?php endif; ?>
375
+ <?php endforeach; ?>
376
+ </dl>
377
+ <?php endif; ?>
378
+ <?php echo $this->escapeHtml($_item->getDescription()) ?>
379
+ <?php if ($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
380
+ <a href="#" id="order-item-gift-message-link-<?php echo $parentItem->getId() ?>"
381
+ class="gift-message-link"
382
+ onclick="return giftMessageToogle('<?php echo $parentItem->getId() ?>')"><?php echo Mage::helper('sales')->__('Gift Message') ?></a>
383
+ <?php endif; ?>
384
+ </td>
385
+ <td>&nbsp;</td>
386
+ <td>&nbsp;</td>
387
+ <td>&nbsp;</td>
388
+ <td>&nbsp;</td>
389
+ </tr>
390
+ <?php endif; ?>
app/design/frontend/base/default/template/bundle/sales/order/items/renderer.phtml ADDED
@@ -0,0 +1,375 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $parentItem = $this->getItem() ?>
28
+ <?php $items = array_merge(array($parentItem), $parentItem->getChildrenItems()); ?>
29
+ <?php $_count = count ($items) ?>
30
+ <?php $_index = 0 ?>
31
+
32
+ <?php $_prevOptionId = '' ?>
33
+
34
+ <?php foreach ($items as $_item): ?>
35
+
36
+ <?php if($this->getItemOptions() || $parentItem->getDescription() || $this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
37
+ <?php $_showlastRow = true ?>
38
+ <?php else: ?>
39
+ <?php $_showlastRow = false ?>
40
+ <?php endif; ?>
41
+
42
+ <?php if ($_item->getParentItem()): ?>
43
+ <?php $attributes = $this->getSelectionAttributes($_item) ?>
44
+ <?php if ($_prevOptionId != $attributes['option_id']): ?>
45
+ <tr<?php if ($_item->getLastRow()) echo 'class="last"'; ?>>
46
+ <td><div class="option-label"><?php echo $attributes['option_label'] ?></div></td>
47
+ <td>&nbsp;</td>
48
+ <td>&nbsp;</td>
49
+ <td>&nbsp;</td>
50
+ <td>&nbsp;</td>
51
+ </tr>
52
+ <?php $_prevOptionId = $attributes['option_id'] ?>
53
+ <?php endif; ?>
54
+ <?php endif; ?>
55
+ <tr<?php echo (++$_index==$_count && !$_showlastRow)?' class="border"':'' ?> id="order-item-row-<?php echo $_item->getId() ?>">
56
+
57
+ <?php if (!$_item->getParentItem()): ?>
58
+ <td><h3 class="product-name"><?php echo $this->escapeHtml($_item->getName()) ?></h3></td>
59
+ <?php else: ?>
60
+ <td><div class="option-value"><?php echo $this->getValueHtml($_item)?></div></td>
61
+ <?php endif; ?>
62
+ <td><?php echo $this->escapeHtml(Mage::helper('core/string')->splitInjection($_item->getSku())) ?></td>
63
+ <td class="a-right">
64
+ <?php if (!$_item->getParentItem()): ?>
65
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
66
+ <span class="price-excl-tax">
67
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
68
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
69
+ <span class="cart-price">
70
+ <?php endif; ?>
71
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
72
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
73
+ </span>
74
+ <?php endif; ?>
75
+ <?php endif; ?>
76
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
77
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
78
+ <?php else: ?>
79
+ <span class="cart-price">
80
+ <?php endif; ?>
81
+
82
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
83
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()+$this->getItem()->getWeeeTaxAppliedAmount()+$this->getItem()->getWeeeTaxDisposition()); ?>
84
+ <?php else: ?>
85
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()) ?>
86
+ <?php endif; ?>
87
+
88
+ </span>
89
+
90
+
91
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
92
+
93
+ <span class="cart-tax-info" id="eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
94
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
95
+ <small>
96
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
97
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></span>
98
+ <?php endforeach; ?>
99
+ </small>
100
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
101
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
102
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></small></span>
103
+ <?php endforeach; ?>
104
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
105
+ <small>
106
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
107
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></span>
108
+ <?php endforeach; ?>
109
+ </small>
110
+ <?php endif; ?>
111
+ </span>
112
+
113
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
114
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
115
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()+$this->getItem()->getWeeeTaxAppliedAmount()+$this->getItem()->getWeeeTaxDisposition()); ?></span>
116
+ </span>
117
+ <?php endif; ?>
118
+ <?php endif; ?>
119
+ </span>
120
+ <br />
121
+ <?php endif; ?>
122
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceInclTax()): ?>
123
+ <span class="price-incl-tax">
124
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
125
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
126
+ <span class="cart-price">
127
+ <?php endif; ?>
128
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
129
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
130
+ </span>
131
+ <?php endif; ?>
132
+ <?php endif; ?>
133
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($this->getItem()); ?>
134
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
135
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
136
+ <?php else: ?>
137
+ <span class="cart-price">
138
+ <?php endif; ?>
139
+
140
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
141
+ <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
142
+ <?php else: ?>
143
+ <?php echo $this->getOrder()->formatPrice($_incl-$this->getItem()->getWeeeTaxDisposition()) ?>
144
+ <?php endif; ?>
145
+
146
+ </span>
147
+
148
+
149
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
150
+
151
+ <span class="cart-tax-info" id="unit-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
152
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
153
+ <small>
154
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
155
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></span>
156
+ <?php endforeach; ?>
157
+ </small>
158
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
159
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
160
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></small></span>
161
+ <?php endforeach; ?>
162
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
163
+ <small>
164
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
165
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></span>
166
+ <?php endforeach; ?>
167
+ </small>
168
+ <?php endif; ?>
169
+ </span>
170
+
171
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
172
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
173
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
174
+ </span>
175
+ <?php endif; ?>
176
+ <?php endif; ?>
177
+ </span>
178
+ <?php endif; ?>
179
+ <?php else: ?>
180
+ &nbsp;
181
+ <?php endif; ?>
182
+ </td>
183
+ <td class="a-right">
184
+ <?php if (($_item->getParentItem() && $this->isChildCalculated()) ||
185
+ (!$_item->getParentItem() && !$this->isChildCalculated())): ?>
186
+ <span class="nobr">
187
+ <?php if ($_item->getQtyOrdered() > 0): ?>
188
+ <?php echo Mage::helper('sales')->__('Ordered'); ?>: <strong><?php echo $_item->getQtyOrdered()*1 ?></strong><br />
189
+ <?php endif; ?>
190
+ <?php if ($_item->getQtyShipped() > 0 && !$this->isShipmentSeparately()): ?>
191
+ <?php echo Mage::helper('sales')->__('Shipped'); ?>: <strong><?php echo $_item->getQtyShipped()*1 ?></strong><br />
192
+ <?php endif; ?>
193
+ <?php if ($_item->getQtyCanceled() > 0): ?>
194
+ <?php echo Mage::helper('sales')->__('Canceled'); ?>: <strong><?php echo $_item->getQtyCanceled()*1 ?></strong><br />
195
+ <?php endif; ?>
196
+ <?php if ($_item->getQtyRefunded() > 0): ?>
197
+ <?php echo Mage::helper('sales')->__('Refunded'); ?>: <strong><?php echo $_item->getQtyRefunded()*1 ?></strong>
198
+ <?php endif; ?>
199
+ </span>
200
+ <?php elseif ($_item->getQtyShipped() > 0 && $_item->getParentItem() && $this->isShipmentSeparately()): ?>
201
+ <span class="nobr"><?php echo Mage::helper('sales')->__('Shipped'); ?>: <strong><?php echo $_item->getQtyShipped()*1 ?></strong></span>
202
+ <?php else: ?>
203
+ &nbsp;
204
+ <?php endif; ?>
205
+ </td>
206
+ <td class="a-right">
207
+ <?php if (!$_item->getParentItem()): ?>
208
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
209
+ <span class="price-excl-tax">
210
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
211
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
212
+ <span class="cart-price">
213
+ <?php endif; ?>
214
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
215
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
216
+ </span>
217
+ <?php endif; ?>
218
+ <?php endif; ?>
219
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
220
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
221
+ <?php else: ?>
222
+ <span class="cart-price">
223
+ <?php endif; ?>
224
+
225
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
226
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()+$this->getItem()->getWeeeTaxAppliedRowAmount()+$this->getItem()->getWeeeTaxRowDisposition()); ?>
227
+ <?php else: ?>
228
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()) ?>
229
+ <?php endif; ?>
230
+
231
+ </span>
232
+
233
+
234
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
235
+
236
+ <span class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
237
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
238
+ <small>
239
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
240
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></span>
241
+ <?php endforeach; ?>
242
+ </small>
243
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
244
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
245
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></small></span>
246
+ <?php endforeach; ?>
247
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
248
+ <small>
249
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
250
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></span>
251
+ <?php endforeach; ?>
252
+ </small>
253
+ <?php endif; ?>
254
+ </span>
255
+
256
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
257
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
258
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()+$this->getItem()->getWeeeTaxAppliedRowAmount()+$this->getItem()->getWeeeTaxRowDisposition()); ?></span>
259
+ </span>
260
+ <?php endif; ?>
261
+ <?php endif; ?>
262
+ </span>
263
+ <br />
264
+ <?php endif; ?>
265
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceInclTax()): ?>
266
+ <span class="price-incl-tax">
267
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
268
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
269
+ <span class="cart-price">
270
+ <?php endif; ?>
271
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
272
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
273
+ </span>
274
+ <?php endif; ?>
275
+ <?php endif; ?>
276
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($this->getItem()); ?>
277
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
278
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
279
+ <?php else: ?>
280
+ <span class="cart-price">
281
+ <?php endif; ?>
282
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
283
+ <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
284
+ <?php else: ?>
285
+ <?php echo $this->getOrder()->formatPrice($_incl-$this->getItem()->getWeeeTaxRowDisposition()) ?>
286
+ <?php endif; ?>
287
+
288
+ </span>
289
+
290
+
291
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
292
+
293
+ <span class="cart-tax-info" id="subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
294
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
295
+ <small>
296
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
297
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></span>
298
+ <?php endforeach; ?>
299
+ </small>
300
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
301
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
302
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></small></span>
303
+ <?php endforeach; ?>
304
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
305
+ <small>
306
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
307
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></span>
308
+ <?php endforeach; ?>
309
+ </small>
310
+ <?php endif; ?>
311
+ </span>
312
+
313
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
314
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
315
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total Incl. Tax'); ?>:<br /> <?php echo $this->getOrder()->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
316
+ </span>
317
+ <?php endif; ?>
318
+ <?php endif; ?>
319
+
320
+
321
+
322
+ </span>
323
+ <?php endif; ?>
324
+ <?php else: ?>
325
+ &nbsp;
326
+ <?php endif; ?>
327
+ </td>
328
+ <!--
329
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
330
+ <th class="a-right"><?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()) ?></th>
331
+ <?php endif; ?>
332
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceInclTax()): ?>
333
+ <th class="a-right"><?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getSubtotalInclTax($this->getItem())); ?></th>
334
+ <?php endif; ?>
335
+ -->
336
+ </tr>
337
+ <?php endforeach; ?>
338
+
339
+ <?php if ($_showlastRow): ?>
340
+ <tr class="border">
341
+ <td>
342
+ <?php if($_options = $this->getItemOptions()): ?>
343
+ <dl class="item-options">
344
+ <?php foreach ($_options as $_option) : ?>
345
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
346
+ <?php if (!$this->getPrintStatus()): ?>
347
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
348
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
349
+ <?php echo $_formatedOptionValue['value'] ?>
350
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
351
+ <div class="truncated_full_value">
352
+ <dl class="item-options">
353
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
354
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
355
+ </dl>
356
+ </div>
357
+ <?php endif; ?>
358
+ </dd>
359
+ <?php else: ?>
360
+ <dd><?php echo $this->escapeHtml( (isset($_option['print_value']) ? $_option['print_value'] : $_option['value']) ) ?></dd>
361
+ <?php endif; ?>
362
+ <?php endforeach; ?>
363
+ </dl>
364
+ <?php endif; ?>
365
+ <?php echo $this->escapeHtml($_item->getDescription()) ?>
366
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
367
+ <a href="#" id="order-item-gift-message-link-<?php echo $parentItem->getId() ?>" class="gift-message-link" onclick="return giftMessageToogle('<?php echo $parentItem->getId() ?>')"><?php echo Mage::helper('sales')->__('Gift Message') ?></a>
368
+ <?php endif; ?>
369
+ </td>
370
+ <td>&nbsp;</td>
371
+ <td>&nbsp;</td>
372
+ <td>&nbsp;</td>
373
+ <td>&nbsp;</td>
374
+ </tr>
375
+ <?php endif; ?>
app/design/frontend/base/default/template/bundle/sales/order/shipment/items/renderer.phtml ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $parentItem = $this->getItem() ?>
28
+ <?php $items = array_merge(array($parentItem->getOrderItem()), $parentItem->getOrderItem()->getChildrenItems()) ?>
29
+ <?php $shipItems = $this->getChilds($parentItem) ?>
30
+ <?php $_count = count ($items) ?>
31
+ <?php $_index = 0 ?>
32
+
33
+ <?php $_prevOptionId = '' ?>
34
+
35
+ <?php foreach ($items as $_item): ?>
36
+
37
+ <?php if($this->getItemOptions() || $parentItem->getDescription() || $this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
38
+ <?php $_showlastRow = true ?>
39
+ <?php else: ?>
40
+ <?php $_showlastRow = false ?>
41
+ <?php endif; ?>
42
+
43
+ <?php if ($_item->getParentItem()): ?>
44
+ <?php $attributes = $this->getSelectionAttributes($_item) ?>
45
+ <?php if ($_prevOptionId != $attributes['option_id']): ?>
46
+ <tr>
47
+ <td><div class="option-label"><?php echo $attributes['option_label'] ?></div></td>
48
+ <td>&nbsp;</td>
49
+ <td>&nbsp;</td>
50
+ </tr>
51
+ <?php $_prevOptionId = $attributes['option_id'] ?>
52
+ <?php endif; ?>
53
+ <?php endif; ?>
54
+ <tr<?php echo (++$_index==$_count && !$_showlastRow)?' class="border"':'' ?> id="order-item-row-<?php echo $_item->getId() ?>">
55
+ <?php if (!$_item->getParentItem()): ?>
56
+ <td><h4 class="product-name"><?php echo $this->escapeHtml($_item->getName()) ?></h4></td>
57
+ <?php else: ?>
58
+ <td><div class="option-value"><?php echo $this->getValueHtml($_item) ?></div></td>
59
+ <?php endif; ?>
60
+ <td><?php echo $this->escapeHtml($_item->getSku()) ?></td>
61
+ <td class="a-center">
62
+ <?php if (($this->isShipmentSeparately() && $_item->getParentItem()) || (!$this->isShipmentSeparately() && !$_item->getParentItem())): ?>
63
+ <?php if (isset($shipItems[$_item->getId()])): ?>
64
+ <?php echo $shipItems[$_item->getId()]->getQty()*1 ?>
65
+ <?php elseif ($_item->getIsVirtual()): ?>
66
+ <?php echo $this->__('N/A') ?>
67
+ <?php else: ?>
68
+ 0
69
+ <?php endif; ?>
70
+ <?php else: ?>
71
+ &nbsp;
72
+ <?php endif; ?>
73
+ </td>
74
+ </tr>
75
+ <?php endforeach; ?>
76
+
77
+ <?php if ($_showlastRow): ?>
78
+ <tr class="border">
79
+ <td>
80
+ <?php if($_options = $this->getItemOptions()): ?>
81
+ <dl class="item-options">
82
+ <?php foreach ($_options as $_option) : ?>
83
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
84
+ <?php if (!$this->getPrintStatus()): ?>
85
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
86
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
87
+ <?php echo $_formatedOptionValue['value'] ?>
88
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
89
+ <div class="truncated_full_value">
90
+ <dl class="item-options">
91
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
92
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
93
+ </dl>
94
+ </div>
95
+ <?php endif; ?>
96
+ </dd>
97
+ <?php else: ?>
98
+ <dd><?php echo $this->escapeHtml( (isset($_option['print_value']) ? $_option['print_value'] : $_option['value']) ) ?></dd>
99
+ <?php endif; ?>
100
+ <?php endforeach; ?>
101
+ </dl>
102
+ <?php endif; ?>
103
+ <?php echo $this->escapeHtml($_item->getDescription()) ?>
104
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
105
+ <a href="#" id="order-item-gift-message-link-<?php echo $parentItem->getId() ?>" class="gift-message-link" onclick="return giftMessageToogle('<?php echo $parentItem->getId() ?>')"><?php echo Mage::helper('sales')->__('Gift Message') ?></a>
106
+ <?php endif; ?>
107
+ </td>
108
+ <td>&nbsp;</td>
109
+ <td>&nbsp;</td>
110
+ </tr>
111
+ <?php endif; ?>
app/design/frontend/base/default/template/callouts/left_col.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <div class="block block-banner">
28
+ <div class="block-content">
29
+ <?php if(strtolower(substr($this->getLinkUrl(),0,4))==='http'): ?>
30
+ <a href="<?php echo $this->getLinkUrl() ?>" title="<?php echo $this->__($this->getImgAlt()) ?>">
31
+ <?php elseif($this->getLinkUrl()): ?>
32
+ <a href="<?php echo $this->getUrl($this->getLinkUrl()) ?>" title="<?php echo $this->__($this->getImgAlt()) ?>">
33
+ <?php endif; ?>
34
+ <img src="<?php echo $this->getSkinUrl($this->getImgSrc()) ?>"<?php if(!$this->getLinkUrl()): ?> title="<?php echo $this->__($this->getImgAlt()) ?>"<?php endif; ?> alt="<?php echo $this->__($this->getImgAlt()) ?>" />
35
+ <?php if($this->getLinkUrl()): ?>
36
+ </a>
37
+ <?php endif ?>
38
+ </div>
39
+ </div>
app/design/frontend/base/default/template/callouts/right_col.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <div class="block block-banner">
28
+ <div class="block-content">
29
+ <?php if(strtolower(substr($this->getLinkUrl(),0,4))==='http'): ?>
30
+ <a href="<?php echo $this->getLinkUrl() ?>" title="<?php echo $this->__($this->getImgAlt()) ?>">
31
+ <?php elseif($this->getLinkUrl()): ?>
32
+ <a href="<?php echo $this->getUrl($this->getLinkUrl()) ?>" title="<?php echo $this->__($this->getImgAlt()) ?>">
33
+ <?php endif; ?>
34
+ <img src="<?php echo $this->getSkinUrl($this->getImgSrc()) ?>"<?php if(!$this->getLinkUrl()): ?> title="<?php echo $this->__($this->getImgAlt()) ?>"<?php endif; ?> alt="<?php echo $this->__($this->getImgAlt()) ?>" />
35
+ <?php if($this->getLinkUrl()): ?>
36
+ </a>
37
+ <?php endif ?>
38
+ </div>
39
+ </div>
app/design/frontend/base/default/template/captcha/zend.phtml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php /* @var $this Mage_Core_Block_Captcha_Zend */ ?>
28
+
29
+ <?php /* @var $captcha Mage_Core_Model_Captcha_Zend */ ?>
30
+ <?php $captcha = $this->getCaptchaModel() ?>
31
+ <li id="captcha-input-box-<?php echo $this->getFormId()?>">
32
+ <label for="captcha_<?php echo $this->getFormId() ?>" class="required"><em>*</em><?php echo $this->__('Please type the letters below')?></label>
33
+ <div class="input-box captcha">
34
+ <input name="<?php echo Mage_Captcha_Helper_Data::INPUT_NAME_FIELD_VALUE ?>[<?php echo $this->getFormId()?>]" type="text" class="input-text required-entry" id="captcha_<?php echo $this->getFormId() ?>" />
35
+ </div>
36
+ </li>
37
+ <li>
38
+ <div class="captcha-image" id="captcha-image-box-<?php echo $this->getFormId()?>">
39
+ <img id="captcha-reload" class="captcha-reload" src="<?php echo $this->getSkinUrl('images/reload.png') ?>" alt="<?php echo $this->__('Reload captcha') ?>" onclick="$('<?php echo $this->getFormId()?>').captcha.refresh(this)">
40
+ <img id="<?php echo $this->getFormId() ?>" class="captcha-img" height="<?php echo $this->getImgHeight() ?>" src="<?php echo $captcha->getImgSrc() ?>"/>
41
+ <?php if ($captcha->isCaseSensitive()) :?>
42
+ <div class="captcha-note">
43
+ <?php echo $this->__('<strong>Attention</strong>: Captcha is case sensitive.') ?>
44
+ </div>
45
+ <?php endif; ?>
46
+ </div>
47
+ <script type="text/javascript">//<![CDATA[
48
+ $('<?php echo $this->getFormId() ?>').captcha = new Captcha('<?php echo $this->getRefreshUrl() ?>', '<?php echo $this->getFormId() ?>');
49
+ //]]></script>
50
+ </li>
51
+
app/design/frontend/base/default/template/catalog/category/page.phtml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @deprecated after 1.4.0.0-alpha3
29
+ */
30
+ ?>
31
+ <div class="page-title">
32
+ <h1><?php echo $this->getTitle() ?></h1>
33
+ </div>
34
+ <div>
35
+ <?php echo $this->getContent() ?>
36
+ </div>
app/design/frontend/base/default/template/catalog/category/view.phtml ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Category view template
30
+ *
31
+ * @see Mage_Catalog_Block_Category_View
32
+ */
33
+ ?>
34
+ <?php
35
+ $_helper = $this->helper('catalog/output');
36
+ $_category = $this->getCurrentCategory();
37
+ $_imgHtml = '';
38
+ if ($_imgUrl = $_category->getImageUrl()) {
39
+ $_imgHtml = '<p class="category-image"><img src="'.$_imgUrl.'" alt="'.$this->escapeHtml($_category->getName()).'" title="'.$this->escapeHtml($_category->getName()).'" /></p>';
40
+ $_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, 'image');
41
+ }
42
+ ?>
43
+ <div class="page-title category-title">
44
+ <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?>
45
+ <a href="<?php echo $this->getRssLink() ?>" class="link-rss"><?php echo $this->__('Subscribe to RSS Feed') ?></a>
46
+ <?php endif; ?>
47
+ <h1><?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name') ?></h1>
48
+ </div>
49
+
50
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
51
+
52
+ <?php if($_imgUrl): ?>
53
+ <?php echo $_imgHtml ?>
54
+ <?php endif; ?>
55
+
56
+ <?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
57
+ <div class="category-description std">
58
+ <?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?>
59
+ </div>
60
+ <?php endif; ?>
61
+
62
+ <?php if($this->isContentMode()): ?>
63
+ <?php echo $this->getCmsBlockHtml() ?>
64
+
65
+ <?php elseif($this->isMixedMode()): ?>
66
+ <?php echo $this->getCmsBlockHtml() ?>
67
+ <?php echo $this->getProductListHtml() ?>
68
+
69
+ <?php else: ?>
70
+ <?php echo $this->getProductListHtml() ?>
71
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/category/widget/link/link_block.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <span class="widget widget-category-link"><a <?php echo $this->getLinkAttributes() ?>><span><?php echo $this->escapeHtml($this->getAnchorText()) ?></span></a></span>
app/design/frontend/base/default/template/catalog/category/widget/link/link_inline.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <span class="widget widget-category-link-inline"><a <?php echo $this->getLinkAttributes() ?>><span><?php echo $this->escapeHtml($this->getAnchorText()) ?></span></a></span>
app/design/frontend/base/default/template/catalog/layer/filter.phtml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Template for filter items block
30
+ *
31
+ * @see Mage_Catalog_Block_Layer_Filter
32
+ */
33
+ ?>
34
+
35
+ <ol>
36
+ <?php foreach ($this->getItems() as $_item): ?>
37
+ <li>
38
+ <?php if ($_item->getCount() > 0): ?>
39
+ <a href="<?php echo $this->urlEscape($_item->getUrl()) ?>"><?php echo $_item->getLabel() ?></a>
40
+ <?php else: echo $_item->getLabel() ?>
41
+ <?php endif; ?>
42
+ <?php if ($this->shouldDisplayProductCount()): ?>
43
+ (<?php echo $_item->getCount() ?>)
44
+ <?php endif; ?>
45
+ </li>
46
+ <?php endforeach ?>
47
+ </ol>
app/design/frontend/base/default/template/catalog/layer/state.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Category layered navigation state
30
+ *
31
+ * @see Mage_Catalog_Block_Layer_State
32
+ */
33
+ ?>
34
+ <?php $_filters = $this->getActiveFilters() ?>
35
+ <?php if(!empty($_filters)): ?>
36
+ <div class="currently">
37
+ <p class="block-subtitle"><?php echo $this->__('Currently Shopping by:') ?></p>
38
+ <ol>
39
+ <?php foreach ($_filters as $_filter): ?>
40
+ <li>
41
+ <span class="label"><?php echo $this->__($_filter->getName()) ?>:</span> <span class="value"><?php echo $this->stripTags($_filter->getLabel()) ?></span>
42
+ <?php
43
+ $clearLinkUrl = $_filter->getClearLinkUrl();
44
+ if ($clearLinkUrl):
45
+ ?>
46
+ <a class="btn-previous" href="<?php echo $_filter->getRemoveUrl() ?>" title="<?php echo $this->__('Previous') ?>"><?php echo $this->__('Previous') ?></a>
47
+ <a class="btn-remove" title="<?php echo $this->escapeHtml($_filter->getFilter()->getClearLinkText()) ?>" href="<?php echo $clearLinkUrl ?>"><?php echo $this->escapeHtml($_filter->getFilter()->getClearLinkText()) ?></a>
48
+ <?php else: ?>
49
+ <a class="btn-remove" href="<?php echo $_filter->getRemoveUrl() ?>" title="<?php echo $this->__('Remove This Item') ?>"><?php echo $this->__('Remove This Item') ?></a>
50
+ <?php endif; ?>
51
+ </li>
52
+ <?php endforeach; ?>
53
+ </ol>
54
+ </div>
55
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/layer/view.phtml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Category layered navigation
30
+ *
31
+ * @see Mage_Catalog_Block_Layer_View
32
+ */
33
+ ?>
34
+ <?php if($this->canShowBlock()): ?>
35
+ <div class="block block-layered-nav">
36
+ <div class="block-title">
37
+ <strong><span><?php echo $this->__('Shop By') ?></span></strong>
38
+ </div>
39
+ <div class="block-content">
40
+ <?php echo $this->getStateHtml() ?>
41
+ <?php if ($this->getLayer()->getState()->getFilters()): ?>
42
+ <div class="actions"><a href="<?php echo $this->getClearUrl() ?>"><?php echo $this->__('Clear All') ?></a></div>
43
+ <?php endif; ?>
44
+ <?php if($this->canShowOptions()): ?>
45
+ <p class="block-subtitle"><?php echo $this->__('Shopping Options') ?></p>
46
+ <dl id="narrow-by-list">
47
+ <?php $_filters = $this->getFilters() ?>
48
+ <?php foreach ($_filters as $_filter): ?>
49
+ <?php if($_filter->getItemsCount()): ?>
50
+ <dt><?php echo $this->__($_filter->getName()) ?></dt>
51
+ <dd><?php echo $_filter->getHtml() ?></dd>
52
+ <?php endif; ?>
53
+ <?php endforeach; ?>
54
+ </dl>
55
+ <script type="text/javascript">decorateDataList('narrow-by-list')</script>
56
+ <?php endif; ?>
57
+ </div>
58
+ </div>
59
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/msrp/popup.phtml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Template for MAP popup
30
+ *
31
+ */
32
+ ?>
33
+ <?php if (Mage::helper('catalog')->isMsrpEnabled()): ?>
34
+ <div id="map-popup" class="map-popup" style="display:none;">
35
+ <a href="#" class="map-popup-close" id="map-popup-close">x</a>
36
+ <div class="map-popup-arrow"></div>
37
+ <div class="map-popup-heading"><h2 id="map-popup-heading"></h2></div>
38
+ <div class="map-popup-content" id="map-popup-content">
39
+ <div class="map-popup-checkout">
40
+ <form action="" method="POST" id="product_addtocart_form_from_popup">
41
+ <input type="hidden" name="product" class="product_id" value="" id="map-popup-product-id" />
42
+ <div class="additional-addtocart-box">
43
+ <?php echo $this->getChildHtml(); ?>
44
+ </div>
45
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" id="map-popup-button"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
46
+ </form>
47
+ </div>
48
+ <div class="map-popup-msrp" id="map-popup-msrp-box"><strong><?php echo $this->__('Price'); ?>:</strong> <span style="text-decoration:line-through;" id="map-popup-msrp"></span></div>
49
+ <div class="map-popup-price" id="map-popup-price-box"><strong><?php echo $this->__('Actual Price'); ?>:</strong> <span id="map-popup-price"></span></div>
50
+ <script type="text/javascript">
51
+ //<![CDATA[
52
+ document.observe("dom:loaded", Catalog.Map.bindProductForm);
53
+ //]]>
54
+ </script>
55
+ </div>
56
+ <div class="map-popup-text" id="map-popup-text"><?php echo Mage::helper('catalog')->getMsrpExplanationMessage(); ?></div>
57
+ <div class="map-popup-text" id="map-popup-text-what-this"><?php echo Mage::helper('catalog')->getMsrpExplanationMessageWhatsThis(); ?></div>
58
+ </div>
59
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/navigation/left.phtml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Category left navigation
29
+ *
30
+ * @see Mage_Catalog_Block_Navigation
31
+ */
32
+ ?>
33
+ <?php if (!Mage::registry('current_category')) return ?>
34
+ <?php $_categories = $this->getCurrentChildCategories() ?>
35
+ <?php $_count = is_array($_categories)?count($_categories):$_categories->count(); ?>
36
+ <?php if($_count): ?>
37
+ <div class="block block-layered-nav">
38
+ <div class="block-title">
39
+ <strong><span><?php echo $this->__('Browse By') ?></span></strong>
40
+ </div>
41
+ <div class="block-content">
42
+ <dl id="narrow-by-list2">
43
+ <dt><?php echo $this->__('Category') ?></dt>
44
+ <dd>
45
+ <ol>
46
+ <?php foreach ($_categories as $_category): ?>
47
+ <?php if($_category->getIsActive()): ?>
48
+ <li>
49
+ <a href="<?php echo $this->getCategoryUrl($_category) ?>"<?php if ($this->isCategoryActive($_category)): ?> class="current"<?php endif; ?>><?php echo $this->escapeHtml($_category->getName()) ?></a> (<?php echo $_category->getProductCount() ?>)
50
+ </li>
51
+ <?php endif; ?>
52
+ <?php endforeach ?>
53
+ </ol>
54
+ </dd>
55
+ </dl>
56
+ <script type="text/javascript">decorateDataList('narrow-by-list2')</script>
57
+ </div>
58
+ </div>
59
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/navigation/top.phtml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Top menu for store
30
+ *
31
+ * @see Mage_Catalog_Block_Navigation
32
+ */
33
+ ?>
34
+ <?php
35
+ /**
36
+ * $this->renderCategoriesMenuHtml() supports optional arguments:
37
+ * int Level number for list item class to start from
38
+ * string Extra class of outermost list items
39
+ * string If specified wraps children list in div with this class
40
+ */
41
+ ?>
42
+ <?php $_menu = $this->renderCategoriesMenuHtml(0,'level-top') ?>
43
+ <?php if($_menu): ?>
44
+ <div class="nav-container">
45
+ <ul id="nav">
46
+ <?php echo $_menu ?>
47
+ </ul>
48
+ </div>
49
+ <?php endif ?>
app/design/frontend/base/default/template/catalog/product/compare/list.phtml ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ /* @var $this Mage_Catalog_Block_Product_Compare_List */
27
+ ?>
28
+ <div class="page-title title-buttons">
29
+ <h1><?php echo $this->__('Compare Products') ?></h1>
30
+ <a href="#" onclick="window.print(); return false;" class="link-print"><?php echo $this->__('Print This Page') ?></a>
31
+ </div>
32
+ <?php $_total=$this->getItems()->getSize() ?>
33
+ <?php if($_total): ?>
34
+ <table class="data-table compare-table" id="product_comparison">
35
+ <?php $_i=0 ?>
36
+ <?php foreach($this->getItems() as $_item): ?>
37
+ <?php if($_i++%10==0): ?>
38
+ <col width="1" />
39
+ <?php endif; ?>
40
+ <col width="<?php echo floor(100/$_total); ?>%" />
41
+ <?php endforeach; ?>
42
+ <?php if ($_total>2): ?>
43
+ <thead>
44
+ <tr>
45
+ <?php $_i=0 ?>
46
+ <?php foreach($this->getItems() as $_item): ?>
47
+ <?php if($_i++%10==0): ?>
48
+ <th>&nbsp;</th>
49
+ <?php endif; ?>
50
+ <td class="a-right"><a href="#" class="btn-remove" onclick="removeItem('<?php echo $this->helper('catalog/product_compare')->getRemoveUrl($_item) ?>');" title="<?php echo $this->__('Remove This Item') ?>"><?php echo $this->__('Remove This Item') ?></a></td>
51
+ <?php endforeach; ?>
52
+ </tr>
53
+ </thead>
54
+ <?php endif ?>
55
+ <tbody>
56
+ <tr class="product-shop-row">
57
+ <?php $_i=0 ?>
58
+ <?php foreach($this->getItems() as $_item): ?>
59
+ <?php if($_i++%10==0): ?>
60
+ <th>&nbsp;</th>
61
+ <?php endif; ?>
62
+ <td>
63
+ <a class="product-image" href="#" onclick="setPLocation('<?php echo $this->getProductUrl($_item) ?>', true)" title="<?php echo $this->stripTags($_item->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'small_image')->resize(125, 125); ?>" width="125" height="125" alt="<?php echo $this->stripTags($_item->getName(), null, true) ?>" /></a>
64
+ <h2 class="product-name"><a href="#" onclick="setPLocation('<?php echo $this->getProductUrl($_item) ?>', true)" title="<?php echo $this->stripTags($_item->getName(), null, true) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_item, $_item->getName(), 'name') ?></a></h2>
65
+ <?php echo $this->getReviewsSummaryHtml($_item, 'short') ?>
66
+ <?php echo $this->getPriceHtml($_item, true, '-compare-list-top') ?>
67
+ <?php if($_item->isSaleable()): ?>
68
+ <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setPLocation('<?php echo $this->helper('catalog/product_compare')->getAddToCartUrl($_item) ?>', true)"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
69
+ <?php else: ?>
70
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
71
+ <?php endif; ?>
72
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
73
+ <ul class="add-to-links">
74
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
75
+ </ul>
76
+ <?php endif; ?>
77
+ </td>
78
+ <?php endforeach; ?>
79
+ </tr>
80
+ </tbody>
81
+ <tbody>
82
+ <?php foreach ($this->getAttributes() as $_attribute): ?>
83
+ <tr>
84
+ <?php $_i=0 ?>
85
+ <?php foreach($this->getItems() as $_item): ?>
86
+ <?php if($_i++%10==0): ?>
87
+ <th><span class="nobr"><?php echo $_attribute->getStoreLabel() ?></span></th>
88
+ <?php endif; ?>
89
+ <td>
90
+ <?php switch ($_attribute->getAttributeCode()) {
91
+ case "price": ?>
92
+ <?php echo $this->getPriceHtml($_item, true, '-compare-list-' . $_attribute->getCode()) ?>
93
+ <?php break;
94
+ case "small_image": ?>
95
+ <img src="<?php echo $this->helper('catalog/image')->init($_item, 'small_image')->resize(125, 125); ?>" width="125" height="125" alt="<?php echo $this->escapeHtml($_item->getName()) ?>" title="<?php echo $this->escapeHtml($_item->getName()) ?>" />
96
+ <?php break;
97
+ case "date":
98
+ echo substr($this->getProductAttributeValue($_item, $_attribute),0,10);
99
+ break;
100
+ default: ?>
101
+ <div class="std">
102
+ <?php echo $this->helper('catalog/output')->productAttribute($_item, $this->getProductAttributeValue($_item, $_attribute), $_attribute->getAttributeCode()) ?>
103
+ </div>
104
+ <?php break;
105
+ } ?>
106
+ </td>
107
+ <?php endforeach; ?>
108
+ </tr>
109
+ <?php endforeach; ?>
110
+ </tbody>
111
+ <tbody>
112
+ <tr class="add-to-row">
113
+ <?php $_i=0 ?>
114
+ <?php foreach($this->getItems() as $_item): ?>
115
+ <?php if($_i++%10==0): ?>
116
+ <th>&nbsp;</th>
117
+ <?php endif; ?>
118
+ <td>
119
+ <?php echo $this->getPriceHtml($_item, true, '-compare-list-bottom') ?>
120
+ <?php if($_item->isSaleable()): ?>
121
+ <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setPLocation('<?php echo $this->helper('catalog/product_compare')->getAddToCartUrl($_item) ?>', true)"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
122
+ <?php else: ?>
123
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
124
+ <?php endif; ?>
125
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
126
+ <ul class="add-to-links">
127
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_item);?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
128
+ </ul>
129
+ <?php endif; ?>
130
+ </td>
131
+ <?php endforeach; ?>
132
+ </tr>
133
+ </tbody>
134
+ </table>
135
+ <div class="buttons-set">
136
+ <button type="button" title="<?php echo $this->__('Close Window') ?>" class="button" onclick="window.close();"><span><span><?php echo $this->__('Close Window') ?></span></span></button>
137
+ <span class="please-wait" id="compare-list-please-wait" style="display:none;">
138
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Please wait...') ?>" title="<?php echo $this->__('Please wait...') ?>" class="v-middle" /> <?php echo $this->__('Please wait...') ?>
139
+ </span>
140
+ </div>
141
+ <script type="text/javascript">
142
+ decorateTable('product_comparison');
143
+
144
+ /**
145
+ * Send remove item request, after that reload windows
146
+ */
147
+ function removeItem(url)
148
+ {
149
+ new Ajax.Request(url, {
150
+ parameters: {isAjax: 1, method: 'POST'},
151
+ onLoading: function(){$('compare-list-please-wait').show();},
152
+ onSuccess: function(transport) {
153
+ $('compare-list-please-wait').hide();
154
+ window.location.reload();
155
+ window.opener.location.reload();
156
+ }
157
+ });
158
+ }
159
+ </script>
160
+ <?php else: ?>
161
+ <script type="text/javascript">window.close();</script>
162
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/compare/sidebar.phtml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ /* @var $this Mage_Catalog_Block_Product_Compare_Sidebar */
27
+ ?>
28
+ <?php
29
+ $_helper = $this->helper('catalog/product_compare');
30
+ $_items = $_helper->getItemCount() > 0 ? $_helper->getItemCollection() : null;
31
+ ?>
32
+ <div class="block block-list block-compare">
33
+ <div class="block-title">
34
+ <strong><span><?php echo $this->__('Compare Products') ?>
35
+ <?php if($_helper->getItemCount() > 0): ?>
36
+ <small><?php echo $this->__('(%d)', $_helper->getItemCount()) ?></small>
37
+ <?php endif; ?>
38
+ </span></strong>
39
+ </div>
40
+ <div class="block-content">
41
+ <?php if($_helper->getItemCount() > 0): ?>
42
+ <ol id="compare-items">
43
+ <?php foreach($_items as $_index => $_item): ?>
44
+ <li class="item">
45
+ <input type="hidden" class="compare-item-id" value="<?php echo $_item->getId() ?>" />
46
+ <a href="<?php echo $_helper->getRemoveUrl($_item) ?>" title="<?php echo $this->__('Remove This Item') ?>" class="btn-remove" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the compare products?') ?>');"><?php echo $this->__('Remove This Item') ?></a>
47
+ <p class="product-name"><a href="<?php echo $this->getProductUrl($_item) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_item, $_item->getName(), 'name') ?></a></p>
48
+ </li>
49
+ <?php endforeach; ?>
50
+ </ol>
51
+ <script type="text/javascript">decorateList('compare-items')</script>
52
+ <div class="actions">
53
+ <a href="<?php echo $_helper->getClearListUrl() ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove all products from your comparison?') ?>');"><?php echo $this->__('Clear All') ?></a>
54
+ <button type="button" title="<?php echo $this->__('Compare') ?>" class="button" onclick="popWin('<?php echo $_helper->getListUrl() ?>','compare','top:0,left:0,width=820,height=600,resizable=yes,scrollbars=yes')"><span><span><?php echo $this->__('Compare') ?></span></span></button>
55
+ </div>
56
+ <?php else: ?>
57
+ <p class="empty"><?php echo $this->__('You have no items to compare.') ?></p>
58
+ <?php endif; ?>
59
+ </div>
60
+ </div>
app/design/frontend/base/default/template/catalog/product/gallery.phtml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $_width=$this->getImageWidth() ?>
28
+ <div class="product-image-popup" style="width:<?php echo $_width; ?>px;">
29
+ <div class="buttons-set"><a href="#" onclick="window.close(); return false;" class="button"><span><?php echo $this->__('Close Window') ?></span></a></div>
30
+ <?php if($this->getPreviusImageUrl() || $this->getNextImageUrl()): ?>
31
+ <div class="nav">
32
+ <?php if($_prevUrl = $this->getPreviusImageUrl()): ?>
33
+ <a href="<?php echo $_prevUrl ?>" class="prev">&laquo; <?php echo $this->__('Prev') ?></a>
34
+ <?php endif; ?>
35
+ <?php if($_nextUrl = $this->getNextImageUrl()): ?>
36
+ <a href="<?php echo $_nextUrl ?>" class="next"><?php echo $this->__('Next') ?> &raquo;</a>
37
+ <?php endif; ?>
38
+ </div>
39
+ <?php endif; ?>
40
+ <?php if($_imageTitle = $this->escapeHtml($this->getCurrentImage()->getLabel())): ?>
41
+ <h1 class="image-label"><?php echo $_imageTitle ?></h1>
42
+ <?php endif; ?>
43
+ <img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $this->getImageFile()); ?>"<?php if($_width): ?> width="<?php echo $_width ?>"<?php endif; ?> alt="<?php echo $this->escapeHtml($this->getCurrentImage()->getLabel()) ?>" title="<?php echo $this->escapeHtml($this->getCurrentImage()->getLabel()) ?>" id="product-gallery-image" class="image" />
44
+ <div class="buttons-set"><a href="#" onclick="window.close(); return false;" class="button"><span><?php echo $this->__('Close Window') ?></span></a></div>
45
+ <?php if($this->getPreviusImageUrl() || $this->getNextImageUrl()): ?>
46
+ <div class="nav">
47
+ <?php if($_prevUrl = $this->getPreviusImageUrl()): ?>
48
+ <a href="<?php echo $_prevUrl ?>" class="prev">&laquo; <?php echo $this->__('Prev') ?></a>
49
+ <?php endif; ?>
50
+ <?php if($_nextUrl = $this->getNextImageUrl()): ?>
51
+ <a href="<?php echo $_nextUrl ?>" class="next"><?php echo $this->__('Next') ?> &raquo;</a>
52
+ <?php endif; ?>
53
+ </div>
54
+ <?php endif; ?>
55
+ </div>
56
+ <script type="text/javascript">
57
+ //<![CDATA[
58
+ Event.observe(window, 'load', function(){
59
+ var demensions = $('product-gallery-image').getDimensions();
60
+ if (demensions.width < 300) {
61
+ demensions.width = 300
62
+ }
63
+ window.resizeTo(demensions.width+90, demensions.height+210);
64
+ });
65
+ //]]>
66
+ </script>
app/design/frontend/base/default/template/catalog/product/list.phtml ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Product list template
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List
32
+ */
33
+ ?>
34
+ <?php
35
+ $_productCollection=$this->getLoadedProductCollection();
36
+ $_helper = $this->helper('catalog/output');
37
+ ?>
38
+ <?php if(!$_productCollection->count()): ?>
39
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
40
+ <?php else: ?>
41
+ <div class="category-products">
42
+ <?php echo $this->getToolbarHtml() ?>
43
+ <?php // List mode ?>
44
+ <?php if($this->getMode()!='grid'): ?>
45
+ <?php $_iterator = 0; ?>
46
+ <ol class="products-list" id="products-list">
47
+ <?php foreach ($_productCollection as $_product): ?>
48
+ <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
49
+ <?php // Product Image ?>
50
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
51
+ <?php // Product description ?>
52
+ <div class="product-shop">
53
+ <div class="f-fix">
54
+ <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
55
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
56
+ <?php if($_product->getRatingSummary()): ?>
57
+ <?php echo $this->getReviewsSummaryHtml($_product) ?>
58
+ <?php endif; ?>
59
+ <?php echo $this->getPriceHtml($_product, true) ?>
60
+ <?php if($_product->isSaleable()): ?>
61
+ <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
62
+ <?php else: ?>
63
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
64
+ <?php endif; ?>
65
+ <div class="desc std">
66
+ <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
67
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
68
+ </div>
69
+ <ul class="add-to-links">
70
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
71
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
72
+ <?php endif; ?>
73
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
74
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
75
+ <?php endif; ?>
76
+ </ul>
77
+ </div>
78
+ </div>
79
+ </li>
80
+ <?php endforeach; ?>
81
+ </ol>
82
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
83
+
84
+ <?php else: ?>
85
+
86
+ <?php // Grid Mode ?>
87
+
88
+ <?php $_collectionSize = $_productCollection->count() ?>
89
+ <?php $_columnCount = $this->getColumnCount(); ?>
90
+ <?php $i=0; foreach ($_productCollection as $_product): ?>
91
+ <?php if ($i++%$_columnCount==0): ?>
92
+ <ul class="products-grid">
93
+ <?php endif ?>
94
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
95
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
96
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
97
+ <?php if($_product->getRatingSummary()): ?>
98
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
99
+ <?php endif; ?>
100
+ <?php echo $this->getPriceHtml($_product, true) ?>
101
+ <div class="actions">
102
+ <?php if($_product->isSaleable()): ?>
103
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
104
+ <?php else: ?>
105
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
106
+ <?php endif; ?>
107
+ <ul class="add-to-links">
108
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
109
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
110
+ <?php endif; ?>
111
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
112
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
113
+ <?php endif; ?>
114
+ </ul>
115
+ </div>
116
+ </li>
117
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
118
+ </ul>
119
+ <?php endif ?>
120
+ <?php endforeach ?>
121
+ <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
122
+ <?php endif; ?>
123
+
124
+ <div class="toolbar-bottom">
125
+ <?php echo $this->getToolbarHtml() ?>
126
+ </div>
127
+ </div>
128
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/list/related.phtml ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if($this->getItems()->getSize()): ?>
28
+ <div class="block block-related">
29
+ <div class="block-title">
30
+ <strong><span><?php echo $this->__('Related Products') ?></span></strong>
31
+ </div>
32
+ <div class="block-content">
33
+ <p class="block-subtitle"><?php echo $this->__('Check items to add to the cart or') ?>&nbsp;<a href="#" onclick="selectAllRelated(this); return false;"><?php echo $this->__('select all') ?></a></p>
34
+ <ol class="mini-products-list" id="block-related">
35
+ <?php foreach($this->getItems() as $_item): ?>
36
+ <li class="item">
37
+ <?php if(!$_item->isComposite() && $_item->isSaleable()): ?>
38
+ <?php if (!$_item->getRequiredOptions()): ?>
39
+ <input type="checkbox" class="checkbox related-checkbox" id="related-checkbox<?php echo $_item->getId() ?>" name="related_products[]" value="<?php echo $_item->getId() ?>" />
40
+ <?php endif; ?>
41
+ <?php endif; ?>
42
+ <div class="product">
43
+ <a href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_item->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(50) ?>" width="50" height="50" alt="<?php echo $this->escapeHtml($_item->getName()) ?>" /></a>
44
+ <div class="product-details">
45
+ <p class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->escapeHtml($_item->getName()) ?></a></p>
46
+ <?php echo $this->getPriceHtml($_item, true, '-related') ?>
47
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
48
+ <a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a>
49
+ <?php endif; ?>
50
+ </div>
51
+ </div>
52
+ </li>
53
+ <?php endforeach ?>
54
+ </ol>
55
+ <script type="text/javascript">decorateList('block-related', 'none-recursive')</script>
56
+ </div>
57
+ <script type="text/javascript">
58
+ //<![CDATA[
59
+ $$('.related-checkbox').each(function(elem){
60
+ Event.observe(elem, 'click', addRelatedToProduct)
61
+ });
62
+
63
+ var relatedProductsCheckFlag = false;
64
+ function selectAllRelated(txt){
65
+ if (relatedProductsCheckFlag == false) {
66
+ $$('.related-checkbox').each(function(elem){
67
+ elem.checked = true;
68
+ });
69
+ relatedProductsCheckFlag = true;
70
+ txt.innerHTML="<?php echo $this->__('unselect all') ?>";
71
+ } else {
72
+ $$('.related-checkbox').each(function(elem){
73
+ elem.checked = false;
74
+ });
75
+ relatedProductsCheckFlag = false;
76
+ txt.innerHTML="<?php echo $this->__('select all') ?>";
77
+ }
78
+ addRelatedToProduct();
79
+ }
80
+
81
+ function addRelatedToProduct(){
82
+ var checkboxes = $$('.related-checkbox');
83
+ var values = [];
84
+ for(var i=0;i<checkboxes.length;i++){
85
+ if(checkboxes[i].checked) values.push(checkboxes[i].value);
86
+ }
87
+ if($('related-products-field')){
88
+ $('related-products-field').value = values.join(',');
89
+ }
90
+ }
91
+ //]]>
92
+ </script>
93
+ </div>
94
+ <?php endif ?>
app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Product list toolbar
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List_Toolbar
32
+ */
33
+ ?>
34
+ <?php if($this->getCollection()->getSize()): ?>
35
+ <div class="toolbar">
36
+ <div class="pager">
37
+ <p class="amount">
38
+ <?php if($this->getLastPageNum()>1): ?>
39
+ <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
40
+ <?php else: ?>
41
+ <strong><?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?></strong>
42
+ <?php endif; ?>
43
+ </p>
44
+
45
+ <div class="limiter">
46
+ <label><?php echo $this->__('Show') ?></label>
47
+ <select onchange="setLocation(this.value)">
48
+ <?php foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
49
+ <option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
50
+ <?php echo $_limit ?>
51
+ </option>
52
+ <?php endforeach; ?>
53
+ </select> <?php echo $this->__('per page') ?>
54
+ </div>
55
+
56
+ <?php echo $this->getPagerHtml() ?>
57
+
58
+ </div>
59
+
60
+ <?php if( $this->isExpanded() ): ?>
61
+ <div class="sorter">
62
+ <?php if( $this->isEnabledViewSwitcher() ): ?>
63
+ <p class="view-mode">
64
+ <?php $_modes = $this->getModes(); ?>
65
+ <?php if($_modes && count($_modes)>1): ?>
66
+ <label><?php echo $this->__('View as') ?>:</label>
67
+ <?php foreach ($this->getModes() as $_code=>$_label): ?>
68
+ <?php if($this->isModeActive($_code)): ?>
69
+ <strong title="<?php echo $_label ?>" class="<?php echo strtolower($_code); ?>"><?php echo $_label ?></strong>&nbsp;
70
+ <?php else: ?>
71
+ <a href="<?php echo $this->getModeUrl($_code) ?>" title="<?php echo $_label ?>" class="<?php echo strtolower($_code); ?>"><?php echo $_label ?></a>&nbsp;
72
+ <?php endif; ?>
73
+ <?php endforeach; ?>
74
+ <?php endif; ?>
75
+ </p>
76
+ <?php endif; ?>
77
+
78
+ <div class="sort-by">
79
+ <label><?php echo $this->__('Sort By') ?></label>
80
+ <select onchange="setLocation(this.value)">
81
+ <?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
82
+ <option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>
83
+ <?php echo $this->__($_order) ?>
84
+ </option>
85
+ <?php endforeach; ?>
86
+ </select>
87
+ <?php if($this->getCurrentDirection() == 'desc'): ?>
88
+ <a href="<?php echo $this->getOrderUrl(null, 'asc') ?>" title="<?php echo $this->__('Set Ascending Direction') ?>"><img src="<?php echo $this->getSkinUrl('images/i_desc_arrow.gif') ?>" alt="<?php echo $this->__('Set Ascending Direction') ?>" class="v-middle" /></a>
89
+ <?php else: ?>
90
+ <a href="<?php echo $this->getOrderUrl(null, 'desc') ?>" title="<?php echo $this->__('Set Descending Direction') ?>"><img src="<?php echo $this->getSkinUrl('images/i_asc_arrow.gif') ?>" alt="<?php echo $this->__('Set Descending Direction') ?>" class="v-middle" /></a>
91
+ <?php endif; ?>
92
+ </div>
93
+ </div>
94
+ <?php endif; ?>
95
+ </div>
96
+ <?php endif ?>
app/design/frontend/base/default/template/catalog/product/list/upsell.phtml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if(count($this->getItemCollection()->getItems())): ?>
28
+ <div class="box-collateral box-up-sell">
29
+ <h2><?php echo $this->__('You may also be interested in the following product(s)') ?></h2>
30
+ <table class="products-grid" id="upsell-product-table">
31
+ <?php // $this->setColumnCount(5); // uncomment this line if you want to have another number of columns. also can be changed in layout ?>
32
+ <?php $this->resetItemsIterator() ?>
33
+ <?php for($_i=0;$_i<$this->getRowCount();$_i++): ?>
34
+ <tr>
35
+ <?php for($_j=0;$_j<$this->getColumnCount();$_j++): ?>
36
+ <?php if($_link=$this->getIterableItem()): ?>
37
+ <td>
38
+ <a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_link->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_link, 'small_image')->resize(125) ?>" width="125" height="125" alt="<?php echo $this->escapeHtml($_link->getName()) ?>" /></a>
39
+ <h3 class="product-name"><a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_link->getName()) ?>"><?php echo $this->escapeHtml($_link->getName()) ?></a></h3>
40
+ <?php echo $this->getPriceHtml($_link, true, '-upsell') ?>
41
+ <?php echo $this->getReviewsSummaryHtml($_link) ?>
42
+ </td>
43
+ <?php else: ?>
44
+ <td class="empty">&nbsp;</td>
45
+ <?php endif; ?>
46
+ <?php endfor; ?>
47
+ </tr>
48
+ <?php endfor; ?>
49
+ </table>
50
+ <script type="text/javascript">decorateTable('upsell-product-table')</script>
51
+ </div>
52
+ <?php endif ?>
app/design/frontend/base/default/template/catalog/product/new.phtml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <h2 class="subtitle"><?php echo $this->__('New Products') ?></h2>
29
+ <?php $_columnCount = $this->getColumnCount(); ?>
30
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
31
+ <?php if ($i++%$_columnCount==0): ?>
32
+ <ul class="products-grid">
33
+ <?php endif ?>
34
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
35
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135) ?>" width="135" height="135" alt="<?php echo $this->escapeHtml($_product->getName()) ?>" /></a>
36
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_product->getName()) ?>"><?php echo $this->escapeHtml($_product->getName()) ?></a></h3>
37
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
38
+ <?php echo $this->getPriceHtml($_product, true, '-new') ?>
39
+ <div class="actions">
40
+ <?php if($_product->isSaleable()): ?>
41
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
42
+ <?php else: ?>
43
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
44
+ <?php endif; ?>
45
+ <ul class="add-to-links">
46
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
47
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
48
+ <?php endif; ?>
49
+ <?php if ($_compareUrl = $this->getAddToCompareUrl($_product)): ?>
50
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
51
+ <?php endif; ?>
52
+ </ul>
53
+ </div>
54
+ </li>
55
+ <?php if ($i%$_columnCount==0 || $i==count($_products)): ?>
56
+ </ul>
57
+ <?php endif ?>
58
+ <?php endforeach; ?>
59
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/price.phtml ADDED
@@ -0,0 +1,471 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * Template for displaying product price in different places (products grid, product view page etc)
31
+ *
32
+ * @see Mage_Catalog_Block_Product_Abstract
33
+ */
34
+ ?>
35
+ <?php
36
+ $_coreHelper = $this->helper('core');
37
+ $_weeeHelper = $this->helper('weee');
38
+ $_taxHelper = $this->helper('tax');
39
+ /* @var $_coreHelper Mage_Core_Helper_Data */
40
+ /* @var $_weeeHelper Mage_Weee_Helper_Data */
41
+ /* @var $_taxHelper Mage_Tax_Helper_Data */
42
+
43
+ $_product = $this->getProduct();
44
+ $_storeId = $_product->getStoreId();
45
+ $_store = $_product->getStore();
46
+ $_id = $_product->getId();
47
+ $_weeeSeparator = '';
48
+ $_simplePricesTax = ($_taxHelper->displayPriceIncludingTax() || $_taxHelper->displayBothPrices());
49
+ $_minimalPriceValue = $_product->getMinimalPrice();
50
+ $_minimalPriceValue = $_store->roundPrice($_store->convertPrice($_minimalPriceValue));
51
+ $_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
52
+ $_convertedFinalPrice = $_store->roundPrice($_store->convertPrice($_product->getFinalPrice()));
53
+ $_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStoreLabel();
54
+ ?>
55
+
56
+ <?php if (!$_product->isGrouped()): ?>
57
+ <?php $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product); ?>
58
+ <?php $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true); ?>
59
+ <?php $_weeeTaxAmountInclTaxes = $_weeeTaxAmount; ?>
60
+ <?php if ($_weeeHelper->isTaxable()): ?>
61
+ <?php $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_weeeTaxAttributes); ?>
62
+ <?php endif; ?>
63
+ <?php $_weeeTaxAmount = $_store->roundPrice($_store->convertPrice($_weeeTaxAmount)); ?>
64
+ <?php $_weeeTaxAmountInclTaxes = $_store->roundPrice($_store->convertPrice($_weeeTaxAmountInclTaxes)); ?>
65
+
66
+ <div class="price-box">
67
+ <?php $_convertedPrice = $_store->roundPrice($_store->convertPrice($_product->getPrice())); ?>
68
+ <?php $_price = $_taxHelper->getPrice($_product, $_convertedPrice); ?>
69
+ <?php $_regularPrice = $_taxHelper->getPrice($_product, $_convertedPrice, $_simplePricesTax); ?>
70
+ <?php $_finalPrice = $_taxHelper->getPrice($_product, $_convertedFinalPrice) ?>
71
+ <?php $_finalPriceInclTax = $_taxHelper->getPrice($_product, $_convertedFinalPrice, true) ?>
72
+ <?php $_weeeDisplayType = $_weeeHelper->getPriceDisplayType(); ?>
73
+ <?php if ($_finalPrice >= $_price): ?>
74
+ <?php if ($_taxHelper->displayBothPrices()): ?>
75
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
76
+ <span class="price-excluding-tax">
77
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
78
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
79
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
80
+ </span>
81
+ </span>
82
+ <span class="price-including-tax">
83
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
84
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
85
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
86
+ </span>
87
+ </span>
88
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
89
+ <span class="price-excluding-tax">
90
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
91
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
92
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
93
+ </span>
94
+ </span>
95
+ <span class="weee">(
96
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
97
+ <?php echo $_weeeSeparator; ?>
98
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
99
+ <?php $_weeeSeparator = ' + '; ?>
100
+ <?php endforeach; ?>
101
+ )</span>
102
+ <span class="price-including-tax">
103
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
104
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
105
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
106
+ </span>
107
+ </span>
108
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
109
+ <span class="price-excluding-tax">
110
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
111
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
112
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
113
+ </span>
114
+ </span>
115
+ <span class="price-including-tax">
116
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
117
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
118
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
119
+ </span>
120
+ <span class="weee">(
121
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
122
+ <?php echo $_weeeSeparator; ?>
123
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
124
+ <?php $_weeeSeparator = ' + '; ?>
125
+ <?php endforeach; ?>
126
+ )</span>
127
+ </span>
128
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
129
+ <span class="price-excluding-tax">
130
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
131
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
132
+ <?php echo $_coreHelper->formatPrice($_price, false) ?>
133
+ </span>
134
+ </span>
135
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
136
+ <span class="weee">
137
+ <?php echo $_weeeTaxAttribute->getName(); ?>
138
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
139
+ </span>
140
+ <?php endforeach; ?>
141
+ <span class="price-including-tax">
142
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
143
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
144
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
145
+ </span>
146
+ </span>
147
+ <?php else: ?>
148
+ <span class="price-excluding-tax">
149
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
150
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
151
+ <?php if ($_finalPrice == $_price): ?>
152
+ <?php echo $_coreHelper->formatPrice($_price, false) ?>
153
+ <?php else: ?>
154
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
155
+ <?php endif; ?>
156
+ </span>
157
+ </span>
158
+ <span class="price-including-tax">
159
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
160
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
161
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax, false) ?>
162
+ </span>
163
+ </span>
164
+ <?php endif; ?>
165
+ <?php else: ?>
166
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1))): // including ?>
167
+ <?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
168
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
169
+ <?php echo $_coreHelper->currency($_price + $weeeAmountToDisplay, true, true) ?>
170
+ </span>
171
+
172
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // show description ?>
173
+ <span class="weee">(
174
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
175
+ <?php echo $_weeeSeparator; ?>
176
+ <?php echo $_weeeTaxAttribute->getName(); ?>
177
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + ($_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAttribute->getTaxAmount() : 0), true, true); ?>
178
+ <?php $_weeeSeparator = ' + '; ?>
179
+ <?php endforeach; ?>
180
+ )</span>
181
+ <?php endif; ?>
182
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
183
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
184
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, true) ?>
185
+ </span>
186
+ <span class="weee">(
187
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
188
+ <?php echo $_weeeSeparator; ?>
189
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
190
+ <?php $_weeeSeparator = ' + '; ?>
191
+ <?php endforeach; ?>
192
+ )</span>
193
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
194
+ <span class="regular-price"><?php echo $_coreHelper->formatPrice($_price, true) ?></span><br/>
195
+ <?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
196
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
197
+ <span class="weee">
198
+ <?php echo $_weeeTaxAttribute->getName(); ?>
199
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + ($_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAttribute->getTaxAmount() : 0), true, true); ?>
200
+ </span>
201
+ <?php endforeach; ?>
202
+ <span class="regular-price"
203
+ id="product-price-weee-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
204
+ <?php echo $_coreHelper->currency($_price + $weeeAmountToDisplay, true, true) ?>
205
+ </span>
206
+ <?php else: ?>
207
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
208
+ <?php if ($_finalPrice == $_price): ?>
209
+ <?php echo $_coreHelper->formatPrice($_price, true) ?>
210
+ <?php else: ?>
211
+ <?php echo $_coreHelper->formatPrice($_finalPrice, true) ?>
212
+ <?php endif; ?>
213
+ </span>
214
+ <?php endif; ?>
215
+ <?php endif; ?>
216
+ <?php else: /* if ($_finalPrice == $_price): */ ?>
217
+ <?php $_originalWeeeTaxAmount = $_weeeHelper->getOriginalAmount($_product); ?>
218
+ <?php $_originalWeeeTaxAmount = $_store->roundPrice($_store->convertPrice($_originalWeeeTaxAmount)) ?>
219
+
220
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
221
+ <p class="old-price">
222
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
223
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
224
+ <?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
225
+ </span>
226
+ </p>
227
+
228
+ <?php if ($_taxHelper->displayBothPrices()): ?>
229
+ <p class="special-price">
230
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
231
+ <span class="price-excluding-tax">
232
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
233
+ <span class="price"
234
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
235
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
236
+ </span>
237
+ </span>
238
+ <span class="price-including-tax">
239
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
240
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
241
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
242
+ </span>
243
+ </span>
244
+ </p>
245
+ <?php else: ?>
246
+ <p class="special-price">
247
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
248
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
249
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmountInclTaxes, false) ?>
250
+ </span>
251
+ </p>
252
+ <?php endif; ?>
253
+
254
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
255
+ <p class="old-price">
256
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
257
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
258
+ <?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
259
+ </span>
260
+ </p>
261
+
262
+ <p class="special-price">
263
+ <?php if ($_taxHelper->displayBothPrices()): ?>
264
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
265
+ <span class="price-excluding-tax">
266
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
267
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
268
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
269
+ </span>
270
+ </span>
271
+ <span class="weee">(
272
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
273
+ <?php echo $_weeeSeparator; ?>
274
+ <?php echo $_weeeTaxAttribute->getName(); ?>
275
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
276
+ <?php $_weeeSeparator = ' + '; ?>
277
+ <?php endforeach; ?>
278
+ )</span>
279
+ <span class="price-including-tax">
280
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
281
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
282
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
283
+ </span>
284
+ </span>
285
+ <?php else: ?>
286
+ <p class="special-price">
287
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
288
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
289
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmountInclTaxes, false) ?>
290
+ </span>
291
+ </p>
292
+ <span class="weee">(
293
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
294
+ <?php echo $_weeeSeparator; ?>
295
+ <?php echo $_weeeTaxAttribute->getName(); ?>
296
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
297
+ <?php $_weeeSeparator = ' + '; ?>
298
+ <?php endforeach; ?>
299
+ )</span>
300
+ <?php endif; ?>
301
+ </p>
302
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
303
+ <p class="old-price">
304
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
305
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
306
+ <?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
307
+ </span>
308
+ </p>
309
+
310
+ <p class="special-price">
311
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
312
+ <span class="price-excluding-tax">
313
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
314
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
315
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
316
+ </span>
317
+ </span>
318
+ <span class="weee">(
319
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
320
+ <?php echo $_weeeSeparator; ?>
321
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
322
+ <?php $_weeeSeparator = ' + '; ?>
323
+ <?php endforeach; ?>
324
+ )</span>
325
+ <span class="price-including-tax">
326
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
327
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
328
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
329
+ </span>
330
+ </span>
331
+ </p>
332
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
333
+ <p class="old-price">
334
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
335
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
336
+ <?php echo $_coreHelper->formatPrice($_regularPrice, false) ?>
337
+ </span>
338
+ </p>
339
+
340
+ <p class="special-price">
341
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
342
+ <span class="price-excluding-tax">
343
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
344
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
345
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
346
+ </span>
347
+ </span>
348
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
349
+ <span class="weee">
350
+ <?php echo $_weeeTaxAttribute->getName(); ?>
351
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
352
+ </span>
353
+ <?php endforeach; ?>
354
+ <span class="price-including-tax">
355
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
356
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
357
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
358
+ </span>
359
+ </span>
360
+ </p>
361
+ <?php else: // excl. ?>
362
+ <p class="old-price">
363
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
364
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
365
+ <?php echo $_coreHelper->formatPrice($_regularPrice, false) ?>
366
+ </span>
367
+ </p>
368
+
369
+ <?php if ($_taxHelper->displayBothPrices()): ?>
370
+ <p class="special-price">
371
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
372
+ <span class="price-excluding-tax">
373
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
374
+ <span class="price"
375
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
376
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
377
+ </span>
378
+ </span>
379
+ <span class="price-including-tax">
380
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
381
+ <span class="price"
382
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
383
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax, false) ?>
384
+ </span>
385
+ </span>
386
+ </p>
387
+ <?php else: ?>
388
+ <p class="special-price">
389
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
390
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
391
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
392
+ </span>
393
+ </p>
394
+ <?php endif; ?>
395
+ <?php endif; ?>
396
+
397
+ <?php endif; /* if ($_finalPrice == $_price): */ ?>
398
+
399
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_convertedFinalPrice): ?>
400
+
401
+ <?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
402
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1, 4))): ?>
403
+ <?php $_minimalPriceDisplayValue = $_minimalPrice + $_weeeTaxAmount; ?>
404
+ <?php endif; ?>
405
+
406
+ <?php if ($this->getUseLinkForAsLowAs()): ?>
407
+ <a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
408
+ <?php else: ?>
409
+ <span class="minimal-price-link">
410
+ <?php endif ?>
411
+ <span class="label"><?php echo $this->__('As low as:') ?></span>
412
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
413
+ <?php echo $_coreHelper->formatPrice($_minimalPriceDisplayValue, false) ?>
414
+ </span>
415
+ <?php if ($this->getUseLinkForAsLowAs()): ?>
416
+ </a>
417
+ <?php else: ?>
418
+ </span>
419
+ <?php endif ?>
420
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
421
+ </div>
422
+
423
+ <?php else: /* if (!$_product->isGrouped()): */ ?>
424
+ <?php
425
+ $showMinPrice = $this->getDisplayMinimalPrice();
426
+ if ($showMinPrice && $_minimalPriceValue) {
427
+ $_exclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue);
428
+ $_inclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue, true);
429
+ $price = $showMinPrice ? $_minimalPriceValue : 0;
430
+ } else {
431
+ $price = $_convertedFinalPrice;
432
+ $_exclTax = $_taxHelper->getPrice($_product, $price);
433
+ $_inclTax = $_taxHelper->getPrice($_product, $price, true);
434
+ }
435
+ ?>
436
+ <?php if ($price): ?>
437
+ <div class="price-box">
438
+ <p<?php if ($showMinPrice): ?> class="minimal-price"<?php endif ?>>
439
+ <?php if ($showMinPrice): ?>
440
+ <span class="price-label"><?php echo $this->__('Starting at:') ?></span>
441
+ <?php endif ?>
442
+ <?php if ($_taxHelper->displayBothPrices()): ?>
443
+ <span class="price-excluding-tax">
444
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
445
+ <span class="price"
446
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
447
+ <?php echo $_coreHelper->formatPrice($_exclTax, false) ?>
448
+ </span>
449
+ </span>
450
+ <span class="price-including-tax">
451
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
452
+ <span class="price"
453
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
454
+ <?php echo $_coreHelper->formatPrice($_inclTax, false) ?>
455
+ </span>
456
+ </span>
457
+ <?php else: ?>
458
+ <?php
459
+ $_showPrice = $_inclTax;
460
+ if (!$_taxHelper->displayPriceIncludingTax()) {
461
+ $_showPrice = $_exclTax;
462
+ }
463
+ ?>
464
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
465
+ <?php echo $_coreHelper->formatPrice($_showPrice, false) ?>
466
+ </span>
467
+ <?php endif; ?>
468
+ </p>
469
+ </div>
470
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
471
+ <?php endif; /* if (!$_product->isGrouped()): */ ?>
app/design/frontend/base/default/template/catalog/product/price_msrp.phtml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * Template for displaying product price at catalog and sidebars
31
+ *
32
+ * @var $this Mage_Catalog_Block_Product_Price
33
+ */
34
+ ?>
35
+ <?php
36
+ /** @var $_product Mage_Catalog_Model_Product */
37
+ $_product = $this->getProduct();
38
+ $_msrpPrice = "";
39
+ ?>
40
+ <div class="price-box map-info">
41
+ <?php $_price = $this->helper('tax')->getPrice($_product, $_product->getMsrp()) ?>
42
+ <?php if ($_product->getMsrp()): ?>
43
+ <?php $_msrpPrice = $this->helper('core')->currency($_product->getMsrp(),true,true) ?>
44
+ <span class="old-price" id="product-price-<?php echo $_product->getId() ?><?php echo $this->getIdSuffix() ?>"><?php echo $_msrpPrice ?></span>
45
+ <?php endif; ?>
46
+ <?php $helpLinkId = 'msrp-click-' . $_product->getId() . $this->helper('core')->getRandomString(20); ?>
47
+ <a href="#" id="<?php echo($helpLinkId);?>"><?php echo $this->__('Click for price') ?></a>
48
+ <script type="text/javascript">
49
+ <?php if ($this->helper('catalog')->isShowPriceOnGesture($_product)): ?>
50
+ var newLink = Catalog.Map.addHelpLink(
51
+ $('<?php echo $helpLinkId ?>'),
52
+ "<?php echo $this->escapeHtml($_product->getName()) ?>",
53
+ <?php echo $this->getRealPriceJs($_product) ?>,
54
+ '<?php echo $_msrpPrice ?>',
55
+ "<?php echo $_product->isSalable() ? $_product->getAddToCartUrl() : '' ?>"
56
+ );
57
+ newLink.product_id = '<?php echo $_product->getId() ?>';
58
+ <?php else: ?>
59
+ Catalog.Map.addHelpLink(
60
+ $('<?php echo $helpLinkId ?>'),
61
+ "<?php echo $this->escapeHtml($_product->getName()) ?>",
62
+ null,
63
+ null,
64
+ "<?php echo $_product->getProductUrl() ?>"
65
+ );
66
+ <?php endif; ?>
67
+
68
+ </script>
69
+ </div>
app/design/frontend/base/default/template/catalog/product/price_msrp_item.phtml ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * Template for displaying product price at product view page, gift registry and wishlist
31
+ *
32
+ * @var $this Mage_Catalog_Block_Product_Price
33
+ */
34
+ ?>
35
+ <?php
36
+ /** @var $_coreHelper Mage_Core_Helper_Data */
37
+ $_coreHelper = $this->helper('core');
38
+ /** @var $_catalogHelper Mage_Catalog_Helper_Data */
39
+ $_catalogHelper = $this->helper('catalog');
40
+
41
+ /** @var $_product Mage_Catalog_Model_Product */
42
+ $_product = $this->getProduct();
43
+ $_id = $_product->getId();
44
+ $_msrpPrice = '';
45
+ $priceElementIdPrefix = $this->getPriceElementIdPrefix() ? $this->getPriceElementIdPrefix() : 'product-price-';
46
+ ?>
47
+ <div class="price-box map-info">
48
+ <?php $_price = $this->helper('tax')->getPrice($_product, $_product->getMsrp()) ?>
49
+ <?php if($_product->getMsrp()): ?>
50
+ <?php $_msrpPrice = $_coreHelper->currency($_product->getMsrp(),true,true) ?>
51
+ <span class="old-price" ><?php echo $_msrpPrice ?></span>
52
+ <?php endif; ?>
53
+
54
+ <?php if ($_catalogHelper->isShowPriceOnGesture($_product)): ?>
55
+ <?php $priceElementId = $priceElementIdPrefix . $_id . $this->getIdSuffix(); ?>
56
+ <span id="<?php echo $priceElementId ?>" style="display:none"></span>
57
+ <?php $popupId = 'msrp-popup-' . $_id . $_coreHelper->getRandomString(20); ?>
58
+ <a href="#" id="<?php echo($popupId);?>"><?php echo $this->__('Click for price'); ?></a>
59
+ <script type="text/javascript">
60
+ Event.observe(window, 'load', function() {
61
+ var priceElement = $("<?php echo $priceElementId ?>"),
62
+ realPrice = <?php echo $this->getRealPriceJs($_product) ?>,
63
+ priceHtml = realPrice.stripScripts();
64
+
65
+ priceElement.innerHTML = priceHtml;
66
+ realPrice.evalScripts();
67
+ var originalOptionPriceReload;
68
+ if (typeof(optionsPrice) != 'undefined' && optionsPrice && optionsPrice.reload) {
69
+ originalOptionPriceReload = optionsPrice.reload;
70
+ Product.OptionsPrice.prototype.reload = function() {
71
+ if (originalOptionPriceReload) {
72
+ originalOptionPriceReload.call(this);
73
+ }
74
+ if ($('<?php echo $popupId ?>') == Catalog.Map.active) {
75
+ Element.update(
76
+ $('map-popup-price'),
77
+ $("<?php echo $priceElementId ?>").innerHTML
78
+ );
79
+ }
80
+ }
81
+ optionsPrice.reload();
82
+ }
83
+ });
84
+
85
+ Catalog.Map.addHelpLink(
86
+ $('<?php echo $popupId ?>'),
87
+ "<?php echo $_product->getName() ?>",
88
+ $("<?php echo $priceElementId ?>"),
89
+ '<?php echo $_msrpPrice ?>',
90
+ "<?php echo $_product->isSalable() ? $_product->getAddToCartUrl() : '' ?>"
91
+ );
92
+ </script>
93
+ <?php else: ?>
94
+ <span class="msrp-price-hide-message">
95
+ <?php echo $_catalogHelper->getMsrpPriceMessage($_product) ?>
96
+ </span>
97
+ <?php endif; ?>
98
+
99
+ <?php $helpLinkId = 'msrp-help-' . $_id . $_coreHelper->getRandomString(20); ?>
100
+ <a href="#" id="<?php echo($helpLinkId);?>"><?php echo $this->__("What's this?"); ?></a>
101
+ <script type="text/javascript">
102
+ Catalog.Map.addHelpLink(
103
+ $('<?php echo $helpLinkId ?>'),
104
+ "<?php echo $this->__("What's this?"); ?>"
105
+ );
106
+ </script>
107
+ </div>
app/design/frontend/base/default/template/catalog/product/price_msrp_noform.phtml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * Template for displaying product price at catalog and sidebars
31
+ *
32
+ * @var $this Mage_Catalog_Block_Product_Price
33
+ */
34
+ ?>
35
+ <?php
36
+ /** @var $_product Mage_Catalog_Model_Product */
37
+ $_product = $this->getProduct();
38
+ $_msrpPrice = "";
39
+ ?>
40
+ <div class="price-box map-info">
41
+ <?php $_price = $this->helper('tax')->getPrice($_product, $_product->getMsrp()) ?>
42
+ <?php if ($_product->getMsrp()): ?>
43
+ <?php $_msrpPrice = $this->helper('core')->currency($_product->getMsrp(),true,true) ?>
44
+ <span class="old-price" id="product-price-<?php echo $_product->getId() ?><?php echo $this->getIdSuffix() ?>"><?php echo $_msrpPrice ?></span>
45
+ <?php endif; ?>
46
+ <?php $helpLinkId = 'msrp-click-' . $_product->getId() . $this->helper('core')->getRandomString(20); ?>
47
+ <a href="#" id="<?php echo($helpLinkId);?>"><?php echo $this->__('Click for price') ?></a>
48
+ <script type="text/javascript">
49
+ <?php if ($this->helper('catalog')->isShowPriceOnGesture($_product)): ?>
50
+ var productLink = {
51
+ url: "<?php echo $_product->isSalable() ? $_product->getAddToCartUrl() : '' ?>",
52
+ notUseForm: true
53
+ };
54
+ var newLink = Catalog.Map.addHelpLink(
55
+ $('<?php echo $helpLinkId ?>'),
56
+ "<?php echo $_product->getName() ?>",
57
+ <?php echo $this->getRealPriceJs($_product) ?>,
58
+ '<?php echo $_msrpPrice ?>',
59
+ productLink
60
+ );
61
+ newLink.product_id = '<?php echo $_product->getId() ?>';
62
+ <?php else: ?>
63
+ Catalog.Map.addHelpLink(
64
+ $('<?php echo $helpLinkId ?>'),
65
+ null,
66
+ null,
67
+ null,
68
+ "<?php echo $_product->getProductUrl() ?>"
69
+ );
70
+ <?php endif; ?>
71
+
72
+ </script>
73
+ </div>
app/design/frontend/base/default/template/catalog/product/price_msrp_rss.phtml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Template for displaying product price at rss feeds pages
30
+ *
31
+ * @var $this Mage_Catalog_Block_Product_Price
32
+ */
33
+
34
+ /** @var $_product Mage_Catalog_Model_Product */
35
+ $_product = $this->getProduct();
36
+ ?>
37
+ <div class="price-box map-info">
38
+
39
+ <?php if ($this->helper('catalog')->canApplyMsrp($_product)): ?>
40
+ <a href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('Click for price'); ?></a>
41
+ <?php endif; ?>
42
+ </div>
app/design/frontend/base/default/template/catalog/product/view.phtml ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Product view template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View
31
+ * @see Mage_Review_Block_Product_View
32
+ */
33
+ ?>
34
+ <?php $_helper = $this->helper('catalog/output'); ?>
35
+ <?php $_product = $this->getProduct(); ?>
36
+ <script type="text/javascript">
37
+ var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
38
+ </script>
39
+ <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
40
+ <div class="product-view">
41
+ <div class="product-essential">
42
+ <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
43
+ <?php echo $this->getBlockHtml('formkey') ?>
44
+ <div class="no-display">
45
+ <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
46
+ <input type="hidden" name="related_product" id="related-products-field" value="" />
47
+ </div>
48
+
49
+ <div class="product-shop">
50
+ <div class="product-name">
51
+ <h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
52
+ </div>
53
+
54
+ <?php if ($this->canEmailToFriend()): ?>
55
+ <p class="email-friend"><a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a></p>
56
+ <?php endif; ?>
57
+
58
+ <?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
59
+ <?php echo $this->getChildHtml('alert_urls') ?>
60
+ <?php echo $this->getChildHtml('product_type_data') ?>
61
+ <?php echo $this->getTierPriceHtml() ?>
62
+ <?php echo $this->getChildHtml('extrahint') ?>
63
+
64
+ <?php if (!$this->hasOptions()):?>
65
+ <div class="add-to-box">
66
+ <?php if($_product->isSaleable()): ?>
67
+ <?php echo $this->getChildHtml('addtocart') ?>
68
+ <?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
69
+ <span class="or"><?php echo $this->__('OR') ?></span>
70
+ <?php endif; ?>
71
+ <?php endif; ?>
72
+ <?php echo $this->getChildHtml('addto') ?>
73
+ </div>
74
+ <?php echo $this->getChildHtml('extra_buttons') ?>
75
+ <?php elseif (!$_product->isSaleable()): ?>
76
+ <div class="add-to-box">
77
+ <?php echo $this->getChildHtml('addto') ?>
78
+ </div>
79
+ <?php endif; ?>
80
+
81
+ <?php if ($_product->getShortDescription()):?>
82
+ <div class="short-description">
83
+ <h2><?php echo $this->__('Quick Overview') ?></h2>
84
+ <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
85
+ </div>
86
+ <?php endif;?>
87
+
88
+ <?php echo $this->getChildHtml('other');?>
89
+
90
+ <?php if ($_product->isSaleable() && $this->hasOptions()):?>
91
+ <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
92
+ <?php endif;?>
93
+
94
+ </div>
95
+
96
+ <div class="product-img-box">
97
+ <?php echo $this->getChildHtml('media') ?>
98
+ </div>
99
+
100
+ <div class="clearer"></div>
101
+ <?php if ($_product->isSaleable() && $this->hasOptions()):?>
102
+ <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
103
+ <?php endif;?>
104
+ </form>
105
+ <script type="text/javascript">
106
+ //<![CDATA[
107
+ var productAddToCartForm = new VarienForm('product_addtocart_form');
108
+ productAddToCartForm.submit = function(button, url) {
109
+ if (this.validator.validate()) {
110
+ var form = this.form;
111
+ var oldUrl = form.action;
112
+
113
+ if (url) {
114
+ form.action = url;
115
+ }
116
+ var e = null;
117
+ try {
118
+ this.form.submit();
119
+ } catch (e) {
120
+ }
121
+ this.form.action = oldUrl;
122
+ if (e) {
123
+ throw e;
124
+ }
125
+
126
+ if (button && button != 'undefined') {
127
+ button.disabled = true;
128
+ }
129
+ }
130
+ }.bind(productAddToCartForm);
131
+
132
+ productAddToCartForm.submitLight = function(button, url){
133
+ if(this.validator) {
134
+ var nv = Validation.methods;
135
+ delete Validation.methods['required-entry'];
136
+ delete Validation.methods['validate-one-required'];
137
+ delete Validation.methods['validate-one-required-by-name'];
138
+ // Remove custom datetime validators
139
+ for (var methodName in Validation.methods) {
140
+ if (methodName.match(/^validate-datetime-.*/i)) {
141
+ delete Validation.methods[methodName];
142
+ }
143
+ }
144
+
145
+ if (this.validator.validate()) {
146
+ if (url) {
147
+ this.form.action = url;
148
+ }
149
+ this.form.submit();
150
+ }
151
+ Object.extend(Validation.methods, nv);
152
+ }
153
+ }.bind(productAddToCartForm);
154
+ //]]>
155
+ </script>
156
+ </div>
157
+
158
+ <div class="product-collateral">
159
+ <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
160
+ <div class="box-collateral <?php echo "box-{$alias}"?>">
161
+ <?php if ($title = $this->getChildData($alias, 'title')):?>
162
+ <h2><?php echo $this->escapeHtml($title); ?></h2>
163
+ <?php endif;?>
164
+ <?php echo $html; ?>
165
+ </div>
166
+ <?php endforeach;?>
167
+ <?php echo $this->getChildHtml('upsell_products') ?>
168
+ <?php echo $this->getChildHtml('product_additional_data') ?>
169
+ </div>
170
+ </div>
app/design/frontend/base/default/template/catalog/product/view/additional.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php foreach ($this->getChildHtmlList() as $_html): ?>
28
+ <?php echo $_html ?>
29
+ <?php endforeach; ?>
app/design/frontend/base/default/template/catalog/product/view/addto.phtml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php $_product = $this->getProduct(); ?>
29
+ <?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
30
+
31
+ <ul class="add-to-links">
32
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
33
+ <li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, this.href); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
34
+ <?php endif; ?>
35
+ <?php
36
+ $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
37
+ ?>
38
+ <?php if($_compareUrl) : ?>
39
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
40
+ <?php endif; ?>
41
+ </ul>
app/design/frontend/base/default/template/catalog/product/view/addtocart.phtml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $_product = $this->getProduct(); ?>
28
+ <?php $buttonTitle = $this->__('Add to Cart'); ?>
29
+ <?php if($_product->isSaleable()): ?>
30
+ <div class="add-to-cart">
31
+ <?php if(!$_product->isGrouped()): ?>
32
+ <label for="qty"><?php echo $this->__('Qty:') ?></label>
33
+ <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
34
+ <?php endif; ?>
35
+ <button type="button" title="<?php echo $buttonTitle ?>" id="product-addtocart-button" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
36
+ <?php echo $this->getChildHtml('', true, true) ?>
37
+ </div>
38
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/view/attributes.phtml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Product additional attributes template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View_Attributes
31
+ */
32
+ ?>
33
+ <?php
34
+ $_helper = $this->helper('catalog/output');
35
+ $_product = $this->getProduct()
36
+ ?>
37
+ <?php if($_additional = $this->getAdditionalData()): ?>
38
+ <h2><?php echo $this->__('Additional Information') ?></h2>
39
+ <table class="data-table" id="product-attribute-specs-table">
40
+ <col width="25%" />
41
+ <col />
42
+ <tbody>
43
+ <?php foreach ($_additional as $_data): ?>
44
+ <tr>
45
+ <th class="label"><?php echo $this->escapeHtml($this->__($_data['label'])) ?></th>
46
+ <td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
47
+ </tr>
48
+ <?php endforeach; ?>
49
+ </tbody>
50
+ </table>
51
+ <script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
52
+ <?php endif;?>
app/design/frontend/base/default/template/catalog/product/view/description.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Product description template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View_Description
31
+ */
32
+ ?>
33
+ <?php $_description = $this->getProduct()->getDescription(); ?>
34
+ <?php if ($_description): ?>
35
+ <h2><?php echo $this->__('Details') ?></h2>
36
+ <div class="std">
37
+ <?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), $_description, 'description') ?>
38
+ </div>
39
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/view/media.phtml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Product media data template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View_Media
31
+ */
32
+ ?>
33
+ <?php
34
+ $_product = $this->getProduct();
35
+ $_helper = $this->helper('catalog/output');
36
+ ?>
37
+ <?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
38
+ <p class="product-image product-image-zoom">
39
+ <?php
40
+ $_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->escapeHtml($this->getImageLabel()).'" title="'.$this->escapeHtml($this->getImageLabel()).'" />';
41
+ echo $_helper->productAttribute($_product, $_img, 'image');
42
+ ?>
43
+ </p>
44
+ <p class="zoom-notice" id="track_hint"><?php echo $this->__('Double click on above image to view full picture') ?></p>
45
+ <div class="zoom">
46
+ <img id="zoom_out" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_out.gif') ?>" alt="<?php echo $this->__('Zoom Out') ?>" title="<?php echo $this->__('Zoom Out') ?>" class="btn-zoom-out" />
47
+ <div id="track">
48
+ <div id="handle"></div>
49
+ </div>
50
+ <img id="zoom_in" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="<?php echo $this->__('Zoom In') ?>" title="<?php echo $this->__('Zoom In') ?>" class="btn-zoom-in" />
51
+ </div>
52
+ <script type="text/javascript">
53
+ //<![CDATA[
54
+ Event.observe(window, 'load', function() {
55
+ product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');
56
+ });
57
+ //]]>
58
+ </script>
59
+ <?php else: ?>
60
+ <p class="product-image">
61
+ <?php
62
+ $_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->escapeHtml($this->getImageLabel()).'" title="'.$this->escapeHtml($this->getImageLabel()).'" />';
63
+ echo $_helper->productAttribute($_product, $_img, 'image');
64
+ ?>
65
+ </p>
66
+ <?php endif; ?>
67
+ <?php if (count($this->getGalleryImages()) > 0): ?>
68
+ <div class="more-views">
69
+ <h2><?php echo $this->__('More Views') ?></h2>
70
+ <ul>
71
+ <?php foreach ($this->getGalleryImages() as $_image): ?>
72
+ <li>
73
+ <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->escapeHtml($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->escapeHtml($_image->getLabel()) ?>" /></a>
74
+ </li>
75
+ <?php endforeach; ?>
76
+ </ul>
77
+ </div>
78
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/view/options.phtml ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ /* @var $this Mage_Catalog_Block_Product_View_Options */
27
+ ?>
28
+
29
+ <?php $_options = Mage::helper('core')->decorateArray($this->getOptions()) ?>
30
+ <?php if (count($_options)):?>
31
+ <script type="text/javascript">
32
+ //<![CDATA[
33
+ var optionFileUpload = {
34
+ productForm : $('product_addtocart_form'),
35
+ formAction : '',
36
+ formElements : {},
37
+ upload : function(element){
38
+ this.formElements = this.productForm.select('input', 'select', 'textarea', 'button');
39
+ this.removeRequire(element.readAttribute('id').sub('option_', ''));
40
+
41
+ template = '<iframe id="upload_target" name="upload_target" style="width:0; height:0; border:0;"><\/iframe>';
42
+
43
+ Element.insert($('option_'+element.readAttribute('id').sub('option_', '')+'_uploaded_file'), {after: template});
44
+
45
+ this.formAction = this.productForm.action;
46
+
47
+ var baseUrl = '<?php echo $this->getUrl('*/product/upload') ?>';
48
+ var urlExt = 'option_id/'+element.readAttribute('id').sub('option_', '');
49
+
50
+ this.productForm.action = parseSidUrl(baseUrl, urlExt);
51
+ this.productForm.target = 'upload_target';
52
+ this.productForm.submit();
53
+ this.productForm.target = '';
54
+ this.productForm.action = this.formAction;
55
+ },
56
+ removeRequire : function(skipElementId){
57
+ for(var i=0; i<this.formElements.length; i++){
58
+ if (this.formElements[i].readAttribute('id') != 'option_'+skipElementId+'_file' && this.formElements[i].type != 'button') {
59
+ this.formElements[i].disabled='disabled';
60
+ }
61
+ }
62
+ },
63
+ addRequire : function(skipElementId){
64
+ for(var i=0; i<this.formElements.length; i++){
65
+ if (this.formElements[i].readAttribute('name') != 'options_'+skipElementId+'_file' && this.formElements[i].type != 'button') {
66
+ this.formElements[i].disabled='';
67
+ }
68
+ }
69
+ },
70
+ uploadCallback : function(data){
71
+ this.addRequire(data.optionId);
72
+ $('upload_target').remove();
73
+
74
+ if (data.error) {
75
+
76
+ } else {
77
+ $('option_'+data.optionId+'_uploaded_file').value = data.fileName;
78
+ $('option_'+data.optionId+'_file').value = '';
79
+ $('option_'+data.optionId+'_file').hide();
80
+ $('option_'+data.optionId+'').hide();
81
+ template = '<div id="option_'+data.optionId+'_file_box"><a href="#"><img src="var/options/'+data.fileName+'" alt=""><\/a><a href="#" onclick="optionFileUpload.removeFile('+data.optionId+')" title="Remove file" \/>Remove file<\/a>';
82
+
83
+ Element.insert($('option_'+data.optionId+'_uploaded_file'), {after: template});
84
+ }
85
+ },
86
+ removeFile : function(optionId)
87
+ {
88
+ $('option_'+optionId+'_uploaded_file').value= '';
89
+ $('option_'+optionId+'_file').show();
90
+ $('option_'+optionId+'').show();
91
+
92
+ $('option_'+optionId+'_file_box').remove();
93
+ }
94
+ }
95
+ var optionTextCounter = {
96
+ count : function(field,cntfield,maxlimit){
97
+ if (field.value.length > maxlimit){
98
+ field.value = field.value.substring(0, maxlimit);
99
+ } else {
100
+ cntfield.innerHTML = maxlimit - field.value.length;
101
+ }
102
+ }
103
+ }
104
+
105
+ Product.Options = Class.create();
106
+ Product.Options.prototype = {
107
+ initialize : function(config) {
108
+ this.config = config;
109
+ this.reloadPrice();
110
+ document.observe("dom:loaded", this.reloadPrice.bind(this));
111
+ },
112
+ reloadPrice : function() {
113
+ var config = this.config;
114
+ var skipIds = [];
115
+ $$('body .product-custom-option').each(function(element){
116
+ var optionId = 0;
117
+ element.name.sub(/[0-9]+/, function(match){
118
+ optionId = parseInt(match[0], 10);
119
+ });
120
+ if (config[optionId]) {
121
+ var configOptions = config[optionId];
122
+ var curConfig = {price: 0};
123
+ if (element.type == 'checkbox' || element.type == 'radio') {
124
+ if (element.checked) {
125
+ if (typeof configOptions[element.getValue()] != 'undefined') {
126
+ curConfig = configOptions[element.getValue()];
127
+ }
128
+ }
129
+ } else if(element.hasClassName('datetime-picker') && !skipIds.include(optionId)) {
130
+ dateSelected = true;
131
+ $$('.product-custom-option[id^="options_' + optionId + '"]').each(function(dt){
132
+ if (dt.getValue() == '') {
133
+ dateSelected = false;
134
+ }
135
+ });
136
+ if (dateSelected) {
137
+ curConfig = configOptions;
138
+ skipIds[optionId] = optionId;
139
+ }
140
+ } else if(element.type == 'select-one' || element.type == 'select-multiple') {
141
+ if ('options' in element) {
142
+ $A(element.options).each(function(selectOption){
143
+ if ('selected' in selectOption && selectOption.selected) {
144
+ if (typeof(configOptions[selectOption.value]) != 'undefined') {
145
+ curConfig = configOptions[selectOption.value];
146
+ }
147
+ }
148
+ });
149
+ }
150
+ } else {
151
+ if (element.getValue().strip() != '') {
152
+ curConfig = configOptions;
153
+ }
154
+ }
155
+ if(element.type == 'select-multiple' && ('options' in element)) {
156
+ $A(element.options).each(function(selectOption) {
157
+ if (('selected' in selectOption) && typeof(configOptions[selectOption.value]) != 'undefined') {
158
+ if (selectOption.selected) {
159
+ curConfig = configOptions[selectOption.value];
160
+ } else {
161
+ curConfig = {price: 0};
162
+ }
163
+ optionsPrice.addCustomPrices(optionId + '-' + selectOption.value, curConfig);
164
+ optionsPrice.reload();
165
+ }
166
+ });
167
+ } else {
168
+ optionsPrice.addCustomPrices(element.id || optionId, curConfig);
169
+ optionsPrice.reload();
170
+ }
171
+ }
172
+ });
173
+ }
174
+ }
175
+ function validateOptionsCallback(elmId, result) {
176
+ var container = $(elmId).up('ul.options-list');
177
+ if (result == 'failed') {
178
+ container.removeClassName('validation-passed');
179
+ container.addClassName('validation-failed');
180
+ } else {
181
+ container.removeClassName('validation-failed');
182
+ container.addClassName('validation-passed');
183
+ }
184
+ }
185
+ var opConfig = new Product.Options(<?php echo $this->getJsonConfig() ?>);
186
+ //]]>
187
+ </script>
188
+ <dl>
189
+ <?php foreach($_options as $_option): ?>
190
+ <?php echo $this->getOptionHtml($_option) ?>
191
+ <?php endforeach; ?>
192
+ </dl>
193
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/view/options/js.phtml ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <script type="text/javascript">
28
+ //<![CDATA[
29
+ var DateOption = Class.create({
30
+
31
+ getDaysInMonth: function(month, year)
32
+ {
33
+ var curDate = new Date();
34
+ if (!month) {
35
+ month = curDate.getMonth();
36
+ }
37
+ if (2 == month && !year) { // leap year assumption for unknown year
38
+ return 29;
39
+ }
40
+ if (!year) {
41
+ year = curDate.getFullYear();
42
+ }
43
+ return 32 - new Date(year, month - 1, 32).getDate();
44
+ },
45
+
46
+ reloadMonth: function(event)
47
+ {
48
+ var selectEl = event.findElement();
49
+ var idParts = selectEl.id.split("_");
50
+ if (idParts.length != 3) {
51
+ return false;
52
+ }
53
+ var optionIdPrefix = idParts[0] + "_" + idParts[1];
54
+ var month = parseInt($(optionIdPrefix + "_month").value);
55
+ var year = parseInt($(optionIdPrefix + "_year").value);
56
+ var dayEl = $(optionIdPrefix + "_day");
57
+
58
+ var days = this.getDaysInMonth(month, year);
59
+
60
+ //remove days
61
+ for (var i = dayEl.options.length - 1; i >= 0; i--) {
62
+ if (dayEl.options[i].value > days) {
63
+ dayEl.remove(dayEl.options[i].index);
64
+ }
65
+ }
66
+
67
+ // add days
68
+ var lastDay = parseInt(dayEl.options[dayEl.options.length-1].value);
69
+ for (i = lastDay + 1; i <= days; i++) {
70
+ this.addOption(dayEl, i, i);
71
+ }
72
+ },
73
+
74
+ addOption: function(select, text, value)
75
+ {
76
+ var option = document.createElement('OPTION');
77
+ option.value = value;
78
+ option.text = text;
79
+
80
+ if (select.options.add) {
81
+ select.options.add(option);
82
+ } else {
83
+ select.appendChild(option);
84
+ }
85
+ }
86
+ });
87
+ dateOption = new DateOption();
88
+ //]]>
89
+ </script>
app/design/frontend/base/default/template/catalog/product/view/options/type/date.phtml ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $_option = $this->getOption() ?>
28
+ <?php $_optionId = $_option->getId() ?>
29
+ <dt><label<?php if ($_option->getIsRequire()) echo ' class="required"' ?>><?php if ($_option->getIsRequire()) echo '<em>*</em>' ?><?php echo $this->escapeHtml($_option->getTitle()) ?></label>
30
+ <?php echo $this->getFormatedPrice() ?></dt>
31
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
32
+
33
+ <?php if ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_DATE_TIME
34
+ || $_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_DATE): ?>
35
+
36
+ <?php echo $this->getDateHtml() ?>
37
+
38
+ <?php if (!$this->useCalendar()): ?>
39
+ <script type="text/javascript">
40
+ //<![CDATA[
41
+ Event.observe('options_<?php echo $_optionId ?>_month', 'change', dateOption.reloadMonth.bind(dateOption));
42
+ Event.observe('options_<?php echo $_optionId ?>_year', 'change', dateOption.reloadMonth.bind(dateOption));
43
+ //]]>
44
+ </script>
45
+ <?php endif; ?>
46
+
47
+ <?php endif; ?>
48
+
49
+ <?php if ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_DATE_TIME
50
+ || $_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_TIME): ?>
51
+ <span class="time-picker"><?php echo $this->getTimeHtml() ?></span>
52
+ <?php endif; ?>
53
+
54
+ <input type="hidden" name="validate_datetime_<?php echo $_optionId ?>" class="validate-datetime-<?php echo $_optionId ?>" value="" />
55
+ <script type="text/javascript">
56
+ //<![CDATA[
57
+ <?php if ($_option->getIsRequire()): ?>
58
+ Validation.addAllThese(
59
+ [
60
+ ['validate-datetime-<?php echo $_optionId ?>', '<?php echo $this->jsQuoteEscape( Mage::helper('catalog')->__('This is a required option') )?>', function(v) {
61
+ var dateTimeParts = $$('.datetime-picker[id^="options_<?php echo $_optionId ?>"]');
62
+ for (var i=0; i < dateTimeParts.length; i++) {
63
+ if (dateTimeParts[i].value == "") return false;
64
+ }
65
+ return true;
66
+ }]
67
+ ]
68
+ );
69
+ <?php else: ?>
70
+ Validation.add(
71
+ 'validate-datetime-<?php echo $_optionId ?>',
72
+ '<?php echo $this->jsQuoteEscape( Mage::helper('catalog')->__('Field is not complete') )?>',
73
+ function(v) {
74
+ var dateTimeParts = $$('.datetime-picker[id^="options_<?php echo $_optionId ?>"]');
75
+ var hasWithValue = false, hasWithNoValue = false;
76
+ var pattern = /day_part$/i;
77
+ for (var i=0; i < dateTimeParts.length; i++) {
78
+ if (! pattern.test(dateTimeParts[i].id)) {
79
+ if (dateTimeParts[i].value === "") {
80
+ hasWithValue = true;
81
+ } else {
82
+ hasWithNoValue = true;
83
+ }
84
+ }
85
+ }
86
+ return hasWithValue ^ hasWithNoValue;
87
+ }
88
+ );
89
+ <?php endif; ?>
90
+ //]]>
91
+ </script>
92
+ </dd>
app/design/frontend/base/default/template/catalog/product/view/options/type/default.phtml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $_option = $this->getOption() ?>
28
+ <dt>
29
+ <label><?php echo $this->escapeHtml($_option->getTitle()) ?></label>
30
+ </dt>
app/design/frontend/base/default/template/catalog/product/view/options/type/file.phtml ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $_option = $this->getOption(); ?>
28
+ <?php $_fileInfo = $this->getFileInfo(); ?>
29
+ <?php $_fileExists = $_fileInfo->hasData() ? true : false; ?>
30
+ <?php $_fileName = 'options_' . $_option->getId() . '_file'; ?>
31
+ <?php $_fieldNameAction = $_fileName . '_action'; ?>
32
+ <?php $_fieldValueAction = $_fileExists ? 'save_old' : 'save_new'; ?>
33
+ <?php $_fileNamed = $_fileName . '_name'; ?>
34
+ <?php $_rand = rand(); ?>
35
+
36
+ <script type="text/javascript">
37
+ //<![CDATA[
38
+ opFile<?php echo $_rand; ?> = {
39
+ initializeFile: function(inputBox) {
40
+ this.inputFile = inputBox.select('input[name="<?php echo $_fileName; ?>"]')[0];
41
+ this.inputFileAction = inputBox.select('input[name="<?php echo $_fieldNameAction; ?>"]')[0];
42
+ this.fileNameBox = inputBox.up('dd').select('.<?php echo $_fileNamed ?>')[0];
43
+ },
44
+
45
+ toggleFileChange: function(inputBox) {
46
+ this.initializeFile(inputBox);
47
+ inputBox.toggle();
48
+ this.fileChangeFlag = this.fileChangeFlag ? false : true;
49
+ if (!this.fileDeleteFlag) {
50
+ if (this.fileChangeFlag) {
51
+ this.inputFileAction.value = 'save_new';
52
+ this.inputFile.disabled = false;
53
+ } else {
54
+ this.inputFileAction.value = 'save_old';
55
+ this.inputFile.disabled = true;
56
+ }
57
+ }
58
+ },
59
+
60
+ toggleFileDelete: function(fileDeleteFlag, inputBox) {
61
+ this.initializeFile(inputBox);
62
+ this.fileDeleteFlag = fileDeleteFlag.checked ? true : false;
63
+ if (this.fileDeleteFlag) {
64
+ this.inputFileAction.value = '';
65
+ this.inputFile.disabled = true;
66
+ this.fileNameBox.setStyle({'text-decoration': 'line-through'});
67
+ } else {
68
+ this.inputFileAction.value = this.fileChangeFlag ? 'save_new' : 'save_old';
69
+ this.inputFile.disabled = (this.fileChangeFlag == 'save_old');
70
+ this.fileNameBox.setStyle({'text-decoration': 'none'});
71
+ }
72
+ }
73
+ };
74
+ //]]>
75
+ </script>
76
+
77
+ <dt><label <?php if ($_option->getIsRequire()) echo ' class="required"' ?>><?php if ($_option->getIsRequire()) echo '<em>*</em>' ?><?php echo $this->escapeHtml($_option->getTitle()) ?></label>
78
+ <?php echo $this->getFormatedPrice() ?></dt>
79
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
80
+ <?php if ($_fileExists): ?>
81
+ <span class="<?php echo $_fileNamed ?>"><?php echo $_fileInfo->getTitle(); ?></span>
82
+ <a href="javascript:void(0)" class="label" onclick="opFile<?php echo $_rand; ?>.toggleFileChange($(this).next('.input-box'))">
83
+ <?php echo Mage::helper('catalog')->__('Change') ?>
84
+ </a>&nbsp;
85
+ <?php if (!$_option->getIsRequire()): ?>
86
+ <input type="checkbox" onclick="opFile<?php echo $_rand; ?>.toggleFileDelete($(this), $(this).next('.input-box'))" />
87
+ <span class="label"><?php echo Mage::helper('catalog')->__('Delete') ?></span>
88
+ <?php endif; ?>
89
+ <?php endif; ?>
90
+ <div class="input-box" <?php echo $_fileExists ? 'style="display:none"' : '' ?>>
91
+ <input type="file" name="<?php echo $_fileName; ?>" class="product-custom-option<?php echo $_option->getIsRequire() ? ' required-entry' : '' ?>" <?php echo $_fileExists ? 'disabled="disabled"' : '' ?> onchange="opConfig.reloadPrice()" />
92
+ <input type="hidden" name="<?php echo $_fieldNameAction; ?>" value="<?php echo $_fieldValueAction; ?>" />
93
+ <?php if ($_option->getFileExtension()): ?>
94
+ <p class="no-margin"><?php echo Mage::helper('catalog')->__('Allowed file extensions to upload')?>: <strong><?php echo $_option->getFileExtension() ?></strong></p>
95
+ <?php endif; ?>
96
+ <?php if ($_option->getImageSizeX() > 0): ?>
97
+ <p class="no-margin"><?php echo Mage::helper('catalog')->__('Maximum image width')?>: <strong><?php echo $_option->getImageSizeX() ?> <?php echo Mage::helper('catalog')->__('px.')?></strong></p>
98
+ <?php endif; ?>
99
+ <?php if ($_option->getImageSizeY() > 0): ?>
100
+ <p class="no-margin"><?php echo Mage::helper('catalog')->__('Maximum image height')?>: <strong><?php echo $_option->getImageSizeY() ?> <?php echo Mage::helper('catalog')->__('px.')?></strong></p>
101
+ <?php endif; ?>
102
+ </div>
103
+ </dd>
app/design/frontend/base/default/template/catalog/product/view/options/type/select.phtml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php /* @var $this Mage_Catalog_Block_Product_View_Options_Type_Select */ ?>
29
+ <?php $_option = $this->getOption() ?>
30
+ <dt><label<?php if ($_option->getIsRequire()) echo ' class="required"' ?>><?php if ($_option->getIsRequire()) echo '<em>*</em>' ?><?php echo $this->escapeHtml($_option->getTitle()) ?></label></dt>
31
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
32
+ <div class="input-box">
33
+ <?php echo $this->getValuesHtml() ?>
34
+ <?php if ($_option->getIsRequire()): ?>
35
+ <?php if ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_RADIO || $_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_CHECKBOX): ?>
36
+ <span id="options-<?php echo $_option->getId() ?>-container"></span>
37
+ <?php endif; ?>
38
+ <?php endif;?>
39
+ </div>
40
+ </dd>
app/design/frontend/base/default/template/catalog/product/view/options/type/text.phtml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $_option = $this->getOption(); ?>
28
+ <dt><label<?php if ($_option->getIsRequire()) echo ' class="required"' ?>><?php if ($_option->getIsRequire()) echo '<em>*</em>' ?><?php echo $this->escapeHtml($_option->getTitle()) ?></label>
29
+ <?php echo $this->getFormatedPrice() ?></dt>
30
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
31
+ <div class="input-box">
32
+ <?php if ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_FIELD): ?>
33
+ <input type="text" onchange="opConfig.reloadPrice()" id="options_<?php echo $_option->getId() ?>_text" class="input-text<?php echo $_option->getIsRequire() ? ' required-entry' : '' ?> <?php echo $_option->getMaxCharacters() ? ' validate-length maximum-length-'.$_option->getMaxCharacters() : '' ?> product-custom-option" name="options[<?php echo $_option->getId() ?>]" value="<?php echo $this->escapeHtml($this->getDefaultValue()) ?>" />
34
+ <?php elseif ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_AREA): ?>
35
+ <textarea id="options_<?php echo $_option->getId() ?>_text" onchange="opConfig.reloadPrice()" class="<?php echo $_option->getIsRequire() ? ' required-entry' : '' ?> <?php echo $_option->getMaxCharacters() ? ' validate-length maximum-length-'.$_option->getMaxCharacters() : '' ?> product-custom-option" name="options[<?php echo $_option->getId() ?>]" rows="5" cols="25"><?php echo $this->escapeHtml($this->getDefaultValue()) ?></textarea>
36
+ <?php endif; ?>
37
+ <?php if ($_option->getMaxCharacters()): ?>
38
+ <p class="note"><?php echo Mage::helper('catalog')->__('Maximum number of characters:')?> <strong><?php echo $_option->getMaxCharacters() ?></strong></p>
39
+ <?php endif; ?>
40
+ </div>
41
+ </dd>
app/design/frontend/base/default/template/catalog/product/view/options/wrapper.phtml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <div class="product-options" id="product-options-wrapper">
28
+ <?php echo $this->getChildHtml('', true, true);?>
29
+ <?php if ($this->hasRequiredOptions()):?>
30
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
31
+ <?php endif;?>
32
+ </div>
33
+ <script type="text/javascript">decorateGeneric($$('#product-options-wrapper dl'), ['last']);</script>
app/design/frontend/base/default/template/catalog/product/view/options/wrapper/bottom.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <div class="product-options-bottom">
28
+ <?php echo $this->getChildHtml('', true, true);?>
29
+ </div>
app/design/frontend/base/default/template/catalog/product/view/price.phtml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @deprecated after 1.4.0.0-alpha3
29
+ */
30
+ ?>
31
+ <div class="price-box" id="product_price">
32
+ <p class="old-price"><?php echo $this->__('Old Price:') ?> <?php echo $this->getPrice() ?></p>
33
+ <p class="special-price"><?php echo $this->getPrice() ?></p>
34
+ </div>
app/design/frontend/base/default/template/catalog/product/view/price_clone.phtml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php $_product = $this->getProduct() ?>
28
+ <?php echo $this->getPriceHtml($_product, false, '_clone') ?>
app/design/frontend/base/default/template/catalog/product/view/tierprices.phtml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * @see Mage_Catalog_Block_Product_View
31
+ */
32
+ $_product = $this->getProduct();
33
+ $_tierPrices = $this->getTierPrices();
34
+ $_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(), true);
35
+
36
+ /** @var $_catalogHelper Mage_Catalog_Helper_Data */
37
+ $_catalogHelper = Mage::helper('catalog');
38
+
39
+ $_weeeTaxAmount = Mage::helper('weee')->getAmountForDisplay($_product);
40
+ if (Mage::helper('weee')->typeOfDisplay($_product, array(1,2,4))) {
41
+ $_weeeTaxAttributes = Mage::helper('weee')->getProductWeeeAttributesForDisplay($_product);
42
+ }
43
+
44
+ ?>
45
+ <?php if (count($_tierPrices) > 0): ?>
46
+ <ul class="<?php echo ($this->getInGrouped() ? 'tier-prices-grouped product-pricing-grouped' : 'tier-prices product-pricing'); ?>">
47
+ <?php if ($this->getInGrouped()): ?>
48
+ <?php $_tierPrices = $this->getTierPrices($_product); ?>
49
+ <?php endif; ?>
50
+ <?php Mage::helper('weee')->processTierPrices($_product, $_tierPrices); ?>
51
+ <?php foreach ($_tierPrices as $_index => $_price): ?>
52
+ <li class="tier-price tier-<?php echo $_index; ?>">
53
+ <?php if ($_catalogHelper->canApplyMsrp($_product)): ?>
54
+ <?php if ($this->getInGrouped()): ?>
55
+ <?php echo $this->__('Buy %1$s for', $_price['price_qty']) ?>:
56
+ <?php else: ?>
57
+ <?php echo $this->__('Buy %1$s', $_price['price_qty']) ?>
58
+ <?php endif; ?>
59
+ <?php else: ?>
60
+
61
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
62
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 0)): ?>
63
+ <?php echo $this->__('Buy %1$s for %2$s (%3$s incl. tax) each', $_price['price_qty'], $_price['formated_price_incl_weee_only'], $_price['formated_price_incl_weee']) ?>
64
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 1)): ?>
65
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
66
+ <?php if ($_weeeTaxAttributes): ?>
67
+ (<small>
68
+ <?php echo $this->__('%1$s incl tax.', $_price['formated_price_incl_weee']); ?>
69
+ <?php $separator = ' + '; foreach ($_weeeTaxAttributes as $_attribute): ?>
70
+ <?php echo $separator; ?>
71
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
72
+ <?php endforeach; ?>
73
+ </small>)
74
+ <?php endif; ?>
75
+ <?php echo $this->__('each') ?>
76
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 4)): ?>
77
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
78
+ <?php if ($_weeeTaxAttributes): ?>
79
+ (<small>
80
+ <?php echo $this->__('%1$s incl tax.', $_price['formated_price_incl_weee']); ?>
81
+ <?php $separator = ' + '; foreach ($_weeeTaxAttributes as $_attribute): ?>
82
+ <?php echo $separator; ?>
83
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()+$_attribute->getTaxAmount()); ?>
84
+ <?php endforeach; ?>
85
+ </small>)
86
+ <?php endif; ?>
87
+ <?php echo $this->__('each') ?>
88
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 2)): ?>
89
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price']); ?>
90
+ <?php if ($_weeeTaxAttributes): ?>
91
+ (<small>
92
+ <?php foreach ($_weeeTaxAttributes as $_attribute): ?>
93
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
94
+ <?php endforeach; ?>
95
+ <?php echo $this->__('Total incl. Tax: %1$s', $_price['formated_price_incl_weee']); ?>
96
+ </small>)
97
+ <?php endif; ?>
98
+ <?php echo $this->__('each') ?>
99
+ <?php else: ?>
100
+ <?php echo $this->__('Buy %1$s for %2$s (%3$s incl. tax) each', $_price['price_qty'], $_price['formated_price'], $_price['formated_price_incl_tax']) ?>
101
+ <?php endif; ?>
102
+ <?php else: ?>
103
+ <?php if ($this->helper('tax')->displayPriceIncludingTax()): ?>
104
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 0)): ?>
105
+ <?php echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_weee']) ?>
106
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 1)): ?>
107
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee']); ?>
108
+ <?php if ($_weeeTaxAttributes): ?>
109
+ (<small>
110
+ <?php $separator = ''; foreach ($_weeeTaxAttributes as $_attribute): ?>
111
+ <?php echo $separator; ?>
112
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
113
+ <?php $separator = ' + '; endforeach; ?>
114
+ </small>)
115
+ <?php endif; ?>
116
+ <?php echo $this->__('each') ?>
117
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 4)): ?>
118
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee']); ?>
119
+ <?php if ($_weeeTaxAttributes): ?>
120
+ (<small>
121
+ <?php $separator = ''; foreach ($_weeeTaxAttributes as $_attribute): ?>
122
+ <?php echo $separator; ?>
123
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()+$_attribute->getTaxAmount()); ?>
124
+ <?php $separator = ' + '; endforeach; ?>
125
+ </small>)
126
+ <?php endif; ?>
127
+ <?php echo $this->__('each') ?>
128
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 2)): ?>
129
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_tax']); ?>
130
+ <?php if ($_weeeTaxAttributes): ?>
131
+ (<small>
132
+ <?php foreach ($_weeeTaxAttributes as $_attribute): ?>
133
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
134
+ <?php endforeach; ?>
135
+ <?php echo $this->__('Total incl. Tax: %1$s', $_price['formated_price_incl_weee']); ?>
136
+ </small>)
137
+ <?php endif; ?>
138
+ <?php echo $this->__('each') ?>
139
+ <?php else: ?>
140
+ <?php echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_tax']) ?>
141
+ <?php endif; ?>
142
+ <?php else: ?>
143
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 0)): ?>
144
+ <?php echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_weee_only']) ?>
145
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 1)): ?>
146
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
147
+ <?php if ($_weeeTaxAttributes): ?>
148
+ (<small>
149
+ <?php $separator = ''; foreach ($_weeeTaxAttributes as $_attribute): ?>
150
+ <?php echo $separator; ?>
151
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
152
+ <?php $separator = ' + '; endforeach; ?>
153
+ </small>)
154
+ <?php endif; ?>
155
+ <?php echo $this->__('each') ?>
156
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 4)): ?>
157
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
158
+ <?php if ($_weeeTaxAttributes): ?>
159
+ (<small>
160
+ <?php $separator = ''; foreach ($_weeeTaxAttributes as $_attribute): ?>
161
+ <?php echo $separator; ?>
162
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()+$_attribute->getTaxAmount()); ?>
163
+ <?php $separator = ' + '; endforeach; ?>
164
+ </small>)
165
+ <?php endif; ?>
166
+ <?php echo $this->__('each') ?>
167
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 2)): ?>
168
+ <?php echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price']); ?>
169
+ <?php if ($_weeeTaxAttributes): ?>
170
+ (<small>
171
+ <?php foreach ($_weeeTaxAttributes as $_attribute): ?>
172
+ <?php echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
173
+ <?php endforeach; ?>
174
+ <?php echo $this->__('Total incl. Tax: %1$s', $_price['formated_price_incl_weee_only']); ?>
175
+ </small>)
176
+ <?php endif; ?>
177
+ <?php echo $this->__('each') ?>
178
+ <?php else: ?>
179
+ <?php echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price']) ?>
180
+ <?php endif; ?>
181
+ <?php endif; ?>
182
+ <?php endif; ?>
183
+
184
+ <?php endif; // Can apply MSRP ?>
185
+
186
+ <?php if (!$this->getInGrouped()): ?>
187
+ <?php if(($_product->getPrice() == $_product->getFinalPrice() && $_product->getPrice() > $_price['price'])
188
+ || ($_product->getPrice() != $_product->getFinalPrice() && $_product->getFinalPrice() > $_price['price'])): ?>
189
+ <?php echo $this->__('and') ?>&nbsp;<strong class="benefit"><?php echo $this->__('save')?>&nbsp;<span class="percent tier-<?php echo $_index;?>"><?php echo $_price['savePercent']?></span>%
190
+ <?php endif ?></strong>
191
+ <?php endif; ?>
192
+
193
+ <?php if ($_catalogHelper->isShowPriceOnGesture($_product)):?>
194
+ <?php $popupId = 'msrp-popup-' . $_product->getId() . $this->helper('core')->getRandomString(20); ?>
195
+ <a href="#" id="<?php echo($popupId);?>"><?php echo $this->__('Click for price'); ?></a>
196
+ <script type="text/javascript">
197
+ <?php
198
+ $addToCartUrl = $this->getProduct()->isSalable()
199
+ ? $this->getAddToCartUrl($_product, array('qty' => $_price['price_qty']))
200
+ : '';
201
+ ?>
202
+ <?php if (!$this->getInGrouped()): ?>
203
+ var newLink = {
204
+ url: "<?php echo $addToCartUrl; ?>",
205
+ qty: "<?php echo $_price['price_qty']?>"
206
+ };
207
+ <?php else: ?>
208
+ var newLink = {
209
+ url: "<?php echo $addToCartUrl; ?>",
210
+ notUseForm: true
211
+ };
212
+ <?php endif ?>
213
+ Catalog.Map.addHelpLink(
214
+ $('<?php echo $popupId ?>'),
215
+ "<?php echo $_product->getName() ?>",
216
+ <?php echo json_encode($_price['real_price_html']) ?>,
217
+ "<?php echo $this->helper('core')->currency($_product->getMsrp(),true,false) ?>",
218
+ newLink
219
+ );
220
+ </script>
221
+ <?php else: ?>
222
+ <span class="msrp-price-hide-message">
223
+ <?php echo $_catalogHelper->getMsrpPriceMessage($_product) ?>
224
+ </span>
225
+ <?php endif; ?>
226
+
227
+
228
+ </li>
229
+
230
+ <?php endforeach ?>
231
+ </ul>
232
+ <?php endif;?>
app/design/frontend/base/default/template/catalog/product/view/type/configurable.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * @deprecated after 1.4.1.0 in favor of default.phtml
30
+ */
31
+ ?>
app/design/frontend/base/default/template/catalog/product/view/type/default.phtml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php /* @var $this Mage_Catalog_Block_Product_View_Abstract */?>
28
+ <?php $_product = $this->getProduct() ?>
29
+
30
+ <?php if ($this->displayProductStockStatus()): ?>
31
+ <?php if ($_product->isAvailable()): ?>
32
+ <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
33
+ <?php else: ?>
34
+ <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
35
+ <?php endif; ?>
36
+ <?php endif; ?>
37
+ <?php echo $this->getChildHtml('product_type_data_extra') ?>
38
+ <?php echo $this->getPriceHtml($_product) ?>
app/design/frontend/base/default/template/catalog/product/view/type/grouped.phtml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Grouped product data template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View_Media
31
+ * @see Mage_Catalog_Block_Product_View_Type_Grouped
32
+ */
33
+ ?>
34
+ <?php $this->setPreconfiguredValue(); ?>
35
+ <?php $_product = $this->getProduct(); ?>
36
+ <?php $_associatedProducts = $this->getAssociatedProducts(); ?>
37
+ <?php $_hasAssociatedProducts = count($_associatedProducts) > 0; ?>
38
+ <?php if ($this->displayProductStockStatus()): ?>
39
+ <?php if ($_product->isAvailable() && $_hasAssociatedProducts): ?>
40
+ <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
41
+ <?php else: ?>
42
+ <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
43
+ <?php endif; ?>
44
+ <?php endif; ?>
45
+ <?php echo $this->getChildHtml('product_type_data_extra') ?>
46
+ <table class="data-table grouped-items-table" id="super-product-table">
47
+ <col />
48
+ <col />
49
+ <col width="1" />
50
+ <thead>
51
+ <tr>
52
+ <th><?php echo $this->__('Product Name') ?></th>
53
+ <?php if ($this->getCanShowProductPrice($_product)): ?>
54
+ <th class="a-right"><?php echo $this->__('Price') ?></th>
55
+ <?php endif; ?>
56
+ <?php if ($_product->isSaleable()): ?>
57
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
58
+ <?php endif; ?>
59
+ </tr>
60
+ </thead>
61
+ <tbody>
62
+ <?php if ($_hasAssociatedProducts): ?>
63
+ <?php foreach ($_associatedProducts as $_item): ?>
64
+ <?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_item, $_item->getFinalPrice(), true) ?>
65
+ <tr>
66
+ <td><?php echo $this->escapeHtml($_item->getName()) ?></td>
67
+ <?php if ($this->getCanShowProductPrice($_product)): ?>
68
+ <td class="a-right">
69
+ <?php if ($this->getCanShowProductPrice($_item)): ?>
70
+ <?php echo $this->getPriceHtml($_item, true) ?>
71
+ <?php echo $this->getTierPriceHtml($_item) ?>
72
+ <?php endif; ?>
73
+ </td>
74
+ <?php endif; ?>
75
+ <?php if ($_product->isSaleable()): ?>
76
+ <td class="a-center">
77
+ <?php if ($_item->isSaleable()) : ?>
78
+ <input type="text" name="super_group[<?php echo $_item->getId() ?>]" maxlength="12" value="<?php echo $_item->getQty()*1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
79
+ <?php else: ?>
80
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
81
+ <?php endif; ?>
82
+ </td>
83
+ <?php endif; ?>
84
+ </tr>
85
+ <?php endforeach; ?>
86
+ <?php else: ?>
87
+ <tr>
88
+ <td colspan="<?php if ($_product->isSaleable()): ?>4<?php else : ?>3<?php endif; ?>"><?php echo $this->__('No options of this product are available.') ?></td>
89
+ </tr>
90
+ <?php endif; ?>
91
+ </tbody>
92
+ </table>
93
+ <script type="text/javascript">decorateTable('super-product-table')</script>
app/design/frontend/base/default/template/catalog/product/view/type/options/configurable.phtml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ $_product = $this->getProduct();
30
+ $_attributes = Mage::helper('core')->decorateArray($this->getAllowAttributes());
31
+ ?>
32
+ <?php if ($_product->isSaleable() && count($_attributes)):?>
33
+ <dl>
34
+ <?php foreach($_attributes as $_attribute): ?>
35
+ <dt><label class="required"><em>*</em><?php echo $_attribute->getLabel() ?></label></dt>
36
+ <dd<?php if ($_attribute->decoratedIsLast){?> class="last"<?php }?>>
37
+ <div class="input-box">
38
+ <select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?>" class="required-entry super-attribute-select">
39
+ <option><?php echo $this->__('Choose an Option...') ?></option>
40
+ </select>
41
+ </div>
42
+ </dd>
43
+ <?php endforeach; ?>
44
+ </dl>
45
+ <script type="text/javascript">
46
+ var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);
47
+ </script>
48
+ <?php endif;?>
app/design/frontend/base/default/template/catalog/product/view/type/simple.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * @deprecated after 1.4.1.0 in favor of default.phtml
30
+ */
31
+ ?>
app/design/frontend/base/default/template/catalog/product/view/type/virtual.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * @deprecated after 1.4.1.0 in favor of default.phtml
30
+ */
31
+ ?>
app/design/frontend/base/default/template/catalog/product/widget/link/link_block.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <span class="widget widget-product-link"><a <?php echo $this->getLinkAttributes() ?>><span><?php echo $this->escapeHtml($this->getAnchorText()) ?></span></a></span>
app/design/frontend/base/default/template/catalog/product/widget/link/link_inline.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <span class="widget widget-product-link-inline"><a <?php echo $this->getLinkAttributes() ?>><span><?php echo $this->escapeHtml($this->getAnchorText()) ?></span></a></span>
app/design/frontend/base/default/template/catalog/product/widget/new/column/new_default_list.phtml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="block block-products">
30
+ <div class="block-title">
31
+ <strong><span><?php echo $this->__('New Products') ?></span></strong>
32
+ </div>
33
+ <div class="block-content">
34
+ <?php echo $this->getPagerHtml() ?>
35
+ <?php $suffix = $this->getNameInLayout(); ?>
36
+ <ol class="mini-products-list" id="widget-new-products-<?php echo $suffix; ?>">
37
+ <?php foreach ($_products->getItems() as $_product): ?>
38
+ <li class="item">
39
+ <a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(50) ?>" width="50" height="50" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
40
+ <div class="product-details">
41
+ <p class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></p>
42
+ <?php echo $this->getPriceHtml($_product, true, '-widget-new-'.$suffix) ?>
43
+ <?php if ($_product->getIsSalable()): ?>
44
+ <a href="<?php echo $this->getAddToCartUrl($_product) ?>" class="link-cart"><?php echo $this->__('Add to Cart') ?></a>
45
+ <?php else: ?>
46
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
47
+ <?php endif; ?>
48
+ </div>
49
+ </li>
50
+ <?php endforeach; ?>
51
+ </ol>
52
+ <script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/widget/new/column/new_images_list.phtml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="block block-list">
30
+ <div class="block-title">
31
+ <strong><span><?php echo $this->__('New Products') ?></span></strong>
32
+ </div>
33
+ <div class="block-content">
34
+ <?php echo $this->getPagerHtml() ?>
35
+ <?php $suffix = $this->getNameInLayout(); ?>
36
+ <ol class="mini-products-images-list" id="widget-new-products-<?php echo $suffix; ?>">
37
+ <?php foreach ($_products->getItems() as $_product): ?>
38
+ <li class="item">
39
+ <a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(76) ?>" width="76" height="76" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
40
+ </li>
41
+ <?php endforeach; ?>
42
+ </ol>
43
+ <script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/widget/new/column/new_names_list.phtml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="block block-list">
30
+ <div class="block-title">
31
+ <strong><span><?php echo $this->__('New Products') ?></span></strong>
32
+ </div>
33
+ <div class="block-content">
34
+ <?php echo $this->getPagerHtml() ?>
35
+ <?php $suffix = $this->getNameInLayout(); ?>
36
+ <ol id="widget-new-products-<?php echo $suffix; ?>">
37
+ <?php foreach ($_products->getItems() as $_product): ?>
38
+ <li class="item">
39
+ <p class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></p>
40
+ </li>
41
+ <?php endforeach; ?>
42
+ </ol>
43
+ <script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/widget/new/content/new_grid.phtml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="widget-title">
30
+ <h2><?php echo $this->__('New Products') ?></h2>
31
+ </div>
32
+ <div class="widget-products">
33
+ <?php echo $this->getPagerHtml() ?>
34
+ <?php $_columnCount = $this->getColumnCount(); ?>
35
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
36
+ <?php if ($i++%$_columnCount==0): ?>
37
+ <ul class="products-grid">
38
+ <?php endif ?>
39
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
40
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(85) ?>" width="85" height="85" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
41
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></h3>
42
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
43
+ <?php echo $this->getPriceHtml($_product, true, '-widget-new-grid') ?>
44
+ <div class="actions">
45
+ <?php if ($_product->isSaleable()): ?>
46
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
47
+ <?php else: ?>
48
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
49
+ <?php endif; ?>
50
+ <ul class="add-to-links">
51
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
52
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
53
+ <?php endif; ?>
54
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
55
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
56
+ <?php endif; ?>
57
+ </ul>
58
+ </div>
59
+ </li>
60
+ <?php if ($i%$_columnCount==0 || $i==count($_products)): ?>
61
+ </ul>
62
+ <?php endif ?>
63
+ <?php endforeach; ?>
64
+ </div>
65
+ </div>
66
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/product/widget/new/content/new_list.phtml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="widget-title">
30
+ <h2><?php echo $this->__('New Products') ?></h2>
31
+ </div>
32
+ <div class="widget-products">
33
+ <?php echo $this->getPagerHtml() ?>
34
+ <ol class="products-list">
35
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
36
+ <li class="item<?php echo (++$i == count($_products))?' last':''; ?>">
37
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(85) ?>" width="85" height="85" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
38
+ <div class="product-shop">
39
+ <div class="f-fix">
40
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></h3>
41
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
42
+ <?php echo $this->getPriceHtml($_product, true, '-widget-new-list') ?>
43
+ <?php if ($_product->isSaleable()): ?>
44
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
45
+ <?php else: ?>
46
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
47
+ <?php endif; ?>
48
+ <ul class="add-to-links">
49
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
50
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
51
+ <?php endif; ?>
52
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
53
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
54
+ <?php endif; ?>
55
+ </ul>
56
+ </div>
57
+ </div>
58
+ </li>
59
+ <?php endforeach; ?>
60
+ </ol>
61
+ </div>
62
+ </div>
63
+ <?php endif; ?>
app/design/frontend/base/default/template/catalog/rss/product/price.phtml ADDED
@@ -0,0 +1,449 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * Template for displaying product price in RSS feeds
31
+ *
32
+ * @see Mage_Catalog_Block_Product_Price
33
+ */
34
+ ?>
35
+
36
+ <?php
37
+ /* @var $_coreHelper Mage_Core_Helper_Data */
38
+ /* @var $_weeeHelper Mage_Weee_Helper_Data */
39
+ /* @var $_taxHelper Mage_Tax_Helper_Data */
40
+ $_coreHelper = $this->helper('core');
41
+ $_weeeHelper = $this->helper('weee');
42
+ $_taxHelper = $this->helper('tax');
43
+
44
+ $_product = $this->getProduct();
45
+ $_storeId = $_product->getStoreId();
46
+ $_store = $_product->getStore();
47
+ $_id = $_product->getId();
48
+ $_weeeSeparator = '';
49
+ $_simplePricesTax = ($_taxHelper->displayPriceIncludingTax() || $_taxHelper->displayBothPrices());
50
+ $_minimalPriceValue = $_product->getMinimalPrice();
51
+ $_minimalPriceValue = $_store->roundPrice($_store->convertPrice($_minimalPriceValue));
52
+ $_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
53
+ $_convertedFinalPrice = $_store->roundPrice($_store->convertPrice($_product->getFinalPrice()));
54
+ $_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStoreLabel();
55
+ ?>
56
+
57
+ <?php if ($_product->getCanShowPrice() !== false): ?>
58
+
59
+ <?php $_weeeSeparator = ''; ?>
60
+
61
+
62
+ <?php if (!$_product->isGrouped()): ?>
63
+ <?php $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product); ?>
64
+ <?php $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true); ?>
65
+ <?php $_weeeTaxAmountInclTaxes = $_weeeTaxAmount; ?>
66
+ <?php if ($_weeeHelper->isTaxable()): ?>
67
+ <?php $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_weeeTaxAttributes); ?>
68
+ <?php endif; ?>
69
+ <?php $_weeeTaxAmount = $_store->roundPrice($_store->convertPrice($_weeeTaxAmount)); ?>
70
+ <?php $_weeeTaxAmountInclTaxes = $_store->roundPrice($_store->convertPrice($_weeeTaxAmountInclTaxes)); ?>
71
+
72
+ <div class="price-box">
73
+ <?php $_convertedPrice = $_store->roundPrice($_store->convertPrice($_product->getPrice())); ?>
74
+ <?php $_price = $_taxHelper->getPrice($_product, $_convertedPrice); ?>
75
+ <?php $_regularPrice = $_taxHelper->getPrice($_product, $_convertedPrice, $_simplePricesTax); ?>
76
+ <?php $_finalPrice = $_taxHelper->getPrice($_product, $_convertedFinalPrice) ?>
77
+ <?php $_finalPriceInclTax = $_taxHelper->getPrice($_product, $_convertedFinalPrice, true) ?>
78
+ <?php $_weeeDisplayType = $_weeeHelper->getPriceDisplayType(); ?>
79
+
80
+ <?php if ($_finalPrice == $_price): ?>
81
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
82
+ <?php if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 0)): // including ?>
83
+ <span class="price-excluding-tax">
84
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
85
+ <span class="price"
86
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price + $_weeeTaxAmount, true, false) ?></span>
87
+ </span>
88
+ <span class="price-including-tax">
89
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
90
+ <span class="price"
91
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?></span>
92
+ </span>
93
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 1)): // incl. + weee ?>
94
+ <span class="price-excluding-tax">
95
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
96
+ <span class="price"
97
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price + $_weeeTaxAmount, true, false) ?></span>
98
+ <br/>
99
+ <span class="weee">(<small>
100
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
101
+ <?php echo $_weeeSeparator; ?>
102
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
103
+ <?php $_weeeSeparator = ' + '; ?>
104
+ <?php endforeach; ?>
105
+ </small>)</span>
106
+ </span>
107
+ <span class="price-including-tax">
108
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
109
+ <span class="price"
110
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?></span>
111
+ </span>
112
+
113
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 4)): // incl. + weee ?>
114
+ <span class="price-excluding-tax">
115
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
116
+ <span class="price"
117
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price + $_weeeTaxAmount, true, false) ?></span>
118
+ </span>
119
+ <span class="price-including-tax">
120
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
121
+ <span class="price"
122
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?></span>
123
+ <br/>
124
+ <span class="weee">(<small>
125
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
126
+ <?php echo $_weeeSeparator; ?>
127
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
128
+ <?php $_weeeSeparator = ' + '; ?>
129
+ <?php endforeach; ?>
130
+ </small>)</span>
131
+ </span>
132
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
133
+ <span class="price-excluding-tax">
134
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
135
+ <span class="price"
136
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price, true, false) ?></span>
137
+ </span>
138
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
139
+ <span class="weee">
140
+ <small>
141
+ <?php echo $_weeeTaxAttribute->getName(); ?>
142
+ : <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
143
+ </small>
144
+ </span>
145
+ <br/>
146
+ <?php endforeach; ?>
147
+ <span class="price-including-tax">
148
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
149
+ <span class="price"
150
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?></span>
151
+ </span>
152
+ <?php else: ?>
153
+ <span class="price-excluding-tax">
154
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
155
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
156
+ <?php if ($_finalPrice == $_price): ?>
157
+ <?php echo $_coreHelper->formatPrice($_price, false) ?>
158
+ <?php else: ?>
159
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
160
+ <?php endif; ?>
161
+ </span>
162
+ </span>
163
+ <span class="price-including-tax">
164
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
165
+ <span class="price"
166
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax, true, false) ?></span>
167
+ </span>
168
+ <?php endif; ?>
169
+ <?php else: ?>
170
+ <?php if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 0)): // including ?>
171
+ <?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
172
+ <span class="regular-price"
173
+ id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price + $weeeAmountToDisplay, true, true) ?></span>
174
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 1)): // incl. + weee ?>
175
+ <?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
176
+ <span class="regular-price"
177
+ id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price + $weeeAmountToDisplay, true, true) ?></span>
178
+ <br/>
179
+ <span class="weee">(<small>
180
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
181
+ <?php echo $_weeeSeparator; ?>
182
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + ($_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAttribute->getTaxAmount() : 0), true, true); ?>
183
+ <?php $_weeeSeparator = ' + '; ?>
184
+ <?php endforeach; ?>
185
+ </small>)</span>
186
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 4)): // incl. + weee ?>
187
+ <span class="regular-price"
188
+ id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price + $_weeeTaxAmount, true, true) ?></span>
189
+ <br/>
190
+ <span class="weee">(<small>
191
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
192
+ <?php echo $_weeeSeparator; ?>
193
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
194
+ <?php $_weeeSeparator = ' + '; ?>
195
+ <?php endforeach; ?>
196
+ </small>)</span>
197
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
198
+ <?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
199
+ <span class="regular-price"><?php echo Mage::helper('core')->currency($_price, true, true) ?></span>
200
+ <br/>
201
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
202
+ <span class="weee">
203
+ <small>
204
+ <?php echo $_weeeTaxAttribute->getName(); ?>
205
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + ($_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAttribute->getTaxAmount() : 0), true, true); ?>
206
+ </small>
207
+ </span>
208
+ <br/>
209
+ <?php endforeach; ?>
210
+ <span class="regular-price"
211
+ id="product-price-weee-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price + $weeeAmountToDisplay, true, true) ?></span>
212
+ <?php else: ?>
213
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
214
+ <?php if ($_finalPrice == $_price): ?>
215
+ <?php echo $_coreHelper->formatPrice($_price, true) ?>
216
+ <?php else: ?>
217
+ <?php echo $_coreHelper->formatPrice($_finalPrice, true) ?>
218
+ <?php endif; ?>
219
+ </span>
220
+ <?php endif; ?>
221
+ <?php endif; ?>
222
+ <?php else: /* if ($_finalPrice == $_price): */ ?>
223
+ <?php $_originalWeeeTaxAmount = $_weeeHelper->getOriginalAmount($_product); ?>
224
+ <?php $_originalWeeeTaxAmount = $_store->roundPrice($_store->convertPrice($_originalWeeeTaxAmount)) ?>
225
+
226
+ <?php if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 0)): // including ?>
227
+ <p class="old-price">
228
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
229
+ <span class="price"
230
+ id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?></span>
231
+ </p>
232
+
233
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
234
+ <p class="special-price">
235
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
236
+ <span class="price-excluding-tax">
237
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
238
+ <span class="price"
239
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice + $_weeeTaxAmount, true, false) ?></span>
240
+ </span>
241
+ <span class="price-including-tax">
242
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
243
+ <span class="price"
244
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?></span>
245
+ </span>
246
+ </p>
247
+ <?php else: ?>
248
+ <p class="special-price">
249
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
250
+ <span class="price"
251
+ id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice + $_weeeTaxAmountInclTaxes, true, false) ?></span>
252
+ </p>
253
+ <?php endif; ?>
254
+
255
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 1)): // incl. + weee ?>
256
+ <p class="old-price">
257
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
258
+ <span class="price"
259
+ id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?></span>
260
+ </p>
261
+
262
+ <p class="special-price">
263
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
264
+ <?php if ($_taxHelper->displayBothPrices()): ?>
265
+
266
+ <span class="price-excluding-tax">
267
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
268
+ <span class="price"
269
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice + $_weeeTaxAmount, true, false) ?></span>
270
+ </span>
271
+ <br/>
272
+ <span class="weee">(
273
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
274
+ <?php echo $_weeeSeparator; ?>
275
+ <?php echo $_weeeTaxAttribute->getName(); ?>
276
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
277
+ <?php $_weeeSeparator = ' + '; ?>
278
+ <?php endforeach; ?>
279
+ )</span>
280
+
281
+ <span class="price-including-tax">
282
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
283
+ <span class="price"
284
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?></span>
285
+ </span>
286
+ <?php else: ?>
287
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
288
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmountInclTaxes, false) ?>
289
+ </span>
290
+ </p>
291
+ <span class="weee">(
292
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
293
+ <?php echo $_weeeSeparator; ?>
294
+ <?php echo $_weeeTaxAttribute->getName(); ?>
295
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
296
+ <?php $_weeeSeparator = ' + '; ?>
297
+ <?php endforeach; ?>
298
+ )</span>
299
+
300
+ <?php endif; ?>
301
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 4)): // incl. + weee ?>
302
+ <p class="old-price">
303
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
304
+ <span class="price"
305
+ id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?></span>
306
+ </p>
307
+
308
+ <p class="special-price">
309
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
310
+ <span class="price-excluding-tax">
311
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
312
+ <span class="price"
313
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice + $_weeeTaxAmount, true, false) ?></span>
314
+ </span>
315
+ <br/>
316
+ <span class="weee">(<small>
317
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
318
+ <?php echo $_weeeSeparator; ?>
319
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
320
+ <?php $_weeeSeparator = ' + '; ?>
321
+ <?php endforeach; ?>
322
+ </small>)</span>
323
+ <span class="price-including-tax">
324
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
325
+ <span class="price"
326
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax + $_weeeTaxAmount, true, false) ?></span>
327
+ </span>
328
+ </p>
329
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
330
+ <p class="old-price">
331
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
332
+ <span class="price"
333
+ id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice, true, false) ?></span>
334
+ </p>
335
+
336
+ <p class="special-price">
337
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
338
+ <span class="price-excluding-tax">
339
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
340
+ <span class="price"
341
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice, true, false) ?></span>
342
+ </span>
343
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
344
+ <span class="weee">
345
+ <small>
346
+ <?php echo $_weeeTaxAttribute->getName(); ?>
347
+ : <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
348
+ </small>
349
+ </span>
350
+ <br/>
351
+ <?php endforeach; ?>
352
+ <span class="price-including-tax">
353
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
354
+ <span class="price"
355
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?></span>
356
+ </span>
357
+ </p>
358
+ <?php else: // excl. ?>
359
+ <p class="old-price">
360
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
361
+ <span class="price"
362
+ id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice, true, false) ?></span>
363
+ </p>
364
+
365
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
366
+ <p class="special-price">
367
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
368
+ <span class="price-excluding-tax">
369
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
370
+ <span class="price"
371
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice, true, false) ?></span>
372
+ </span>
373
+ <span class="price-including-tax">
374
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
375
+ <span class="price"
376
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax, true, false) ?></span>
377
+ </span>
378
+ </p>
379
+ <?php else: ?>
380
+ <p class="special-price">
381
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
382
+ <span class="price"
383
+ id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice, true, false) ?></span>
384
+ </p>
385
+ <?php endif; ?>
386
+ <?php endif; ?>
387
+
388
+ <?php endif; /* if ($_finalPrice == $_price): */ ?>
389
+
390
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_product->getFinalPrice()): ?>
391
+
392
+ <?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
393
+ <?php if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, array(0, 1, 4))): ?>
394
+ <?php $_minimalPriceDisplayValue = $_minimalPrice + $_weeeTaxAmount; ?>
395
+ <?php endif; ?>
396
+
397
+ <?php if ($this->getUseLinkForAsLowAs()): ?>
398
+ <a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
399
+ <?php else: ?>
400
+ <span class="minimal-price-link">
401
+ <?php endif ?>
402
+ <span class="label"><?php echo $this->__('As low as:') ?></span>
403
+ <span class="price"
404
+ id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_minimalPriceDisplayValue, true, false) ?></span>
405
+ <?php if ($this->getUseLinkForAsLowAs()): ?>
406
+ </a>
407
+ <?php else: ?>
408
+ </span>
409
+ <?php endif ?>
410
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
411
+ </div>
412
+
413
+ <?php else: /* if (!$_product->isGrouped()): */ ?>
414
+ <?php
415
+ $_exclTax = $this->helper('tax')->getPrice($_product, $_minimalPriceValue, $includingTax = null);
416
+ $_inclTax = $this->helper('tax')->getPrice($_product, $_minimalPriceValue, $includingTax = true);
417
+ ?>
418
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue): ?>
419
+ <div class="price-box">
420
+ <p class="minimal-price">
421
+ <span class="price-label"><?php echo $this->__('Starting at:') ?></span>
422
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
423
+ <span class="price-excluding-tax">
424
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
425
+ <span class="price"
426
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_exclTax, true, false) ?></span>
427
+ </span>
428
+ <span class="price-including-tax">
429
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
430
+ <span class="price"
431
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_inclTax, true, false) ?></span>
432
+ </span>
433
+ <?php else: ?>
434
+ <?php
435
+ $_showPrice = $_inclTax;
436
+ if (!$this->helper('tax')->displayPriceIncludingTax()) {
437
+ $_showPrice = $_exclTax;
438
+ }
439
+ ?>
440
+ <span class="price"
441
+ id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_showPrice, true, false) ?></span>
442
+ <?php endif; ?>
443
+ </p>
444
+ </div>
445
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
446
+ <?php endif; /* if (!$_product->isGrouped()): */ ?>
447
+ <?php else: ?>
448
+ <?php //echo $this->helper('catalog')->__('Price is not available');?>
449
+ <?php endif; /* if (!$_product->getCanShowPrice()): */ ?>
app/design/frontend/base/default/template/catalog/seo/sitemap.phtml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * @see Mage_Catalog_Block_Seo_Sitemap_
30
+ */
31
+ ?>
32
+ <?php $_items = $this->getCollection(); ?>
33
+ <?php if($_items->getSize()): ?>
34
+ <ul class="sitemap">
35
+ <?php foreach ($_items as $_item): ?>
36
+ <li><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $this->escapeHtml($_item->name) ?></a></li>
37
+ <?php endforeach; ?>
38
+ </ul>
39
+ <?php else: ?>
40
+ <p class="note-msg">
41
+ <?php echo $this->__('There are no %s available.', $this->getItemsTitle()); ?>
42
+ </p>
43
+ <script type="text/javascript">
44
+ //<![CDATA[
45
+ if ($('sitemap_top_links') != undefined) {
46
+ $('sitemap_top_links').hide();
47
+ }
48
+ //]]>
49
+ </script>
50
+ <?php endif ?>
app/design/frontend/base/default/template/catalog/seo/sitemap/container.phtml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <div class="page-sitemap">
28
+ <div class="page-title">
29
+ <h1><?php echo $this->getTitle() ?></h1>
30
+ </div>
31
+ <div id="sitemap_top_links">
32
+ <?php echo $this->getChildHtml('links') ?>
33
+ </div>
34
+ <?php echo $this->getChildHtml('pager_top') ?>
35
+ <?php echo $this->getChildHtml('sitemap') ?>
36
+ <?php echo $this->getChildHtml('links') ?>
37
+ <?php echo $this->getChildHtml('pager_bottom') ?>
38
+ </div>
app/design/frontend/base/default/template/catalog/seo/tree.phtml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * @see Mage_Catalog_Block_Seo_Sitemap_
30
+ */
31
+ ?>
32
+ <?php $_items = $this->getCollection(); ?>
33
+ <?php if($_items->getSize()): ?>
34
+ <ul class="sitemap">
35
+ <?php foreach ($_items as $_item): ?>
36
+ <li class="level-<?php echo $this->getLevel($_item) ?>" <?php echo $this->getLevel($_item)?'style="padding-left:' . $this->getLevel($_item, 2) . '0px;"':'' ?>><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $_item->name ?></a></li>
37
+ <?php endforeach; ?>
38
+ </ul>
39
+ <?php else: ?>
40
+ <p class="note-msg">
41
+ <?php echo $this->__('There are no %s available.', $this->getItemsTitle()); ?>
42
+ </p>
43
+ <?php endif ?>
app/design/frontend/base/default/template/cataloginventory/qtyincrements.phtml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @see Mage_CatalogInventory_Block_Qtyincrements
29
+ */
30
+ ?>
31
+ <?php if ($this->getProductQtyIncrements()) : ?>
32
+ <div class="product-pricing">
33
+ <?php echo $this->__('%s is available for purchase in increments of %s', $this->getProductName(), $this->getProductQtyIncrements()) ?>
34
+ </div>
35
+ <?php endif ?>
app/design/frontend/base/default/template/cataloginventory/stockqty/composite.phtml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @see Mage_CatalogInventory_Block_Stockqty_Composite
29
+ */
30
+ ?>
31
+ <?php if($this->isMsgVisible()): ?>
32
+ <p class="availability-only">
33
+ <a href="#" id="<?php echo $this->getPlaceholderId() ?>" title="<?php echo $this->__('Only %s left', ($this->getStockQty())) ?>"><?php echo $this->__('Only %s left', "<strong>{$this->getStockQty()}</strong>") ?></a>
34
+ </p>
35
+ <table id="<?php echo $this->getDetailsPlaceholderId() ?>" class="availability-only-details no-display">
36
+ <col />
37
+ <col width="1" />
38
+ <thead>
39
+ <tr>
40
+ <th><?php echo $this->__('Product Name') ?></th>
41
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
42
+ </tr>
43
+ </thead>
44
+ <tbody>
45
+ <?php foreach ($this->getChildProducts() as $childProduct) : ?>
46
+ <?php $childProductStockQty = $this->getProductStockQty($childProduct); ?>
47
+ <?php if ($childProductStockQty > 0) : ?>
48
+ <tr>
49
+ <td><?php echo $childProduct->getName() ?></td>
50
+ <td class="a-center"><?php echo $childProductStockQty ?></td>
51
+ </tr>
52
+ <?php endif ?>
53
+ <?php endforeach ?>
54
+ </tbody>
55
+ </table>
56
+ <script type="text/javascript">
57
+ //<![CDATA[
58
+ $('<?php echo $this->getPlaceholderId() ?>').observe('click', function(event){
59
+ this.toggleClassName('expanded');
60
+ $('<?php echo $this->getDetailsPlaceholderId() ?>').toggleClassName('no-display');
61
+ event.stop();
62
+ decorateTable('<?php echo $this->getDetailsPlaceholderId() ?>');
63
+ });
64
+ //]]>
65
+ </script>
66
+ <?php endif ?>
app/design/frontend/base/default/template/cataloginventory/stockqty/default.phtml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @see Mage_CatalogInventory_Block_Stockqty_Default
29
+ */
30
+ ?>
31
+ <?php if($this->isMsgVisible()): ?>
32
+ <p class="availability-only">
33
+ <span title="<?php echo $this->__('Only %s left', ($this->getStockQty())) ?>"><?php echo $this->__('Only %s left', "<strong>{$this->getStockQty()}</strong>") ?></span>
34
+ </p>
35
+ <?php endif ?>
app/design/frontend/base/default/template/catalogsearch/advanced/form.phtml ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Catalog advanced search form
30
+ *
31
+ * @see Mage_CatalogSearch_Block_Advanced_Form
32
+ */
33
+ ?>
34
+ <?php $maxQueryLength= $this->helper('catalogsearch')->getMaxQueryLength();?>
35
+ <div class="page-title">
36
+ <h1><?php echo $this->__('Catalog Advanced Search') ?></h1>
37
+ </div>
38
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
39
+ <form action="<?php echo $this->getSearchPostUrl() ?>" method="get" id="form-validate">
40
+ <div class="fieldset advanced-search">
41
+ <h2 class="legend"><?php echo $this->__('Search Settings') ?></h2>
42
+ <ul class="form-list" id="advanced-search-list">
43
+ <?php foreach ($this->getSearchableAttributes() as $_attribute): ?>
44
+ <?php $_code = $_attribute->getAttributeCode() ?>
45
+ <li>
46
+ <label for="<?php echo $_code ?>"><?php echo $this->getAttributeLabel($_attribute) ?></label>
47
+ <?php switch($this->getAttributeInputType($_attribute)):
48
+ case 'number': ?>
49
+ <div class="input-range">
50
+ <input type="text" name="<?php echo $_code ?>[from]" value="<?php echo $this->escapeHtml($this->getAttributeValue($_attribute, 'from')) ?>" id="<?php echo $_code ?>" title="<?php echo $this->escapeHtml($this->getAttributeLabel($_attribute)) ?>" class="input-text validate-number" maxlength="<?php echo $maxQueryLength;?>" />
51
+ <span class="separator">-</span>
52
+ <input type="text" name="<?php echo $_code ?>[to]" value="<?php echo $this->escapeHtml($this->getAttributeValue($_attribute, 'to')) ?>" id="<?php echo $_code ?>_to" title="<?php echo $this->escapeHtml($this->getAttributeLabel($_attribute)) ?>" class="input-text validate-number" maxlength="<?php echo $maxQueryLength;?>" />
53
+ </div>
54
+ <?php break;
55
+ case 'price': ?>
56
+ <div class="input-range">
57
+ <input name="<?php echo $_code ?>[from]" value="<?php echo $this->escapeHtml($this->getAttributeValue($_attribute, 'from')) ?>" id="<?php echo $_code ?>" title="<?php echo $this->escapeHtml($this->getAttributeLabel($_attribute)) ?>" class="input-text validate-number" type="text" maxlength="<?php echo $maxQueryLength;?>" />
58
+ <span class="separator">-</span>
59
+ <input name="<?php echo $_code ?>[to]" value="<?php echo $this->escapeHtml($this->getAttributeValue($_attribute, 'to')) ?>" id="<?php echo $_code ?>_to" title="<?php echo $this->escapeHtml($this->getAttributeLabel($_attribute)) ?>" class="input-text validate-number" type="text" maxlength="<?php echo $maxQueryLength;?>" />
60
+ <small>(<?php echo $this->getCurrency($_attribute); ?>)</small>
61
+ </div>
62
+ <?php break;
63
+ case 'select': ?>
64
+ <div class="input-box">
65
+ <?php echo $this->getAttributeSelectElement($_attribute) ?>
66
+ </div>
67
+ <?php break;
68
+ case 'yesno': ?>
69
+ <?php echo $this->getAttributeYesNoElement($_attribute) ?>
70
+ <?php break;
71
+ case 'date': ?>
72
+ <div class="input-range">
73
+ <?php echo $this->getDateInput($_attribute, 'from') ?>
74
+ <span class="separator">-</span>
75
+ <?php echo $this->getDateInput($_attribute, 'to') ?>
76
+ </div>
77
+ <?php break;
78
+ default: ?>
79
+ <div class="input-box">
80
+ <input type="text" name="<?php echo $_code ?>" id="<?php echo $_code ?>" value="<?php echo $this->escapeHtml($this->getAttributeValue($_attribute)) ?>" title="<?php echo $this->escapeHtml($this->getAttributeLabel($_attribute)) ?>" class="input-text <?php echo $this->getAttributeValidationClass($_attribute) ?>" maxlength="<?php echo $maxQueryLength;?>" />
81
+ </div>
82
+ <?php endswitch; ?>
83
+ </li>
84
+ <?php endforeach; ?>
85
+ </ul>
86
+ <script type="text/javascript">decorateList('advanced-search-list')</script>
87
+ </div>
88
+ <div class="buttons-set">
89
+ <button type="submit" title="<?php echo $this->__('Search') ?>" class="button"><span><span><?php echo $this->__('Search') ?></span></span></button>
90
+ </div>
91
+ </form>
92
+ <script type="text/javascript">
93
+ //<![CDATA[
94
+ var dataForm = new VarienForm('form-validate', true);
95
+ //]]>
96
+ </script>
app/design/frontend/base/default/template/catalogsearch/advanced/result.phtml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <div class="page-title">
28
+ <h1><?php echo $this->__('Catalog Advanced Search') ?></h1>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <?php if($this->getResultCount()): ?>
32
+ <p class="advanced-search-amount">
33
+ <?php echo $this->helper('catalogsearch')->__('<strong>%d item(s)</strong> were found using the following search criteria', $this->getResultCount()); ?>
34
+ </p>
35
+ <?php else: ?>
36
+ <p class="error-msg"><?php echo $this->helper('catalogsearch')->__('No items were found using the following search criteria.');?> <a href="<?php echo $this->getFormUrl(); ?>"><?php echo $this->helper('catalogsearch')->__('Modify your search'); ?></a></p>
37
+ <?php endif; ?>
38
+
39
+ <div class="advanced-search-summary">
40
+ <?php $searchCriterias=$this->getSearchCriterias(); ?>
41
+ <?php foreach (array('left', 'right') as $side): ?>
42
+ <?php if(@$searchCriterias[$side]): ?>
43
+ <ul>
44
+ <?php foreach($searchCriterias[$side] as $criteria): ?>
45
+ <li><strong><?php echo $this->escapeHtml($this->helper('catalog')->__($criteria['name'])); ?>:</strong> <?php echo $this->escapeHtml($criteria['value']); ?></li>
46
+ <?php endforeach; ?>
47
+ </ul>
48
+ <?php endif; ?>
49
+ <?php endforeach; ?>
50
+ <?php if($this->getResultCount()): ?>
51
+ <p>
52
+ <?php echo $this->helper('catalogsearch')->__("Don't see what you're looking for?"); ?>
53
+ <a href="<?php echo $this->getFormUrl(); ?>"><?php echo $this->helper('catalogsearch')->__('Modify your search'); ?></a>
54
+ </p>
55
+ <?php endif; ?>
56
+ </div>
57
+ <?php if($this->getResultCount()): ?>
58
+ <?php echo $this->getProductListHtml() ?>
59
+ <?php endif; ?>
60
+ <?php $this->getSearchCriterias(); ?>
app/design/frontend/base/default/template/catalogsearch/form.mini.phtml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ /* @var $this Mage_Core_Block_Template */
27
+ /* @var $catalogSearchHelper Mage_Catalogsearch_Helper_Data */
28
+ $catalogSearchHelper = $this->helper('catalogsearch');
29
+ ?>
30
+ <form id="search_mini_form" action="<?php echo $catalogSearchHelper->getResultUrl() ?>" method="get">
31
+ <div class="form-search">
32
+ <label for="search"><?php echo $this->__('Search:') ?></label>
33
+ <input id="search" type="text" name="<?php echo $catalogSearchHelper->getQueryParamName() ?>" value="<?php echo $catalogSearchHelper->getEscapedQueryText() ?>" class="input-text" maxlength="<?php echo $catalogSearchHelper->getMaxQueryLength();?>" />
34
+ <button type="submit" title="<?php echo $this->__('Search') ?>" class="button"><span><span><?php echo $this->__('Search') ?></span></span></button>
35
+ <div id="search_autocomplete" class="search-autocomplete"></div>
36
+ <script type="text/javascript">
37
+ //<![CDATA[
38
+ var searchForm = new Varien.searchForm('search_mini_form', 'search', '<?php echo $this->__('Search entire store here...') ?>');
39
+ searchForm.initAutocomplete('<?php echo $catalogSearchHelper->getSuggestUrl() ?>', 'search_autocomplete');
40
+ //]]>
41
+ </script>
42
+ </div>
43
+ </form>
app/design/frontend/base/default/template/catalogsearch/result.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if($this->getResultCount()): ?>
28
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
29
+ <div class="page-title">
30
+ <?php if ($this->helper('rss/catalog')->getTagFeedUrl()): ?>
31
+ <a href="<?php echo $this->helper('rss/catalog')->getTagFeedUrl() ?>" class="nobr link-rss"><?php echo $this->__('Subscribe to Feed') ?></a>
32
+ <?php endif; ?>
33
+ <h1><?php echo ($this->getHeaderText() || $this->getHeaderText() === false) ? $this->getHeaderText() : $this->__("Search results for '%s'", $this->helper('catalogsearch')->getEscapedQueryText()) ?></h1>
34
+ </div>
35
+ <?php if ($messages = $this->getNoteMessages()):?>
36
+ <p class="note-msg">
37
+ <?php foreach ($messages as $message):?>
38
+ <?php echo $message?><br />
39
+ <?php endforeach;?>
40
+ </p>
41
+ <?php endif; ?>
42
+ <?php echo $this->getProductListHtml() ?>
43
+ <?php else: ?>
44
+ <div class="page-title">
45
+ <h1><?php echo ($this->getHeaderText() || $this->getHeaderText() === false) ? $this->getHeaderText() : $this->__("Search results for '%s'", $this->helper('catalogsearch')->getEscapedQueryText()) ?></h1>
46
+ </div>
47
+ <p class="note-msg">
48
+ <?php echo ($this->getNoResultText()) ? $this->getNoResultText() : $this->__('Your search returns no results.') ?>
49
+ <?php if ($messages = $this->getNoteMessages()):?>
50
+ <?php foreach ($messages as $message):?>
51
+ <br /><?php echo $message?>
52
+ <?php endforeach;?>
53
+ <?php endif; ?>
54
+ </p>
55
+ <?php endif; ?>
app/design/frontend/base/default/template/catalogsearch/term.phtml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <div class="page-title">
28
+ <h1><?php echo $this->__('Popular Search Terms') ?></h1>
29
+ </div>
30
+ <?php if( sizeof($this->getTerms()) > 0 ): ?>
31
+ <ul class="tags-list">
32
+ <?php foreach ($this->getTerms() as $_term): ?>
33
+ <li><a href="<?php echo $this->getSearchUrl($_term) ?>" style="font-size:<?php echo $_term->getRatio()*70+75 ?>%;"><?php echo $this->escapeHtml($_term->getName()) ?></a></li>
34
+ <?php endforeach; ?>
35
+ </ul>
36
+ <?php else: ?>
37
+ <p class="note-msg"><?php echo $this->__('There are no search terms available.'); ?></p>
38
+ <?php endif; ?>
app/design/frontend/base/default/template/centinel/authentication.phtml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if ($this->getAuthenticationStart()):?>
28
+ <div class="centinel" id="centinel_authenticate_block">
29
+ <h3><?php echo $this->__('Card Verification')?></h3>
30
+ <p><?php echo $this->__('Please verify the card with the issuer bank:') ?></p>
31
+ <div class="authentication">
32
+ <iframe id="centinel_authenticate_iframe" frameborder="0" border="0" src=""></iframe>
33
+ </div>
34
+ </div>
35
+ <script type="text/javascript">
36
+ //<![CDATA[
37
+ CentinelAuthenticateController = new CentinelAuthenticate('centinel_authenticate_block', 'centinel_authenticate_iframe');
38
+ <?php foreach ($this->getRelatedBlocks() as $relatedBlockId):?>
39
+ CentinelAuthenticateController.addRelatedBlock('<?php echo $relatedBlockId ?>');
40
+ <?php endforeach;?>
41
+ <?php if ($this->getAuthenticationStartMode() == 'instant'): ?>
42
+ CentinelAuthenticateController.start('<?php echo $this->getFrameUrl() ?>');
43
+ <?php elseif ($this->getAuthenticationStartMode() == 'window'):?>
44
+ Event.observe(window, 'load', function(){CentinelAuthenticateController.start('<?php echo $this->getFrameUrl() ?>');});
45
+ <?php endif;?>
46
+ //]]>
47
+ </script>
48
+ <?php else:?>
49
+ <script type="text/javascript">
50
+ //<![CDATA[
51
+ if (typeof CentinelAuthenticateController != 'undefined') {
52
+ CentinelAuthenticateController.cancel();
53
+ }
54
+ //]]>
55
+ </script>
56
+ <?php endif;?>
app/design/frontend/base/default/template/centinel/authentication/complete.phtml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if ($this->getIsProcessed()):?>
28
+ <?php if ($this->getIsSuccess()):?>
29
+ <script type="text/javascript">
30
+ //<![CDATA[
31
+ window.parent.CentinelAuthenticateController.success();
32
+ //]]>
33
+ </script>
34
+ <?php else:?>
35
+ <h4><?php echo $this->__('Verification Failed');?></h4>
36
+ <p><?php echo $this->__('The card has failed verification with the issuer bank.')?> <strong><?php echo $this->__('Order cannot be placed.')?></strong></p>
37
+ <?php endif;?>
38
+ <?php else:?>
39
+ <h4><?php echo $this->__('Verification cannot be processed');?></h4>
40
+ <p><?php echo $this->__('There has been wrong payment information submitted or the time limit has expired. Please, try again.')?> <strong><?php echo $this->__('Order cannot be placed.')?></strong></p>
41
+ <?php endif;?>
app/design/frontend/base/default/template/centinel/authentication/start.phtml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <form name="validation_form" id="validation_form" action="<?php echo $this->getAcsUrl();?>" method="post">
28
+ <fieldset>
29
+ <input type="hidden" name="PaReq" value="<?php echo $this->getPaReq()?>" />
30
+ <input type="hidden" name="TermUrl" value="<?php echo $this->getTermUrl()?>" />
31
+ <input type="hidden" name="MD" value="<?php echo $this->getMd()?>" />
32
+ </fieldset>
33
+ </form>
34
+ <script type="text/javascript">
35
+ //<![CDATA[
36
+ window.onload = function(){
37
+ document.getElementById('validation_form').submit();
38
+ };
39
+ //]]>
40
+ </script>
app/design/frontend/base/default/template/centinel/logo.phtml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <li class="centinel-logos" id="<?php echo $this->getCode() ?>_centinel_logo">
28
+ <label><?php echo $this->__('To ensure the security of your transactions') ?></label>
29
+ <div class="input-box">
30
+ <a href="#" title="<?php echo $this->__('Verified by Visa') ?> " onclick="popWin('<?php echo $this->helper('centinel')->getVisaLearnMorePageUrl()?>', 'verifiedByVisa', 'width=815,height=600,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;"><img src="<?php echo $this->getSkinUrl('images/centinel/vbv_ltbg_71x57.png'); ?>" alt="<?php echo $this->__('Verified by Visa') ?>" /></a>
31
+ <a href="#" title="<?php echo $this->__('MasterCard SecureCode'); ?>" onclick="popWin('<?php echo $this->helper('centinel')->getMastercardLearnMorePageUrl()?>', 'secureCode', 'width=600,height=403,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;"><img src="<?php echo $this->getSkinUrl('images/centinel/sc_learn_62x34.png'); ?>" alt="<?php echo $this->__('MasterCard SecureCode') ?>" /></a>
32
+ </div>
33
+ </li>
app/design/frontend/base/default/template/checkout/cart.phtml ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Shopping cart template
30
+ *
31
+ * @see Mage_Checkout_Block_Cart
32
+ */
33
+ ?>
34
+ <div class="cart">
35
+ <div class="page-title title-buttons">
36
+ <h1><?php echo $this->__('Shopping Cart') ?></h1>
37
+ <?php if(!$this->hasError()): ?>
38
+ <ul class="checkout-types">
39
+ <?php foreach ($this->getMethods('top_methods') as $method): ?>
40
+ <?php if ($methodHtml = $this->getMethodHtml($method)): ?>
41
+ <li><?php echo $methodHtml; ?></li>
42
+ <?php endif; ?>
43
+ <?php endforeach; ?>
44
+ </ul>
45
+ <?php endif; ?>
46
+ </div>
47
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
48
+ <?php echo $this->getChildHtml('form_before') ?>
49
+ <form action="<?php echo $this->getUrl('checkout/cart/updatePost') ?>" method="post">
50
+ <?php echo $this->getBlockHtml('formkey'); ?>
51
+ <fieldset>
52
+ <table id="shopping-cart-table" class="data-table cart-table">
53
+ <col width="1" />
54
+ <col />
55
+ <col width="1" />
56
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
57
+ <col width="1" />
58
+ <?php endif ?>
59
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
60
+ <col width="1" />
61
+ <?php endif; ?>
62
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
63
+ <col width="1" />
64
+ <?php endif; ?>
65
+ <col width="1" />
66
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
67
+ <col width="1" />
68
+ <?php endif; ?>
69
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
70
+ <col width="1" />
71
+ <?php endif; ?>
72
+ <col width="1" />
73
+
74
+ <?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
75
+ <thead>
76
+ <tr>
77
+ <th rowspan="<?php echo $mergedCells; ?>">&nbsp;</th>
78
+ <th rowspan="<?php echo $mergedCells; ?>"><span class="nobr"><?php echo $this->__('Product Name') ?></span></th>
79
+ <th rowspan="<?php echo $mergedCells; ?>"></th>
80
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
81
+ <th rowspan="<?php echo $mergedCells; ?>" class="a-center"><span class="nobr"><?php echo $this->__('Move to Wishlist') ?></span></th>
82
+ <?php endif ?>
83
+ <th class="a-center" colspan="<?php echo $mergedCells; ?>"><span class="nobr"><?php echo $this->__('Unit Price') ?></span></th>
84
+ <th rowspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
85
+ <th class="a-center" colspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Subtotal') ?></th>
86
+ <th rowspan="<?php echo $mergedCells; ?>" class="a-center">&nbsp;</th>
87
+ </tr>
88
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
89
+ <tr>
90
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
91
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
92
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
93
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
94
+ </tr>
95
+ <?php endif; ?>
96
+ </thead>
97
+ <tfoot>
98
+ <tr>
99
+ <td colspan="50" class="a-right">
100
+ <?php if($this->getContinueShoppingUrl()): ?>
101
+ <button type="button" title="<?php echo $this->__('Continue Shopping') ?>" class="button btn-continue" onclick="setLocation('<?php echo $this->getContinueShoppingUrl() ?>')"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
102
+ <?php endif; ?>
103
+ <button type="submit" name="update_cart_action" value="update_qty" title="<?php echo $this->__('Update Shopping Cart'); ?>" class="button btn-update"><span><span><?php echo $this->__('Update Shopping Cart'); ?></span></span></button>
104
+ <button type="submit" name="update_cart_action" value="empty_cart" title="<?php echo $this->__('Clear Shopping Cart'); ?>" class="button btn-empty" id="empty_cart_button"><span><span><?php echo $this->__('Clear Shopping Cart'); ?></span></span></button>
105
+ <!--[if lt IE 8]>
106
+ <input type="hidden" id="update_cart_action_container" />
107
+ <script type="text/javascript">
108
+ //<![CDATA[
109
+ Event.observe(window, 'load', function()
110
+ {
111
+ // Internet Explorer (lt 8) does not support value attribute in button elements
112
+ $emptyCartButton = $('empty_cart_button');
113
+ $cartActionContainer = $('update_cart_action_container');
114
+ if ($emptyCartButton && $cartActionContainer) {
115
+ Event.observe($emptyCartButton, 'click', function()
116
+ {
117
+ $emptyCartButton.setAttribute('name', 'update_cart_action_temp');
118
+ $cartActionContainer.setAttribute('name', 'update_cart_action');
119
+ $cartActionContainer.setValue('empty_cart');
120
+ });
121
+ }
122
+
123
+ });
124
+ //]]>
125
+ </script>
126
+ <![endif]-->
127
+ </td>
128
+ </tr>
129
+ </tfoot>
130
+ <tbody>
131
+ <?php foreach($this->getItems() as $_item): ?>
132
+ <?php echo $this->getItemHtml($_item) ?>
133
+ <?php endforeach ?>
134
+ </tbody>
135
+ </table>
136
+ <script type="text/javascript">decorateTable('shopping-cart-table')</script>
137
+ </fieldset>
138
+ </form>
139
+ <div class="cart-collaterals">
140
+ <div class="col2-set">
141
+ <div class="col-1">
142
+ <?php echo $this->getChildHtml('crosssell') ?>
143
+ </div>
144
+ <div class="col-2">
145
+ <?php /* Extensions placeholder */ ?>
146
+ <?php echo $this->getChildHtml('checkout.cart.extra') ?>
147
+ <?php echo $this->getChildHtml('coupon') ?>
148
+ <?php if (!$this->getIsVirtual()): echo $this->getChildHtml('shipping'); endif; ?>
149
+ </div>
150
+ </div>
151
+ <div class="totals">
152
+ <?php echo $this->getChildHtml('totals'); ?>
153
+ <?php if(!$this->hasError()): ?>
154
+ <ul class="checkout-types">
155
+ <?php foreach ($this->getMethods('methods') as $method): ?>
156
+ <?php if ($methodHtml = $this->getMethodHtml($method)): ?>
157
+ <li><?php echo $methodHtml; ?></li>
158
+ <?php endif; ?>
159
+ <?php endforeach; ?>
160
+ </ul>
161
+ <?php endif; ?>
162
+ </div>
163
+ </div>
164
+ </div>
app/design/frontend/base/default/template/checkout/cart/coupon.phtml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <form id="discount-coupon-form" action="<?php echo $this->getUrl('checkout/cart/couponPost') ?>" method="post">
28
+ <div class="discount">
29
+ <h2><?php echo $this->__('Discount Codes') ?></h2>
30
+ <div class="discount-form">
31
+ <label for="coupon_code"><?php echo $this->__('Enter your coupon code if you have one.') ?></label>
32
+ <input type="hidden" name="remove" id="remove-coupone" value="0" />
33
+ <div class="input-box">
34
+ <input class="input-text" id="coupon_code" name="coupon_code" value="<?php echo $this->escapeHtml($this->getCouponCode()) ?>" />
35
+ </div>
36
+ <div class="buttons-set">
37
+ <button type="button" title="<?php echo $this->__('Apply Coupon') ?>" class="button" onclick="discountForm.submit(false)" value="<?php echo $this->__('Apply Coupon') ?>"><span><span><?php echo $this->__('Apply Coupon') ?></span></span></button>
38
+ <?php if(strlen($this->getCouponCode())): ?>
39
+ &nbsp; <button type="button" title="<?php echo $this->__('Cancel Coupon') ?>" class="button" onclick="discountForm.submit(true)" value="<?php echo $this->__('Cancel Coupon') ?>"><span><span><?php echo $this->__('Cancel Coupon') ?></span></span></button>
40
+ <?php endif;?>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </form>
45
+ <script type="text/javascript">
46
+ //<![CDATA[
47
+ var discountForm = new VarienForm('discount-coupon-form');
48
+ discountForm.submit = function (isRemove) {
49
+ if (isRemove) {
50
+ $('coupon_code').removeClassName('required-entry');
51
+ $('remove-coupone').value = "1";
52
+ } else {
53
+ $('coupon_code').addClassName('required-entry');
54
+ $('remove-coupone').value = "0";
55
+ }
56
+ return VarienForm.prototype.submit.bind(discountForm)();
57
+ }
58
+ //]]>
59
+ </script>
app/design/frontend/base/default/template/checkout/cart/crosssell.phtml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Cart cross sell items template
30
+ *
31
+ * @see Mage_Checkout_Block_Cart_Crosssell
32
+ */
33
+ ?>
34
+ <?php if($this->getItemCount()): ?>
35
+ <div class="crosssell">
36
+ <h2><?php echo $this->__('Based on your selection, you may be interested in the following items:') ?></h2>
37
+ <ul id="crosssell-products-list">
38
+ <?php foreach ($this->getItems() as $_item): ?>
39
+ <li class="item">
40
+ <a class="product-image" href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_item->getName()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(75); ?>" width="75" height="75" alt="<?php echo $this->escapeHtml($_item->getName()) ?>" /></a>
41
+ <div class="product-details">
42
+ <h3 class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->escapeHtml($_item->getName()) ?></a></h3>
43
+ <?php echo $this->getPriceHtml($_item, true) ?>
44
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_item) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
45
+ <ul class="add-to-links">
46
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
47
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
48
+ <?php endif; ?>
49
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_item)): ?>
50
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
51
+ <?php endif; ?>
52
+ </ul>
53
+ </div>
54
+ </li>
55
+ <?php endforeach; ?>
56
+ </ul>
57
+ <script type="text/javascript">decorateList('crosssell-products-list', 'none-recursive')</script>
58
+ </div>
59
+ <?php endif; ?>
app/design/frontend/base/default/template/checkout/cart/item/configure/updatecart.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php $_product = $this->getProduct(); ?>
29
+ <?php $buttonTitle = $this->__('Update Cart'); ?>
30
+ <?php if ($_product->isSaleable()): ?>
31
+ <div class="add-to-cart">
32
+ <?php if (!$_product->isGrouped()): ?>
33
+ <label for="qty"><?php echo $this->__('Qty:') ?></label>
34
+ <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
35
+ <?php endif; ?>
36
+ <button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
37
+ <?php echo $this->getChildHtml('', true, true) ?>
38
+ </div>
39
+ <?php endif; ?>
app/design/frontend/base/default/template/checkout/cart/item/default.phtml ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ $_item = $this->getItem();
29
+ $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
30
+ $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
31
+ ?>
32
+ <tr>
33
+ <td><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->escapeHtml($this->getProductName()) ?>" class="product-image"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" width="75" height="75" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></td>
34
+ <td>
35
+ <h2 class="product-name">
36
+ <?php if ($this->hasProductUrl()):?>
37
+ <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->escapeHtml($this->getProductName()) ?></a>
38
+ <?php else: ?>
39
+ <?php echo $this->escapeHtml($this->getProductName()) ?>
40
+ <?php endif; ?>
41
+ </h2>
42
+ <?php if ($_options = $this->getOptionList()):?>
43
+ <dl class="item-options">
44
+ <?php foreach ($_options as $_option) : ?>
45
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
46
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
47
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
48
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
49
+ <div class="truncated_full_value">
50
+ <dl class="item-options">
51
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
52
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
53
+ </dl>
54
+ </div>
55
+ <?php endif; ?>
56
+ </dd>
57
+ <?php endforeach; ?>
58
+ </dl>
59
+ <?php endif;?>
60
+ <?php if ($messages = $this->getMessages()): ?>
61
+ <?php foreach ($messages as $message): ?>
62
+ <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $this->escapeHtml($message['text']) ?></p>
63
+ <?php endforeach; ?>
64
+ <?php endif; ?>
65
+ <?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
66
+ <?php if ($addInfoBlock): ?>
67
+ <?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
68
+ <?php endif;?>
69
+ </td>
70
+ <td class="a-center">
71
+ <?php if ($isVisibleProduct): ?>
72
+ <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
73
+ <?php endif ?>
74
+ </td>
75
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
76
+ <td class="a-center">
77
+ <?php if ($isVisibleProduct): ?>
78
+ <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move'); ?></a>
79
+ <?php endif ?>
80
+ </td>
81
+ <?php endif ?>
82
+
83
+ <?php if ($canApplyMsrp): ?>
84
+ <td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
85
+ <span class="cart-price">
86
+ <span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
87
+ <?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
88
+ <a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
89
+ <script type="text/javascript">
90
+ Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
91
+ </script>
92
+ </span>
93
+ </td>
94
+ <?php else: ?>
95
+
96
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
97
+ <td class="a-right">
98
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
99
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
100
+ <?php else: ?>
101
+ <span class="cart-price">
102
+ <?php endif; ?>
103
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
104
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
105
+ <?php else: ?>
106
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
107
+ <?php endif; ?>
108
+
109
+ </span>
110
+
111
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
112
+
113
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
114
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
115
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
116
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
117
+ <?php endforeach; ?>
118
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
119
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
120
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
121
+ <?php endforeach; ?>
122
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
123
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
124
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
125
+ <?php endforeach; ?>
126
+ <?php endif; ?>
127
+ </div>
128
+
129
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
130
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
131
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
132
+ </div>
133
+ <?php endif; ?>
134
+ <?php endif; ?>
135
+ </td>
136
+ <?php endif; ?><!-- inclusive price starts here -->
137
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
138
+ <td>
139
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
140
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
141
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
142
+ <?php else: ?>
143
+ <span class="cart-price">
144
+ <?php endif; ?>
145
+
146
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
147
+ <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
148
+ <?php else: ?>
149
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
150
+ <?php endif; ?>
151
+
152
+ </span>
153
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
154
+
155
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
156
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
157
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
158
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
159
+ <?php endforeach; ?>
160
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
161
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
162
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
163
+ <?php endforeach; ?>
164
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
165
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
166
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
167
+ <?php endforeach; ?>
168
+ <?php endif; ?>
169
+ </div>
170
+
171
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
172
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
173
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
174
+ </div>
175
+ <?php endif; ?>
176
+ <?php endif; ?>
177
+ </td>
178
+ <?php endif; ?>
179
+ <?php endif; ?>
180
+ <td class="a-center">
181
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12" />
182
+ </td>
183
+
184
+ <!--Sub total starts here -->
185
+ <?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
186
+ <td class="a-right">
187
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
188
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
189
+ <?php else: ?>
190
+ <span class="cart-price">
191
+ <?php endif; ?>
192
+
193
+ <?php if ($canApplyMsrp): ?>
194
+ <span class="cart-msrp-subtotal">--</span>
195
+ <?php else: ?>
196
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
197
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
198
+ <?php else: ?>
199
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
200
+ <?php endif; ?>
201
+ <?php endif; ?>
202
+
203
+ </span>
204
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
205
+
206
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
207
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
208
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
209
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
210
+ <?php endforeach; ?>
211
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
212
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
213
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
214
+ <?php endforeach; ?>
215
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
216
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
217
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
218
+ <?php endforeach; ?>
219
+ <?php endif; ?>
220
+ </div>
221
+
222
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
223
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
224
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
225
+ </div>
226
+ <?php endif; ?>
227
+ <?php endif; ?>
228
+ </td>
229
+ <?php endif; ?>
230
+ <?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
231
+ <td>
232
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
233
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
234
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
235
+ <?php else: ?>
236
+ <span class="cart-price">
237
+ <?php endif; ?>
238
+
239
+ <?php if ($canApplyMsrp): ?>
240
+ <span class="cart-msrp-subtotal">--</span>
241
+ <?php else: ?>
242
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
243
+ <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
244
+ <?php else: ?>
245
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
246
+ <?php endif; ?>
247
+ <?php endif; ?>
248
+
249
+ </span>
250
+
251
+
252
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
253
+
254
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
255
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
256
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
257
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
258
+ <?php endforeach; ?>
259
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
260
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
261
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
262
+ <?php endforeach; ?>
263
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
264
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
265
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
266
+ <?php endforeach; ?>
267
+ <?php endif; ?>
268
+ </div>
269
+
270
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
271
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
272
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
273
+ </div>
274
+ <?php endif; ?>
275
+ <?php endif; ?>
276
+ </td>
277
+ <?php endif; ?>
278
+ <td class="a-center"><a href="<?php echo $this->getDeleteUrl()?>" title="<?php echo $this->__('Remove item')?>" class="btn-remove btn-remove2"><?php echo $this->__('Remove item')?></a></td>
279
+ </tr>
app/design/frontend/base/default/template/checkout/cart/noItems.phtml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <div class="page-title">
28
+ <h1><?php echo $this->__('Shopping Cart is Empty') ?></h1>
29
+ </div>
30
+ <div class="cart-empty">
31
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
32
+ <?php echo $this->getChildHtml('checkout_cart_empty_widget'); ?>
33
+ <p><?php echo $this->__('You have no items in your shopping cart.') ?></p>
34
+ <p><?php echo $this->__('Click <a href="%s">here</a> to continue shopping.', $this->getContinueShoppingUrl()) ?></p>
35
+ <?php echo $this->getChildHtml('shopping.cart.table.after'); ?>
36
+ </div>
app/design/frontend/base/default/template/checkout/cart/render/default.phtml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @deprecated after 1.4.0.0-alpha3
29
+ */
30
+ ?>
31
+ <?php $_item = $this->getItem() ?>
32
+ <tr>
33
+ <td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>" title="<?php echo $this->__('Remove Item')?>" class="btn-remove2"><?php echo $this->__('Remove Item')?></a></td>
34
+ <td><a href="<?php echo $this->getItemUrl($_item) ?>" title="<?php echo $this->escapeHtml($this->getItemName($_item)) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($this->getItemProductForThumbnail($_item), 'thumbnail')->resize(75); ?>" width="75" alt="<?php echo $this->escapeHtml($this->getItemName($_item)) ?>" /></a></td>
35
+ <td>
36
+ <h3 class="product-name"><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $this->getItemName($_item) ?></a></h3>
37
+ <?php echo $this->getItemDescription($_item) ?>
38
+ <?php if($_item->getMessage()): ?>
39
+ <p class="item-msg <?php if($_item->getHasError()): ?>error<?php else: ?>notice<?php endif; ?>">* <?php echo $_item->getMessage() ?></p>
40
+ <?php endif; ?>
41
+ </td>
42
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
43
+ <td class="a-center">
44
+ <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist"><?php echo $this->__('Move'); ?></a>
45
+ </td>
46
+ <?php endif ?>
47
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
48
+ <td class="a-right">
49
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
50
+ </td>
51
+ <?php endif; ?>
52
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
53
+ <td class="a-right">
54
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
55
+ </td>
56
+ <?php endif; ?>
57
+ <td class="a-center">
58
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getItemQty($_item) ?>" size="4" class="input-text qty" maxlength="12" />
59
+ </td>
60
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
61
+ <td class="a-right">
62
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
63
+ </td>
64
+ <?php endif; ?>
65
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
66
+ <td class="a-right">
67
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
68
+ </td>
69
+ <?php endif; ?>
70
+ </tr>
app/design/frontend/base/default/template/checkout/cart/render/simple.phtml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @deprecated after 1.4.0.0-alpha3
29
+ */
30
+ ?>
31
+ <?php $_item = $this->getItem() ?>
32
+ <tr>
33
+ <td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>" title="<?php echo $this->__('Remove Item')?>" class="btn-remove2"><?php echo $this->__('Remove Item')?></a></td>
34
+ <td><a href="<?php echo $this->getItemUrl($_item) ?>" title="<?php echo $this->escapeHtml($this->getItemName($_item)) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($this->getItemProductForThumbnail($_item), 'thumbnail')->resize(75); ?>" width="75" height="75" alt="<?php echo $this->escapeHtml($this->getItemName($_item)) ?>" /></a></td>
35
+ <td>
36
+ <h3 class="product-name"><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $this->getItemName($_item) ?></a></h3>
37
+ <?php echo $this->getItemDescription($_item) ?>
38
+ <?php if($_item->getMessage()): ?>
39
+ <p class="item-msg <?php if($_item->getHasError()): ?>error<?php else: ?>notice<?php endif; ?>">* <?php echo $_item->getMessage() ?></p>
40
+ <?php endif; ?>
41
+ </td>
42
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
43
+ <td class="a-center">
44
+ <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist"><?php echo $this->__('Move'); ?></a>
45
+ </td>
46
+ <?php endif ?>
47
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
48
+ <td class="a-right">
49
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
50
+ </td>
51
+ <?php endif; ?>
52
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
53
+ <td class="a-right">
54
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
55
+ </td>
56
+ <?php endif; ?>
57
+ <td class="a-center">
58
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getItemQty($_item) ?>" size="4" class="input-text qty" maxlength="12" />
59
+ </td>
60
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
61
+ <td class="a-right">
62
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
63
+ </td>
64
+ <?php endif; ?>
65
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
66
+ <td class="a-right">
67
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
68
+ </td>
69
+ <?php endif; ?>
70
+ </tr>
app/design/frontend/base/default/template/checkout/cart/shipping.phtml ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php /** @var $this Mage_Checkout_Block_Cart_Shipping */ ?>
28
+ <div class="shipping">
29
+ <h2><?php echo $this->__('Estimate Shipping and Tax') ?></h2>
30
+ <div class="shipping-form">
31
+ <form action="<?php echo $this->getUrl('checkout/cart/estimatePost') ?>" method="post" id="shipping-zip-form">
32
+ <p><?php echo $this->__('Enter your destination to get a shipping estimate.') ?></p>
33
+ <ul class="form-list">
34
+ <li>
35
+ <label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
36
+ <div class="input-box">
37
+ <?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
38
+ </div>
39
+ </li>
40
+ <?php //if($this->getStateActive()): ?>
41
+ <li>
42
+ <label for="region_id"<?php if ($this->isStateProvinceRequired()) echo ' class="required"' ?>><?php if ($this->isStateProvinceRequired()) echo '<em>*</em>' ?><?php echo $this->__('State/Province') ?></label>
43
+ <div class="input-box">
44
+ <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" style="display:none;"<?php echo ($this->isStateProvinceRequired() ? ' class="validate-select"' : '') ?>>
45
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
46
+ </select>
47
+ <script type="text/javascript">
48
+ //<![CDATA[
49
+ $('region_id').setAttribute('defaultValue', "<?php echo $this->getEstimateRegionId() ?>");
50
+ //]]>
51
+ </script>
52
+ <input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getEstimateRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
53
+ </div>
54
+ </li>
55
+ <?php //endif; ?>
56
+ <?php if($this->getCityActive()): ?>
57
+ <li>
58
+ <label for="city"<?php if ($this->isCityRequired()) echo ' class="required"' ?>><?php if ($this->isCityRequired()) echo '<em>*</em>' ?><?php echo $this->__('City') ?></label>
59
+ <div class="input-box">
60
+ <input class="input-text<?php if ($this->isCityRequired()):?> required-entry<?php endif;?>" id="city" type="text" name="estimate_city" value="<?php echo $this->escapeHtml($this->getEstimateCity()) ?>" />
61
+ </div>
62
+ </li>
63
+ <?php endif; ?>
64
+ <li>
65
+ <label for="postcode"<?php if ($this->isZipCodeRequired()) echo ' class="required"' ?>><?php if ($this->isZipCodeRequired()) echo '<em>*</em>' ?><?php echo $this->__('Zip/Postal Code') ?></label>
66
+ <div class="input-box">
67
+ <input class="input-text validate-postcode<?php if ($this->isZipCodeRequired()):?> required-entry<?php endif;?>" type="text" id="postcode" name="estimate_postcode" value="<?php echo $this->escapeHtml($this->getEstimatePostcode()) ?>" />
68
+ </div>
69
+ </li>
70
+ </ul>
71
+ <div class="buttons-set">
72
+ <button type="button" title="<?php echo $this->__('Get a Quote') ?>" onclick="coShippingMethodForm.submit()" class="button"><span><span><?php echo $this->__('Get a Quote') ?></span></span></button>
73
+ </div>
74
+ </form>
75
+ <script type="text/javascript">
76
+ //<![CDATA[
77
+ new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
78
+ //]]>
79
+ </script>
80
+
81
+ <?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
82
+ <form id="co-shipping-method-form" action="<?php echo $this->getUrl('checkout/cart/estimateUpdatePost') ?>">
83
+ <dl class="sp-methods">
84
+ <?php foreach ($_shippingRateGroups as $code => $_rates): ?>
85
+ <dt><?php echo $this->escapeHtml($this->getCarrierName($code)) ?></dt>
86
+ <dd>
87
+ <ul>
88
+ <?php foreach ($_rates as $_rate): ?>
89
+ <li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
90
+ <?php if ($_rate->getErrorMessage()): ?>
91
+ <?php echo $this->escapeHtml($_rate->getErrorMessage()) ?>
92
+ <?php else: ?>
93
+ <input name="estimate_method" type="radio" value="<?php echo $this->escapeHtml($_rate->getCode()) ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" />
94
+ <label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $this->escapeHtml($_rate->getMethodTitle()) ?>
95
+ <?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
96
+ <?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
97
+ <?php echo $_excl; ?>
98
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
99
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
100
+ <?php endif; ?>
101
+ </label>
102
+ <?php endif ?>
103
+ </li>
104
+ <?php endforeach; ?>
105
+ </ul>
106
+ </dd>
107
+ <?php endforeach; ?>
108
+ </dl>
109
+ <div class="buttons-set">
110
+ <button type="submit" title="<?php echo $this->__('Update Total') ?>" class="button" name="do" value="<?php echo $this->__('Update Total') ?>"><span><span><?php echo $this->__('Update Total') ?></span></span></button>
111
+ </div>
112
+ </form>
113
+ <?php endif; ?>
114
+ <script type="text/javascript">
115
+ //<![CDATA[
116
+ var coShippingMethodForm = new VarienForm('shipping-zip-form');
117
+ var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
118
+
119
+ coShippingMethodForm.submit = function () {
120
+ var country = $F('country');
121
+ var optionalZip = false;
122
+
123
+ for (i=0; i < countriesWithOptionalZip.length; i++) {
124
+ if (countriesWithOptionalZip[i] == country) {
125
+ optionalZip = true;
126
+ }
127
+ }
128
+ if (optionalZip) {
129
+ $('postcode').removeClassName('required-entry');
130
+ }
131
+ else {
132
+ $('postcode').addClassName('required-entry');
133
+ }
134
+ return VarienForm.prototype.submit.bind(coShippingMethodForm)();
135
+ }
136
+ //]]>
137
+ </script>
138
+ </div>
139
+ </div>
app/design/frontend/base/default/template/checkout/cart/sidebar.phtml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Shoping cart sidebar
29
+ *
30
+ * @see Mage_Checkout_Block_Cart_Sidebar
31
+ */
32
+
33
+ ?>
34
+ <?php if ($this->getIsNeedToDisplaySideBar()):?>
35
+ <div class="block block-cart">
36
+ <?php $_cartQty = $this->getSummaryCount() ?>
37
+ <div class="block-title">
38
+ <strong><span><?php echo $this->__('My Cart') ?></span></strong>
39
+ </div>
40
+ <div class="block-content">
41
+ <?php if ($_cartQty>0): ?>
42
+ <div class="summary">
43
+ <?php if ($_cartQty==1): ?>
44
+ <p class="amount"><?php echo $this->__('There is <a href="%s">1 item</a> in your cart.', $this->getUrl('checkout/cart')) ?></p>
45
+ <?php else: ?>
46
+ <p class="amount"><?php echo $this->__('There are <a href="%s">%s items</a> in your cart.', $this->getUrl('checkout/cart'), $_cartQty) ?></p>
47
+ <?php endif ?>
48
+ <p class="subtotal">
49
+ <?php if ($this->canApplyMsrp()): ?>
50
+ <span class="map-cart-sidebar-total"><?php echo $this->__('ORDER TOTAL WILL BE DISPLAYED BEFORE YOU SUBMIT THE ORDER'); ?></span>
51
+ <?php else: ?>
52
+ <span class="label"><?php echo $this->__('Cart Subtotal:') ?></span> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
53
+ <?php if ($_subtotalInclTax = $this->getSubtotalInclTax()): ?>
54
+ <br />(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax) ?> <?php echo Mage::helper('tax')->getIncExcText(true) ?>)
55
+ <?php endif; ?>
56
+ <?php endif; ?>
57
+ </p>
58
+ </div>
59
+ <?php endif ?>
60
+ <?php if($_cartQty && $this->isPossibleOnepageCheckout()): ?>
61
+ <div class="actions">
62
+ <?php echo $this->getChildHtml('extra_actions') ?>
63
+ <button type="button" title="<?php echo $this->__('Checkout') ?>" class="button" onclick="setLocation('<?php echo $this->getCheckoutUrl() ?>')"><span><span><?php echo $this->__('Checkout') ?></span></span></button>
64
+ </div>
65
+ <?php endif ?>
66
+ <?php $_items = $this->getRecentItems() ?>
67
+ <?php if(count($_items)): ?>
68
+ <p class="block-subtitle"><?php echo $this->__('Recently added item(s)') ?></p>
69
+ <ol id="cart-sidebar" class="mini-products-list">
70
+ <?php foreach($_items as $_item): ?>
71
+ <?php echo $this->getItemHtml($_item) ?>
72
+ <?php endforeach; ?>
73
+ </ol>
74
+ <script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script>
75
+ <?php else: ?>
76
+ <p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
77
+ <?php endif ?>
78
+ </div>
79
+ </div>
80
+ <?php endif;?>
app/design/frontend/base/default/template/checkout/cart/sidebar/default.phtml ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ $_item = $this->getItem();
29
+ $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
30
+ $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
31
+ ?>
32
+ <li class="item">
33
+ <?php if ($this->hasProductUrl()): ?>
34
+ <a href="<?php echo $this->getProductUrl()?>" title="<?php echo $this->escapeHtml($this->getProductName()) ?>" class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>" width="50" height="50" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" /></a>
35
+ <?php else: ?>
36
+ <span class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>" width="50" height="50" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" /></span>
37
+ <?php endif; ?>
38
+ <div class="product-details">
39
+ <a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo $this->__('Remove This Item') ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the shopping cart?') ?>');" class="btn-remove"><?php echo $this->__('Remove This Item') ?></a>
40
+ <?php if ($isVisibleProduct): ?>
41
+ <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item') ?>" class="btn-edit"><?php echo $this->__('Edit item')?></a>
42
+ <?php endif ?>
43
+ <p class="product-name"><?php if ($this->hasProductUrl()): ?><a href="<?php echo $this->getProductUrl() ?>"><?php endif; ?><?php echo $this->escapeHtml($this->getProductName()) ?><?php if ($this->hasProductUrl()): ?></a><?php endif; ?></p>
44
+ <strong><?php echo $this->getQty() ?></strong> x
45
+
46
+ <?php if ($canApplyMsrp): ?>
47
+
48
+ <span class="map-cart-sidebar-item"><?php echo $this->__('See price before order confirmation.'); ?></span>
49
+
50
+ <?php else: ?>
51
+
52
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
53
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
54
+ <?php echo $this->__('Excl. Tax'); ?>:
55
+ <?php endif; ?>
56
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
57
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
58
+ <?php else: ?>
59
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
60
+ <?php endif; ?>
61
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
62
+ <br />
63
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
64
+ <small>
65
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
66
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
67
+ <?php endforeach; ?>
68
+ </small>
69
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
70
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
71
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
72
+ <?php endforeach; ?>
73
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
74
+ <small>
75
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
76
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
77
+ <?php endforeach; ?>
78
+ </small>
79
+ <?php endif; ?>
80
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
81
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
82
+ <?php endif; ?>
83
+ <?php endif; ?>
84
+ <?php endif; ?>
85
+
86
+
87
+
88
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
89
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
90
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
91
+ <br /><?php echo $this->__('Incl. Tax'); ?>:
92
+ <?php endif; ?>
93
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
94
+ <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
95
+ <?php else: ?>
96
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
97
+ <?php endif; ?>
98
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
99
+ <br />
100
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
101
+ <small>
102
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
103
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
104
+ <?php endforeach; ?>
105
+ </small>
106
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
107
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
108
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
109
+ <?php endforeach; ?>
110
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
111
+ <small>
112
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
113
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
114
+ <?php endforeach; ?>
115
+ </small>
116
+ <?php endif; ?>
117
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
118
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
119
+ <?php endif; ?>
120
+ <?php endif; ?>
121
+ <?php endif; ?>
122
+
123
+ <?php endif; //Can apply MSRP ?>
124
+
125
+ <?php if ($_options = $this->getOptionList()):?>
126
+ <div class="truncated">
127
+ <div class="truncated_full_value">
128
+ <dl class="item-options">
129
+ <?php foreach ($_options as $_option) : ?>
130
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
131
+ <dd>
132
+ <?php if (is_array($_option['value'])): ?>
133
+ <?php echo nl2br(implode("\n", $_option['value'])) ?>
134
+ <?php else: ?>
135
+ <?php echo $_option['value'] ?>
136
+ <?php endif; ?>
137
+ </dd>
138
+ <?php endforeach; ?>
139
+ </dl>
140
+ </div>
141
+ <a href="#" onclick="return false;" class="details"><?php echo $this->__('Details') ?></a>
142
+ </div>
143
+ <?php endif; ?>
144
+ </div>
145
+ </li>
app/design/frontend/base/default/template/checkout/cart/totals.phtml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Shopping cart totals template
30
+ *
31
+ * @see Mage_Checkout_Block_Cart_Totals
32
+ * @var $this Mage_Checkout_Block_Cart_Totals
33
+ */
34
+ ?>
35
+ <?php if ($this->canApplyMsrp()): ?>
36
+ <div class="cart-msrp-totals"><?php echo $this->__('ORDER TOTAL WILL BE DISPLAYED BEFORE YOU SUBMIT THE ORDER'); ?></div>
37
+ <?php else: ?>
38
+ <table id="shopping-cart-totals-table">
39
+ <col />
40
+ <col width="1" />
41
+ <tfoot>
42
+ <?php echo $this->renderTotals('footer'); ?>
43
+ </tfoot>
44
+ <tbody>
45
+ <?php echo $this->renderTotals(); ?>
46
+ </tbody>
47
+ </table>
48
+ <?php endif; ?>
app/design/frontend/base/default/template/checkout/multishipping/address/select.phtml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <div class="multiple-checkout">
28
+ <div class="page-title title-buttons">
29
+ <h1><?php echo $this->__('Change Billing Address') ?></h1>
30
+ <button type="button" title="<?php echo $this->__('Add New Address') ?>" class="button" onclick="setLocation('<?php echo $this->getAddNewUrl() ?>')"><span><span><?php echo $this->__('Add New Address') ?></span></span></button>
31
+ </div>
32
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
33
+ <?php $_index=0 ?>
34
+ <?php foreach ($this->getAddressCollection() as $_address): ?>
35
+ <?php if($_index%3==0): ?><div class="col3-set"><?php endif; ?>
36
+ <div class="col-<?php echo ($_index%3+1) ?>">
37
+ <p class="actions">
38
+ <a href="<?php echo $this->getEditAddressUrl($_address) ?>"><?php echo $this->__('Edit Address') ?></a> <span class="separator">|</span>
39
+ <a href="<?php echo $this->getSetAddressUrl($_address) ?>"><strong><?php echo $this->__('Select Address') ?></strong></a>
40
+ </p>
41
+ <address>
42
+ <?php echo $_address->format('html') ?>
43
+ </address>
44
+ <?php if($this->isAddressDefaultBilling($_address)): ?>
45
+ <strong><?php echo $this->__('Default Billing') ?></strong>
46
+ <?php endif; ?>
47
+ <?php if($this->isAddressDefaultShipping($_address)): ?>
48
+ <br /><strong><?php echo $this->__('Default Shipping') ?></strong>
49
+ <?php endif; ?>
50
+ </div>
51
+ <?php $_index++ ?>
52
+ <?php if($_index && $_index%3==0): ?></div><?php endif; ?>
53
+ <?php endforeach; ?>
54
+ <?php if(!$_index || $_index%3!=0): ?></div><?php endif; ?>
55
+ <div class="buttons-set">
56
+ <p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Billing Information') ?></a></p>
57
+ </div>
58
+ </div>
app/design/frontend/base/default/template/checkout/multishipping/addresses.phtml ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Ship to multiple address template
30
+ *
31
+ * @see Mage_Checkout_Block_Multishipping_Addresses
32
+ */
33
+ ?>
34
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
35
+ <form id="checkout_multishipping_form" action="<?php echo $this->getPostActionUrl() ?>" method="post">
36
+ <div class="multiple-checkout">
37
+ <div class="page-title title-buttons">
38
+ <h1><?php echo $this->__('Ship to Multiple Addresses') ?></h1>
39
+ <button data-action="add-new-customer-address" type="button" title="<?php echo $this->__('Enter a New Address') ?>" class="button" onclick="$('add_new_address_flag').value=1; $('checkout_multishipping_form').submit();"><span><span><?php echo $this->__('Enter a New Address') ?></span></span></button>
40
+ </div>
41
+ <input type="hidden" name="continue" value="0" id="can_continue_flag" />
42
+ <input type="hidden" name="new_address" value="0" id="add_new_address_flag" />
43
+ <h2><?php echo $this->__('Please select shipping address for applicable items') ?></h2>
44
+ <table class="data-table" id="multiship-addresses-table">
45
+ <col />
46
+ <col width="1" />
47
+ <col width="1" />
48
+ <col width="1" />
49
+ <thead>
50
+ <tr>
51
+ <th><?php echo $this->__('Product') ?></th>
52
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
53
+ <th><?php echo $this->__('Send To') ?></th>
54
+ <th>&nbsp;</th>
55
+ </tr>
56
+ </thead>
57
+ <tfoot>
58
+ <tr>
59
+ <td colspan="100" class="a-right"><button type="submit" title="<?php echo $this->__('Update Qty &amp; Addresses') ?>" class="button" onclick="$('can_continue_flag').value=0"><span><span><?php echo $this->__('Update Qty &amp; Addresses') ?></span></span></button></td>
60
+ </tr>
61
+ </tfoot>
62
+ <tbody>
63
+ <?php foreach ($this->getItems() as $_index => $_item): ?>
64
+ <?php if ($_item->getQuoteItem()) :?>
65
+ <tr>
66
+ <td><?php echo $this->getItemHtml($_item->getQuoteItem())?></td>
67
+ <td><input type="text" name="ship[<?php echo $_index ?>][<?php echo $_item->getQuoteItemId() ?>][qty]" value="<?php echo $this->escapeHtml($_item->getQty()) ?>" size="2" class="input-text qty" /></td>
68
+ <td><?php if ($_item->getProduct()->getIsVirtual()): echo $this->__('Shipping selection is not applicable.'); else: echo $this->getAddressesHtmlSelect($_item, $_index); endif; ?></td>
69
+ <td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>" title="<?php echo $this->__('Remove Item') ?>" class="btn-remove2"><?php echo $this->__('Remove Item') ?></a></td>
70
+ </tr>
71
+ <?php endif; ?>
72
+ <?php endforeach; ?>
73
+ </tbody>
74
+ </table>
75
+ <script type="text/javascript">decorateTable('multiship-addresses-table')</script>
76
+ <div class="buttons-set">
77
+ <p class="bac