magento_classic_theme - Version 1.4.1.2

Version Notes

chimpdesign free theme

Download this release

Release Info

Developer Magento Core Team
Extension magento_classic_theme
Version 1.4.1.2
Comparing to
See all releases


Version 1.4.1.2

Files changed (224) hide show
  1. app/code/local/chimps/Theme/Block/Adminhtml/Theme.php +12 -0
  2. app/code/local/chimps/Theme/Block/Adminhtml/Theme/Edit.php +45 -0
  3. app/code/local/chimps/Theme/Block/Adminhtml/Theme/Edit/Form.php +19 -0
  4. app/code/local/chimps/Theme/Block/Adminhtml/Theme/Edit/Tab/Form.php +83 -0
  5. app/code/local/chimps/Theme/Block/Adminhtml/Theme/Edit/Tabs.php +24 -0
  6. app/code/local/chimps/Theme/Block/Adminhtml/Theme/Grid.php +116 -0
  7. app/code/local/chimps/Theme/Block/Theme.php +17 -0
  8. app/code/local/chimps/Theme/Helper/Data.php +6 -0
  9. app/code/local/chimps/Theme/Model/Mysql4/Theme.php +10 -0
  10. app/code/local/chimps/Theme/Model/Mysql4/Theme/Collection.php +10 -0
  11. app/code/local/chimps/Theme/Model/Status.php +15 -0
  12. app/code/local/chimps/Theme/Model/Theme.php +10 -0
  13. app/code/local/chimps/Theme/controllers/Adminhtml/ThemeController.php +212 -0
  14. app/code/local/chimps/Theme/controllers/IndexController.php +47 -0
  15. app/code/local/chimps/Theme/etc/config.xml +128 -0
  16. app/code/local/chimps/Theme/sql/theme_setup/mysql4-install-0.1.0.php +23 -0
  17. app/design/adminhtml/default/default/layout/theme.xml +8 -0
  18. app/design/frontend/default/default/layout/theme.xml +10 -0
  19. app/design/frontend/default/default/template/theme/theme.phtml +65 -0
  20. app/design/frontend/default/estore/etc/widget.xml +166 -0
  21. app/design/frontend/default/estore/layout/authorizenet.xml +42 -0
  22. app/design/frontend/default/estore/layout/banners.xml +10 -0
  23. app/design/frontend/default/estore/layout/bannerslider.xml +10 -0
  24. app/design/frontend/default/estore/layout/bundle.xml +333 -0
  25. app/design/frontend/default/estore/layout/catalog.xml +448 -0
  26. app/design/frontend/default/estore/layout/cataloginventory.xml +64 -0
  27. app/design/frontend/default/estore/layout/catalogsearch.xml +138 -0
  28. app/design/frontend/default/estore/layout/centinel.xml +65 -0
  29. app/design/frontend/default/estore/layout/checkout.xml +436 -0
  30. app/design/frontend/default/estore/layout/chimpdesign.xml +13 -0
  31. app/design/frontend/default/estore/layout/cms.xml +89 -0
  32. app/design/frontend/default/estore/layout/contacts.xml +45 -0
  33. app/design/frontend/default/estore/layout/core.xml +33 -0
  34. app/design/frontend/default/estore/layout/customer.xml +274 -0
  35. app/design/frontend/default/estore/layout/directory.xml +78 -0
  36. app/design/frontend/default/estore/layout/downloadable.xml +198 -0
  37. app/design/frontend/default/estore/layout/googleanalytics.xml +41 -0
  38. app/design/frontend/default/estore/layout/googlecheckout.xml +49 -0
  39. app/design/frontend/default/estore/layout/googleoptimizer.xml +140 -0
  40. app/design/frontend/default/estore/layout/moneybookers.xml +41 -0
  41. app/design/frontend/default/estore/layout/newsletter.xml +73 -0
  42. app/design/frontend/default/estore/layout/page.xml +221 -0
  43. app/design/frontend/default/estore/layout/pagecache.xml +35 -0
  44. app/design/frontend/default/estore/layout/payment.xml +41 -0
  45. app/design/frontend/default/estore/layout/paypal.xml +146 -0
  46. app/design/frontend/default/estore/layout/paypaluk.xml +97 -0
  47. app/design/frontend/default/estore/layout/poll.xml +57 -0
  48. app/design/frontend/default/estore/layout/productalert.xml +47 -0
  49. app/design/frontend/default/estore/layout/reports.xml +37 -0
  50. app/design/frontend/default/estore/layout/review.xml +154 -0
  51. app/design/frontend/default/estore/layout/rss.xml +94 -0
  52. app/design/frontend/default/estore/layout/sales.xml +293 -0
  53. app/design/frontend/default/estore/layout/sales/billing_agreement.xml +55 -0
  54. app/design/frontend/default/estore/layout/sales/recurring_profile.xml +171 -0
  55. app/design/frontend/default/estore/layout/sendfriend.xml +41 -0
  56. app/design/frontend/default/estore/layout/shipping.xml +52 -0
  57. app/design/frontend/default/estore/layout/tag.xml +134 -0
  58. app/design/frontend/default/estore/layout/weee.xml +53 -0
  59. app/design/frontend/default/estore/layout/wishlist.xml +119 -0
  60. app/design/frontend/default/estore/layout/xmlconnect.xml +247 -0
  61. app/design/frontend/default/estore/template/authorizenet/directpost/form.phtml +135 -0
  62. app/design/frontend/default/estore/template/authorizenet/directpost/iframe.phtml +55 -0
  63. app/design/frontend/default/estore/template/authorizenet/directpost/info.phtml +35 -0
  64. app/design/frontend/default/estore/template/banners/banners.phtml +128 -0
  65. app/design/frontend/default/estore/template/bannerslider/bannerslider.phtml +53 -0
  66. app/design/frontend/default/estore/template/bundle/catalog/product/list/partof.phtml +52 -0
  67. app/design/frontend/default/estore/template/bundle/catalog/product/price.phtml +258 -0
  68. app/design/frontend/default/estore/template/bundle/catalog/product/view/options/notice.phtml +27 -0
  69. app/design/frontend/default/estore/template/bundle/catalog/product/view/price.phtml +93 -0
  70. app/design/frontend/default/estore/template/bundle/catalog/product/view/tierprices.phtml +41 -0
  71. app/design/frontend/default/estore/template/bundle/catalog/product/view/type/bundle.phtml +45 -0
  72. app/design/frontend/default/estore/template/bundle/catalog/product/view/type/bundle/option/checkbox.phtml +52 -0
  73. app/design/frontend/default/estore/template/bundle/catalog/product/view/type/bundle/option/multi.phtml +49 -0
  74. app/design/frontend/default/estore/template/bundle/catalog/product/view/type/bundle/option/radio.phtml +65 -0
  75. app/design/frontend/default/estore/template/bundle/catalog/product/view/type/bundle/option/select.phtml +55 -0
  76. app/design/frontend/default/estore/template/bundle/catalog/product/view/type/bundle/options.phtml +43 -0
  77. app/design/frontend/default/estore/template/bundle/email/order/items/creditmemo/default.phtml +168 -0
  78. app/design/frontend/default/estore/template/bundle/email/order/items/invoice/default.phtml +169 -0
  79. app/design/frontend/default/estore/template/bundle/email/order/items/order/default.phtml +174 -0
  80. app/design/frontend/default/estore/template/bundle/email/order/items/shipment/default.phtml +92 -0
  81. app/design/frontend/default/estore/template/bundle/rss/catalog/product/price.phtml +271 -0
  82. app/design/frontend/default/estore/template/bundle/sales/order/creditmemo/items/renderer.phtml +328 -0
  83. app/design/frontend/default/estore/template/bundle/sales/order/invoice/items/renderer.phtml +352 -0
  84. app/design/frontend/default/estore/template/bundle/sales/order/items/renderer.phtml +375 -0
  85. app/design/frontend/default/estore/template/bundle/sales/order/shipment/items/renderer.phtml +111 -0
  86. app/design/frontend/default/estore/template/callouts/left_col.phtml +40 -0
  87. app/design/frontend/default/estore/template/callouts/right_col.phtml +39 -0
  88. app/design/frontend/default/estore/template/catalog/category/page.phtml +36 -0
  89. app/design/frontend/default/estore/template/catalog/category/view.phtml +71 -0
  90. app/design/frontend/default/estore/template/catalog/category/widget/link/link_block.phtml +27 -0
  91. app/design/frontend/default/estore/template/catalog/category/widget/link/link_inline.phtml +27 -0
  92. app/design/frontend/default/estore/template/catalog/layer/filter.phtml +45 -0
  93. app/design/frontend/default/estore/template/catalog/layer/state.phtml +52 -0
  94. app/design/frontend/default/estore/template/catalog/layer/view.phtml +50 -0
  95. app/design/frontend/default/estore/template/catalog/navigation/left.phtml +59 -0
  96. app/design/frontend/default/estore/template/catalog/navigation/left_menu1.phtml +45 -0
  97. app/design/frontend/default/estore/template/catalog/navigation/top.phtml +92 -0
  98. app/design/frontend/default/estore/template/catalog/product/bestsellers.phtml +36 -0
  99. app/design/frontend/default/estore/template/catalog/product/compare/list.phtml +160 -0
  100. app/design/frontend/default/estore/template/catalog/product/compare/sidebar.phtml +54 -0
  101. app/design/frontend/default/estore/template/catalog/product/gallery.phtml +66 -0
  102. app/design/frontend/default/estore/template/catalog/product/list.phtml +149 -0
  103. app/design/frontend/default/estore/template/catalog/product/list/related.phtml +94 -0
  104. app/design/frontend/default/estore/template/catalog/product/list/toolbar.phtml +161 -0
  105. app/design/frontend/default/estore/template/catalog/product/list/upsell.phtml +52 -0
  106. app/design/frontend/default/estore/template/catalog/product/new.phtml +67 -0
  107. app/design/frontend/default/estore/template/catalog/product/price.phtml +414 -0
  108. app/design/frontend/default/estore/template/catalog/product/view.phtml +260 -0
  109. app/design/frontend/default/estore/template/catalog/product/view/additional.phtml +29 -0
  110. app/design/frontend/default/estore/template/catalog/product/view/addto.phtml +41 -0
  111. app/design/frontend/default/estore/template/catalog/product/view/addtocart.phtml +65 -0
  112. app/design/frontend/default/estore/template/catalog/product/view/attributes.phtml +89 -0
  113. app/design/frontend/default/estore/template/catalog/product/view/description.phtml +39 -0
  114. app/design/frontend/default/estore/template/catalog/product/view/media.phtml +67 -0
  115. app/design/frontend/default/estore/template/catalog/product/view/options.phtml +182 -0
  116. app/design/frontend/default/estore/template/catalog/product/view/options/js.phtml +89 -0
  117. app/design/frontend/default/estore/template/catalog/product/view/options/type/date.phtml +92 -0
  118. app/design/frontend/default/estore/template/catalog/product/view/options/type/default.phtml +30 -0
  119. app/design/frontend/default/estore/template/catalog/product/view/options/type/file.phtml +103 -0
  120. app/design/frontend/default/estore/template/catalog/product/view/options/type/select.phtml +40 -0
  121. app/design/frontend/default/estore/template/catalog/product/view/options/type/text.phtml +41 -0
  122. app/design/frontend/default/estore/template/catalog/product/view/options/wrapper.phtml +33 -0
  123. app/design/frontend/default/estore/template/catalog/product/view/options/wrapper/bottom.phtml +29 -0
  124. app/design/frontend/default/estore/template/catalog/product/view/price.phtml +35 -0
  125. app/design/frontend/default/estore/template/catalog/product/view/price_clone.phtml +28 -0
  126. app/design/frontend/default/estore/template/catalog/product/view/tierprices.phtml +182 -0
  127. app/design/frontend/default/estore/template/catalog/product/view/type/configurable.phtml +31 -0
  128. app/design/frontend/default/estore/template/catalog/product/view/type/default.phtml +36 -0
  129. app/design/frontend/default/estore/template/catalog/product/view/type/grouped.phtml +91 -0
  130. app/design/frontend/default/estore/template/catalog/product/view/type/options/configurable.phtml +48 -0
  131. app/design/frontend/default/estore/template/catalog/product/view/type/simple.phtml +31 -0
  132. app/design/frontend/default/estore/template/catalog/product/view/type/virtual.phtml +31 -0
  133. app/design/frontend/default/estore/template/catalog/product/widget/link/link_block.phtml +27 -0
  134. app/design/frontend/default/estore/template/catalog/product/widget/link/link_inline.phtml +27 -0
  135. app/design/frontend/default/estore/template/catalog/product/widget/new/column/new_default_list.phtml +55 -0
  136. app/design/frontend/default/estore/template/catalog/product/widget/new/column/new_images_list.phtml +46 -0
  137. app/design/frontend/default/estore/template/catalog/product/widget/new/column/new_names_list.phtml +46 -0
  138. app/design/frontend/default/estore/template/catalog/product/widget/new/content/new_grid.phtml +65 -0
  139. app/design/frontend/default/estore/template/catalog/product/widget/new/content/new_list.phtml +62 -0
  140. app/design/frontend/default/estore/template/catalog/rss/product/price.phtml +356 -0
  141. app/design/frontend/default/estore/template/catalog/seo/sitemap.phtml +50 -0
  142. app/design/frontend/default/estore/template/catalog/seo/sitemap/container.phtml +38 -0
  143. app/design/frontend/default/estore/template/catalog/seo/tree.phtml +43 -0
  144. app/design/frontend/default/estore/template/cataloginventory/qtyincrements.phtml +35 -0
  145. app/design/frontend/default/estore/template/cataloginventory/stockqty/composite.phtml +62 -0
  146. app/design/frontend/default/estore/template/cataloginventory/stockqty/default.phtml +35 -0
  147. app/design/frontend/default/estore/template/catalogsearch/advanced/form.phtml +95 -0
  148. app/design/frontend/default/estore/template/catalogsearch/advanced/result.phtml +60 -0
  149. app/design/frontend/default/estore/template/catalogsearch/form.mini.phtml +40 -0
  150. app/design/frontend/default/estore/template/catalogsearch/result.phtml +55 -0
  151. app/design/frontend/default/estore/template/catalogsearch/term.phtml +38 -0
  152. app/design/frontend/default/estore/template/centinel/authentication.phtml +56 -0
  153. app/design/frontend/default/estore/template/centinel/authentication/complete.phtml +41 -0
  154. app/design/frontend/default/estore/template/centinel/authentication/start.phtml +40 -0
  155. app/design/frontend/default/estore/template/centinel/logo.phtml +33 -0
  156. app/design/frontend/default/estore/template/checkout/cart.phtml +287 -0
  157. app/design/frontend/default/estore/template/checkout/cart/coupon.phtml +77 -0
  158. app/design/frontend/default/estore/template/checkout/cart/crosssell.phtml +59 -0
  159. app/design/frontend/default/estore/template/checkout/cart/item/configure/updatecart.phtml +55 -0
  160. app/design/frontend/default/estore/template/checkout/cart/item/default.phtml +178 -0
  161. app/design/frontend/default/estore/template/checkout/cart/noItems.phtml +34 -0
  162. app/design/frontend/default/estore/template/checkout/cart/render/default.phtml +70 -0
  163. app/design/frontend/default/estore/template/checkout/cart/render/simple.phtml +70 -0
  164. app/design/frontend/default/estore/template/checkout/cart/shipping.phtml +242 -0
  165. app/design/frontend/default/estore/template/checkout/cart/sidebar.phtml +76 -0
  166. app/design/frontend/default/estore/template/checkout/cart/sidebar/default.phtml +135 -0
  167. app/design/frontend/default/estore/template/checkout/cart/totals.phtml +39 -0
  168. app/design/frontend/default/estore/template/checkout/multishipping/address/select.phtml +58 -0
  169. app/design/frontend/default/estore/template/checkout/multishipping/addresses.phtml +81 -0
  170. app/design/frontend/default/estore/template/checkout/multishipping/agreements.phtml +49 -0
  171. app/design/frontend/default/estore/template/checkout/multishipping/billing.phtml +116 -0
  172. app/design/frontend/default/estore/template/checkout/multishipping/billing/items.phtml +54 -0
  173. app/design/frontend/default/estore/template/checkout/multishipping/item/default.phtml +45 -0
  174. app/design/frontend/default/estore/template/checkout/multishipping/link.phtml +27 -0
  175. app/design/frontend/default/estore/template/checkout/multishipping/overview.phtml +241 -0
  176. app/design/frontend/default/estore/template/checkout/multishipping/overview/item.phtml +238 -0
  177. app/design/frontend/default/estore/template/checkout/multishipping/shipping.phtml +131 -0
  178. app/design/frontend/default/estore/template/checkout/multishipping/state.phtml +39 -0
  179. app/design/frontend/default/estore/template/checkout/multishipping/success.phtml +50 -0
  180. app/design/frontend/default/estore/template/checkout/onepage.phtml +63 -0
  181. app/design/frontend/default/estore/template/checkout/onepage/agreements.phtml +51 -0
  182. app/design/frontend/default/estore/template/checkout/onepage/billing.phtml +201 -0
  183. app/design/frontend/default/estore/template/checkout/onepage/failure.phtml +32 -0
  184. app/design/frontend/default/estore/template/checkout/onepage/link.phtml +31 -0
  185. app/design/frontend/default/estore/template/checkout/onepage/login.phtml +118 -0
  186. app/design/frontend/default/estore/template/checkout/onepage/payment.phtml +70 -0
  187. app/design/frontend/default/estore/template/checkout/onepage/payment/methods.phtml +57 -0
  188. app/design/frontend/default/estore/template/checkout/onepage/progress.phtml +198 -0
  189. app/design/frontend/default/estore/template/checkout/onepage/review.phtml +29 -0
  190. app/design/frontend/default/estore/template/checkout/onepage/review/button.phtml +27 -0
  191. app/design/frontend/default/estore/template/checkout/onepage/review/info.phtml +84 -0
  192. app/design/frontend/default/estore/template/checkout/onepage/review/item.phtml +239 -0
  193. app/design/frontend/default/estore/template/checkout/onepage/review/totals.phtml +47 -0
  194. app/design/frontend/default/estore/template/checkout/onepage/shipping.phtml +160 -0
  195. app/design/frontend/default/estore/template/checkout/onepage/shipping_method.phtml +46 -0
  196. app/design/frontend/default/estore/template/checkout/onepage/shipping_method/additional.phtml +29 -0
  197. app/design/frontend/default/estore/template/checkout/onepage/shipping_method/available.phtml +96 -0
  198. app/design/frontend/default/estore/template/checkout/success.phtml +64 -0
  199. app/design/frontend/default/estore/template/checkout/total/default.phtml +38 -0
  200. app/design/frontend/default/estore/template/checkout/total/nominal.phtml +56 -0
  201. app/design/frontend/default/estore/template/checkout/total/tax.phtml +68 -0
  202. app/design/frontend/default/estore/template/chimpdesign/form/index.phtml +1 -0
  203. app/design/frontend/default/estore/template/cms/content.phtml +27 -0
  204. app/design/frontend/default/estore/template/cms/content_heading.phtml +31 -0
  205. app/design/frontend/default/estore/template/cms/default/home.phtml +27 -0
  206. app/design/frontend/default/estore/template/cms/default/no-route.phtml +27 -0
  207. app/design/frontend/default/estore/template/cms/meta.phtml +32 -0
  208. app/design/frontend/default/estore/template/cms/widget/link/link_block.phtml +27 -0
  209. app/design/frontend/default/estore/template/cms/widget/link/link_inline.phtml +27 -0
  210. app/design/frontend/default/estore/template/cms/widget/static_block/default.phtml +27 -0
  211. app/design/frontend/default/estore/template/contacts/form.phtml +73 -0
  212. app/design/frontend/default/estore/template/core/formkey.phtml +27 -0
  213. app/design/frontend/default/estore/template/core/link.phtml +27 -0
  214. app/design/frontend/default/estore/template/core/messages.phtml +47 -0
  215. app/design/frontend/default/estore/template/customer/account/dashboard.phtml +79 -0
  216. app/design/frontend/default/estore/template/customer/account/dashboard/address.phtml +83 -0
  217. app/design/frontend/default/estore/template/customer/account/dashboard/hello.phtml +30 -0
  218. app/design/frontend/default/estore/template/customer/account/dashboard/info.phtml +95 -0
  219. app/design/frontend/default/estore/template/customer/account/dashboard/newsletter.phtml +38 -0
  220. app/design/frontend/default/estore/template/customer/account/link/back.phtml +29 -0
  221. app/design/frontend/default/estore/template/customer/account/navigation.phtml +43 -0
  222. app/design/frontend/default/estore/template/customer/address.phtml +94 -0
  223. app/design/frontend/default/estore/template/customer/address/book.phtml +105 -0
  224. app/design/frontend/default/estore/template/customer/address/edit.phtml +63 -0
app/code/local/chimps/Theme/Block/Adminhtml/Theme.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Chimps_Theme_Block_Adminhtml_Theme extends Mage_Adminhtml_Block_Widget_Grid_Container
3
+ {
4
+ public function __construct()
5
+ {
6
+ $this->_controller = 'adminhtml_theme';
7
+ $this->_blockGroup = 'theme';
8
+ $this->_headerText = Mage::helper('theme')->__('Theme Manager');
9
+ $this->_addButtonLabel = Mage::helper('theme')->__('Add Theme');
10
+ parent::__construct();
11
+ }
12
+ }
app/code/local/chimps/Theme/Block/Adminhtml/Theme/Edit.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chimps_Theme_Block_Adminhtml_Theme_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
+ {
5
+ public function __construct()
6
+ {
7
+ parent::__construct();
8
+
9
+ $this->_objectId = 'id';
10
+ $this->_blockGroup = 'theme';
11
+ $this->_controller = 'adminhtml_theme';
12
+
13
+ $this->_updateButton('save', 'label', Mage::helper('theme')->__('Save Theme'));
14
+ $this->_updateButton('delete', 'label', Mage::helper('theme')->__('Delete Theme'));
15
+
16
+ $this->_addButton('saveandcontinue', array(
17
+ 'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
18
+ 'onclick' => 'saveAndContinueEdit()',
19
+ 'class' => 'save',
20
+ ), -100);
21
+
22
+ $this->_formScripts[] = "
23
+ function toggleEditor() {
24
+ if (tinyMCE.getInstanceById('theme_content') == null) {
25
+ tinyMCE.execCommand('mceAddControl', false, 'theme_content');
26
+ } else {
27
+ tinyMCE.execCommand('mceRemoveControl', false, 'theme_content');
28
+ }
29
+ }
30
+
31
+ function saveAndContinueEdit(){
32
+ editForm.submit($('edit_form').action+'back/edit/');
33
+ }
34
+ ";
35
+ }
36
+
37
+ public function getHeaderText()
38
+ {
39
+ if( Mage::registry('theme_data') && Mage::registry('theme_data')->getId() ) {
40
+ return Mage::helper('theme')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('theme_data')->getTitle()));
41
+ } else {
42
+ return Mage::helper('theme')->__('Add Theme');
43
+ }
44
+ }
45
+ }
app/code/local/chimps/Theme/Block/Adminhtml/Theme/Edit/Form.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chimps_Theme_Block_Adminhtml_Theme_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
4
+ {
5
+ protected function _prepareForm()
6
+ {
7
+ $form = new Varien_Data_Form(array(
8
+ 'id' => 'edit_form',
9
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
10
+ 'method' => 'post',
11
+ 'enctype' => 'multipart/form-data'
12
+ )
13
+ );
14
+
15
+ $form->setUseContainer(true);
16
+ $this->setForm($form);
17
+ return parent::_prepareForm();
18
+ }
19
+ }
app/code/local/chimps/Theme/Block/Adminhtml/Theme/Edit/Tab/Form.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <?php
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
+ * 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 Mage
23
+ * @package Mage_Adminhtml
24
+ * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ class Chimps_Theme_Block_Adminhtml_Theme_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
28
+ {
29
+ protected function _prepareForm()
30
+ {
31
+ $form = new Varien_Data_Form();
32
+ $this->setForm($form);
33
+ $fieldset = $form->addFieldset('theme_form', array('legend'=>Mage::helper('theme')->__('Theme information')));
34
+
35
+ /* $fieldset->addField('title', 'text', array(
36
+ 'label' => Mage::helper('theme')->__('Title'),
37
+ 'class' => 'required-entry',
38
+ 'required' => true,
39
+ 'name' => 'title',
40
+ ));
41
+
42
+ $fieldset->addField('filename', 'file', array(
43
+ 'label' => Mage::helper('theme')->__('File'),
44
+ 'required' => false,
45
+ 'name' => 'filename',
46
+ ));*/
47
+ $fieldset->addField('Theme', 'select', array(
48
+ 'label' => Mage::helper('theme')->__('Theme'),
49
+ 'name' => 'theme',
50
+ 'values' => array(
51
+ array(
52
+ 'value' => Mage::getModel('core/design_source_design')->getAllOptions(),
53
+
54
+ 'label' => Mage::helper('theme')->__('Enabled'),
55
+ ),
56
+ ),
57
+ ));
58
+
59
+ if ( Mage::getSingleton('adminhtml/session')->getThemeData() )
60
+ {
61
+ $form->setValues(Mage::getSingleton('adminhtml/session')->getThemeData());
62
+ Mage::getSingleton('adminhtml/session')->setThemeData(null);
63
+ } elseif ( Mage::registry('theme_data') ) {
64
+ $form->setValues(Mage::registry('theme_data')->getData());
65
+ }
66
+ return parent::_prepareForm();
67
+ }
68
+ }
69
+ /*$fieldset->addField('Theme', 'select', array(
70
+ 'label' => Mage::helper('theme')->__('Theme'),
71
+ 'name' => 'theme',
72
+ 'values' => array(
73
+ array(
74
+ 'value' => Mage::getModel('core/design_source_design')->getAllOptions(),
75
+
76
+ 'label' => Mage::helper('theme')->__('Enabled'),
77
+ ),
78
+ ),
79
+ ));*/
80
+
81
+
82
+
83
+ ?>
app/code/local/chimps/Theme/Block/Adminhtml/Theme/Edit/Tabs.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chimps_Theme_Block_Adminhtml_Theme_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
4
+ {
5
+
6
+ public function __construct()
7
+ {
8
+ parent::__construct();
9
+ $this->setId('theme_tabs');
10
+ $this->setDestElementId('edit_form');
11
+ $this->setTitle(Mage::helper('theme')->__('Theme Information'));
12
+ }
13
+
14
+ protected function _beforeToHtml()
15
+ {
16
+ $this->addTab('form_section', array(
17
+ 'label' => Mage::helper('theme')->__('Theme Information'),
18
+ 'title' => Mage::helper('theme')->__('Theme Information'),
19
+ 'content' => $this->getLayout()->createBlock('theme/adminhtml_theme_edit_tab_form')->toHtml(),
20
+ ));
21
+
22
+ return parent::_beforeToHtml();
23
+ }
24
+ }
app/code/local/chimps/Theme/Block/Adminhtml/Theme/Grid.php ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chimps_Theme_Block_Adminhtml_Theme_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
+ {
5
+ public function __construct()
6
+ {
7
+ parent::__construct();
8
+ $this->setId('themeGrid');
9
+ $this->setDefaultSort('theme_id');
10
+ $this->setDefaultDir('ASC');
11
+ $this->setSaveParametersInSession(true);
12
+ }
13
+
14
+ protected function _prepareCollection()
15
+ {
16
+ $collection = Mage::getModel('theme/theme')->getCollection();
17
+ $this->setCollection($collection);
18
+ return parent::_prepareCollection();
19
+ }
20
+
21
+ protected function _prepareColumns()
22
+ {
23
+ $this->addColumn('theme_id', array(
24
+ 'header' => Mage::helper('theme')->__('ID'),
25
+ 'align' =>'right',
26
+ 'width' => '50px',
27
+ 'index' => 'theme_id',
28
+ ));
29
+
30
+ $this->addColumn('title', array(
31
+ 'header' => Mage::helper('theme')->__('Title'),
32
+ 'align' =>'left',
33
+ 'index' => 'title',
34
+ ));
35
+
36
+ /*
37
+ $this->addColumn('content', array(
38
+ 'header' => Mage::helper('theme')->__('Item Content'),
39
+ 'width' => '150px',
40
+ 'index' => 'content',
41
+ ));
42
+ */
43
+
44
+ $this->addColumn('status', array(
45
+ 'header' => Mage::helper('theme')->__('Status'),
46
+ 'align' => 'left',
47
+ 'width' => '80px',
48
+ 'index' => 'status',
49
+ 'type' => 'options',
50
+ 'options' => array(
51
+ 1 => 'Enabled',
52
+ 2 => 'Disabled',
53
+ ),
54
+ ));
55
+
56
+ $this->addColumn('action',
57
+ array(
58
+ 'header' => Mage::helper('theme')->__('Action'),
59
+ 'width' => '100',
60
+ 'type' => 'action',
61
+ 'getter' => 'getId',
62
+ 'actions' => array(
63
+ array(
64
+ 'caption' => Mage::helper('theme')->__('Edit'),
65
+ 'url' => array('base'=> '*/*/edit'),
66
+ 'field' => 'id'
67
+ )
68
+ ),
69
+ 'filter' => false,
70
+ 'sortable' => false,
71
+ 'index' => 'stores',
72
+ 'is_system' => true,
73
+ ));
74
+
75
+ $this->addExportType('*/*/exportCsv', Mage::helper('theme')->__('CSV'));
76
+ $this->addExportType('*/*/exportXml', Mage::helper('theme')->__('XML'));
77
+
78
+ return parent::_prepareColumns();
79
+ }
80
+
81
+ protected function _prepareMassaction()
82
+ {
83
+ $this->setMassactionIdField('theme_id');
84
+ $this->getMassactionBlock()->setFormFieldName('theme');
85
+
86
+ $this->getMassactionBlock()->addItem('delete', array(
87
+ 'label' => Mage::helper('theme')->__('Delete'),
88
+ 'url' => $this->getUrl('*/*/massDelete'),
89
+ 'confirm' => Mage::helper('theme')->__('Are you sure?')
90
+ ));
91
+
92
+ $statuses = Mage::getSingleton('theme/status')->getOptionArray();
93
+
94
+ array_unshift($statuses, array('label'=>'', 'value'=>''));
95
+ $this->getMassactionBlock()->addItem('status', array(
96
+ 'label'=> Mage::helper('theme')->__('Change status'),
97
+ 'url' => $this->getUrl('*/*/massStatus', array('_current'=>true)),
98
+ 'additional' => array(
99
+ 'visibility' => array(
100
+ 'name' => 'status',
101
+ 'type' => 'select',
102
+ 'class' => 'required-entry',
103
+ 'label' => Mage::helper('theme')->__('Status'),
104
+ 'values' => $statuses
105
+ )
106
+ )
107
+ ));
108
+ return $this;
109
+ }
110
+
111
+ public function getRowUrl($row)
112
+ {
113
+ return $this->getUrl('*/*/edit', array('id' => $row->getId()));
114
+ }
115
+
116
+ }
app/code/local/chimps/Theme/Block/Theme.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Chimps_Theme_Block_Theme extends Mage_Core_Block_Template
3
+ {
4
+ public function _prepareLayout()
5
+ {
6
+ return parent::_prepareLayout();
7
+ }
8
+
9
+ public function getTheme()
10
+ {
11
+ if (!$this->hasData('theme')) {
12
+ $this->setData('theme', Mage::registry('theme'));
13
+ }
14
+ return $this->getData('theme');
15
+
16
+ }
17
+ }
app/code/local/chimps/Theme/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chimps_Theme_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/local/chimps/Theme/Model/Mysql4/Theme.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chimps_Theme_Model_Mysql4_Theme extends Mage_Core_Model_Mysql4_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ // Note that the theme_id refers to the key field in your database table.
8
+ $this->_init('theme/theme', 'theme_id');
9
+ }
10
+ }
app/code/local/chimps/Theme/Model/Mysql4/Theme/Collection.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chimps_Theme_Model_Mysql4_Theme_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('theme/theme');
9
+ }
10
+ }
app/code/local/chimps/Theme/Model/Status.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chimps_Theme_Model_Status extends Varien_Object
4
+ {
5
+ const STATUS_ENABLED = 1;
6
+ const STATUS_DISABLED = 2;
7
+
8
+ static public function getOptionArray()
9
+ {
10
+ return array(
11
+ self::STATUS_ENABLED => Mage::helper('theme')->__('Enabled'),
12
+ self::STATUS_DISABLED => Mage::helper('theme')->__('Disabled')
13
+ );
14
+ }
15
+ }
app/code/local/chimps/Theme/Model/Theme.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chimps_Theme_Model_Theme extends Mage_Core_Model_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('theme/theme');
9
+ }
10
+ }
app/code/local/chimps/Theme/controllers/Adminhtml/ThemeController.php ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chimps_Theme_Adminhtml_ThemeController extends Mage_Adminhtml_Controller_action
4
+ {
5
+
6
+ protected function _initAction() {
7
+ $this->loadLayout()
8
+ ->_setActiveMenu('theme/items')
9
+ ->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Theme Manager'));
10
+
11
+ return $this;
12
+ }
13
+
14
+ public function indexAction() {
15
+ $this->_initAction()
16
+ ->renderLayout();
17
+ }
18
+ public function editAction() {
19
+ $id = $this->getRequest()->getParam('id');
20
+ $model = Mage::getModel('theme/theme')->load($id);
21
+
22
+ if ($model->getId() || $id == 0) {
23
+ $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
24
+ if (!empty($data)) {
25
+ $model->setData($data);
26
+ }
27
+ Mage::register('theme_data', $model);
28
+
29
+ $this->loadLayout();
30
+ $this->_setActiveMenu('theme/items');
31
+
32
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Theme Manager'), Mage::helper('adminhtml')->__('Theme Manager'));
33
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Theme News'), Mage::helper('adminhtml')->__('Theme News'));
34
+
35
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
36
+
37
+ $this->_addContent($this->getLayout()->createBlock('theme/adminhtml_theme_edit'))
38
+ ->_addLeft($this->getLayout()->createBlock('theme/adminhtml_theme_edit_tabs'));
39
+
40
+ $this->renderLayout();
41
+ } else {
42
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('theme')->__('Theme does not exist'));
43
+ $this->_redirect('*/*/');
44
+ }
45
+ }
46
+
47
+ public function newAction() {
48
+ $this->_forward('edit');
49
+ }
50
+
51
+ public function saveAction() {
52
+ if ($data = $this->getRequest()->getPost()) {
53
+
54
+ if(isset($_FILES['filename']['name']) && $_FILES['filename']['name'] != '') {
55
+ try {
56
+ /* Starting upload */
57
+ $uploader = new Varien_File_Uploader('filename');
58
+
59
+ // Any extention would work
60
+ $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
61
+ $uploader->setAllowRenameFiles(false);
62
+
63
+ // Set the file upload mode
64
+ // false -> get the file directly in the specified folder
65
+ // true -> get the file in the product like folders
66
+ // (file.jpg will go in something like /media/f/i/file.jpg)
67
+ $uploader->setFilesDispersion(false);
68
+
69
+ // We set media as the upload dir
70
+ $path = Mage::getBaseDir('media') . DS ;
71
+ $uploader->save($path, $_FILES['filename']['name'] );
72
+
73
+ } catch (Exception $e) {
74
+
75
+ }
76
+
77
+ //this way the name is saved in DB
78
+ $data['filename'] = $_FILES['filename']['name'];
79
+ }
80
+
81
+
82
+ $model = Mage::getModel('theme/theme');
83
+ $model->setData($data)
84
+ ->setId($this->getRequest()->getParam('id'));
85
+
86
+ try {
87
+ if ($model->getCreatedTime == NULL || $model->getUpdateTime() == NULL) {
88
+ $model->setCreatedTime(now())
89
+ ->setUpdateTime(now());
90
+ } else {
91
+ $model->setUpdateTime(now());
92
+ }
93
+
94
+ $model->save();
95
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('theme')->__('Theme was successfully saved'));
96
+ Mage::getSingleton('adminhtml/session')->setFormData(false);
97
+
98
+ if ($this->getRequest()->getParam('back')) {
99
+ $this->_redirect('*/*/edit', array('id' => $model->getId()));
100
+ return;
101
+ }
102
+ $this->_redirect('*/*/');
103
+ return;
104
+ } catch (Exception $e) {
105
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
106
+ Mage::getSingleton('adminhtml/session')->setFormData($data);
107
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
108
+ return;
109
+ }
110
+ }
111
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('theme')->__('Unable to find Theme to save'));
112
+ $this->_redirect('*/*/');
113
+ }
114
+
115
+ public function deleteAction() {
116
+ if( $this->getRequest()->getParam('id') > 0 ) {
117
+ try {
118
+ $model = Mage::getModel('theme/theme');
119
+
120
+ $model->setId($this->getRequest()->getParam('id'))
121
+ ->delete();
122
+
123
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Theme was successfully deleted'));
124
+ $this->_redirect('*/*/');
125
+ } catch (Exception $e) {
126
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
127
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
128
+ }
129
+ }
130
+ $this->_redirect('*/*/');
131
+ }
132
+
133
+ public function massDeleteAction() {
134
+ $themeIds = $this->getRequest()->getParam('theme');
135
+ if(!is_array($themeIds)) {
136
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select Theme(s)'));
137
+ } else {
138
+ try {
139
+ foreach ($themeIds as $themeId) {
140
+ $theme = Mage::getModel('theme/theme')->load($themeId);
141
+ $theme->delete();
142
+ }
143
+ Mage::getSingleton('adminhtml/session')->addSuccess(
144
+ Mage::helper('adminhtml')->__(
145
+ 'Total of %d record(s) were successfully deleted', count($themeIds)
146
+ )
147
+ );
148
+ } catch (Exception $e) {
149
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
150
+ }
151
+ }
152
+ $this->_redirect('*/*/index');
153
+ }
154
+
155
+ public function massStatusAction()
156
+ {
157
+ $themeIds = $this->getRequest()->getParam('theme');
158
+ if(!is_array($themeIds)) {
159
+ Mage::getSingleton('adminhtml/session')->addError($this->__('Please select Theme(s)'));
160
+ } else {
161
+ try {
162
+ foreach ($themeIds as $themeId) {
163
+ $theme = Mage::getSingleton('theme/theme')
164
+ ->load($themeId)
165
+ ->setStatus($this->getRequest()->getParam('status'))
166
+ ->setIsMassupdate(true)
167
+ ->save();
168
+ }
169
+ $this->_getSession()->addSuccess(
170
+ $this->__('Total of %d record(s) were successfully updated', count($themeIds))
171
+ );
172
+ } catch (Exception $e) {
173
+ $this->_getSession()->addError($e->getMessage());
174
+ }
175
+ }
176
+ $this->_redirect('*/*/index');
177
+ }
178
+
179
+ public function exportCsvAction()
180
+ {
181
+ $fileName = 'theme.csv';
182
+ $content = $this->getLayout()->createBlock('theme/adminhtml_theme_grid')
183
+ ->getCsv();
184
+
185
+ $this->_sendUploadResponse($fileName, $content);
186
+ }
187
+
188
+ public function exportXmlAction()
189
+ {
190
+ $fileName = 'theme.xml';
191
+ $content = $this->getLayout()->createBlock('theme/adminhtml_theme_grid')
192
+ ->getXml();
193
+
194
+ $this->_sendUploadResponse($fileName, $content);
195
+ }
196
+
197
+ protected function _sendUploadResponse($fileName, $content, $contentType='application/octet-stream')
198
+ {
199
+ $response = $this->getResponse();
200
+ $response->setHeader('HTTP/1.1 200 OK','');
201
+ $response->setHeader('Pragma', 'public', true);
202
+ $response->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true);
203
+ $response->setHeader('Content-Disposition', 'attachment; filename='.$fileName);
204
+ $response->setHeader('Last-Modified', date('r'));
205
+ $response->setHeader('Accept-Ranges', 'bytes');
206
+ $response->setHeader('Content-Length', strlen($content));
207
+ $response->setHeader('Content-type', $contentType);
208
+ $response->setBody($content);
209
+ $response->sendResponse();
210
+ die;
211
+ }
212
+ }
app/code/local/chimps/Theme/controllers/IndexController.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Chimps_Theme_IndexController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+
7
+ /*
8
+ * Load an object by id
9
+ * Request looking like:
10
+ * http://site.com/theme?id=15
11
+ * or
12
+ * http://site.com/theme/id/15
13
+ */
14
+ /*
15
+ $theme_id = $this->getRequest()->getParam('id');
16
+
17
+ if($theme_id != null && $theme_id != '') {
18
+ $theme = Mage::getModel('theme/theme')->load($theme_id)->getData();
19
+ } else {
20
+ $theme = null;
21
+ }
22
+ */
23
+
24
+ /*
25
+ * If no param we load a the last created item
26
+ */
27
+ /*
28
+ if($theme == null) {
29
+ $resource = Mage::getSingleton('core/resource');
30
+ $read= $resource->getConnection('core_read');
31
+ $themeTable = $resource->getTableName('theme');
32
+
33
+ $select = $read->select()
34
+ ->from($themeTable,array('theme_id','title','content','status'))
35
+ ->where('status',1)
36
+ ->order('created_time DESC') ;
37
+
38
+ $theme = $read->fetchRow($select);
39
+ }
40
+ Mage::register('theme', $theme);
41
+ */
42
+
43
+
44
+ $this->loadLayout();
45
+ $this->renderLayout();
46
+ }
47
+ }
app/code/local/chimps/Theme/etc/config.xml ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Chimps
5
+ * @package Chimps_Theme
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <modules>
12
+ <Chimps_Theme>
13
+ <version>0.1.0</version>
14
+ </Chimps_Theme>
15
+ </modules>
16
+ <frontend>
17
+ <routers>
18
+ <theme>
19
+ <use>standard</use>
20
+ <args>
21
+ <module>Chimps_Theme</module>
22
+ <frontName>theme</frontName>
23
+ </args>
24
+ </theme>
25
+ </routers>
26
+ <layout>
27
+ <updates>
28
+ <theme>
29
+ <file>theme.xml</file>
30
+ </theme>
31
+ </updates>
32
+ </layout>
33
+ </frontend>
34
+ <admin>
35
+ <routers>
36
+ <theme>
37
+ <use>admin</use>
38
+ <args>
39
+ <module>Chimps_Theme</module>
40
+ <frontName>theme</frontName>
41
+ </args>
42
+ </theme>
43
+ </routers>
44
+ </admin>
45
+ <adminhtml>
46
+ <menu>
47
+ <theme module="theme">
48
+ <title>Theme</title>
49
+ <sort_order>71</sort_order>
50
+ <children>
51
+ <items module="theme">
52
+ <title>Manage Theme</title>
53
+ <sort_order>0</sort_order>
54
+ <action>theme/adminhtml_theme</action>
55
+ </items>
56
+ </children>
57
+ </theme>
58
+ </menu>
59
+ <acl>
60
+ <resources>
61
+ <all>
62
+ <title>Allow Everything</title>
63
+ </all>
64
+ <admin>
65
+ <children>
66
+ <Chimps_Theme>
67
+ <title>Theme Module</title>
68
+ <sort_order>10</sort_order>
69
+ </Chimps_Theme>
70
+ </children>
71
+ </admin>
72
+ </resources>
73
+ </acl>
74
+ <layout>
75
+ <updates>
76
+ <theme>
77
+ <file>theme.xml</file>
78
+ </theme>
79
+ </updates>
80
+ </layout>
81
+ </adminhtml>
82
+ <global>
83
+ <models>
84
+ <theme>
85
+ <class>Chimps_Theme_Model</class>
86
+ <resourceModel>theme_mysql4</resourceModel>
87
+ </theme>
88
+ <theme_mysql4>
89
+ <class>Chimps_Theme_Model_Mysql4</class>
90
+ <entities>
91
+ <theme>
92
+ <table>theme</table>
93
+ </theme>
94
+ </entities>
95
+ </theme_mysql4>
96
+ </models>
97
+ <resources>
98
+ <theme_setup>
99
+ <setup>
100
+ <module>Chimps_Theme</module>
101
+ </setup>
102
+ <connection>
103
+ <use>core_setup</use>
104
+ </connection>
105
+ </theme_setup>
106
+ <theme_write>
107
+ <connection>
108
+ <use>core_write</use>
109
+ </connection>
110
+ </theme_write>
111
+ <theme_read>
112
+ <connection>
113
+ <use>core_read</use>
114
+ </connection>
115
+ </theme_read>
116
+ </resources>
117
+ <blocks>
118
+ <theme>
119
+ <class>Chimps_Theme_Block</class>
120
+ </theme>
121
+ </blocks>
122
+ <helpers>
123
+ <theme>
124
+ <class>Chimps_Theme_Helper</class>
125
+ </theme>
126
+ </helpers>
127
+ </global>
128
+ </config>
app/code/local/chimps/Theme/sql/theme_setup/mysql4-install-0.1.0.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+ $installer->run("
8
+
9
+ -- DROP TABLE IF EXISTS {$this->getTable('theme')};
10
+ CREATE TABLE {$this->getTable('theme')} (
11
+ `theme_id` int(11) unsigned NOT NULL auto_increment,
12
+ `title` varchar(255) NOT NULL default '',
13
+ `filename` varchar(255) NOT NULL default '',
14
+ `content` text NOT NULL default '',
15
+ `status` smallint(6) NOT NULL default '0',
16
+ `created_time` datetime NULL,
17
+ `update_time` datetime NULL,
18
+ PRIMARY KEY (`theme_id`)
19
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
20
+
21
+ ");
22
+
23
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/theme.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <theme_adminhtml_theme_index>
4
+ <reference name="content">
5
+ <block type="theme/adminhtml_theme" name="theme" />
6
+ </reference>
7
+ </theme_adminhtml_theme_index>
8
+ </layout>
app/design/frontend/default/default/layout/theme.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ </default>
5
+ <theme_index_index>
6
+ <reference name="content">
7
+ <block type="theme/theme" name="theme" template="theme/theme.phtml" />
8
+ </reference>
9
+ </theme_index_index>
10
+ </layout>
app/design/frontend/default/default/template/theme/theme.phtml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h4><?php echo $this->__('Module List') ?></h4>
2
+ <?php
3
+
4
+ /*
5
+ This shows how to load specific fields from a record in the database.
6
+ 1) Note the load(15), this corresponds to saying "select * from table where table_id = 15"
7
+ 2) You can then just use the get(fieldname) to pull specific data from the table.
8
+ 3) If you have a field named news_id, then it becomes getNewsId, etc.
9
+ */
10
+ /*
11
+ $news = Mage::getModel('theme/theme')->load(15);
12
+ echo $news->getNewsId();
13
+ echo $news->getTitle();
14
+ echo $news->getContent();
15
+ echo $news->getStatus();
16
+ */
17
+
18
+ /*
19
+ This shows an alternate way of loading datas from a record using the database the "Magento Way" (using blocks and controller).
20
+ Uncomment blocks in /app/code/local/Namespace/Module/controllers/IndexController.php if you want to use it.
21
+
22
+ */
23
+ /*
24
+ $object = $this->getTheme();
25
+ echo 'id: '.$object['test_id'].'<br/>';
26
+ echo 'title: '.$object['title'].'<br/>';
27
+ echo 'content: '.$object['content'].'<br/>';
28
+ echo 'status: '.$object['status'].'<br/>';
29
+ */
30
+
31
+
32
+ /*
33
+ This shows how to load multiple rows in a collection and save a change to them.
34
+ 1) The setPageSize function will load only 5 records per page and you can set the current Page with the setCurPage function.
35
+ 2) The $collection->walk('save') allows you to save everything in the collection after all changes have been made.
36
+ */
37
+ /*
38
+ $i = 0;
39
+
40
+ $collection = Mage::getModel('theme/theme')->getCollection();
41
+ $collection->setPageSize(5);
42
+ $collection->setCurPage(2);
43
+ $size = $collection->getSize();
44
+ $cnt = count($collection);
45
+ foreach ($collection as $item) {
46
+ $i = $i+1;
47
+ $item->setTitle($i);
48
+ echo $item->getTitle();
49
+ }
50
+
51
+ $collection->walk('save');
52
+ */
53
+
54
+ /*
55
+ This shows how to load a single record and save a change.
56
+ 1) Note the setTitle, this corresponds to the table field name, title, and then you pass it the text to change.
57
+ 2) Call the save() function only on a single record.
58
+ */
59
+ /*
60
+ $object = Mage::getModel('theme/theme')->load(1);
61
+ $object->setTitle('This is a changed title');
62
+ $object->save();
63
+ */
64
+
65
+ ?>
app/design/frontend/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/layout/banners.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="1.4.0">
3
+ <default>
4
+ </default>
5
+ <banners_index_index>
6
+ <reference name="content">
7
+ <block type="banners/banners" name="banners" template="banners/banners.phtml" />
8
+ </reference>
9
+ </banners_index_index>
10
+ </layout>
app/design/frontend/default/estore/layout/bannerslider.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ </default>
5
+ <bannerslider_index_index>
6
+ <reference name="content">
7
+ <block type="bannerslider/bannerslider" name="bannerslider" template="bannerslider/bannerslider.phtml" />
8
+ </reference>
9
+ </bannerslider_index_index>
10
+ </layout>
app/design/frontend/default/estore/layout/bundle.xml ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <wishlist_index_index>
96
+ <reference name="customer.wishlist">
97
+ <action method="addOptionsRenderCfg"><type>bundle</type><helper>bundle/catalog_product_configuration</helper></action>
98
+ </reference>
99
+ </wishlist_index_index>
100
+
101
+ <catalog_product_view>
102
+ <reference name="catalog.product.related">
103
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
104
+ </reference>
105
+ </catalog_product_view>
106
+
107
+ <!--
108
+ Partof block for simple products
109
+ -->
110
+
111
+ <PRODUCT_TYPE_simple>
112
+ <!--
113
+ <reference name="product.info.additional">
114
+
115
+ <block type="bundle/catalog_product_list_partof" before="-" name="product.info.partof" as="partof_products" template="bundle/catalog/product/list/partof.phtml">
116
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
117
+ </block>
118
+ -->
119
+ <reference name="product.info.upsell">
120
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
121
+ <action method="setItemLimit"><type>bundle</type><limit>4</limit></action>
122
+ </reference>
123
+ </PRODUCT_TYPE_simple>
124
+
125
+ <!--
126
+ Shopping cart item renderer (sidebar)
127
+ -->
128
+
129
+ <customer_account>
130
+ <reference name="cart_sidebar">
131
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
132
+ </reference>
133
+ </customer_account>
134
+
135
+ <!--
136
+ Shopping cart item renderer
137
+ -->
138
+
139
+ <checkout_cart_index>
140
+ <reference name="checkout.cart">
141
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
142
+ </reference>
143
+ <reference name="checkout.cart.crosssell">
144
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
145
+ </reference>
146
+ </checkout_cart_index>
147
+
148
+ <!--
149
+ Onepage Checkout Review Page
150
+ -->
151
+
152
+ <checkout_onepage_review>
153
+ <reference name="root">
154
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
155
+ </reference>
156
+ </checkout_onepage_review>
157
+
158
+ <checkout_multishipping_addresses>
159
+ <reference name="checkout_addresses">
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
+ </checkout_multishipping_addresses>
163
+
164
+ <checkout_multishipping_shipping>
165
+ <reference name="checkout_shipping">
166
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
167
+ </reference>
168
+ <reference name="checkout_billing_items">
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_shipping>
172
+
173
+ <checkout_multishipping_overview>
174
+ <reference name="checkout_overview">
175
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
176
+ </reference>
177
+ </checkout_multishipping_overview>
178
+
179
+ <paypal_express_review>
180
+ <reference name="paypal.express.review.details">
181
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
182
+ </reference>
183
+ </paypal_express_review>
184
+ <paypal_express_review_details>
185
+ <reference name="root">
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
+ </paypal_express_review_details>
189
+
190
+ <paypaluk_express_review>
191
+ <reference name="paypal.express.review.details">
192
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
193
+ </reference>
194
+ </paypaluk_express_review>
195
+ <paypaluk_express_review_details>
196
+ <reference name="root">
197
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
198
+ </reference>
199
+ </paypaluk_express_review_details>
200
+
201
+ <!--
202
+ Additional block for bundle product type
203
+ -->
204
+
205
+ <PRODUCT_TYPE_bundle translate="label" module="bundle">
206
+ <label>Catalog Product View (Bundle)</label>
207
+ <reference name="head">
208
+ <action method="addItem"><type>skin_js</type><name>js/bundle.js</name></action>
209
+ </reference>
210
+ <reference name="product.info">
211
+ <block type="bundle/catalog_product_view_type_bundle" name="product.info.bundle" as="product_type_data" template="bundle/catalog/product/view/type/bundle.phtml">
212
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
213
+ <block type="bundle/catalog_product_price" name="bundle.prices" as="bundle_prices" template="bundle/catalog/product/view/price.phtml" />
214
+ </block>
215
+ </reference>
216
+ <reference name="product.info.options.wrapper">
217
+ <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">
218
+ <action method="addRenderer"><type>select</type><block>bundle/catalog_product_view_type_bundle_option_select</block></action>
219
+ <action method="addRenderer"><type>multi</type><block>bundle/catalog_product_view_type_bundle_option_multi</block></action>
220
+ <action method="addRenderer"><type>radio</type><block>bundle/catalog_product_view_type_bundle_option_radio</block></action>
221
+ <action method="addRenderer"><type>checkbox</type><block>bundle/catalog_product_view_type_bundle_option_checkbox</block></action>
222
+ </block>
223
+ <action method="insert"><block>product.info.bundle.options</block></action>
224
+ </reference>
225
+ <reference name="product.info.options.wrapper.bottom">
226
+ <remove name="product.tierprices" />
227
+ <block type="bundle/catalog_product_view" name="bundle.tierprices" as="tierprices" before="-" template="bundle/catalog/product/view/tierprices.phtml"/>
228
+ <block type="cataloginventory/qtyincrements" name="product.info.extrahint" as="extrahint" template="cataloginventory/qtyincrements.phtml"/>
229
+ </reference>
230
+ <reference name="product.clone_prices">
231
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/view/price.phtml</template></action>
232
+ </reference>
233
+ </PRODUCT_TYPE_bundle>
234
+
235
+ <sales_order_view>
236
+ <reference name="order_items">
237
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/items/renderer.phtml</template></action>
238
+ </reference>
239
+ </sales_order_view>
240
+
241
+ <sales_order_invoice>
242
+ <reference name="invoice_items">
243
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/invoice/items/renderer.phtml</template></action>
244
+ </reference>
245
+ </sales_order_invoice>
246
+
247
+ <sales_order_shipment>
248
+ <reference name="shipment_items">
249
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/shipment/items/renderer.phtml</template></action>
250
+ </reference>
251
+ </sales_order_shipment>
252
+
253
+ <sales_order_creditmemo>
254
+ <reference name="creditmemo_items">
255
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/creditmemo/items/renderer.phtml</template></action>
256
+ </reference>
257
+ </sales_order_creditmemo>
258
+
259
+ <!--
260
+ Print pages
261
+ -->
262
+
263
+ <sales_order_print>
264
+ <reference name="sales.order.print">
265
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/items/renderer.phtml</template></action>
266
+ </reference>
267
+ </sales_order_print>
268
+
269
+ <sales_order_printinvoice>
270
+ <reference name="sales.order.print.invoice">
271
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/invoice/items/renderer.phtml</template></action>
272
+ </reference>
273
+ </sales_order_printinvoice>
274
+
275
+ <sales_order_printshipment>
276
+ <reference name="sales.order.print.shipment">
277
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/shipment/items/renderer.phtml</template></action>
278
+ </reference>
279
+ </sales_order_printshipment>
280
+
281
+ <sales_order_printcreditmemo>
282
+ <reference name="sales.order.print.creditmemo">
283
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/creditmemo/items/renderer.phtml</template></action>
284
+ </reference>
285
+ </sales_order_printcreditmemo>
286
+
287
+ <!--
288
+ Emails
289
+ -->
290
+ <sales_email_order_items>
291
+ <reference name="items">
292
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/order/default.phtml</template></action>
293
+ </reference>
294
+ </sales_email_order_items>
295
+
296
+ <sales_email_order_invoice_items>
297
+ <reference name="items">
298
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/invoice/default.phtml</template></action>
299
+ </reference>
300
+ </sales_email_order_invoice_items>
301
+
302
+
303
+ <sales_email_order_shipment_items>
304
+ <reference name="items">
305
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/shipment/default.phtml</template></action>
306
+ </reference>
307
+ </sales_email_order_shipment_items>
308
+
309
+ <sales_email_order_creditmemo_items>
310
+ <reference name="items">
311
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/creditmemo/default.phtml</template></action>
312
+ </reference>
313
+ </sales_email_order_creditmemo_items>
314
+
315
+ <!--
316
+ RSS
317
+ -->
318
+ <rss_catalog_category>
319
+ <reference name="rss.catalog.category">
320
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/rss/catalog/product/price.phtml</template></action>
321
+ </reference>
322
+ </rss_catalog_category>
323
+ <rss_catalog_new>
324
+ <reference name="rss.catalog.new">
325
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/rss/catalog/product/price.phtml</template></action>
326
+ </reference>
327
+ </rss_catalog_new>
328
+ <rss_catalog_tag>
329
+ <reference name="rss.catalog.tag">
330
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/rss/catalog/product/price.phtml</template></action>
331
+ </reference>
332
+ </rss_catalog_tag>
333
+ </layout>
app/design/frontend/default/estore/layout/catalog.xml ADDED
@@ -0,0 +1,448 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="top.menu">
49
+ <block type="catalog/navigation" name="catalog.topnav" template="catalog/navigation/top.phtml"/>
50
+ </reference>
51
+ <reference name="left">
52
+ <block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
53
+ <action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action>
54
+ <action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (555) 555-0123.</alt></action>
55
+ <action method="setLinkUrl"><url>checkout/cart</url></action>
56
+ </block>
57
+ </reference>
58
+ <reference name="left">
59
+ <block type="catalog/product_compare_sidebar" after="catalog.vertnav" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
60
+ <block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">
61
+ <action method="setImgSrc"><src>images/media/col_right_callout.jpg</src></action>
62
+ <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>
63
+ </block>
64
+ </reference>
65
+ <reference name="footer_links">
66
+ <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>
67
+ </reference>
68
+ <block type="catalog/product_price_template" name="catalog_product_price_template" />
69
+ </default>
70
+
71
+
72
+ <!--
73
+ Category default layout
74
+ -->
75
+
76
+ <catalog_category_default translate="label">
77
+ <label>Catalog Category (Non-Anchor)</label>
78
+ <reference name="left">
79
+ <block type="catalog/navigation" name="catalog.vertnav" template="catalog/navigation/vert_nav.phtml"/>
80
+ <action method="unsetChild"><alias>right.reports.product.viewed</alias></action>
81
+ <action method="unsetChild"><alias>right.reports.product.compared</alias></action>
82
+ </reference>
83
+
84
+
85
+ <reference name="content">
86
+ <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
87
+ <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
88
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
89
+ <block type="page/html_pager" name="product_list_toolbar_pager"/>
90
+ <!-- The following code shows how to set your own pager increments -->
91
+ <!--
92
+ <action method="setDefaultListPerPage"><limit>4</limit></action>
93
+ <action method="setDefaultGridPerPage"><limit>9</limit></action>
94
+ <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
95
+ <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
96
+ <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
97
+ <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
98
+ <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
99
+ -->
100
+ </block>
101
+ <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
102
+ <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
103
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
104
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
105
+ <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
106
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
107
+ </block>
108
+ </block>
109
+ </reference>
110
+ </catalog_category_default>
111
+
112
+ <!--
113
+ Category layered navigation layout
114
+ -->
115
+
116
+ <catalog_category_layered translate="label">
117
+ <label>Catalog Category (Anchor)</label>
118
+ <reference name="left">
119
+ <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
120
+ </reference>
121
+ <reference name="content">
122
+ <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
123
+ <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
124
+ <!-- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action> -->
125
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
126
+ <block type="page/html_pager" name="product_list_toolbar_pager"/>
127
+ <!-- The following code shows how to set your own pager increments -->
128
+ <!--
129
+ <action method="setDefaultListPerPage"><limit>4</limit></action>
130
+ <action method="setDefaultGridPerPage"><limit>3</limit></action>
131
+ <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
132
+ <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
133
+ <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
134
+ <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
135
+ <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
136
+ <action method="addPagerLimit"><mode>grid</mode><limit>3</limit></action>
137
+ <action method="addPagerLimit"><mode>grid</mode><limit>6</limit></action>
138
+ <action method="addPagerLimit"><mode>grid</mode><limit>9</limit></action>
139
+ <action method="addPagerLimit" translate="label"><mode>grid</mode><limit>all</limit><label>All</label></action>
140
+ -->
141
+ </block>
142
+ <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
143
+ <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
144
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
145
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
146
+ <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
147
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
148
+ </block>
149
+ </block>
150
+ </reference>
151
+ </catalog_category_layered>
152
+
153
+ <catalog_category_layered_nochildren translate="label">
154
+ <label>Catalog Category (Without Subcategories)</label>
155
+ <remove name="left.reports.product.viewed" />
156
+ <reference name="left">
157
+ <block type="reports/product_viewed" before="left.permanent.callout" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
158
+ </reference>
159
+ </catalog_category_layered_nochildren>
160
+
161
+ <!--
162
+ Compare products page
163
+ -->
164
+
165
+ <catalog_product_compare_index translate="label">
166
+ <label>Catalog Product Compare List</label>
167
+ <!-- Mage_Catalog -->
168
+ <reference name="root">
169
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
170
+ </reference>
171
+ <reference name="head">
172
+ <action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
173
+ <action method="addJs"><script>varien/product.js</script></action>
174
+ </reference>
175
+ <reference name="content">
176
+ <block type="catalog/product_compare_list" name="catalog.compare.list" template="catalog/product/compare/list.phtml"/>
177
+ </reference>
178
+ </catalog_product_compare_index>
179
+
180
+ <customer_account_index>
181
+ <reference name="left">
182
+ <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
183
+ </reference>
184
+ </customer_account_index>
185
+
186
+ <!--
187
+ Product view
188
+ -->
189
+
190
+ <catalog_product_view translate="label">
191
+ <label>Catalog Product View (Any)</label>
192
+ <!-- Mage_Catalog -->
193
+ <reference name="root">
194
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
195
+ </reference>
196
+ <reference name="head">
197
+ <action method="addJs"><script>varien/product.js</script></action>
198
+ <action method="addJs"><script>varien/configurable.js</script></action>
199
+
200
+ <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
201
+ <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
202
+ <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
203
+ </reference>
204
+ <reference name="content">
205
+ <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
206
+ <!--
207
+ <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/summary.phtml</template></action>
208
+ <action method="addReviewSummaryTemplate"><type>short</type><template>review/helper/summary_short.phtml</template></action>
209
+ <action method="addReviewSummaryTemplate"><type>...</type><template>...</template></action>
210
+ -->
211
+ <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
212
+ <block type="core/text_list" name="alert.urls" as="alert_urls" translate="label">
213
+ <label>Alert Urls</label>
214
+ </block>
215
+
216
+ <action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
217
+
218
+ <block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
219
+ <action method="setColumnCount"><columns>4</columns></action>
220
+ <action method="setItemLimit"><type>upsell</type><limit>4</limit></action>
221
+ </block>
222
+
223
+ <block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
224
+ <block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
225
+ <action method="addToParentGroup"><group>detailed_info</group></action>
226
+ </block>
227
+ <block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
228
+ <action method="addToParentGroup"><group>detailed_info</group></action>
229
+ </block>
230
+ <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
231
+ <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
232
+
233
+ <block type="core/text_list" name="product.info.extrahint" as="extrahint" translate="label">
234
+ <label>Product View Extra Hint</label>
235
+ </block>
236
+
237
+ <block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
238
+ <label>Info Column Options Wrapper</label>
239
+ <block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
240
+ <block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
241
+ <action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
242
+ <action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
243
+ <action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
244
+ <action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
245
+ </block>
246
+ <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
247
+ </block>
248
+ <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">
249
+ <label>Bottom Block Options Wrapper</label>
250
+ <action method="insert"><block>product.tierprices</block></action>
251
+ <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
252
+ <action method="append"><block>product.info.addtocart</block></action>
253
+ <action method="append"><block>product.info.addto</block></action>
254
+ </block>
255
+
256
+ <block type="core/template_facade" name="product.info.container1" as="container1">
257
+ <action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
258
+ <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
259
+ <action method="append"><block>product.info.options.wrapper</block></action>
260
+ <action method="append"><block>product.info.options.wrapper.bottom</block></action>
261
+ </block>
262
+ <block type="core/template_facade" name="product.info.container2" as="container2">
263
+ <action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
264
+ <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
265
+ <action method="append"><block>product.info.options.wrapper</block></action>
266
+ <action method="append"><block>product.info.options.wrapper.bottom</block></action>
267
+ </block>
268
+ <action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
269
+ <action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
270
+ </block>
271
+
272
+
273
+
274
+ </reference>
275
+ <reference name="right">
276
+ <block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
277
+ </reference>
278
+ </catalog_product_view>
279
+
280
+ <!--
281
+ Additional block dependant on product type
282
+ -->
283
+ <PRODUCT_TYPE_simple translate="label" module="catalog">
284
+ <label>Catalog Product View (Simple)</label>
285
+ <reference name="product.info">
286
+ <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
287
+ <block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
288
+ <label>Product Extra Info</label>
289
+ </block>
290
+ </block>
291
+ </reference>
292
+ </PRODUCT_TYPE_simple>
293
+ <PRODUCT_TYPE_configurable translate="label" module="catalog">
294
+ <label>Catalog Product View (Configurable)</label>
295
+ <reference name="product.info">
296
+ <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
297
+ <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
298
+ <label>Product Extra Info</label>
299
+ </block>
300
+ </block>
301
+ </reference>
302
+ <reference name="product.info.options.wrapper">
303
+ <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
304
+ </reference>
305
+ </PRODUCT_TYPE_configurable>
306
+ <PRODUCT_TYPE_grouped translate="label" module="catalog">
307
+ <label>Catalog Product View (Grouped)</label>
308
+ <reference name="product.info">
309
+ <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
310
+ <block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
311
+ <label>Product Extra Info</label>
312
+ </block>
313
+ </block>
314
+ </reference>
315
+ </PRODUCT_TYPE_grouped>
316
+ <PRODUCT_TYPE_virtual translate="label" module="catalog">
317
+ <label>Catalog Product View (Virtual)</label>
318
+ <reference name="product.info">
319
+ <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
320
+ <block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
321
+ <label>Product Extra Info</label>
322
+ </block>
323
+ </block>
324
+ </reference>
325
+ </PRODUCT_TYPE_virtual>
326
+
327
+
328
+
329
+ <!--
330
+ Product send to friend
331
+ -->
332
+
333
+ <catalog_product_send translate="label">
334
+ <label>Catalog Product Email to a Friend</label>
335
+ <!-- Mage_Catalog -->
336
+ <reference name="root">
337
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
338
+ </reference>
339
+ <reference name="head">
340
+ <action method="addJs"><script>varien/product.js</script></action>
341
+ </reference>
342
+ <reference name="content">
343
+ <block type="catalog/product_send" name="product.send" template="catalog/product/send.phtml">
344
+ </block>
345
+ </reference>
346
+ </catalog_product_send>
347
+
348
+ <!--
349
+ Product additional images gallery popup
350
+ -->
351
+
352
+ <catalog_product_gallery translate="label">
353
+ <label>Catalog Product Image Gallery Popup</label>
354
+ <!-- Mage_Catalog -->
355
+ <reference name="root">
356
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
357
+ </reference>
358
+ <reference name="content">
359
+ <block type="catalog/product_gallery" name="catalog_product_gallery" template="catalog/product/gallery.phtml"/>
360
+ </reference>
361
+ </catalog_product_gallery>
362
+
363
+ <!--
364
+ SEO Site Map
365
+ -->
366
+
367
+ <catalog_seo_sitemap translate="label">
368
+ <label>Catalog Seo Sitemap (Common)</label>
369
+ <remove name="right"/>
370
+ <remove name="left"/>
371
+
372
+ <reference name="root">
373
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
374
+ </reference>
375
+ <reference name="content">
376
+ <block type="page/template_container" name="seo.sitemap.container" template="catalog/seo/sitemap/container.phtml">
377
+ <block type="page/template_links" name="seo.sitemap.links" as="links" template="page/template/links.phtml"/>
378
+ <block type="page/html_pager" name="seo.sitemap.pager.top" as="pager_top" template="page/html/pager.phtml"/>
379
+ <block type="page/html_pager" name="seo.sitemap.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
380
+ </block>
381
+ </reference>
382
+ </catalog_seo_sitemap>
383
+
384
+ <catalog_seo_sitemap_category translate="label">
385
+ <label>Catalog Seo Sitemap (Category List)</label>
386
+ <update handle="catalog_seo_sitemap" />
387
+ <reference name="seo.sitemap.container">
388
+ <action method="setTitle" translate="title" module="catalog"><title>Categories</title></action>
389
+ <block type="catalog/seo_sitemap_category" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
390
+ <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
391
+ <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
392
+ <action method="setItemsTitle" translate="title" module="catalog"><title>categories</title></action>
393
+ </block>
394
+ </reference>
395
+ <reference name="seo.sitemap.links">
396
+ <action method="addLink" translate="label title" module="catalog"><label>Products Sitemap</label><url helper="catalog/map/getProductUrl"/><title>Products Sitemap</title></action>
397
+ </reference>
398
+ </catalog_seo_sitemap_category>
399
+
400
+ <catalog_seo_sitemap_category_tree translate="label">
401
+ <label>Catalog Seo Sitemap (Category Tree)</label>
402
+ <reference name="seo.sitemap.container">
403
+ <remove name="seo.sitemap.pager.top" />
404
+ <remove name="seo.sitemap.pager.bottom" />
405
+ <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.top" as="pager_top" template="page/html/pager.phtml"/>
406
+ <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
407
+ <remove name="seo.sitemap.sitemap" />
408
+ <block type="catalog/seo_sitemap_tree_category" name="seo.sitemap.sitemap_tree" as="sitemap" after="pager_top" template="catalog/seo/tree.phtml">
409
+ <action method="bindPager"><pager>seo.sitemap.tree.pager.top</pager></action>
410
+ <action method="bindPager"><pager>seo.sitemap.tree.pager.bottom</pager></action>
411
+ </block>
412
+ </reference>
413
+ </catalog_seo_sitemap_category_tree>
414
+
415
+ <catalog_seo_sitemap_product translate="label">
416
+ <label>Catalog Seo Sitemap (Product List)</label>
417
+ <update handle="catalog_seo_sitemap" />
418
+ <reference name="seo.sitemap.container">
419
+ <action method="setTitle" translate="title" module="catalog"><title>Products</title></action>
420
+ <block type="catalog/seo_sitemap_product" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
421
+ <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
422
+ <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
423
+ <action method="setItemsTitle" translate="title" module="catalog"><title>products</title></action>
424
+ </block>
425
+ </reference>
426
+ <reference name="seo.sitemap.links">
427
+ <action method="addLink" translate="label title" module="catalog"><label>Categories Sitemap</label><url helper="catalog/map/getCategoryUrl"/><title>Categories Sitemap</title></action>
428
+ </reference>
429
+ </catalog_seo_sitemap_product>
430
+
431
+
432
+ <!--
433
+ Catalog search terms block
434
+ -->
435
+
436
+ <catalog_seo_searchterm_popular translate="label">
437
+ <label>Catalog Seo Popular Search Terms</label>
438
+ <remove name="right"/>
439
+ <remove name="left"/>
440
+ <reference name="root">
441
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
442
+ </reference>
443
+ <reference name="content">
444
+ <block type="catalog/seo_searchterm" name="seo.searchterm" template="catalog/seo/searchterm.phtml"/>
445
+ </reference>
446
+ </catalog_seo_searchterm_popular>
447
+
448
+ </layout>
app/design/frontend/default/estore/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) 2010 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/default/estore/layout/catalogsearch.xml ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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/1column.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="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
85
+ <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
86
+ <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
87
+ </reference>
88
+ <reference name="content">
89
+ <block type="catalogsearch/advanced_form" name="catalogsearch_advanced_form" template="catalogsearch/advanced/form.phtml"/>
90
+ <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
91
+ </reference>
92
+ </catalogsearch_advanced_index>
93
+
94
+ <!--
95
+ Advanced search results
96
+ -->
97
+
98
+ <catalogsearch_advanced_result translate="label">
99
+ <label>Advanced Search Result</label>
100
+ <update handle="page_two_columns_right" />
101
+ <!-- Mage_Catalogsearch -->
102
+ <reference name="root">
103
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
104
+ </reference>
105
+ <reference name="content">
106
+ <block type="catalogsearch/advanced_result" name="catalogsearch_advanced_result" template="catalogsearch/advanced/result.phtml">
107
+ <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
108
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
109
+ <block type="page/html_pager" name="product_list_toolbar_pager"/>
110
+ </block>
111
+ <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
112
+ <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
113
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
114
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
115
+ <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
116
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
117
+ </block>
118
+ <action method="setListOrders"/>
119
+ <action method="setListModes"/>
120
+ <action method="setListCollection"/>
121
+ </block>
122
+ </reference>
123
+ </catalogsearch_advanced_result>
124
+
125
+ <catalogsearch_term_popular translate="label">
126
+ <label>Popular Search Terms</label>
127
+ <remove name="right"/>
128
+ <remove name="left"/>
129
+
130
+ <reference name="root">
131
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
132
+ </reference>
133
+ <reference name="content">
134
+ <block type="catalogsearch/term" name="seo.searchterm" template="catalogsearch/term.phtml"/>
135
+ </reference>
136
+ </catalogsearch_term_popular>
137
+
138
+ </layout>
app/design/frontend/default/estore/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) 2010 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/default/estore/layout/checkout.xml ADDED
@@ -0,0 +1,436 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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>
315
+ </reference>
316
+ <reference name="content">
317
+ <block type="checkout/onepage" name="checkout.onepage" template="checkout/onepage.phtml">
318
+ <block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="checkout/onepage/login.phtml">
319
+ <block type="page/html_wrapper" name="checkout.onepage.login.before" as="login_before" translate="label">
320
+ <label>Login/Registration Before</label>
321
+ <action method="setMayBeInvisible"><value>1</value></action>
322
+ </block>
323
+ </block>
324
+ <block type="checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="checkout/onepage/billing.phtml"/>
325
+ <block type="checkout/onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="checkout/onepage/shipping.phtml"/>
326
+ <block type="checkout/onepage_shipping_method" name="checkout.onepage.shipping_method" as="shipping_method" template="checkout/onepage/shipping_method.phtml">
327
+ <block type="checkout/onepage_shipping_method_available" name="checkout.onepage.shipping_method.available" as="available" template="checkout/onepage/shipping_method/available.phtml"/>
328
+ <block type="checkout/onepage_shipping_method_additional" name="checkout.onepage.shipping_method.additional" as="additional" template="checkout/onepage/shipping_method/additional.phtml"/>
329
+ </block>
330
+ <block type="checkout/onepage_payment" name="checkout.onepage.payment" as="payment" template="checkout/onepage/payment.phtml">
331
+ <block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/methods.phtml">
332
+ <action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
333
+ </block>
334
+ </block>
335
+ <block type="checkout/onepage_review" name="checkout.onepage.review" as="review" template="checkout/onepage/review.phtml"/>
336
+ </block>
337
+ </reference>
338
+ </checkout_onepage_index>
339
+
340
+ <!--
341
+ One page checkout progress block
342
+ -->
343
+
344
+ <checkout_onepage_progress>
345
+ <!-- Mage_Checkout -->
346
+ <remove name="right"/>
347
+ <remove name="left"/>
348
+
349
+ <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress.phtml">
350
+ <block type="checkout/onepage_payment_info" name="payment_info">
351
+ <action method="setInfoTemplate"><method></method><template></template></action>
352
+ </block>
353
+ </block>
354
+ </checkout_onepage_progress>
355
+
356
+ <!--
357
+ One page checkout payment methods block
358
+ -->
359
+ <checkout_onepage_paymentmethod>
360
+ <remove name="right"/>
361
+ <remove name="left"/>
362
+
363
+ <block type="checkout/onepage_payment_methods" name="root" output="toHtml" template="checkout/onepage/payment/methods.phtml">
364
+ <action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
365
+ </block>
366
+ </checkout_onepage_paymentmethod>
367
+
368
+
369
+ <!--
370
+ One page checkout shipping methods block
371
+ -->
372
+
373
+ <checkout_onepage_shippingmethod>
374
+ <!-- Mage_Checkout -->
375
+ <remove name="right"/>
376
+ <remove name="left"/>
377
+
378
+ <block type="checkout/onepage_shipping_method_available" name="root" output="toHtml" template="checkout/onepage/shipping_method/available.phtml"/>
379
+ </checkout_onepage_shippingmethod>
380
+
381
+ <checkout_onepage_additional>
382
+ <!-- Mage_Checkout -->
383
+ <remove name="right"/>
384
+ <remove name="left"/>
385
+
386
+ <block type="checkout/onepage_shipping_method_additional" name="root" output="toHtml" template="checkout/onepage/shipping_method/additional.phtml">
387
+ <action method="setDontDisplayContainer"><param>1</param></action>
388
+ </block>
389
+ </checkout_onepage_additional>
390
+
391
+ <!--
392
+ One page checkout order review block
393
+ -->
394
+
395
+ <checkout_onepage_review translate="label">
396
+ <label>One Page Checkout Overview</label>
397
+ <!-- Mage_Checkout -->
398
+ <remove name="right"/>
399
+ <remove name="left"/>
400
+
401
+ <block type="checkout/onepage_review_info" name="root" output="toHtml" template="checkout/onepage/review/info.phtml">
402
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
403
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
404
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
405
+ <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
406
+ <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
407
+ <label>Items Before</label>
408
+ </block>
409
+ <block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
410
+ <label>Items After</label>
411
+ </block>
412
+ <block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
413
+ <block type="core/template" name="checkout.onepage.review.button" as="button" template="checkout/onepage/review/button.phtml"/>
414
+ </block>
415
+ </checkout_onepage_review>
416
+
417
+ <checkout_onepage_success translate="label">
418
+ <label>One Page Checkout Success</label>
419
+ <reference name="root">
420
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
421
+ </reference>
422
+ <reference name="content">
423
+ <block type="checkout/onepage_success" name="checkout.success" template="checkout/success.phtml"/>
424
+ </reference>
425
+ </checkout_onepage_success>
426
+ <checkout_onepage_failure translate="label">
427
+ <label>One Page Checkout Failure</label>
428
+ <reference name="root">
429
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
430
+ </reference>
431
+ <reference name="content">
432
+ <block type="checkout/onepage_failure" name="checkout.failure" template="checkout/onepage/failure.phtml"/>
433
+ </reference>
434
+ </checkout_onepage_failure>
435
+ <block type="core/list" name="additional.product.info"/>
436
+ </layout>
app/design/frontend/default/estore/layout/chimpdesign.xml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ </default>
5
+ <extensionname_index_index>
6
+ <reference name="root">
7
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
8
+ </reference>
9
+ <reference name="content">
10
+ <block type="core/template" name="extensionname_form_index" output="toHtml" template="extensionname/form/index.phtml" ></block>
11
+ </reference>
12
+ </extensionname_index_index>
13
+ </layout>
app/design/frontend/default/estore/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) 2010 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/default/estore/layout/contacts.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) 2010 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="root">
38
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
39
+ <action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action>
40
+ </reference>
41
+ <reference name="content">
42
+ <block type="core/template" name="contactForm" template="contacts/form.phtml"/>
43
+ </reference>
44
+ </contacts_index_index>
45
+ </layout>
app/design/frontend/default/estore/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) 2010 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/default/estore/layout/customer.xml ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="wishlist_sidebar"></remove>
78
+ <remove name="reorder"></remove>
79
+ </customer_logged_out>
80
+
81
+ <!--
82
+ Layout for customer login page
83
+ -->
84
+
85
+ <customer_account_login translate="label">
86
+ <label>Customer Account Login Form</label>
87
+ <!-- Mage_Customer -->
88
+ <remove name="right"/>
89
+ <remove name="left"/>
90
+
91
+ <reference name="root">
92
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
93
+ </reference>
94
+ <reference name="content">
95
+ <block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml"/>
96
+ </reference>
97
+ </customer_account_login>
98
+
99
+ <!--
100
+ Layout for customer log out page
101
+ -->
102
+
103
+ <customer_account_logoutsuccess translate="label">
104
+ <label>Customer Account Logout Success</label>
105
+ <!-- Mage_Customer -->
106
+ <remove name="right"/>
107
+ <remove name="left"/>
108
+
109
+ <reference name="root">
110
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
111
+ </reference>
112
+ <reference name="content">
113
+ <block type="core/template" name="customer_logout" template="customer/logout.phtml"/>
114
+ </reference>
115
+ </customer_account_logoutsuccess>
116
+
117
+ <!--
118
+ New customer registration
119
+ -->
120
+
121
+ <customer_account_create translate="label">
122
+ <label>Customer Account Registration Form</label>
123
+ <!-- Mage_Customer -->
124
+ <remove name="right"/>
125
+ <remove name="left"/>
126
+
127
+ <reference name="root">
128
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
129
+ </reference>
130
+ <reference name="content">
131
+ <block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
132
+ <block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" translate="label">
133
+ <label>Form Fields Before</label>
134
+ </block>
135
+ </block>
136
+ </reference>
137
+ </customer_account_create>
138
+
139
+ <customer_account_forgotpassword translate="label">
140
+ <label>Customer Forgot Password Form</label>
141
+ <remove name="right"/>
142
+ <remove name="left"/>
143
+
144
+ <reference name="root">
145
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
146
+ <action method="setHeaderTitle" translate="title" module="customer"><title>Password forgotten</title></action>
147
+ </reference>
148
+ <reference name="content">
149
+ <!--<block type="core/template" name="forgotPassword" template="customer/form/forgotpassword.phtml"/>-->
150
+ <block type="customer/account_forgotpassword" name="forgotPassword" template="customer/form/forgotpassword.phtml"/>
151
+ </reference>
152
+ </customer_account_forgotpassword>
153
+
154
+ <customer_account_confirmation>
155
+ <remove name="right"/>
156
+ <remove name="left"/>
157
+
158
+ <reference name="root">
159
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
160
+ <action method="setHeaderTitle" translate="title" module="customer"><title>Send confirmation link</title></action>
161
+ </reference>
162
+ <reference name="content">
163
+ <block type="core/template" name="accountConfirmation" template="customer/form/confirmation.phtml"/>
164
+ </reference>
165
+ </customer_account_confirmation>
166
+
167
+ <customer_account_edit translate="label">
168
+ <label>Customer Account Edit Form</label>
169
+ <update handle="customer_account"/>
170
+ <reference name="root">
171
+ <action method="setHeaderTitle" translate="title" module="customer"><title>Edit Account Info</title></action>
172
+ </reference>
173
+ <reference name="my.account.wrapper">
174
+ <block type="customer/form_edit" name="customer_edit" template="customer/form/edit.phtml"/>
175
+ </reference>
176
+
177
+ <reference name="left">
178
+ <action method="unsetChild"><name>left.permanent.callout</name></action>
179
+ </reference>
180
+ </customer_account_edit>
181
+
182
+ <!--
183
+ Customer account pages, rendered for all tabs in dashboard
184
+ -->
185
+
186
+ <customer_account translate="label">
187
+ <label>Customer My Account (All Pages)</label>
188
+ <!--remove name="catalog.compare.sidebar"/>
189
+ <remove name="sale.reorder.sidebar"/-->
190
+ <!-- Mage_Customer -->
191
+ <reference name="root">
192
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
193
+ </reference>
194
+
195
+ <reference name="content">
196
+ <block type="page/html_wrapper" name="my.account.wrapper" translate="label">
197
+ <label>My Account Wrapper</label>
198
+ <action method="setElementClass"><value>my-account</value></action>
199
+ </block>
200
+ </reference>
201
+
202
+ <reference name="left">
203
+ <block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml">
204
+ <action method="addLink" translate="label" module="customer"><name>account</name><path>customer/account/</path><label>Account Dashboard</label></action>
205
+ <action method="addLink" translate="label" module="customer"><name>account_edit</name><path>customer/account/edit/</path><label>Account Information</label></action>
206
+ <action method="addLink" translate="label" module="customer"><name>address_book</name><path>customer/address/</path><label>Address Book</label></action>
207
+ </block>
208
+ <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml">
209
+ <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
210
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
211
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
212
+ </block>
213
+ <remove name="catalog.leftnavig"/>
214
+ <remove name="cart_sidebar"/>
215
+ <remove name="sale.reorder.sidebar"/>
216
+
217
+ <!-- <block type="catalog/product_compare_sidebar" after="customer_account_navigation" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>-->
218
+ <block type="sales/reorder_sidebar" name="sale.reorder.sidebar" as="reorder" template="sales/reorder/sidebar.phtml"/>
219
+ <remove name="tags_popular"/>
220
+
221
+ </reference>
222
+
223
+ </customer_account>
224
+
225
+ <!--
226
+ Customer account home dashboard layout
227
+ -->
228
+
229
+ <customer_account_index translate="label">
230
+ <label>Customer My Account Dashboard</label>
231
+ <update handle="customer_account"/>
232
+ <!-- Mage_Customer -->
233
+ <reference name="root">
234
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
235
+ </reference>
236
+ <reference name="my.account.wrapper">
237
+ <block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml">
238
+ <block type="customer/account_dashboard_hello" name="customer_account_dashboard_hello" as="hello" template="customer/account/dashboard/hello.phtml"/>
239
+ <block type="core/template" name="customer_account_dashboard_top" as="top" />
240
+ <block type="customer/account_dashboard_info" name="customer_account_dashboard_info" as="info" template="customer/account/dashboard/info.phtml"/>
241
+ <block type="customer/account_dashboard_newsletter" name="customer_account_dashboard_newsletter" as="newsletter" template="customer/account/dashboard/newsletter.phtml"/>
242
+ <block type="customer/account_dashboard_address" name="customer_account_dashboard_address" as="address" template="customer/account/dashboard/address.phtml"/>
243
+ </block>
244
+ </reference>
245
+
246
+ </customer_account_index>
247
+
248
+ <!--
249
+ Customer account address book
250
+ -->
251
+
252
+ <customer_address_index translate="label">
253
+ <label>Customer My Account Address Book</label>
254
+ <!-- Mage_Customer -->
255
+ <update handle="customer_account"/>
256
+ <reference name="my.account.wrapper">
257
+ <block type="customer/address_book" name="address_book" template="customer/address/book.phtml"/>
258
+ </reference>
259
+ </customer_address_index>
260
+
261
+ <!--
262
+ Customer account address edit page
263
+ -->
264
+
265
+ <customer_address_form translate="label">
266
+ <label>Customer My Account Address Edit Form</label>
267
+ <!-- Mage_Customer -->
268
+ <update handle="customer_account"/>
269
+ <reference name="my.account.wrapper">
270
+ <block type="customer/address_edit" name="customer_address_edit" template="customer/address/edit.phtml"/>
271
+ </reference>
272
+ </customer_address_form>
273
+
274
+ </layout>
app/design/frontend/default/estore/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) 2010 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/default/estore/layout/downloadable.xml ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <wishlist_index_index>
131
+ <reference name="customer.wishlist">
132
+ <action method="addOptionsRenderCfg"><type>downloadable</type><helper>downloadable/catalog_product_configuration</helper></action>
133
+ </reference>
134
+ </wishlist_index_index>
135
+
136
+ <!--
137
+ Print pages
138
+ -->
139
+
140
+ <sales_order_print>
141
+ <reference name="sales.order.print">
142
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_item_renderer_downloadable</block><template>downloadable/sales/order/items/renderer/downloadable.phtml</template></action>
143
+ </reference>
144
+ </sales_order_print>
145
+
146
+ <sales_order_printinvoice>
147
+ <reference name="sales.order.print.invoice">
148
+ <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>
149
+ </reference>
150
+ </sales_order_printinvoice>
151
+
152
+ <sales_order_printcreditmemo>
153
+ <reference name="sales.order.print.creditmemo">
154
+ <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>
155
+ </reference>
156
+ </sales_order_printcreditmemo>
157
+
158
+ <!--
159
+ EOF Print pages
160
+ -->
161
+
162
+ <!--
163
+ Emails
164
+ -->
165
+
166
+ <sales_email_order_items>
167
+ <reference name="items">
168
+ <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>
169
+ </reference>
170
+ </sales_email_order_items>
171
+
172
+ <sales_email_order_invoice_items>
173
+ <reference name="items">
174
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_email_items_downloadable</block><template>downloadable/email/order/items/invoice/downloadable.phtml</template></action>
175
+ </reference>
176
+ </sales_email_order_invoice_items>
177
+
178
+ <sales_email_order_creditmemo_items>
179
+ <reference name="items">
180
+ <action method="addItemRender"><type>downloadable</type><block>downloadable/sales_order_email_items_downloadable</block><template>downloadable/email/order/items/creditmemo/downloadable.phtml</template></action>
181
+ </reference>
182
+ </sales_email_order_creditmemo_items>
183
+
184
+ <PRODUCT_TYPE_downloadable translate="label" module="downloadable">
185
+ <label>Catalog Product View (Downloadable)</label>
186
+ <reference name="product.info">
187
+ <block type="downloadable/catalog_product_view_type" name="product.info.downloadable" as="product_type_data" template="downloadable/catalog/product/type.phtml">
188
+ <block type="downloadable/catalog_product_samples" name="product.info.downloadable.samples" as="samples" template="downloadable/catalog/product/samples.phtml"/>
189
+ <block type="cataloginventory/stockqty_default" name="product.info.downloadable.extra" as="product_type_data_extra" template="cataloginventory/stockqty/default.phtml"/>
190
+ </block>
191
+ </reference>
192
+ <reference name="product.info.options.wrapper">
193
+ <block type="downloadable/catalog_product_links" name="product.info.downloadable.options" as="type_downloadable_options" before="-" template="downloadable/catalog/product/links.phtml"/>
194
+ <action method="insert"><block>product.info.downloadable.options</block></action>
195
+ </reference>
196
+ </PRODUCT_TYPE_downloadable>
197
+
198
+ </layout>
app/design/frontend/default/estore/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) 2010 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="after_body_start">
38
+ <block type="googleanalytics/ga" name="google_analytics" as="google_analytics" />
39
+ </reference>
40
+ </default>
41
+ </layout>
app/design/frontend/default/estore/layout/googlecheckout.xml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <checkout_cart_index>
32
+ <reference name="checkout.cart.top_methods">
33
+ <block type="googlecheckout/link" name="checkout.cart.methods.googlecheckout.top" template="googlecheckout/link.phtml" before="-"/>
34
+ </reference>
35
+
36
+ <reference name="checkout.cart.methods">
37
+ <block type="googlecheckout/link" name="checkout.cart.methods.googlecheckout.bottom" template="googlecheckout/link.phtml"/>
38
+ </reference>
39
+ </checkout_cart_index>
40
+
41
+ <googlecheckout_redirect_redirect>
42
+ <reference name="root">
43
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
44
+ </reference>
45
+ <reference name="content">
46
+ <block type="googlecheckout/redirect" name="googlecheckout_redirect" template="page/redirect.phtml"></block>
47
+ </reference>
48
+ </googlecheckout_redirect_redirect>
49
+ </layout>
app/design/frontend/default/estore/layout/googleoptimizer.xml ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <!--
31
+ Product view
32
+ -->
33
+
34
+ <catalog_product_view>
35
+ <reference name="head">
36
+ <block type="googleoptimizer/code_product" before="-" name="googleoptimizer.control.script">
37
+ <action method="setScriptType"><scriptType>control_script</scriptType></action>
38
+ </block>
39
+ </reference>
40
+ <reference name="before_body_end">
41
+ <block type="googleoptimizer/code_product" after="-" name="googleoptimizer.tracking.script">
42
+ <action method="setScriptType"><scriptType>tracking_script</scriptType></action>
43
+ </block>
44
+ </reference>
45
+ </catalog_product_view>
46
+
47
+ <catalog_category_default>
48
+ <reference name="head">
49
+ <block type="googleoptimizer/code_category" before="-" name="googleoptimizer.control.script">
50
+ <action method="setScriptType"><scriptType>control_script</scriptType></action>
51
+ </block>
52
+ </reference>
53
+ <reference name="before_body_end">
54
+ <block type="googleoptimizer/code_category" after="-" name="googleoptimizer.tracking.script">
55
+ <action method="setScriptType"><scriptType>tracking_script</scriptType></action>
56
+ </block>
57
+ </reference>
58
+ </catalog_category_default>
59
+
60
+ <catalog_category_layered>
61
+ <reference name="head">
62
+ <block type="googleoptimizer/code_category" before="-" name="googleoptimizer.control.script">
63
+ <action method="setScriptType"><scriptType>control_script</scriptType></action>
64
+ </block>
65
+ </reference>
66
+ <reference name="before_body_end">
67
+ <block type="googleoptimizer/code_category" after="-" name="googleoptimizer.tracking.script">
68
+ <action method="setScriptType"><scriptType>tracking_script</scriptType></action>
69
+ </block>
70
+ </reference>
71
+ </catalog_category_layered>
72
+
73
+ <cms_page>
74
+ <reference name="head">
75
+ <block type="googleoptimizer/code_page" before="-" name="googleoptimizer.control.script">
76
+ <action method="setScriptType"><scriptType>control_script</scriptType></action>
77
+ </block>
78
+ </reference>
79
+ <reference name="before_body_end">
80
+ <block type="googleoptimizer/code_page" after="-" name="googleoptimizer.tracking.script">
81
+ <action method="setScriptType"><scriptType>tracking_script</scriptType></action>
82
+ </block>
83
+ </reference>
84
+ </cms_page>
85
+
86
+ <checkout_cart_index>
87
+ <reference name="before_body_end">
88
+ <block type="googleoptimizer/code_conversion" after="-" name="googleoptimizer.conversion.script">
89
+ <action method="setScriptType"><scriptType>conversion_script</scriptType></action>
90
+ <action method="setPageType"><pageType>checkout_cart</pageType></action>
91
+ </block>
92
+ </reference>
93
+ </checkout_cart_index>
94
+
95
+ <checkout_onepage_index>
96
+ <reference name="before_body_end">
97
+ <block type="googleoptimizer/code_conversion" after="-" name="googleoptimizer.conversion.script">
98
+ <action method="setScriptType"><scriptType>conversion_script</scriptType></action>
99
+ <action method="setPageType"><pageType>checkout_onepage</pageType></action>
100
+ </block>
101
+ </reference>
102
+ </checkout_onepage_index>
103
+
104
+ <checkout_onepage_success>
105
+ <reference name="before_body_end">
106
+ <block type="googleoptimizer/code_conversion" after="-" name="googleoptimizer.conversion.script">
107
+ <action method="setScriptType"><scriptType>conversion_script</scriptType></action>
108
+ <action method="setPageType"><pageType>checkout_onepage_success</pageType></action>
109
+ </block>
110
+ </reference>
111
+ </checkout_onepage_success>
112
+
113
+ <checkout_multishipping_success>
114
+ <reference name="before_body_end">
115
+ <block type="googleoptimizer/code_conversion" after="-" name="googleoptimizer.conversion.script">
116
+ <action method="setScriptType"><scriptType>conversion_script</scriptType></action>
117
+ <action method="setPageType"><pageType>checkout_multishipping_success</pageType></action>
118
+ </block>
119
+ </reference>
120
+ </checkout_multishipping_success>
121
+
122
+ <checkout_multishipping>
123
+ <reference name="before_body_end">
124
+ <block type="googleoptimizer/code_conversion" after="-" name="googleoptimizer.conversion.script">
125
+ <action method="setScriptType"><scriptType>conversion_script</scriptType></action>
126
+ <action method="setPageType"><pageType>checkout_multishipping</pageType></action>
127
+ </block>
128
+ </reference>
129
+ </checkout_multishipping>
130
+
131
+ <customer_account_create>
132
+ <reference name="before_body_end">
133
+ <block type="googleoptimizer/code_conversion" after="-" name="googleoptimizer.conversion.script">
134
+ <action method="setScriptType"><scriptType>conversion_script</scriptType></action>
135
+ <action method="setPageType"><pageType>customer_account_create</pageType></action>
136
+ </block>
137
+ </reference>
138
+ </customer_account_create>
139
+
140
+ </layout>
app/design/frontend/default/estore/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) 2009 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/default/estore/layout/newsletter.xml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <reference name="footer">
47
+ <block type="newsletter/subscribe" before="-" name="right.newsletter" template="newsletter/subscribe.phtml"/>
48
+ </reference>
49
+
50
+ -->
51
+
52
+ <customer_account>
53
+ <!-- Mage_Newsletter -->
54
+ <reference name="customer_account_navigation">
55
+ <action method="addLink" translate="label" module="newsletter"><name>newsletter</name><path>newsletter/manage/</path><label>Newsletter Subscriptions</label></action>
56
+ </reference>
57
+ <remove name="left.newsletter"/>
58
+ </customer_account>
59
+
60
+ <newsletter_manage_index translate="label">
61
+ <label>Customer My Account Newsletter Subscriptions</label>
62
+ <update handle="customer_account"/>
63
+ <reference name="my.account.wrapper">
64
+ <block type="customer/newsletter" name="customer_newsletter">
65
+ <block type="page/html_wrapper" name="customer.newsletter.form.before" as="form_before" translate="label">
66
+ <label>Newsletter Subscription Form Before</label>
67
+ <action method="setMayBeInvisible"><value>1</value></action>
68
+ </block>
69
+ </block>
70
+ </reference>
71
+ </newsletter_manage_index>
72
+
73
+ </layout>
app/design/frontend/default/estore/layout/page.xml ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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>our_js/jquery.min.js</script></action>
39
+ <action method="addJs"><script>our_js/ddaccordion.js</script></action>
40
+ <action method="addJs"><script>our_js/jquery.easing.1.1.js</script></action>
41
+ <action method="addJs"><script>our_js/jquery-ui.min.js</script></action>
42
+ <action method="addJs"><script>our_js/sliderscript.js</script></action>
43
+ <action method="addJs"><script>our_js/scroll.js</script></action>
44
+ <action method="addJs"><script>our_js/acordin.js</script></action>
45
+ <action method="addJs"><script>our_js/ddsmoothmenu.js</script></action>
46
+ <action method="addJs"><script>our_js/menu.js</script></action>
47
+ <action method="addJs"><script>our_js/tabs.js</script></action>
48
+ <action method="addJs"><script>our_js/contentslider.js</script></action>
49
+ <action method="addJs"><script>our_js/jcarousellite_1.0.1.js</script></action>
50
+ <action method="addJs"><script>our_js/cufon-yui.js</script></action>
51
+ <action method="addJs"><script>our_js/Futura-Thin_500-Futura-Bold_500.font.js</script></action>
52
+ <script type="text/javascript">
53
+ jquery.noConflict();
54
+ </script>
55
+
56
+ <action method="addJs"><script>prototype/prototype.js</script></action>
57
+ <action method="addJs" ifconfig="dev/js/deprecation"><script>prototype/deprecation.js</script></action>
58
+ <action method="addJs"><script>lib/ccard.js</script></action>
59
+ <action method="addJs"><script>prototype/validation.js</script></action>
60
+ <action method="addJs"><script>scriptaculous/builder.js</script></action>
61
+ <action method="addJs"><script>scriptaculous/effects.js</script></action>
62
+ <action method="addJs"><script>scriptaculous/dragdrop.js</script></action>
63
+ <action method="addJs"><script>scriptaculous/controls.js</script></action>
64
+ <action method="addJs"><script>scriptaculous/slider.js</script></action>
65
+ <action method="addJs"><script>varien/js.js</script></action>
66
+ <action method="addJs"><script>varien/form.js</script></action>
67
+ <action method="addJs"><script>varien/menu.js</script></action>
68
+ <action method="addJs"><script>mage/translate.js</script></action>
69
+
70
+
71
+ <!--
72
+ <action method="addJs"><script>our_js/gallery.js</script></action>
73
+ -->
74
+ <action method="addJs"><script>mage/cookies.js</script></action>
75
+ <block type="page/js_cookie" name="js_cookies" template="page/js/cookie.phtml"/>
76
+ <action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
77
+ <action method="addItem"><type>skin_css</type><name>css/styles-ie.css</name><params/><if>lt IE 8</if></action>
78
+ <action method="addCss"><stylesheet>css/widgets.css</stylesheet></action>
79
+ <action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
80
+
81
+ <action method="addCss"><stylesheet>css/jquery.fancybox-1.3.1.css</stylesheet></action>
82
+ <action method="addCss"><stylesheet>css/ddsmoothmenu.css</stylesheet><params>media="print"</params></action>
83
+ <action method="addCss"><stylesheet>css/style2.css</stylesheet></action>
84
+ <!-- <action method="addCss"><stylesheet>css/style3.css</stylesheet></action>
85
+ --> <action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
86
+
87
+ <action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
88
+ <action method="addItem"><type>skin_js</type><name>js/ie6.js</name><params/><if>lt IE 7</if></action>
89
+ </block>
90
+
91
+ <block type="core/text_list" name="after_body_start" as="after_body_start" translate="label">
92
+ <label>Page Top</label>
93
+ </block>
94
+
95
+ <block type="page/html_notices" name="global_notices" as="global_notices" template="page/html/notices.phtml" />
96
+
97
+ <block type="page/html_header" name="header" as="header">
98
+ <block type="page/template_links" name="top.links" as="topLinks"/>
99
+ <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
100
+ <block type="core/text_list" name="top.menu" as="topMenu" translate="label">
101
+ <label>Navigation Bar</label>
102
+ </block>
103
+ <block type="page/html_wrapper" name="top.container" as="topContainer" translate="label">
104
+ <label>Page Header</label>
105
+ <action method="setElementClass"><value>top-container</value></action>
106
+ </block>
107
+ </block>
108
+
109
+ <block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
110
+
111
+ <block type="core/text_list" name="left" as="left" translate="label">
112
+ <label>Left Column</label>
113
+
114
+ </block>
115
+ <block type="core/text_list" name="left" as="left">
116
+ <block type="catalog/navigation" name="catalog.leftnavig" before="-" template="catalog/navigation/left_menu1.phtml"/>
117
+ </block>
118
+ <block type="core/messages" name="global_messages" as="global_messages"/>
119
+ <block type="core/messages" name="messages" as="messages"/>
120
+
121
+ <block type="core/text_list" name="content" as="content" translate="label">
122
+ <label>Main Content Area</label>
123
+ </block>
124
+
125
+ <block type="core/text_list" name="right" as="right" translate="label">
126
+ <label>Right Column</label>
127
+ </block>
128
+
129
+ <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
130
+ <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
131
+ <label>Page Footer</label>
132
+ <action method="setElementClass"><value>bottom-container</value></action>
133
+ </block>
134
+
135
+ <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>
136
+ <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>
137
+ </block>
138
+
139
+ <block type="core/text_list" name="before_body_end" as="before_body_end" translate="label">
140
+ <label>Page Bottom</label>
141
+ </block>
142
+ </block>
143
+
144
+ <block type="core/profiler" output="toHtml" name="core_profiler"/>
145
+ </default>
146
+
147
+ <print translate="label" module="page">
148
+ <label>All Pages (Print Version)</label>
149
+ <!-- Mage_Page -->
150
+ <block type="page/html" name="root" output="toHtml" template="page/print.phtml">
151
+
152
+ <block type="page/html_head" name="head" as="head">
153
+ <action method="addJs"><script>prototype/prototype.js</script></action>
154
+ <action method="addJs"><script>mage/translate.js</script></action>
155
+ <action method="addJs"><script>lib/ccard.js</script></action>
156
+ <action method="addJs"><script>prototype/validation.js</script></action>
157
+ <action method="addJs"><script>varien/js.js</script></action>
158
+
159
+ <action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
160
+ <action method="addItem"><type>skin_css</type><name>css/styles-ie.css</name><params/><if>lt IE 8</if></action>
161
+ <action method="addCss"><stylesheet>css/widgets.css</stylesheet></action>
162
+ <action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
163
+
164
+ <action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
165
+ <action method="addItem"><type>skin_js</type><name>js/ie6.js</name><params/><if>lt IE 7</if></action>
166
+
167
+ </block>
168
+
169
+ <block type="core/text_list" name="content" as="content" translate="label">
170
+ <label>Main Content Area</label>
171
+ </block>
172
+
173
+ </block>
174
+ </print>
175
+
176
+ <!-- Custom page layout handles -->
177
+ <page_empty translate="label">
178
+ <label>All Empty Layout Pages</label>
179
+ <reference name="root">
180
+ <action method="setTemplate"><template>page/empty.phtml</template></action>
181
+ <!-- Mark root page block that template is applied -->
182
+ <action method="setIsHandle"><applied>1</applied></action>
183
+ </reference>
184
+ </page_empty>
185
+
186
+ <page_one_column translate="label">
187
+ <label>All One-Column Layout Pages</label>
188
+ <reference name="root">
189
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
190
+ <!-- Mark root page block that template is applied -->
191
+ <action method="setIsHandle"><applied>1</applied></action>
192
+ </reference>
193
+ </page_one_column>
194
+
195
+ <page_two_columns_left translate="label">
196
+ <label>All Two-Column Layout Pages (Left Column)</label>
197
+ <reference name="root">
198
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
199
+ <!-- Mark root page block that template is applied -->
200
+ <action method="setIsHandle"><applied>1</applied></action>
201
+ </reference>
202
+ </page_two_columns_left>
203
+
204
+ <page_two_columns_right translate="label">
205
+ <label>All Two-Column Layout Pages (Right Column)</label>
206
+ <reference name="root">
207
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
208
+ <!-- Mark root page block that template is applied -->
209
+ <action method="setIsHandle"><applied>1</applied></action>
210
+ </reference>
211
+ </page_two_columns_right>
212
+
213
+ <page_three_columns translate="label">
214
+ <label>All Three-Column Layout Pages</label>
215
+ <reference name="root">
216
+ <action method="setTemplate"><template>page/3columns.phtml</template></action>
217
+ <!-- Mark root page block that template is applied -->
218
+ <action method="setIsHandle"><applied>1</applied></action>
219
+ </reference>
220
+ </page_three_columns>
221
+ </layout>
app/design/frontend/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/layout/paypal.xml ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ </checkout_cart_index>
43
+
44
+ <paypal_express_review translate="label">
45
+ <label>PayPal Express Order Review Form</label>
46
+ <remove name="right"/>
47
+ <remove name="left"/>
48
+
49
+ <reference name="root">
50
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
51
+ </reference>
52
+ <reference name="content">
53
+ <block type="paypal/express_review" name="paypal.express.review" template="paypal/express/review.phtml">
54
+ <block type="paypal/express_review_details" name="paypal.express.review.details" as="details" template="paypal/express/review/details.phtml">
55
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
56
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
57
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
58
+ <block type="checkout/cart_totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
59
+ </block>
60
+ </block>
61
+ </reference>
62
+ <reference name="head">
63
+ <action method="addItem"><type>skin_js</type><name>js/checkout/review.js</name></action>
64
+ </reference>
65
+ </paypal_express_review>
66
+
67
+ <paypal_express_review_details>
68
+ <block type="paypal/express_review_details" name="root" output="toHtml" template="paypal/express/review/details.phtml">
69
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
70
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
71
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
72
+ <block type="checkout/cart_totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
73
+ </block>
74
+ </paypal_express_review_details>
75
+
76
+ <!--
77
+ Available logo types can be assigned with action="setLogoType":
78
+ - wePrefer_150x60
79
+ - wePrefer_150x40
80
+ - nowAccepting_150x60
81
+ - nowAccepting_150x40
82
+ - paymentsBy_150x60
83
+ - paymentsBy_150x40
84
+ - shopNowUsing_150x60
85
+ - shopNowUsing_150x40
86
+ -->
87
+ <catalog_product_view>
88
+ <reference name="product.info.addtocart">
89
+ <block type="page/html_wrapper" name="product.info.addtocart.paypal.wrapper" translate="label">
90
+ <label>PayPal Express Checkout Shortcut Wrapper</label>
91
+ <block type="paypal/express_shortcut" name="product.info.addtocart.paypal" template="paypal/express/shortcut.phtml">
92
+ <action method="setIsInCatalogProduct"><value>1</value></action>
93
+ </block>
94
+ </block>
95
+ </reference>
96
+ <reference name="right">
97
+ <block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml">
98
+ <!--action method="setLogoType"><value>wePrefer_150x60</value></action-->
99
+ </block>
100
+ </reference>
101
+ </catalog_product_view>
102
+
103
+ <catalog_category_default>
104
+ <reference name="right">
105
+ <block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/>
106
+ </reference>
107
+ </catalog_category_default>
108
+
109
+ <catalog_category_layered>
110
+ <reference name="right">
111
+ <block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/>
112
+ </reference>
113
+ </catalog_category_layered>
114
+
115
+ <cms_index_index>
116
+ <reference name="right">
117
+ <block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/>
118
+ </reference>
119
+ </cms_index_index>
120
+
121
+ <default>
122
+ <reference name="topCart.extra_actions">
123
+ <block type="paypal/express_shortcut" name="paypal.partner.top_cart.shortcut" template="paypal/express/shortcut.phtml"/>
124
+ </reference>
125
+ <reference name="cart_sidebar.extra_actions">
126
+ <block type="paypal/express_shortcut" name="paypal.partner.cart_sidebar.shortcut" template="paypal/express/shortcut.phtml"/>
127
+ </reference>
128
+ </default>
129
+
130
+ <checkout_onepage_review>
131
+ <reference name="checkout.onepage.review.info.items.after">
132
+ <block type="paypal/iframe" name="paypal.iframe" />
133
+ </reference>
134
+ <reference name="checkout.onepage.review.button">
135
+ <action method="setTemplate"><template helper="paypal/hss/getReviewButtonTemplate"><name>paypal/hss/review/button.phtml</name><block>checkout.onepage.review.button</block></template></action>
136
+ </reference>
137
+ </checkout_onepage_review>
138
+
139
+ <paypal_payflow_link_iframe>
140
+ <block type="paypal/payflow_link_iframe" name="payflow.link.iframe" template="paypal/hss/form.phtml" />
141
+ </paypal_payflow_link_iframe>
142
+
143
+ <paypal_hosted_pro_iframe>
144
+ <block type="paypal/hosted_pro_iframe" name="hosted.pro.iframe" />
145
+ </paypal_hosted_pro_iframe>
146
+ </layout>
app/design/frontend/default/estore/layout/paypaluk.xml ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ </checkout_cart_index>
42
+
43
+ <paypaluk_express_review translate="label">
44
+ <label>PayPal Express Order Review Form</label>
45
+ <remove name="right"/>
46
+ <remove name="left"/>
47
+
48
+ <reference name="root">
49
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
50
+ </reference>
51
+ <reference name="content">
52
+ <block type="paypal/express_review" name="paypal.express.review" template="paypal/express/review.phtml">
53
+ <action method="setPaypalActionPrefix"><prefix>paypaluk</prefix></action>
54
+ <block type="paypal/express_review_details" name="paypal.express.review.details" as="details" template="paypal/express/review/details.phtml">
55
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
56
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
57
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
58
+ <block type="checkout/cart_totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
59
+ </block>
60
+ </block>
61
+ </reference>
62
+ <reference name="head">
63
+ <action method="addItem"><type>skin_js</type><name>js/checkout/review.js</name></action>
64
+ </reference>
65
+ </paypaluk_express_review>
66
+
67
+ <paypal_express_review_details>
68
+ <block type="paypal/express_review_details" name="root" output="toHtml" template="paypal/express/review/details.phtml">
69
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
70
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
71
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
72
+ <block type="checkout/cart_totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
73
+ </block>
74
+ </paypal_express_review_details>
75
+
76
+ <catalog_product_view>
77
+ <reference name="product.info.addtocart">
78
+ <block type="page/html_wrapper" name="product.info.addtocart.paypaluk.wrapper" translate="label">
79
+ <label>PayPal Express Checkout (Payflow Edition) Shortcut Wrapper</label>
80
+ <action method="setHtmlTagName"><tag>p</tag></action>
81
+ <action method="setElementClass"><class>paypal-logo</class></action>
82
+ <block type="paypaluk/express_shortcut" name="product.info.addtocart.paypaluk" template="paypal/express/shortcut.phtml">
83
+ <action method="setIsInCatalogProduct"><value>1</value></action>
84
+ </block>
85
+ </block>
86
+ </reference>
87
+ </catalog_product_view>
88
+
89
+ <default>
90
+ <reference name="topCart.extra_actions">
91
+ <block type="paypaluk/express_shortcut" name="paypaluk.partner.top_cart.shortcut" template="paypal/express/shortcut.phtml"/>
92
+ </reference>
93
+ <reference name="cart_sidebar.extra_actions">
94
+ <block type="paypaluk/express_shortcut" name="paypaluk.partner.cart_sidebar.shortcut" template="paypal/express/shortcut.phtml"/>
95
+ </reference>
96
+ </default>
97
+ </layout>
app/design/frontend/default/estore/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) 2010 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="left">
39
+ <block type="poll/activePoll" name="left.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="left">
53
+ <action method="unsetChild"><name>left.poll</name></action>
54
+ </reference>
55
+ </customer_account_index>-->
56
+
57
+ </layout>
app/design/frontend/default/estore/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) 2010 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/default/estore/layout/reports.xml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ </layout>
app/design/frontend/default/estore/layout/review.xml ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+
79
+ <catalog_product_view>
80
+ <reference name="product.info.tabs">
81
+ <block type="review/form" name="product.review.form" as="review_form"/>
82
+
83
+ <action method="addTab" translate="title" module="review">
84
+ <alias>avis</alias>
85
+ <title>Avis / commentaires</title>
86
+ <block>review/product_view_list</block>
87
+ <template>review/product/view/list.phtml</template>
88
+ </action>
89
+ </reference>
90
+ </catalog_product_view>
91
+
92
+
93
+
94
+ <catalog_product_view>
95
+ <reference name="product.info.tabs">
96
+ <action method="addTab" translate="title" module="review">
97
+ <alias>form</alias>
98
+ <title>Review form</title>
99
+ <block>review/form</block>
100
+ <template>review/form.phtml</template>
101
+ </action>
102
+ </reference>
103
+ </catalog_product_view>
104
+
105
+
106
+ <block type="review/product_view" name="product.info" template="catalog/product/view.phtml">
107
+ <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml">
108
+ <action method="disableGallery"/>
109
+ </block>
110
+ <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
111
+ <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
112
+ <block type="catalog/product_view" name="product.tierprices" as="tierprices" template="catalog/product/view/tierprices.phtml"/>
113
+ <block type="core/template" name="product.info.other" as="other" template="review/product/view/other.phtml"/>
114
+ <block type="page/html_pager" name="product_review_list.toolbar" />
115
+ <block type="core/template" name="product_review_list.count" template="review/product/view/count.phtml" />
116
+ <block type="review/product_view_list" name="product.info.product_additional_data" as="product_additional_data" template="review/product/view/list.phtml">
117
+ <block type="review/form" name="product.review.form" as="review_form">
118
+ <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label">
119
+ <label>Review Form Fields Before</label>
120
+ <action method="setMayBeInvisible"><value>1</value></action>
121
+ </block>
122
+ </block>
123
+ </block>
124
+ </block>
125
+ </reference>
126
+ </review_product_list>
127
+
128
+ <review_product_view translate="label">
129
+ <label>Catalog Product Review View</label>
130
+ <reference name="root">
131
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
132
+ </reference>
133
+ <reference name="content">
134
+ <block type="review/view" name="review_view"/>
135
+ </reference>
136
+ </review_product_view>
137
+
138
+ <review_customer_index translate="label">
139
+ <label>Customer My Account Product Reviews</label>
140
+ <update handle="customer_account"/>
141
+ <reference name="my.account.wrapper">
142
+ <block type="review/customer_list" name="review_customer_list" template="review/customer/list.phtml"/>
143
+ </reference>
144
+ </review_customer_index>
145
+
146
+ <review_customer_view translate="label">
147
+ <label>Customer My Account Review Details</label>
148
+ <update handle="customer_account"/>
149
+ <reference name="my.account.wrapper">
150
+ <block type="review/customer_view" name="customers_review"/>
151
+ </reference>
152
+ </review_customer_view>
153
+
154
+ </layout>
app/design/frontend/default/estore/layout/rss.xml ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="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>
32
+ </reference>
33
+ <block type="rss/list" name="head_rss" ifconfig="rss/config/active" />
34
+ </default>
35
+ <!--
36
+ Default layout, loads most of the pages
37
+ -->
38
+ <rss_index_index translate="label">
39
+ <label>RSS Feeds List</label>
40
+ <reference name="root">
41
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
42
+ </reference>
43
+ <reference name="content">
44
+ <block type="rss/list" name="rss.list" template="rss/list.phtml"/>
45
+ </reference>
46
+ </rss_index_index>
47
+
48
+ <rss_index_nofeed>
49
+ <block type="core/template" name="root" output="toHtml" template="rss/nofeed.phtml"/>
50
+ </rss_index_nofeed>
51
+
52
+ <rss_index_wishlist>
53
+ <block type="rss/wishlist" name="rss.wishlist" output="toHtml"/>
54
+ </rss_index_wishlist>
55
+ <!--
56
+ Catalog layout
57
+ -->
58
+ <rss_catalog_new>
59
+ <block type="rss/catalog_new" output="toHtml" name="rss.catalog.new"/>
60
+ </rss_catalog_new>
61
+
62
+ <rss_catalog_special>
63
+ <block type="rss/catalog_special" output="toHtml" name="rss.catalog.special"/>
64
+ </rss_catalog_special>
65
+
66
+ <rss_catalog_salesrule>
67
+ <block type="rss/catalog_salesrule" output="toHtml" name="rss.catalog.salesrule"/>
68
+ </rss_catalog_salesrule>
69
+
70
+ <rss_catalog_tag>
71
+ <block type="rss/catalog_tag" output="toHtml" name="rss.catalog.tag" />
72
+ </rss_catalog_tag>
73
+
74
+ <rss_catalog_notifystock>
75
+ <block type="rss/catalog_notifyStock" output="toHtml" name="rss.catalog.notifystock" />
76
+ </rss_catalog_notifystock>
77
+
78
+ <rss_catalog_review>
79
+ <block type="rss/catalog_review" output="toHtml" name="rss.catalog.review" />
80
+ </rss_catalog_review>
81
+
82
+ <rss_catalog_category>
83
+ <block type="rss/catalog_category" output="toHtml" name="rss.catalog.category" />
84
+ </rss_catalog_category>
85
+ <!--
86
+ Order layout
87
+ -->
88
+ <rss_order_new>
89
+ <block type="rss/order_new" output="toHtml" name="rss.order.new"/>
90
+ </rss_order_new>
91
+ <rss_order_status>
92
+ <block type="rss/order_status" output="toHtml" name="rss.order.status"/>
93
+ </rss_order_status>
94
+ </layout>
app/design/frontend/default/estore/layout/sales.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) 2010 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
+
56
+ </customer_account>
57
+
58
+ <!--
59
+ Customer account home dashboard layout
60
+ -->
61
+
62
+ <customer_account_index>
63
+ <!-- Mage_Sales -->
64
+ <!--remove name="customer_account_dashboard_top"/-->
65
+ <reference name="customer_account_dashboard">
66
+ <block type="sales/order_recent" name="customer_account_dashboard_top" as="top" template="sales/order/recent.phtml"/>
67
+ </reference>
68
+
69
+ </customer_account_index>
70
+
71
+ <sales_order_history translate="label">
72
+ <label>Customer My Account Order History</label>
73
+ <update handle="customer_account"/>
74
+ <reference name="my.account.wrapper">
75
+ <block type="sales/order_history" name="sales.order.history">
76
+ <block type="core/text_list" name="sales.order.history.info" as="info" translate="label">
77
+ <label>Order History Info</label>
78
+ </block>
79
+ </block>
80
+ <block type="customer/account_dashboard" name="customer.account.link.back" template="customer/account/link/back.phtml"/>
81
+ </reference>
82
+ </sales_order_history>
83
+
84
+
85
+ <sales_order_view translate="label">
86
+ <label>Customer My Account Order View</label>
87
+ <update handle="customer_account"/>
88
+ <reference name="my.account.wrapper">
89
+ <block type="sales/order_info" as="info" name="sales.order.info"/>
90
+ <block type="sales/order_view" name="sales.order.view">
91
+ <block type="sales/order_items" name="order_items" template="sales/order/items.phtml">
92
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
93
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
94
+ <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
95
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
96
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
97
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
98
+ </block>
99
+ </block>
100
+ </block>
101
+ </reference>
102
+ <reference name="sales.order.info">
103
+ <action method="addLink" translate="label" module="sales"><name>view</name><path></path><label>Order Information</label></action>
104
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
105
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
106
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
107
+ </reference>
108
+ <block type="core/text_list" name="additional.product.info" translate="label">
109
+ <label>Additional Product Info</label>
110
+ </block>
111
+ </sales_order_view>
112
+
113
+ <sales_order_invoice translate="label">
114
+ <label>Customer My Account Order Invoice View</label>
115
+ <update handle="customer_account"/>
116
+ <reference name="my.account.wrapper">
117
+ <block type="sales/order_info" as="info" name="sales.order.info"/>
118
+ <block type="sales/order_invoice" name="sales.order.invoice">
119
+ <block type="sales/order_invoice_items" name="invoice_items" template="sales/order/invoice/items.phtml">
120
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
121
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
122
+ <block type="sales/order_invoice_totals" name="invoice_totals" template="sales/order/totals.phtml">
123
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
124
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
125
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
126
+ </block>
127
+ <block type="sales/order_comments" name="invoice_comments" template="sales/order/comments.phtml" />
128
+ </block>
129
+ </block>
130
+ </reference>
131
+ <reference name="sales.order.info">
132
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
133
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path></path><label>Invoices</label></action>
134
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
135
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
136
+ </reference>
137
+ </sales_order_invoice>
138
+
139
+ <sales_order_shipment translate="label">
140
+ <label>Customer My Account Order Shipment View</label>
141
+ <update handle="customer_account"/>
142
+ <reference name="my.account.wrapper">
143
+ <block type="sales/order_info" as="info" name="sales.order.info"/>
144
+ <block type="sales/order_shipment" name="sales.order.shipment">
145
+ <block type="sales/order_shipment_items" name="shipment_items" template="sales/order/shipment/items.phtml">
146
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
147
+ <block type="sales/order_comments" name="shipment_comments" template="sales/order/comments.phtml" />
148
+ </block>
149
+ </block>
150
+ </reference>
151
+ <reference name="sales.order.info">
152
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
153
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
154
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path></path><label>Shipments</label></action>
155
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
156
+ </reference>
157
+ </sales_order_shipment>
158
+
159
+ <sales_order_creditmemo translate="label">
160
+ <label>Customer My Account Order Creditmemo View</label>
161
+ <update handle="customer_account"/>
162
+ <reference name="my.account.wrapper">
163
+ <block type="sales/order_info" as="info" name="sales.order.info"/>
164
+ <block type="sales/order_creditmemo" name="sales.order.creditmemo">
165
+ <block type="sales/order_creditmemo_items" name="creditmemo_items" template="sales/order/creditmemo/items.phtml">
166
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
167
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
168
+ <block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="sales/order/totals.phtml">
169
+ <action method="setLabelProperties"><value>colspan="6" class="a-right"</value></action>
170
+ <action method="setValueProperties"><value>class="a-right"</value></action>
171
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
172
+ </block>
173
+ <block type="sales/order_comments" name="creditmemo_comments" template="sales/order/comments.phtml" />
174
+ </block>
175
+ </block>
176
+ </reference>
177
+ <reference name="sales.order.info">
178
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
179
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
180
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
181
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path></path><label>Refunds</label></action>
182
+ </reference>
183
+ </sales_order_creditmemo>
184
+
185
+ <sales_order_reorder>
186
+ <update handle="customer_account"/>
187
+ <reference name="content">
188
+ <block type="sales/order_view" name="sales.order.view"/>
189
+ </reference>
190
+ </sales_order_reorder>
191
+
192
+ <sales_order_print translate="label">
193
+ <label>Sales Order Print View</label>
194
+ <reference name="content">
195
+ <block type="sales/order_print" name="sales.order.print" template="sales/order/print.phtml">
196
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
197
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
198
+ <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
199
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
200
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
201
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
202
+ <action method="setIsPlaneMode"><value>1</value></action>
203
+ </block>
204
+ </block>
205
+ </block>
206
+ </reference>
207
+ </sales_order_print>
208
+
209
+ <sales_order_printinvoice translate="label">
210
+ <label>Sales Invoice Print View</label>
211
+ <reference name="content">
212
+ <block type="sales/order_print_invoice" name="sales.order.print.invoice" template="sales/order/print/invoice.phtml">
213
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
214
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
215
+ <block type="sales/order_invoice_totals" name="invoice_totals" template="sales/order/totals.phtml">
216
+ <action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
217
+ <action method="setValueProperties"><value>class="last a-right"</value></action>
218
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
219
+ </block>
220
+ </block>
221
+ </reference>
222
+ </sales_order_printinvoice>
223
+
224
+ <sales_order_printshipment translate="label">
225
+ <label>Sales Shipment Print View</label>
226
+ <reference name="content">
227
+ <block type="sales/order_print_shipment" name="sales.order.print.shipment" template="sales/order/print/shipment.phtml">
228
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
229
+ </block>
230
+ </reference>
231
+ </sales_order_printshipment>
232
+
233
+ <sales_order_printcreditmemo>
234
+ <reference name="content">
235
+ <block type="sales/order_print_creditmemo" name="sales.order.print.creditmemo" template="sales/order/print/creditmemo.phtml">
236
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
237
+ <action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
238
+ <block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="sales/order/totals.phtml">
239
+ <action method="setLabelProperties"><value>colspan="6" class="a-right"</value></action>
240
+ <action method="setValueProperties"><value>class="a-right"</value></action>
241
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
242
+ </block>
243
+ </block>
244
+ </reference>
245
+ </sales_order_printcreditmemo>
246
+
247
+ <!--
248
+ Email layouts section
249
+ -->
250
+ <sales_email_order_items>
251
+ <block type="sales/order_email_items" name="items" template="email/order/items.phtml">
252
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_order_default</block><template>email/order/items/order/default.phtml</template></action>
253
+ <action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/order/default.phtml</template></action>
254
+ <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
255
+ <action method="setLabelProperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
256
+ <action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
257
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
258
+ <action method="setIsPlaneMode"><value>1</value></action>
259
+ </block>
260
+ </block>
261
+ </block>
262
+ </sales_email_order_items>
263
+
264
+ <sales_email_order_invoice_items>
265
+ <block type="sales/order_email_invoice_items" name="items" template="email/order/invoice/items.phtml">
266
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/invoice/default.phtml</template></action>
267
+ <action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/invoice/default.phtml</template></action>
268
+ <block type="sales/order_invoice_totals" name="invoice_totals" template="sales/order/totals.phtml">
269
+ <action method="setLabelProperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
270
+ <action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
271
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
272
+ </block>
273
+ </block>
274
+ </sales_email_order_invoice_items>
275
+
276
+ <sales_email_order_shipment_items>
277
+ <block type="sales/order_email_shipment_items" name="items" template="email/order/shipment/items.phtml">
278
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/shipment/default.phtml</template></action>
279
+ </block>
280
+ </sales_email_order_shipment_items>
281
+
282
+ <sales_email_order_creditmemo_items>
283
+ <block type="sales/order_email_creditmemo_items" name="items" template="email/order/creditmemo/items.phtml">
284
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/creditmemo/default.phtml</template></action>
285
+ <action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/creditmemo/default.phtml</template></action>
286
+ <block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="sales/order/totals.phtml">
287
+ <action method="setLabelProperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
288
+ <action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
289
+ <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
290
+ </block>
291
+ </block>
292
+ </sales_email_order_creditmemo_items>
293
+ </layout>
app/design/frontend/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/layout/wishlist.xml ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <reference name="top.links">
38
+ <block type="wishlist/links" name="wishlist_link"/>
39
+ <action method="addLinkBlock"><blockName>wishlist_link</blockName></action>
40
+ </reference>
41
+
42
+ <!-- Mage_Wishlist -->
43
+ <reference name="right">
44
+ <block type="wishlist/customer_sidebar" name="wishlist_sidebar" as="wishlist" after="cart_sidebar" template="wishlist/sidebar.phtml"/>
45
+ </reference>
46
+ </default>
47
+
48
+ <!--
49
+ Customer account pages, rendered for all tabs in dashboard
50
+ -->
51
+
52
+ <customer_account>
53
+ <!-- Mage_Wishlist -->
54
+ <reference name="customer_account_navigation">
55
+ <action method="addLink" translate="label" module="wishlist" ifconfig="wishlist/general/active"><name>wishlist</name><path>wishlist/</path><label>My Wishlist</label></action>
56
+ </reference>
57
+ </customer_account>
58
+
59
+ <!--
60
+ Customer account home dashboard layout
61
+ -->
62
+
63
+ <customer_account_index>
64
+
65
+ <reference name="right">
66
+ <action method="unsetChild"><name>wishlist</name></action>
67
+ </reference>
68
+ </customer_account_index>
69
+
70
+ <!--
71
+ Wishlist pages
72
+ -->
73
+
74
+ <wishlist_index_index translate="label">
75
+ <label>Customer My Account My Wishlist</label>
76
+ <!-- Mage_Wishlist -->
77
+ <update handle="customer_account"/>
78
+ <reference name="my.account.wrapper">
79
+ <block type="wishlist/customer_wishlist" name="customer.wishlist" template="wishlist/view.phtml">
80
+ <block type="wishlist/customer_wishlist_item_options" name="customer.wishlist.item.options" as="item_options"/>
81
+ </block>
82
+ </reference>
83
+ <reference name="right">
84
+ <action method="unsetChild"><name>wishlist_customer_sidebar</name></action>
85
+ </reference>
86
+ </wishlist_index_index>
87
+
88
+ <wishlist_index_share translate="label">
89
+ <label>Customer My Account Wishlist Sharing Form</label>
90
+ <!-- Mage_Wishlist -->
91
+ <update handle="customer_account"/>
92
+ <reference name="my.account.wrapper">
93
+ <block type="wishlist/customer_sharing" name="wishlist.sharing" template="wishlist/sharing.phtml"/>
94
+ </reference>
95
+ <reference name="right">
96
+ <action method="unsetChild"><name>wishlist_customer_sidebar</name></action>
97
+ </reference>
98
+ </wishlist_index_share>
99
+
100
+ <wishlist_index_configure translate="label">
101
+ <label>Configure Wishlist Item</label>
102
+ <update handle="catalog_product_view"/>
103
+ <reference name="product.info">
104
+ <block type="wishlist/item_configure" name="product.info.addto" as="addto" template="wishlist/item/configure/addto.phtml"/>
105
+ </reference>
106
+ <reference name="product.info.options.wrapper.bottom">
107
+ <action method="unsetChild"><name>product.info.addto</name></action>
108
+ <action method="append"><block>product.info.addto</block></action>
109
+ </reference>
110
+ </wishlist_index_configure>
111
+
112
+ <wishlist_shared_index translate="label">
113
+ <label>Customer Shared Wishlist View</label>
114
+ <!-- Mage_Wishlist -->
115
+ <reference name="content">
116
+ <block type="wishlist/share_wishlist" name="customer.wishlist" template="wishlist/shared.phtml"/>
117
+ </reference>
118
+ </wishlist_shared_index>
119
+ </layout>
app/design/frontend/default/estore/layout/xmlconnect.xml ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <!-- Catalog -->
38
+
39
+ <xmlconnect_catalog_filters>
40
+ <block type="xmlconnect/catalog_filters" name="xmlconnect.catalog.filters" output="toHtml"/>
41
+ </xmlconnect_catalog_filters>
42
+
43
+ <!-- Category -->
44
+ <xmlconnect_catalog_category>
45
+ <block type="xmlconnect/catalog_category" name="xmlconnect.catalog.category" output="toHtml">
46
+ <block type="xmlconnect/catalog_product_list" name="xmlconnect.catalog.product.list" as="product_list" output="">
47
+ <block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
48
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
49
+ </block>
50
+ </block>
51
+
52
+ <block type="xmlconnect/catalog_category_info" name="xmlconnect.catalog.category.nfo" as="category_info" output=""/>
53
+ </block>
54
+ </xmlconnect_catalog_category>
55
+
56
+ <!-- Product -->
57
+
58
+ <xmlconnect_catalog_product>
59
+ <block type="xmlconnect/catalog_product" name="xmlconnect.catalog.product" output="toHtml">
60
+ <block type="xmlconnect/catalog_product_related" name="xmlconnect.product.related" as="related_products" output=""/>
61
+
62
+ <block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
63
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
64
+ </block>
65
+
66
+ <block type="xmlconnect/catalog_product_attributes" name="xmlconnect.catalog.product.attributes" as="additional_info" output="" />
67
+
68
+ <block type="xmlconnect/catalog_product_options" name="xmlconnect.catalog.product.options" output="">
69
+ <action method="addRenderer"><type>simple</type><renderer>xmlconnect/catalog_product_options_simple</renderer></action>
70
+ <action method="addRenderer"><type>virtual</type><renderer>xmlconnect/catalog_product_options_virtual</renderer></action>
71
+ <action method="addRenderer"><type>configurable</type><renderer>xmlconnect/catalog_product_options_configurable</renderer></action>
72
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_options_bundle</renderer></action>
73
+ <action method="addRenderer"><type>grouped</type><renderer>xmlconnect/catalog_product_options_grouped</renderer></action>
74
+ </block>
75
+ </block>
76
+ </xmlconnect_catalog_product>
77
+
78
+ <xmlconnect_catalog_productoptions>
79
+ <block type="xmlconnect/catalog_product_options" name="xmlconnect.catalog.product.options" output="toHtml">
80
+ <action method="addRenderer"><type>simple</type><renderer>xmlconnect/catalog_product_options_simple</renderer></action>
81
+ <action method="addRenderer"><type>virtual</type><renderer>xmlconnect/catalog_product_options_virtual</renderer></action>
82
+ <action method="addRenderer"><type>configurable</type><renderer>xmlconnect/catalog_product_options_configurable</renderer></action>
83
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_options_bundle</renderer></action>
84
+ <action method="addRenderer"><type>grouped</type><renderer>xmlconnect/catalog_product_options_grouped</renderer></action>
85
+ </block>
86
+ </xmlconnect_catalog_productoptions>
87
+
88
+ <xmlconnect_catalog_productgallery>
89
+ <block type="xmlconnect/catalog_product_gallery" name="xmlconnect.catalog.product.gallery" output="toHtml"/>
90
+ </xmlconnect_catalog_productgallery>
91
+
92
+ <xmlconnect_catalog_productreview>
93
+ <block type="xmlconnect/catalog_product_review" name="xmlconnect.catalog.product.review" output="toHtml"/>
94
+ </xmlconnect_catalog_productreview>
95
+
96
+ <xmlconnect_catalog_productreviews>
97
+ <block type="xmlconnect/catalog_product_review_list" name="xmlconnect.catalog.product.reviews" output="toHtml"/>
98
+ </xmlconnect_catalog_productreviews>
99
+
100
+ <!-- Search -->
101
+
102
+ <xmlconnect_catalog_search>
103
+ <block type="xmlconnect/catalog_search" name="xmlconnect.catalog.search" output="toHtml">
104
+ <block type="xmlconnect/catalog_product_list" name="xmlconnect.catalog.product.list" as="product_list" output="">
105
+ <block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
106
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
107
+ </block>
108
+ </block>
109
+ </block>
110
+ </xmlconnect_catalog_search>
111
+
112
+ <xmlconnect_catalog_searchsuggest>
113
+ <block type="xmlconnect/catalog_search_suggest" name="xmlconnect.catalog.search.suggest" output="toHtml"/>
114
+ </xmlconnect_catalog_searchsuggest>
115
+
116
+ <!-- Shopping Cart -->
117
+ <xmlconnect_cart_index>
118
+ <block type="xmlconnect/cart" name="xmlconnect.cart" output="toHtml">
119
+ <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
120
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/item/default.phtml</template></action>
121
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
122
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/item/default.phtml</template></action>
123
+
124
+ <block type="xmlconnect/cart_crosssell" name="xmlconnect.cart.crosssell" as="crosssell">
125
+ <block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
126
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
127
+ </block>
128
+ </block>
129
+ </block>
130
+ </xmlconnect_cart_index>
131
+
132
+ <xmlconnect_cart_info>
133
+ <block type="xmlconnect/cart_info" name="xmlconnect.cart.info" as="cart_info" output="toHtml">
134
+ <block type="xmlconnect/cart_totals" name="xmlconnect.cart.totals" as="totals"/>
135
+ </block>
136
+ </xmlconnect_cart_info>
137
+
138
+ <!-- Customer -->
139
+
140
+ <xmlconnect_customer_form>
141
+ <block type="xmlconnect/customer_form" name="xmlconnect.customer.form" output="toHtml"/>
142
+ </xmlconnect_customer_form>
143
+
144
+ <xmlconnect_wishlist_index>
145
+ <block type="xmlconnect/wishlist" name="xmlconnect.wishlist" output="toHtml">
146
+ <block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
147
+ <action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
148
+ </block>
149
+ </block>
150
+ </xmlconnect_wishlist_index>
151
+
152
+ <xmlconnect_customer_address>
153
+ <block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" output="toHtml"/>
154
+ </xmlconnect_customer_address>
155
+
156
+ <xmlconnect_customer_addressform>
157
+ <block type="xmlconnect/customer_address_form" name="xmlconnect.customer.address.form" output="toHtml"/>
158
+ </xmlconnect_customer_addressform>
159
+
160
+ <xmlconnect_customer_orderlist>
161
+ <block type="xmlconnect/customer_order_list" name="xmlconnect.customer.order.list" output="toHtml"/>
162
+ </xmlconnect_customer_orderlist>
163
+
164
+ <!-- Configuration -->
165
+
166
+ <xmlconnect_configuration_index>
167
+ <block type="xmlconnect/configuration" name="xmlconnect.configuration" output="toHtml"/>
168
+ </xmlconnect_configuration_index>
169
+
170
+ <!-- Checkout (OnePage) -->
171
+
172
+ <xmlconnect_checkout_index>
173
+ <block type="xmlconnect/checkout_address_billing" name="xmlconnect.checkout.address.billing" output="toHtml">
174
+ <block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" as="address_list" output=""/>
175
+ </block>
176
+ </xmlconnect_checkout_index>
177
+
178
+ <xmlconnect_checkout_billingaddress>
179
+ <block type="xmlconnect/checkout_address_billing" name="xmlconnect.checkout.address.billing" output="toHtml">
180
+ <block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" as="address_list" output=""/>
181
+ </block>
182
+ </xmlconnect_checkout_billingaddress>
183
+
184
+ <xmlconnect_checkout_newbillingaddressform>
185
+ <block type="xmlconnect/checkout_address_form" name="xmlconnect.checkout.new.billing.addreess.form" output="toHtml">
186
+ <action method="setType"><type>billing</type></action>
187
+ </block>
188
+ </xmlconnect_checkout_newbillingaddressform>
189
+
190
+ <xmlconnect_checkout_shippingaddress>
191
+ <block type="xmlconnect/checkout_address_shipping" name="xmlconnect.checkout.address.shipping" output="toHtml">
192
+ <block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" as="address_list" output=""/>
193
+ </block>
194
+ </xmlconnect_checkout_shippingaddress>
195
+
196
+ <xmlconnect_checkout_newshippingaddressform>
197
+ <block type="xmlconnect/checkout_address_form" name="xmlconnect.checkout.new.billing.addreess.form" output="toHtml">
198
+ <action method="setType"><type>shipping</type></action>
199
+ </block>
200
+ </xmlconnect_checkout_newshippingaddressform>
201
+
202
+ <xmlconnect_checkout_shippingmethods>
203
+ <block type="xmlconnect/checkout_shipping_method_avaliable" name="xmlconnect.checkout.shipping.method.avalieble" output="toHtml"/>
204
+ </xmlconnect_checkout_shippingmethods>
205
+
206
+ <xmlconnect_checkout_paymentmethods>
207
+ <block type="xmlconnect/checkout_payment_method_list" name="xmlconnect.checkout.payment.method.list" output="toHtml">
208
+ <block type="xmlconnect/checkout_payment_method_ccsave" name="xmlconnect.checkout.method.ccsave" as="payment_ccsave" output=""/>
209
+ <block type="xmlconnect/checkout_payment_method_checkmo" name="xmlconnect.checkout.method.checkmo" as="payment_checkmo" output=""/>
210
+ <block type="xmlconnect/checkout_payment_method_purchaseorder" name="xmlconnect.checkout.method.purchaseorder" as="payment_purchaseorder" output=""/>
211
+ <block type="xmlconnect/checkout_payment_method_paypal_payflow" name="xmlconnect.checkout.method.paypal.payflow" as="payment_paypal_payflow" output=""/>
212
+ <block type="xmlconnect/checkout_payment_method_paypal_direct" name="xmlconnect.checkout.method.paypal.direct" as="payment_paypal_direct" output=""/>
213
+ <block type="xmlconnect/checkout_payment_method_authorizenet" name="xmlconnect.checkout.method.authorizenet" as="payment_authorizenet" output=""/>
214
+ </block>
215
+ </xmlconnect_checkout_paymentmethods>
216
+
217
+ <xmlconnect_checkout_orderreview>
218
+ <block type="xmlconnect/checkout_order_review" name="xmlconnect.checkout.order.review" output="toHtml">
219
+ <block type="xmlconnect/checkout_order_review_info" name="xmlconnect.checkout.order.info" as="order_products">
220
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
221
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
222
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
223
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
224
+ </block>
225
+
226
+ <block type="xmlconnect/cart_totals" name="xmlconnect.checkout.order.review.totals" as="totals"/>
227
+ <block type="xmlconnect/checkout_agreements" name="xmlconnect.checkout.agreements" as="agreements" output=""/>
228
+ </block>
229
+ </xmlconnect_checkout_orderreview>
230
+
231
+ <!-- Checkout with PayPal MEP -->
232
+
233
+ <xmlconnect_paypal_mep_shippingmethods>
234
+ <block type="xmlconnect/checkout_shipping_method_avaliable" name="xmlconnect.checkout.shipping.method.avalieble" output="toHtml"/>
235
+ </xmlconnect_paypal_mep_shippingmethods>
236
+
237
+ <xmlconnect_paypal_mep_carttotals>
238
+ <block type="xmlconnect/cart_paypal_mep_totals" name="xmlconnect.cart.paypal.mep.totals" output="toHtml"/>
239
+ </xmlconnect_paypal_mep_carttotals>
240
+
241
+ <!-- Cms -->
242
+
243
+ <xmlconnect_cms_page>
244
+ <block type="xmlconnect/cms_page" name="xmlconnect.cms.page" output="toHtml"/>
245
+ </xmlconnect_cms_page>
246
+
247
+ </layout>
app/design/frontend/default/estore/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) 2010 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/default/estore/template/authorizenet/directpost/iframe.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) 2010 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_Iframe
29
+ */
30
+ ?>
31
+ <?php
32
+ $_params = $this->getParams();
33
+ $_helper = $this->helper('authorizenet');
34
+ ?>
35
+ <html>
36
+ <head>
37
+ <script type="text/javascript">
38
+ //<![CDATA[
39
+ <?php if (isset($_params['redirect'])): ?>
40
+ window.location="<?php echo $_params['redirect'] ?>";
41
+ <?php endif; ?>
42
+ <?php if (isset($_params['redirect_parent'])): ?>
43
+ window.top.location="<?php echo $_params['redirect_parent'] ?>";
44
+ <?php endif; ?>
45
+ <?php if (isset($_params['error_msg'])): ?>
46
+ window.top.directPostModel.showError("<?php echo $_params['error_msg'] ?>");
47
+ <?php if (isset($_params['x_invoice_num'])): ?>
48
+ window.top.directPostModel.successUrl="<?php echo $_helper->getSuccessOrderUrl($_params) ?>";
49
+ <?php endif; ?>
50
+ <?php endif; ?>
51
+ //]]>
52
+ </script>
53
+ </head>
54
+ <body></body>
55
+ </html>
app/design/frontend/default/estore/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) 2010 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/default/estore/template/banners/banners.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_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php /*?><script type="text/javascript" src="<?php echo Mage::getBaseUrl('media'); ?>Banners/swf/swfobject.js"></script>
28
+ <table width="100%" border="0" align="left" cellspacing="0" cellpadding="0">
29
+ <tr>
30
+ <td align="center" valign="middle">
31
+ <div id="flashcontent">
32
+ <script type="text/javascript">
33
+ //Local
34
+ var so = new SWFObject("<?php echo Mage::getBaseUrl('media'); ?>Banners/banner.swf?="+<?php echo time();?>, "mymovie", "<?php echo Mage::helper('banners')->bannerWidth(); ?>", "<?php echo Mage::helper('banners')->bannerHeight(); ?>", "<?php echo Mage::helper('banners')->transitionType(); ?>");
35
+ so.addVariable("xmlPath", "<?php echo Mage::getBaseUrl('media'); ?>Banners/data.xml?="+<?php echo time();?>);
36
+ so.addParam("menu", "false");
37
+ so.addParam('allowscriptaccess','always');
38
+ so.addParam("wmode", "transparent");
39
+ so.write("flashcontent");
40
+ </script>
41
+ </div>
42
+ </td>
43
+ </tr>
44
+ </table><?php */?>
45
+
46
+ <?php
47
+ $bannerCollection = Mage::getModel('banners/banners')->getCollection();
48
+ $configData = Mage::getStoreConfig('banners');
49
+ $i = 0;
50
+ ?>
51
+ <div class="clear"></div>
52
+
53
+ <div id="banner">
54
+ <div class="sliderwrapper" id="slider1">
55
+ <?php
56
+ $i = 0;
57
+ foreach ($bannerCollection as $banner):
58
+ $i++;
59
+ ?>
60
+ <div class="contentdiv">
61
+ <a href="<?php echo $banner['weblink'];?>">
62
+ <img title="<?php echo $banner['title']?>" alt="<?php echo $banner['title']?>" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).Banners.'/'.images.'/'.$banner['bannerimage']?>" alt=""/>
63
+ <?php if ($configData['settings']['show_description'] == '1'):?>
64
+ <div class="banner_content"><p><?php echo $banner['content']; ?></p></div>
65
+ <?php endif;?>
66
+ </a>
67
+ </div>
68
+ <?php
69
+ endforeach;
70
+ ?>
71
+ </div>
72
+ <div class="pagination" id="paginate-slider1"><a class="prev" href="#prev">&nbsp;</a> <div class="centerlinks"><a class="toc" href="#1" rel="1">1</a> <a class="toc selected" href="#2" rel="2">2</a> <a class="toc" href="#3" rel="3">3</a> </div><a class="next" href="#next">&nbsp;</a></div>
73
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/banner.js') ?>"></script>
74
+ </div>
75
+
76
+
77
+ <div class="clear"></div>
78
+
79
+
80
+
81
+ <?php /*?><div id="banner">
82
+ <div class="slide-show" id="slide-images">
83
+ <div id="pettabs" class="indentmenu">
84
+ <ul>
85
+ <?php
86
+ foreach($bannerCollection as $banner):
87
+ $i++;
88
+ ?>
89
+ <li><a href="#" rel="tab<?php echo $i;?>" <?php if ($i == 1) { echo 'class="selected"'; }?>></a></li>
90
+ <?php
91
+ endforeach;
92
+ ?>
93
+ </ul>
94
+ </div>
95
+ <div style="width:915px; float:left;text-align:justify;padding: 5px; margin-bottom:1em">
96
+ <?php
97
+ $i = 0;
98
+ foreach ($bannerCollection as $banner):
99
+ $i++;
100
+ ?>
101
+ <div id="tab<?php echo $i;?>" class="tabcontent">
102
+ <a href="#"><?php //echo $banner['filethumbgrid'];?></a>
103
+ <a href="<?php echo $banner['weblink'];?>">
104
+ <img title="<?php echo $banner['title']?>" alt="<?php echo $banner['title']?>" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).Banners.'/'.images.'/'.$banner['bannerimage']?>" alt="" style="width:915px; height:350px;"/>
105
+ <?php if ($configData['settings']['show_description'] == '1'):?>
106
+ <div class="banner_content"><p><?php echo $banner['content']; ?></p></div>
107
+ <?php endif;?>
108
+ </a>
109
+ </div>
110
+ <?php
111
+ endforeach;
112
+ ?>
113
+ </div>
114
+ </div>
115
+ </div><?php */?>
116
+ <?php /*?><?php
117
+ $timeDelay = $configData['settings']['time_delay'] * 1000;
118
+ ?>
119
+ <script type="text/javascript">
120
+ <?php
121
+ echo 'var delay = ' . $timeDelay . ';';
122
+ ?>
123
+ var mypets=new ddtabcontent("pettabs");
124
+ mypets.setpersist(true);
125
+ mypets.setselectedClassTarget("link");
126
+ mypets.init(delay);
127
+ </script><?php */?>
128
+
app/design/frontend/default/estore/template/bannerslider/bannerslider.phtml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('banner/ajaxtabs.js') ?>"></script>
2
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('banner/banner.css');?>" media="all" />
3
+ <?php
4
+ $bannerCollection = Mage::getModel('bannerslider/bannerslider')->getCollection();
5
+ $configData = Mage::getStoreConfig('bannerslider');
6
+ $i = 0;
7
+ ?>
8
+ <div class="slide-container">
9
+ <div class="slide-show" id="slide-images">
10
+ <div id="pettabs" class="indentmenu">
11
+ <ul>
12
+ <?php
13
+ foreach($bannerCollection as $banner):
14
+ $i++;
15
+ ?>
16
+ <li><a href="#" rel="tab<?php echo $i;?>" <?php if ($i == 1) { echo 'class="selected"'; }?>><?php echo $i;?></a></li>
17
+ <?php
18
+ endforeach;
19
+ ?>
20
+ </ul>
21
+ </div>
22
+ <div style="width:240px;text-align:justify;padding: 5px; margin-bottom:1em">
23
+ <?php
24
+ $i = 0;
25
+ foreach ($bannerCollection as $banner):
26
+ $i++;
27
+ ?>
28
+ <div id="tab<?php echo $i;?>" class="tabcontent">
29
+ <a href="<?php echo $banner['weblink'];?>">
30
+ <img title="<?php echo $banner['title']?>" alt="<?php echo $banner['title']?>" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . $banner['filename']?>" alt="" style="width:442px; height:232px;"/>
31
+ <?php if ($configData['settings']['show_description'] == '1'):?>
32
+ <div class="banner_content"><p><?php echo $banner['content']; ?></p></div>
33
+ <?php endif;?>
34
+ </a>
35
+ </div>
36
+ <?php
37
+ endforeach;
38
+ ?>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ <?php
43
+ $timeDelay = $configData['settings']['time_delay'] * 1000;
44
+ ?>
45
+ <script type="text/javascript">
46
+ <?php
47
+ echo 'var delay = ' . $timeDelay . ';';
48
+ ?>
49
+ var mypets=new ddtabcontent("pettabs");
50
+ mypets.setpersist(true);
51
+ mypets.setselectedClassTarget("link");
52
+ mypets.init(delay);
53
+ </script>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($_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->htmlEscape($_bundle->getName()) ?>" /></a>
39
+ <h3 class="product-name"><a href="<?php echo $_bundle->getProductUrl() ?>"><?php echo $this->htmlEscape($_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/default/estore/template/bundle/catalog/product/price.phtml ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 list($_minimalPriceTax, $_maximalPriceTax) = $_product->getPriceModel()->getPrices($_product) ?>
29
+ <?php list($_minimalPriceInclTax, $_maximalPriceInclTax) = $_product->getPriceModel()->getPricesDependingOnTax($_product, null, true) ?>
30
+ <?php $_id = $_product->getId() ?>
31
+
32
+ <?php $_weeeTaxAmount = 0; ?>
33
+
34
+ <?php
35
+ if ($_product->getPriceType() == 1) {
36
+ $_weeeTaxAmount = Mage::helper('weee')->getAmount($_product);
37
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, array(0, 1, 4))) {
38
+ $_minimalPriceTax += $_weeeTaxAmount;
39
+ $_minimalPriceInclTax += $_weeeTaxAmount;
40
+ }
41
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)) {
42
+ $_minimalPriceInclTax += $_weeeTaxAmount;
43
+ }
44
+
45
+ if (Mage::helper('weee')->typeOfDisplay($_product, array(1,2,4))) {
46
+ $_weeeTaxAttributes = Mage::helper('weee')->getProductWeeeAttributesForDisplay($_product);
47
+ }
48
+ }
49
+ ?>
50
+
51
+ <div class="price-box">
52
+ <?php if ($_product->getPriceView()): ?>
53
+ <p class="minimal-price">
54
+ <span class="price-label"><?php echo $this->__('As low as') ?>:</span>
55
+ <?php if ($this->displayBothPrices()): ?>
56
+ <span class="price-excluding-tax">
57
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
58
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
59
+ </span>
60
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
61
+ <span class="weee">(<small>
62
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
63
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
64
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
65
+ <?php else: ?>
66
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
67
+ <?php endif; ?>
68
+
69
+ <?php echo $_weeeSeparator; ?>
70
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
71
+ <?php $_weeeSeparator = ' + '; ?>
72
+ <?php endforeach; ?>
73
+ </small>)</span>
74
+ <?php endif; ?>
75
+ <span class="price-including-tax">
76
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
77
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
78
+ </span>
79
+ <?php else: ?>
80
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
81
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
82
+ <span class="weee">(<small>
83
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
84
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
85
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
86
+ <?php else: ?>
87
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
88
+ <?php endif; ?>
89
+
90
+ <?php echo $_weeeSeparator; ?>
91
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
92
+ <?php $_weeeSeparator = ' + '; ?>
93
+ <?php endforeach; ?>
94
+ </small>)</span>
95
+ <?php endif; ?>
96
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
97
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
98
+ <?php endif; ?>
99
+ <?php endif; ?>
100
+ </p>
101
+ <?php else: ?>
102
+ <?php if ($_minimalPriceTax <> $_maximalPriceTax): ?>
103
+ <p class="price-from">
104
+ <span class="price-label"><?php echo $this->__('From') ?>:</span>
105
+ <?php if ($this->displayBothPrices()): ?>
106
+ <span class="price-excluding-tax">
107
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
108
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
109
+ </span>
110
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
111
+ <span class="weee">(<small>
112
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
113
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
114
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
115
+ <?php else: ?>
116
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
117
+ <?php endif; ?>
118
+
119
+ <?php echo $_weeeSeparator; ?>
120
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
121
+ <?php $_weeeSeparator = ' + '; ?>
122
+ <?php endforeach; ?>
123
+ </small>)</span>
124
+ <?php endif; ?>
125
+ <span class="price-including-tax">
126
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
127
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
128
+ </span>
129
+ <?php else: ?>
130
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
131
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
132
+ <span class="weee">(<small>
133
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
134
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
135
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
136
+ <?php else: ?>
137
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
138
+ <?php endif; ?>
139
+
140
+ <?php echo $_weeeSeparator; ?>
141
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
142
+ <?php $_weeeSeparator = ' + '; ?>
143
+ <?php endforeach; ?>
144
+ </small>)</span>
145
+ <?php endif; ?>
146
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
147
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
148
+ <?php endif; ?>
149
+ <?php endif; ?>
150
+ </p>
151
+ <?php
152
+ if ($_product->getPriceType() == 1) {
153
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, array(0, 1, 4))) {
154
+ $_maximalPriceTax += $_weeeTaxAmount;
155
+ $_maximalPriceInclTax += $_weeeTaxAmount;
156
+ }
157
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)) {
158
+ $_maximalPriceInclTax += $_weeeTaxAmount;
159
+ }
160
+ }
161
+ ?>
162
+ <p class="price-to">
163
+ <span class="price-label"><?php echo $this->__('To') ?>:</span>
164
+ <?php if ($this->displayBothPrices()): ?>
165
+ <span class="price-excluding-tax">
166
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
167
+ <?php echo Mage::helper('core')->currency($_maximalPriceTax) ?>
168
+ </span>
169
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
170
+ <span class="weee">(<small>
171
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
172
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
173
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
174
+ <?php else: ?>
175
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
176
+ <?php endif; ?>
177
+
178
+ <?php echo $_weeeSeparator; ?>
179
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
180
+ <?php $_weeeSeparator = ' + '; ?>
181
+ <?php endforeach; ?>
182
+ </small>)</span>
183
+ <?php endif; ?>
184
+ <span class="price-including-tax">
185
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax') ?></span>
186
+ <?php echo Mage::helper('core')->currency($_maximalPriceInclTax) ?>
187
+ </span>
188
+ <?php else: ?>
189
+ <?php echo Mage::helper('core')->currency($_maximalPriceTax) ?>
190
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
191
+ <span class="weee">(<small>
192
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
193
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
194
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
195
+ <?php else: ?>
196
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
197
+ <?php endif; ?>
198
+
199
+ <?php echo $_weeeSeparator; ?>
200
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
201
+ <?php $_weeeSeparator = ' + '; ?>
202
+ <?php endforeach; ?>
203
+ </small>)</span>
204
+ <?php endif; ?>
205
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
206
+ <?php echo Mage::helper('core')->currency($_maximalPriceInclTax) ?>
207
+ <?php endif; ?>
208
+ <?php endif; ?>
209
+ </p>
210
+ <?php else: ?>
211
+ <?php if ($this->displayBothPrices()): ?>
212
+ <span class="price-excluding-tax">
213
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
214
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
215
+ </span>
216
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
217
+ <span class="weee">(<small>
218
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
219
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
220
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
221
+ <?php else: ?>
222
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
223
+ <?php endif; ?>
224
+
225
+ <?php echo $_weeeSeparator; ?>
226
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
227
+ <?php $_weeeSeparator = ' + '; ?>
228
+ <?php endforeach; ?>
229
+ </small>)</span>
230
+ <?php endif; ?>
231
+ <span class="price-including-tax">
232
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
233
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
234
+ </span>
235
+ <?php else: ?>
236
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
237
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
238
+ <span class="weee">(<small>
239
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
240
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
241
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
242
+ <?php else: ?>
243
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
244
+ <?php endif; ?>
245
+
246
+ <?php echo $_weeeSeparator; ?>
247
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
248
+ <?php $_weeeSeparator = ' + '; ?>
249
+ <?php endforeach; ?>
250
+ </small>)</span>
251
+ <?php endif; ?>
252
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
253
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
254
+ <?php endif; ?>
255
+ <?php endif; ?>
256
+ <?php endif; ?>
257
+ <?php endif; ?>
258
+ </div>
app/design/frontend/default/estore/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) 2010 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/default/estore/template/bundle/catalog/product/view/price.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) 2010 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 = Mage::helper('tax')->getPrice($_product, $_product->getFinalPrice()); ?>
29
+ <?php $_finalPriceInclTax = Mage::helper('tax')->getPrice($_product, $_product->getFinalPrice(), true); ?>
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')->getProductWeeeAttributesForDisplay($_product);
36
+ }
37
+ }
38
+ ?>
39
+
40
+ <div class="price-box">
41
+ <p class="price-as-configured">
42
+ <span class="price-label"><?php echo $this->helper('bundle')->__('Price as configured') ?>:</span>
43
+ <?php if ($this->displayBothPrices()): ?>
44
+ <span class="price-tax">
45
+ <span class="price-excluding-tax">
46
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
47
+ <span class="price" id="price-excluding-tax-<?php echo $_product->getId() ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice,true,false) ?></span>
48
+ </span>
49
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
50
+ <span class="weee">(<small>
51
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
52
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
53
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
54
+ <?php else: ?>
55
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
56
+ <?php endif; ?>
57
+
58
+ <?php echo $_weeeSeparator; ?>
59
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
60
+ <?php $_weeeSeparator = ' + '; ?>
61
+ <?php endforeach; ?>
62
+ </small>)</span>
63
+ <?php endif; ?>
64
+ <span class="price-including-tax">
65
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
66
+ <span class="price" id="price-including-tax-<?php echo $_product->getId() ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax,true,false) ?></span>
67
+ </span>
68
+ </span>
69
+ <?php else: ?>
70
+ <span class="price" id="product-price-<?php echo $_product->getId() ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice,true,false) ?></span>
71
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
72
+ <span class="weee">(<small>
73
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
74
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
75
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
76
+ <?php else: ?>
77
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
78
+ <?php endif; ?>
79
+
80
+ <?php echo $_weeeSeparator; ?>
81
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
82
+ <?php $_weeeSeparator = ' + '; ?>
83
+ <?php endforeach; ?>
84
+ </small>)</span>
85
+ <?php endif; ?>
86
+ <?php endif; ?>
87
+ </p>
88
+ </div>
89
+ <?php if($_product->isSaleable()): ?>
90
+ <script type="text/javascript">
91
+ bundle.reloadPrice();
92
+ </script>
93
+ <?php endif; ?>
app/design/frontend/default/estore/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) 2010 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/default/estore/template/bundle/catalog/product/view/type/bundle.phtml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 bundle = new Product.Bundle(<?php echo $this->getJsonConfig() ?>);
34
+ //]]>
35
+ </script>
36
+ <?php endif; ?>
37
+ <?php if ($_product->isAvailable()): ?>
38
+ <p class="availability in-stock"><?php echo $this->helper('catalog')->__('Availability:') ?> <span><?php echo $this->helper('catalog')->__('In stock') ?></span></p>
39
+ <?php else: ?>
40
+ <p class="availability out-of-stock"><?php echo $this->helper('catalog')->__('Availability:') ?> <span><?php echo $this->helper('catalog')->__('Out of stock') ?></span></p>
41
+ <?php endif; ?>
42
+ <div class="price-box-bundle">
43
+ <?php echo $this->getPriceHtml($_product) ?>
44
+ </div>
45
+ <?php echo $this->getChildHtml('bundle_prices') ?>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($_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/default/estore/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) 2010 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->htmlEscape($_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/default/estore/template/bundle/catalog/product/view/type/bundle/option/radio.phtml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+
35
+ <dt>
36
+ <label<?php if ($_option->getRequired()) echo ' class="required"' ?>><?php echo $this->htmlEscape($_option->getTitle()) ?><?php if ($_option->getRequired()) echo '<em>*</em>' ?></label>
37
+ </dt>
38
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
39
+ <div class="input-box">
40
+ <?php if ($this->_showSingle()): ?>
41
+ <?php echo $this->getSelectionTitlePrice($_selections[0]) ?>
42
+ <input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>" />
43
+ <?php else:?>
44
+ <ul class="options-list">
45
+ <?php if (!$_option->getRequired()): ?>
46
+ <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=""/>
47
+ <span class="label"><label for="bundle-option-<?php echo $_option->getId() ?>"><?php echo $this->__('None') ?></label></span>
48
+ </li>
49
+ <?php endif; ?>
50
+ <?php foreach ($_selections as $_selection): ?>
51
+ <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() ?>"/>
52
+ <span class="label"><label for="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>"><?php echo $this->getSelectionTitlePrice($_selection) ?></label></span>
53
+ <?php if ($_option->getRequired()): ?>
54
+ <?php echo $this->setValidationContainer('bundle-option-'.$_option->getId().'-'.$_selection->getSelectionId(), 'bundle-option-'.$_option->getId().'-container') ?>
55
+ <?php endif; ?>
56
+ </li>
57
+ <?php endforeach; ?>
58
+ </ul>
59
+ <div id="bundle-option-<?php echo $_option->getId() ?>-container"></div>
60
+ <?php endif; ?>
61
+ </div>
62
+ <span class="qty-holder">
63
+ <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 ?>"/>
64
+ </span>
65
+ </dd>
app/design/frontend/default/estore/template/bundle/catalog/product/view/type/bundle/option/select.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) 2010 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
+
35
+ <dt>
36
+ <label<?php if ($_option->getRequired()) echo ' class="required"' ?>><?php echo $this->htmlEscape($_option->getTitle()) ?><?php if ($_option->getRequired()) echo '<em>*</em>' ?></label>
37
+ </dt>
38
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
39
+ <div class="input-box">
40
+ <?php if ($this->_showSingle()): ?>
41
+ <?php echo $this->getSelectionTitlePrice($_selections[0]) ?>
42
+ <input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>"/>
43
+ <?php else:?>
44
+ <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">
45
+ <option value=""><?php echo $this->__('Choose a selection...') ?></option>
46
+ <?php foreach ($_selections as $_selection): ?>
47
+ <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>
48
+ <?php endforeach; ?>
49
+ </select>
50
+ <?php endif; ?>
51
+ </div>
52
+ <span class="qty-holder">
53
+ <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 ?>"/>
54
+ </span>
55
+ </dd>
app/design/frontend/default/estore/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) 2010 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/default/estore/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) 2010 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->htmlEscape($_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->htmlEscape($_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_incl_tax'],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_incl_tax'],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+$_item->getWeeeTaxAppliedRowAmount()); ?>
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'],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+$_item->getWeeeTaxAppliedRowAmount()); ?></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->htmlEscape($_item->getDescription()) ?>
163
+ </td>
164
+ <td>&nbsp;</td>
165
+ <td>&nbsp;</td>
166
+ <td>&nbsp;</td>
167
+ </tr>
168
+ <?php endif; ?>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($_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->htmlEscape($_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_incl_tax'],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_incl_tax'],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+$_item->getWeeeTaxAppliedRowAmount()); ?>
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'],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+$_item->getWeeeTaxAppliedRowAmount()); ?></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->htmlEscape($_item->getDescription()) ?>
164
+ </td>
165
+ <td>&nbsp;</td>
166
+ <td>&nbsp;</td>
167
+ <td>&nbsp;</td>
168
+ </tr>
169
+ <?php endif; ?>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($_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->htmlEscape($_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_incl_tax'],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_incl_tax'],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+$_item->getWeeeTaxAppliedRowAmount()); ?>
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'],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+$_item->getWeeeTaxAppliedRowAmount()); ?></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->htmlEscape($_giftMessage->getSender()) ?>
166
+ <br /><?php echo $this->__('To:'); ?> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?>
167
+ <br /><?php echo $this->__('Message:'); ?><br /> <?php echo $this->htmlEscape($_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/default/estore/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) 2010 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->htmlEscape($_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->htmlEscape($_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->htmlEscape($_item->getDescription()) ?>
88
+ </td>
89
+ <td>&nbsp;</td>
90
+ <td>&nbsp;</td>
91
+ </tr>
92
+ <?php endif; ?>
app/design/frontend/default/estore/template/bundle/rss/catalog/product/price.phtml ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 $_weeeTaxAmount = 0; ?>
41
+
42
+ <?php $_minimalPriceTax = Mage::helper('tax')->getPrice($_product, $_minimalPrice); ?>
43
+ <?php $_minimalPriceInclTax = Mage::helper('tax')->getPrice($_product, $_minimalPrice, true); ?>
44
+
45
+ <?php
46
+ if ($_product->getPriceType() == 1) {
47
+ $_weeeTaxAmount = Mage::helper('weee')->getAmount($_product);
48
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, array(0, 1, 4))) {
49
+ $_minimalPriceTax += $_weeeTaxAmount;
50
+ $_minimalPriceInclTax += $_weeeTaxAmount;
51
+ }
52
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)) {
53
+ $_minimalPriceInclTax += $_weeeTaxAmount;
54
+ }
55
+
56
+ if (Mage::helper('weee')->typeOfDisplay($_product, array(1,2,4))) {
57
+ $_weeeTaxAttributes = Mage::helper('weee')->getProductWeeeAttributesForDisplay($_product);
58
+ }
59
+ }
60
+ ?>
61
+
62
+ <div class="price-box">
63
+ <?php if ($_product->getPriceView()): ?>
64
+ <p class="minimal-price">
65
+ <span class="price-label"><?php echo $this->__('As low as') ?>:</span>
66
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
67
+ <span class="price-excluding-tax">
68
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
69
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
70
+ </span>
71
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
72
+ <span class="weee">(<small>
73
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
74
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
75
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
76
+ <?php else: ?>
77
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
78
+ <?php endif; ?>
79
+
80
+ <?php echo $_weeeSeparator; ?>
81
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
82
+ <?php $_weeeSeparator = ' + '; ?>
83
+ <?php endforeach; ?>
84
+ </small>)</span>
85
+ <?php endif; ?>
86
+ <span class="price-including-tax">
87
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
88
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
89
+ </span>
90
+ <?php else: ?>
91
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
92
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
93
+ <span class="weee">(<small>
94
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
95
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
96
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
97
+ <?php else: ?>
98
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
99
+ <?php endif; ?>
100
+
101
+ <?php echo $_weeeSeparator; ?>
102
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
103
+ <?php $_weeeSeparator = ' + '; ?>
104
+ <?php endforeach; ?>
105
+ </small>)</span>
106
+ <?php endif; ?>
107
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
108
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
109
+ <?php endif; ?>
110
+ <?php endif; ?>
111
+ </p>
112
+ <?php else: ?>
113
+ <?php if ($_minimalPrice <> $_maximalPrice): ?>
114
+ <p class="price-from">
115
+ <span class="price-label"><?php echo $this->__('From') ?>:</span>
116
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
117
+ <span class="price-excluding-tax">
118
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
119
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
120
+ </span>
121
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
122
+ <span class="weee">(<small>
123
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
124
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
125
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
126
+ <?php else: ?>
127
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
128
+ <?php endif; ?>
129
+
130
+ <?php echo $_weeeSeparator; ?>
131
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
132
+ <?php $_weeeSeparator = ' + '; ?>
133
+ <?php endforeach; ?>
134
+ </small>)</span>
135
+ <?php endif; ?>
136
+ <span class="price-including-tax">
137
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
138
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
139
+ </span>
140
+ <?php else: ?>
141
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
142
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
143
+ <span class="weee">(<small>
144
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
145
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
146
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
147
+ <?php else: ?>
148
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
149
+ <?php endif; ?>
150
+
151
+ <?php echo $_weeeSeparator; ?>
152
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
153
+ <?php $_weeeSeparator = ' + '; ?>
154
+ <?php endforeach; ?>
155
+ </small>)</span>
156
+ <?php endif; ?>
157
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
158
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
159
+ <?php endif; ?>
160
+ <?php endif; ?>
161
+ </p>
162
+ <?php $_maximalPriceTax = Mage::helper('tax')->getPrice($_product, $_maximalPrice); ?>
163
+ <?php $_maximalPriceInclTax = Mage::helper('tax')->getPrice($_product, $_maximalPrice, true); ?>
164
+ <?php
165
+ if ($_product->getPriceType() == 1) {
166
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, array(0, 1, 4))) {
167
+ $_maximalPriceTax += $_weeeTaxAmount;
168
+ $_maximalPriceInclTax += $_weeeTaxAmount;
169
+ }
170
+ if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)) {
171
+ $_maximalPriceInclTax += $_weeeTaxAmount;
172
+ }
173
+ }
174
+ ?>
175
+ <p class="price-to">
176
+ <span class="price-label"><?php echo $this->__('To') ?>:</span>
177
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
178
+ <span class="price-excluding-tax">
179
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
180
+ <?php echo Mage::helper('core')->currency($_maximalPriceTax) ?>
181
+ </span>
182
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
183
+ <span class="weee">(<small>
184
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
185
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
186
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
187
+ <?php else: ?>
188
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
189
+ <?php endif; ?>
190
+
191
+ <?php echo $_weeeSeparator; ?>
192
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
193
+ <?php $_weeeSeparator = ' + '; ?>
194
+ <?php endforeach; ?>
195
+ </small>)</span>
196
+ <?php endif; ?>
197
+ <span class="price-including-tax">
198
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax') ?></span>
199
+ <?php echo Mage::helper('core')->currency($_maximalPriceInclTax) ?>
200
+ </span>
201
+ <?php else: ?>
202
+ <?php echo Mage::helper('core')->currency($_maximalPriceTax) ?>
203
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
204
+ <span class="weee">(<small>
205
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
206
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
207
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
208
+ <?php else: ?>
209
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
210
+ <?php endif; ?>
211
+
212
+ <?php echo $_weeeSeparator; ?>
213
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
214
+ <?php $_weeeSeparator = ' + '; ?>
215
+ <?php endforeach; ?>
216
+ </small>)</span>
217
+ <?php endif; ?>
218
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
219
+ <?php echo Mage::helper('core')->currency($_maximalPriceInclTax) ?>
220
+ <?php endif; ?>
221
+ <?php endif; ?>
222
+ </p>
223
+ <?php else: ?>
224
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
225
+ <span class="price-excluding-tax">
226
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
227
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
228
+ </span>
229
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
230
+ <span class="weee">(<small>
231
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
232
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
233
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
234
+ <?php else: ?>
235
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
236
+ <?php endif; ?>
237
+
238
+ <?php echo $_weeeSeparator; ?>
239
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
240
+ <?php $_weeeSeparator = ' + '; ?>
241
+ <?php endforeach; ?>
242
+ </small>)</span>
243
+ <?php endif; ?>
244
+ <span class="price-including-tax">
245
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
246
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
247
+ </span>
248
+ <?php else: ?>
249
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
250
+ <?php if ($_weeeTaxAmount && $_product->getPriceType() == 1 && Mage::helper('weee')->typeOfDisplay($_product, array(2, 1, 4))): ?>
251
+ <span class="weee">(<small>
252
+ <?php $_weeeSeparator = ''; foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
253
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(2, 4))): ?>
254
+ <?php $amount = $_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(); ?>
255
+ <?php else: ?>
256
+ <?php $amount = $_weeeTaxAttribute->getAmount(); ?>
257
+ <?php endif; ?>
258
+
259
+ <?php echo $_weeeSeparator; ?>
260
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($amount, true, true); ?>
261
+ <?php $_weeeSeparator = ' + '; ?>
262
+ <?php endforeach; ?>
263
+ </small>)</span>
264
+ <?php endif; ?>
265
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 2) && $_weeeTaxAmount): ?>
266
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
267
+ <?php endif; ?>
268
+ <?php endif; ?>
269
+ <?php endif; ?>
270
+ <?php endif; ?>
271
+ </div>
app/design/frontend/default/estore/template/bundle/sales/order/creditmemo/items/renderer.phtml ADDED
@@ -0,0 +1,328 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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><div class="option-label"><?php echo $attributes['option_label'] ?></div></td>
49
+ <td>&nbsp;</td>
50
+ <td>&nbsp;</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"':'' ?> id="order-item-row-<?php echo $_item->getId() ?>">
60
+ <?php if (!$_item->getOrderItem()->getParentItem()): ?>
61
+ <td><h4 class="product-name"><?php echo $this->htmlEscape($_item->getName()) ?></h4>
62
+ </td>
63
+ <?php else: ?>
64
+ <td><div class="option-value"><?php echo $this->getValueHtml($_item) ?></div></td>
65
+ <?php endif; ?>
66
+ <td><?php echo $this->htmlEscape($_item->getSku()) ?></td>
67
+ <td class="a-right">
68
+ <?php if ($this->canShowPriceInfo($_item)): ?>
69
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
70
+ <span class="price-excl-tax">
71
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
72
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
73
+ <span class="cart-price">
74
+ <?php endif; ?>
75
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
76
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
77
+ </span>
78
+ <?php endif; ?>
79
+ <?php endif; ?>
80
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
81
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
82
+ <?php else: ?>
83
+ <span class="cart-price">
84
+ <?php endif; ?>
85
+
86
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
87
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()+$this->getItem()->getWeeeTaxAppliedAmount()+$this->getItem()->getWeeeTaxDisposition()); ?>
88
+ <?php else: ?>
89
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()) ?>
90
+ <?php endif; ?>
91
+
92
+ </span>
93
+
94
+
95
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
96
+
97
+ <span class="cart-tax-info" id="eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
98
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
99
+ <small>
100
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
101
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></span>
102
+ <?php endforeach; ?>
103
+ </small>
104
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
105
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
106
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></small></span>
107
+ <?php endforeach; ?>
108
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
109
+ <small>
110
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
111
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></span>
112
+ <?php endforeach; ?>
113
+ </small>
114
+ <?php endif; ?>
115
+ </span>
116
+
117
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
118
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
119
+ <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>
120
+ </span>
121
+ <?php endif; ?>
122
+ <?php endif; ?>
123
+ </span>
124
+ <br />
125
+ <?php endif; ?>
126
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceInclTax()): ?>
127
+ <span class="price-incl-tax">
128
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
129
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
130
+ <span class="cart-price">
131
+ <?php endif; ?>
132
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
133
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
134
+ </span>
135
+ <?php endif; ?>
136
+ <?php endif; ?>
137
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($this->getItem()); ?>
138
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
139
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
140
+ <?php else: ?>
141
+ <span class="cart-price">
142
+ <?php endif; ?>
143
+
144
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
145
+ <?php echo $this->getOrder()->formatPrice($_incl+$this->getItem()->getWeeeTaxAppliedAmount()); ?>
146
+ <?php else: ?>
147
+ <?php echo $this->getOrder()->formatPrice($_incl-$this->getItem()->getWeeeTaxDisposition()) ?>
148
+ <?php endif; ?>
149
+
150
+ </span>
151
+
152
+
153
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
154
+
155
+ <span class="cart-tax-info" id="unit-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
156
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
157
+ <small>
158
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
159
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></span>
160
+ <?php endforeach; ?>
161
+ </small>
162
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
163
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
164
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></small></span>
165
+ <?php endforeach; ?>
166
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
167
+ <small>
168
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
169
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></span>
170
+ <?php endforeach; ?>
171
+ </small>
172
+ <?php endif; ?>
173
+ </span>
174
+
175
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
176
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
177
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total Incl. Tax'); ?>:<br /> <?php echo $this->getOrder()->formatPrice($_incl+$this->getItem()->getWeeeTaxAppliedAmount()); ?></span>
178
+ </span>
179
+ <?php endif; ?>
180
+ <?php endif; ?>
181
+ </span>
182
+ <?php endif; ?>
183
+ <?php else: ?>
184
+ &nbsp;
185
+ <?php endif; ?>
186
+ </td>
187
+ <td class="a-center">
188
+ <?php if ($this->canShowPriceInfo($_item)): ?>
189
+ <?php echo $_item->getQty()*1 ?>
190
+ <?php else: ?>
191
+ &nbsp;
192
+ <?php endif; ?>
193
+ </td>
194
+ <td class="a-right">
195
+ <?php if ($this->canShowPriceInfo($_item)): ?>
196
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
197
+ <span class="price-excl-tax">
198
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
199
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
200
+ <span class="cart-price">
201
+ <?php endif; ?>
202
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
203
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
204
+ </span>
205
+ <?php endif; ?>
206
+ <?php endif; ?>
207
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
208
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
209
+ <?php else: ?>
210
+ <span class="cart-price">
211
+ <?php endif; ?>
212
+
213
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
214
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()+$this->getItem()->getWeeeTaxAppliedRowAmount()+$this->getItem()->getWeeeTaxRowDisposition()); ?>
215
+ <?php else: ?>
216
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()) ?>
217
+ <?php endif; ?>
218
+
219
+ </span>
220
+
221
+
222
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
223
+
224
+ <span class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
225
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
226
+ <small>
227
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
228
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></span>
229
+ <?php endforeach; ?>
230
+ </small>
231
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
232
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
233
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></small></span>
234
+ <?php endforeach; ?>
235
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
236
+ <small>
237
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
238
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></span>
239
+ <?php endforeach; ?>
240
+ </small>
241
+ <?php endif; ?>
242
+ </span>
243
+
244
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
245
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
246
+ <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>
247
+ </span>
248
+ <?php endif; ?>
249
+ <?php endif; ?>
250
+ </span>
251
+ <br />
252
+ <?php endif; ?>
253
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceInclTax()): ?>
254
+ <span class="price-incl-tax">
255
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
256
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
257
+ <span class="cart-price">
258
+ <?php endif; ?>
259
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
260
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
261
+ </span>
262
+ <?php endif; ?>
263
+ <?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
264
+ <?php endif; ?>
265
+ </span>
266
+ <?php else: ?>
267
+ &nbsp;
268
+ <?php endif; ?>
269
+ <?php else: ?>
270
+ &nbsp;
271
+ <?php endif; ?>
272
+ </td>
273
+ <td class="a-right">
274
+ <?php if ($this->canShowPriceInfo($_item)): ?>
275
+ <?php echo $this->getOrder()->formatPrice(-$_item->getDiscountAmount()) ?>
276
+ <?php else: ?>
277
+ &nbsp;
278
+ <?php endif; ?>
279
+ </td>
280
+ <td class="last a-right">
281
+ <?php if ($this->canShowPriceInfo($_item)): ?>
282
+ <?php echo $this->getOrder()->formatPrice($_item->getRowTotal()-$_item->getDiscountAmount()+$_item->getTaxAmount()+$_item->getWeeeTaxAppliedRowAmount()) ?>
283
+ <?php else: ?>
284
+ &nbsp;
285
+ <?php endif; ?>
286
+ </td>
287
+ </tr>
288
+ <?php endforeach; ?>
289
+
290
+ <?php if ($_showlastRow): ?>
291
+ <tr class="border">
292
+ <td>
293
+ <?php if($_options = $this->getItemOptions()): ?>
294
+ <dl class="item-options">
295
+ <?php foreach ($_options as $_option) : ?>
296
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
297
+ <?php if (!$this->getPrintStatus()): ?>
298
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
299
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
300
+ <?php echo $_formatedOptionValue['value'] ?>
301
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
302
+ <div class="truncated_full_value">
303
+ <dl class="item-options">
304
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
305
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
306
+ </dl>
307
+ </div>
308
+ <?php endif; ?>
309
+ </dd>
310
+ <?php else: ?>
311
+ <dd><?php echo $this->htmlEscape( (isset($_option['print_value']) ? $_option['print_value'] : $_option['value']) ) ?></dd>
312
+ <?php endif; ?>
313
+ <?php endforeach; ?>
314
+ </dl>
315
+ <?php endif; ?>
316
+ <?php echo $this->htmlEscape($_item->getDescription()) ?>
317
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
318
+ <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>
319
+ <?php endif; ?>
320
+ </td>
321
+ <td>&nbsp;</td>
322
+ <td>&nbsp;</td>
323
+ <td>&nbsp;</td>
324
+ <td>&nbsp;</td>
325
+ <td>&nbsp;</td>
326
+ <td>&nbsp;</td>
327
+ </tr>
328
+ <?php endif; ?>
app/design/frontend/default/estore/template/bundle/sales/order/invoice/items/renderer.phtml ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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><div class="option-label"><?php echo $attributes['option_label'] ?></div></td>
49
+ <td>&nbsp;</td>
50
+ <td>&nbsp;</td>
51
+ <td>&nbsp;</td>
52
+ <td>&nbsp;</td>
53
+ </tr>
54
+ <?php $_prevOptionId = $attributes['option_id'] ?>
55
+ <?php endif; ?>
56
+ <?php endif; ?>
57
+ <tr<?php echo (++$_index==$_count && !$_showlastRow)?' class="border"':'' ?> id="order-item-row-<?php echo $_item->getId() ?>">
58
+ <?php if (!$_item->getOrderItem()->getParentItem()): ?>
59
+ <td><h4 class="product-name"><?php echo $this->htmlEscape($_item->getName()) ?></h4></td>
60
+ <?php else: ?>
61
+ <td><div class="option-value"><?php echo $this->getValueHtml($_item) ?></div></td>
62
+ <?php endif; ?>
63
+ <td><?php echo $this->htmlEscape($_item->getSku()) ?></td>
64
+ <td class="a-right">
65
+ <?php if ($this->canShowPriceInfo($_item)): ?>
66
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
67
+ <span class="price-excl-tax">
68
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
69
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
70
+ <span class="cart-price">
71
+ <?php endif; ?>
72
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
73
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
74
+ </span>
75
+ <?php endif; ?>
76
+ <?php endif; ?>
77
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
78
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
79
+ <?php else: ?>
80
+ <span class="cart-price">
81
+ <?php endif; ?>
82
+
83
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
84
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()+$this->getItem()->getWeeeTaxAppliedAmount()+$this->getItem()->getWeeeTaxDisposition()); ?>
85
+ <?php else: ?>
86
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()) ?>
87
+ <?php endif; ?>
88
+
89
+ </span>
90
+
91
+
92
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
93
+
94
+ <span class="cart-tax-info" id="eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
95
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
96
+ <small>
97
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
98
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></span>
99
+ <?php endforeach; ?>
100
+ </small>
101
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
102
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
103
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></small></span>
104
+ <?php endforeach; ?>
105
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, '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']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></span>
109
+ <?php endforeach; ?>
110
+ </small>
111
+ <?php endif; ?>
112
+ </span>
113
+
114
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
115
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
116
+ <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>
117
+ </span>
118
+ <?php endif; ?>
119
+ <?php endif; ?>
120
+ </span>
121
+ <br />
122
+ <?php endif; ?>
123
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceInclTax()): ?>
124
+ <span class="price-incl-tax">
125
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
126
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
127
+ <span class="cart-price">
128
+ <?php endif; ?>
129
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
130
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
131
+ </span>
132
+ <?php endif; ?>
133
+ <?php endif; ?>
134
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($this->getItem()); ?>
135
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
136
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
137
+ <?php else: ?>
138
+ <span class="cart-price">
139
+ <?php endif; ?>
140
+
141
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
142
+ <?php echo $this->getOrder()->formatPrice($_incl+$this->getItem()->getWeeeTaxAppliedAmount()); ?>
143
+ <?php else: ?>
144
+ <?php echo $this->getOrder()->formatPrice($_incl-$this->getItem()->getWeeeTaxDisposition()) ?>
145
+ <?php endif; ?>
146
+
147
+ </span>
148
+
149
+
150
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
151
+
152
+ <span class="cart-tax-info" id="unit-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
153
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
154
+ <small>
155
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
156
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount']); ?></span>
157
+ <?php endforeach; ?>
158
+ </small>
159
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
160
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
161
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></small></span>
162
+ <?php endforeach; ?>
163
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
164
+ <small>
165
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
166
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['amount_incl_tax']); ?></span>
167
+ <?php endforeach; ?>
168
+ </small>
169
+ <?php endif; ?>
170
+ </span>
171
+
172
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
173
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
174
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->getOrder()->formatPrice($_incl+$this->getItem()->getWeeeTaxAppliedAmount()); ?></span>
175
+ </span>
176
+ <?php endif; ?>
177
+ <?php endif; ?>
178
+ </span>
179
+ <?php endif; ?>
180
+ <?php else: ?>
181
+ &nbsp;
182
+ <?php endif; ?>
183
+ </td>
184
+ <td class="a-center">
185
+ <?php if ($this->canShowPriceInfo($_item)): ?>
186
+ <?php echo $_item->getQty()*1 ?>
187
+ <?php else: ?>
188
+ &nbsp;
189
+ <?php endif; ?>
190
+ </td>
191
+ <td class="a-right">
192
+ <?php if ($this->canShowPriceInfo($_item)): ?>
193
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceExclTax()): ?>
194
+ <span class="price-excl-tax">
195
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
196
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
197
+ <span class="cart-price">
198
+ <?php endif; ?>
199
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
200
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
201
+ </span>
202
+ <?php endif; ?>
203
+ <?php endif; ?>
204
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
205
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
206
+ <?php else: ?>
207
+ <span class="cart-price">
208
+ <?php endif; ?>
209
+
210
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
211
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()+$this->getItem()->getWeeeTaxAppliedRowAmount()+$this->getItem()->getWeeeTaxRowDisposition()); ?>
212
+ <?php else: ?>
213
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()) ?>
214
+ <?php endif; ?>
215
+
216
+ </span>
217
+
218
+
219
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
220
+
221
+ <span class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
222
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
223
+ <small>
224
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
225
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></span>
226
+ <?php endforeach; ?>
227
+ </small>
228
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
229
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
230
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></small></span>
231
+ <?php endforeach; ?>
232
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
233
+ <small>
234
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
235
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></span>
236
+ <?php endforeach; ?>
237
+ </small>
238
+ <?php endif; ?>
239
+ </span>
240
+
241
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
242
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
243
+ <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>
244
+ </span>
245
+ <?php endif; ?>
246
+ <?php endif; ?>
247
+ </span>
248
+ <br />
249
+ <?php endif; ?>
250
+ <?php if ($this->helper('tax')->displaySalesBothPrices() || $this->helper('tax')->displaySalesPriceInclTax()): ?>
251
+ <span class="price-incl-tax">
252
+ <?php if ($this->helper('tax')->displaySalesBothPrices()): ?>
253
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
254
+ <span class="cart-price">
255
+ <?php endif; ?>
256
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
257
+ <?php if (!Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
258
+ </span>
259
+ <?php endif; ?>
260
+ <?php endif; ?>
261
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($this->getItem()); ?>
262
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
263
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
264
+ <?php else: ?>
265
+ <span class="cart-price">
266
+ <?php endif; ?>
267
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), array(0, 1, 4), 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
268
+ <?php echo $this->getOrder()->formatPrice($_incl+$this->getItem()->getWeeeTaxAppliedRowAmount()); ?>
269
+ <?php else: ?>
270
+ <?php echo $this->getOrder()->formatPrice($_incl-$this->getItem()->getWeeeTaxRowDisposition()) ?>
271
+ <?php endif; ?>
272
+
273
+ </span>
274
+
275
+
276
+ <?php if (Mage::helper('weee')->getApplied($this->getItem())): ?>
277
+
278
+ <span class="cart-tax-info" id="subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>" style="display:none;">
279
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 1, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
280
+ <small>
281
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
282
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount']); ?></span>
283
+ <?php endforeach; ?>
284
+ </small>
285
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
286
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
287
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></small></span>
288
+ <?php endforeach; ?>
289
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($this->getItem(), 4, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
290
+ <small>
291
+ <?php foreach (Mage::helper('weee')->getApplied($this->getItem()) as $tax): ?>
292
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo $this->getOrder()->formatPrice($tax['row_amount_incl_tax']); ?></span>
293
+ <?php endforeach; ?>
294
+ </small>
295
+ <?php endif; ?>
296
+ </span>
297
+
298
+ <?php if (Mage::helper('weee')->typeOfDisplay($this->getItem(), 2, 'sales') && (float)$this->getItem()->getWeeeTaxAppliedAmount()): ?>
299
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $this->getItem()->getId(); ?>', this, 'cart-tax-total-expanded');">
300
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->getOrder()->formatPrice($_incl+$this->getItem()->getWeeeTaxAppliedRowAmount()); ?></span>
301
+ </span>
302
+ <?php endif; ?>
303
+ <?php endif; ?>
304
+
305
+
306
+
307
+ </span>
308
+ <?php endif; ?>
309
+ <?php else: ?>
310
+ &nbsp;
311
+ <?php endif; ?>
312
+ </td>
313
+ </tr>
314
+ <?php endforeach; ?>
315
+
316
+ <?php if ($_showlastRow): ?>
317
+ <tr class="border">
318
+ <td>
319
+ <?php if($_options = $this->getItemOptions()): ?>
320
+ <dl class="item-options">
321
+ <?php foreach ($_options as $_option) : ?>
322
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
323
+ <?php if (!$this->getPrintStatus()): ?>
324
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
325
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
326
+ <?php echo $_formatedOptionValue['value'] ?>
327
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
328
+ <div class="truncated_full_value">
329
+ <dl class="item-options">
330
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
331
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
332
+ </dl>
333
+ </div>
334
+ <?php endif; ?>
335
+ </dd>
336
+ <?php else: ?>
337
+ <dd><?php echo $this->htmlEscape( (isset($_option['print_value']) ? $_option['print_value'] : $_option['value']) ) ?></dd>
338
+ <?php endif; ?>
339
+ <?php endforeach; ?>
340
+ </dl>
341
+ <?php endif; ?>
342
+ <?php echo $this->htmlEscape($_item->getDescription()) ?>
343
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
344
+ <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>
345
+ <?php endif; ?>
346
+ </td>
347
+ <td>&nbsp;</td>
348
+ <td>&nbsp;</td>
349
+ <td>&nbsp;</td>
350
+ <td>&nbsp;</td>
351
+ </tr>
352
+ <?php endif; ?>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($_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->htmlEscape(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_incl_tax']); ?></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_incl_tax']); ?></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+$this->getItem()->getWeeeTaxAppliedAmount()); ?>
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']); ?></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+$this->getItem()->getWeeeTaxAppliedAmount()); ?></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_incl_tax']); ?></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_incl_tax']); ?></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+$this->getItem()->getWeeeTaxAppliedRowAmount()); ?>
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']); ?></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+$this->getItem()->getWeeeTaxAppliedRowAmount()); ?></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->htmlEscape($_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->htmlEscape($_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->htmlEscape( (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->htmlEscape($_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/default/estore/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) 2010 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->htmlEscape($_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->htmlEscape($_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->htmlEscape($_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->htmlEscape($_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->htmlEscape( (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->htmlEscape($_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/default/estore/template/callouts/left_col.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) 2010 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
+ <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('ads')->toHtml() ?>
29
+ <div class="block-content">
30
+ <?php if(strtolower(substr($this->getLinkUrl(),0,4))==='http'): ?>
31
+ <a href="<?php echo $this->getLinkUrl() ?>" title="<?php echo $this->__($this->getImgAlt()) ?>">
32
+ <?php elseif($this->getLinkUrl()): ?>
33
+ <a href="<?php echo $this->getUrl($this->getLinkUrl()) ?>" title="<?php echo $this->__($this->getImgAlt()) ?>">
34
+ <?php endif; ?>
35
+ <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()) ?>" />
36
+ <?php if($this->getLinkUrl()): ?>
37
+ </a>
38
+ <?php endif ?>
39
+ </div>
40
+ </div>
app/design/frontend/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/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) 2010 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 = '<div class="small_banner"><img src="'.$_imgUrl.'" alt="'.$this->htmlEscape($_category->getName()).'" title="'.$this->htmlEscape($_category->getName()).'" /></div>';
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/default/estore/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) 2010 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->htmlEscape($this->getAnchorText()) ?></span></a></span>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($this->getAnchorText()) ?></span></a></span>
app/design/frontend/default/estore/template/catalog/layer/filter.phtml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 echo $_item->getCount() ?>)
43
+ </li>
44
+ <?php endforeach ?>
45
+ </ol>
app/design/frontend/default/estore/template/catalog/layer/state.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) 2010 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
+
35
+
36
+ <?php $_filters = $this->getActiveFilters() ?>
37
+ <?php if(!empty($_filters)): ?>
38
+ <div class="byprice">
39
+ <h5 class="white upper">Shop by Price</h5>
40
+ <ul>
41
+ <?php foreach ($_filters as $_filter): ?>
42
+ <li>
43
+ <a href="<?php echo $_filter->getRemoveUrl() ?>" title="<?php echo $this->__('Remove This Item') ?>" class=""><?php echo $this->__('Remove This Item') ?>
44
+ <?php echo $this->__($_filter->getName()) ?>: <?php echo $this->stripTags($_filter->getLabel()) ?></a>
45
+ </li>
46
+ <?php endforeach; ?>
47
+ </ul>
48
+ <div class="actions"><a href="<?php echo $this->getClearUrl() ?>"><?php echo $this->__('Clear All') ?></a></div>
49
+ </div>
50
+ <div class="clear"></div>
51
+
52
+ <?php endif; ?>
app/design/frontend/default/estore/template/catalog/layer/view.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) 2010 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
+
36
+ <div class="byprice">
37
+ <h5 class="white upper">Shop by Price</h5>
38
+ <ul>
39
+ <?php $_filters = $this->getFilters() ?>
40
+ <?php foreach ($_filters as $_filter): ?>
41
+ <?php if($_filter->getItemsCount()): ?>
42
+ <li><a href="#"><?php echo $this->__($_filter->getName()) ?></a></li>
43
+ <?php endif; ?>
44
+ <?php endforeach; ?>
45
+ </ul>
46
+ </div>
47
+ <div class="clear"></div>
48
+ <script type="text/javascript">decorateDataList('narrow-by-list')</script>
49
+ <?php endif; ?>
50
+
app/design/frontend/default/estore/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) 2010 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->htmlEscape($_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/default/estore/template/catalog/navigation/left_menu1.phtml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $pageURL = 'http';
3
+ if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
4
+ $pageURL .= "://";
5
+ if ($_SERVER["SERVER_PORT"] != "80") {
6
+ $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
7
+ } else {
8
+ $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
9
+ }
10
+ ?>
11
+
12
+
13
+ <div class="categories">
14
+
15
+
16
+
17
+ <h5 class="white upper">Category</h5>
18
+ <div class="arrowlistmenu">
19
+ <?php foreach ($this->getStoreCategories() as $_category): ?>
20
+
21
+ <a href="<?php echo $this->getCategoryUrl($_category)?> "class="menuheader expandable" >
22
+ <?php echo $this->htmlEscape($_category->getName()) ?></a>
23
+ <?php $_children = $_category->getChildren(); ?>
24
+ <ul class="categoryitems">
25
+ <?php foreach($_children as $_child) : ?>
26
+ <li><a href="<?php echo $this->getCategoryUrl($_child) ?>"><?php echo $_child->getName(); ?></a>
27
+ <?php $_subchildren = $_child->getsubChildren(); ?>
28
+ <?php
29
+ if($_subchildren !=0);
30
+ ?>
31
+ <ul style="margin-left: 15px">
32
+ <?php foreach($_subchildren as $_subchild) : ?>
33
+ <li><a class="subexpandable" href="<?php echo $this->getCategoryUrl($_subchildren) ?>"><?php echo $_subchild->getName(); ?></a></li>
34
+ <?php endforeach ?>
35
+ </ul>
36
+ </li>
37
+
38
+ <?php endforeach ?>
39
+ </ul>
40
+ <?php endforeach ?>
41
+ </div>
42
+
43
+ <div class="clear"></div>
44
+ </div>
45
+
app/design/frontend/default/estore/template/catalog/navigation/top.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) 2010 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
43
+ $pageURL = 'http';
44
+ if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
45
+ $pageURL .= "://";
46
+ if ($_SERVER["SERVER_PORT"] != "80") {
47
+ $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
48
+ } else {
49
+ $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
50
+ }
51
+ $_menu = $this->renderCategoriesMenuHtml(0,'level-top') ?>
52
+ <?php if($_menu): ?>
53
+ <div class="navigation">
54
+ <div id="smoothmenu1" class="ddsmoothmenu">
55
+ <ul>
56
+ <li><a href="<?php echo $this->getUrl('') ?>">Home</a></li>
57
+ <?php echo $_menu ?>
58
+
59
+ <li class="downlevel1"><a href="#">Pages</a>
60
+ <ul>
61
+ <li><a href="<?php echo $this->getUrl() ?>">Home</a></li>
62
+ <li><a href="listing.html" class="greylink">Listing</a></li>
63
+ <li><a href="detail.html">Product Detail</a></li>
64
+ <li><a href="<?php echo $this->getUrl('checkout/cart') ?>" class="greylink">Shopping Cart</a></li>
65
+ <li><a href="<?php echo $this->getUrl('customer/account/login') ?>">Login</a></li>
66
+ <li><a href="<?php echo $this->getUrl('customer/account') ?>" class="greylink">My Account</a></li>
67
+ <li><a href="<?php echo $this->getUrl('checkout/cart') ?>">Checkout</a></li>
68
+ </ul>
69
+ </li>
70
+ <li class="downlevel1"><a href="#">Themes</a>
71
+ <ul>
72
+ <li><a href="../yellow/index.html">Yellow</a></li>
73
+ <li><a href="../beige/index.html" class="greylink">Beige</a></li>
74
+ <li><a href="../red/index.html">Red</a></li>
75
+ <li><a href="../cyan/index.html" class="greylink">Cyan</a></li>
76
+ </ul>
77
+ </li>
78
+ </ul>
79
+ <div class="clear"></div>
80
+ </div>
81
+ </div>
82
+
83
+ <?php /*?><div class="nav-container">
84
+ <ul id="nav">
85
+
86
+
87
+
88
+
89
+
90
+ </ul>
91
+ </div><?php */?>
92
+ <?php endif ?>
app/design/frontend/default/estore/template/catalog/product/bestsellers.phtml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_productCollection=$this->getLoadedProductCollection() ?>
2
+ <?php if(!$_productCollection->count()): ?>
3
+ <div class="note-msg">
4
+ <?php echo $this->__('There are no products matching the selection.') ?>
5
+ </div>
6
+ <?php else: ?>
7
+ <div class="box best-selling">
8
+ <?php $_collectionSize = $_productCollection->count() ?>
9
+ <table border="0" cellspacing="0">
10
+ <tbody>
11
+ <?php $i=0; foreach ($_productCollection as $_product): ?>
12
+ <?php if($i++%2==0): ?>
13
+ <tr>
14
+ <?php endif; ?>
15
+ <td>
16
+ <a href="<?php echo $_product->getProductUrl() ?>" >
17
+ <img class="product-img" src="<?php echo $this->helper('catalog/image')->init($_product,'small_image')->resize(163, 186); ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" />
18
+ </a>
19
+ <div class="product-description">
20
+ <p><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
21
+ <?php echo $this->getPriceHtml($_product, true) ?>
22
+ <?php if($_product->getRatingSummary()): ?>
23
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
24
+ <?php endif; ?>
25
+ <?php echo nl2br($_product->getShortDescription()) ?>
26
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><small><?php echo $this->__('Learn More') ?></small></a>
27
+ </td>
28
+ <?php if($i%2==0 || $i==$_collectionSize): ?>
29
+ </tr>
30
+ <?php endif; ?>
31
+ <?php endforeach ?>
32
+ <script type="text/javascript">decorateGeneric($$('tr'), ['last', 'odd', 'even']);</script>
33
+ </tbody>
34
+ </table>
35
+ </div>
36
+ <?php endif; //$_productCollection->count() ?>
app/design/frontend/default/estore/template/catalog/product/compare/list.phtml ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="#" class="link-wishlist" onclick="setPLocation('<?php echo $this->getAddToWishlistUrl($_item) ?>', true)"><?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->htmlEscape($_item->getName()) ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>" />
96
+ <?php break;
97
+ case "date":
98
+ echo substr($this->getProductAttributeValue($_item, $_attribute),0,10);
99
+ break;
100
+ default: ?>
101
+ <?php echo $this->helper('catalog/output')->productAttribute($_item, $this->getProductAttributeValue($_item, $_attribute), $_attribute->getCode()) ?>
102
+ <?php break;
103
+ } ?>
104
+ </td>
105
+ <?php endforeach; ?>
106
+ </tr>
107
+ <?php endforeach; ?>
108
+ </tbody>
109
+ <tbody>
110
+ <tr class="add-to-row">
111
+ <?php $_i=0 ?>
112
+ <?php foreach($this->getItems() as $_item): ?>
113
+ <?php if($_i++%10==0): ?>
114
+ <th>&nbsp;</th>
115
+ <?php endif; ?>
116
+ <td>
117
+ <?php echo $this->getPriceHtml($_item, true, '-compare-list-bottom') ?>
118
+ <?php if($_item->isSaleable()): ?>
119
+ <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>
120
+ <?php else: ?>
121
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
122
+ <?php endif; ?>
123
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
124
+ <ul class="add-to-links">
125
+ <li><a href="#" class="link-wishlist" onclick="setPLocation('<?php echo $this->getAddToWishlistUrl($_item) ?>', true)"><?php echo $this->__('Add to Wishlist') ?></a></li>
126
+ </ul>
127
+ <?php endif; ?>
128
+ </td>
129
+ <?php endforeach; ?>
130
+ </tr>
131
+ </tbody>
132
+ </table>
133
+ <div class="buttons-set">
134
+ <button type="button" title="<?php echo $this->__('Close Window') ?>" class="button" onclick="window.close();"><span><span><?php echo $this->__('Close Window') ?></span></span></button>
135
+ <span class="please-wait" id="compare-list-please-wait" style="display:none;">
136
+ <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...') ?>
137
+ </span>
138
+ </div>
139
+ <script type="text/javascript">
140
+ decorateTable('product_comparison');
141
+
142
+ /**
143
+ * Send remove item request, after that reload windows
144
+ */
145
+ function removeItem(url)
146
+ {
147
+ new Ajax.Request(url, {
148
+ parameters: {isAjax: 1, method: 'POST'},
149
+ onLoading: function(){$('compare-list-please-wait').show();},
150
+ onSuccess: function(transport) {
151
+ $('compare-list-please-wait').hide();
152
+ window.location.reload();
153
+ window.opener.location.reload();
154
+ }
155
+ });
156
+ }
157
+ </script>
158
+ <?php else: ?>
159
+ <script type="text/javascript">window.close();</script>
160
+ <?php endif; ?>
app/design/frontend/default/estore/template/catalog/product/compare/sidebar.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) 2010 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="compare">
33
+ <h5 class="white upper"><?php echo $this->__('Compare Products') ?>
34
+ <?php if($_helper->getItemCount() > 0): ?>
35
+ <small><?php echo $this->__('(%d)', $_helper->getItemCount()) ?></small>
36
+ <?php endif; ?></h5>
37
+ <?php if($_helper->getItemCount() > 0): ?>
38
+
39
+ <ul id="compare-items">
40
+ <?php foreach($_items as $_index => $_item): ?>
41
+ <li> <input type="hidden" class="compare-item-id" value="<?php echo $_item->getId() ?>" />
42
+ <a href="<?php echo $_helper->getRemoveUrl($_item) ?>" title="<?php echo $this->__('Remove This Item') ?>" class="cross" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the compare products?') ?>');">&nbsp;</a><a href="<?php echo $this->getProductUrl($_item) ?>" class="link"><?php echo $this->helper('catalog/output')->productAttribute($_item, $_item->getName(), 'name') ?></a></li> <?php endforeach; ?>
43
+ </ul>
44
+
45
+ <?php else: ?>
46
+ <p class="no_items_select"><?php echo $this->__('You have no items to compare.') ?></p>
47
+ <?php endif; ?>
48
+ </div>
49
+ <div class="clear"></div>
50
+
51
+
52
+
53
+
54
+
app/design/frontend/default/estore/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) 2010 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->htmlEscape($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->htmlEscape($this->getCurrentImage()->getLabel()) ?>" title="<?php echo $this->htmlEscape($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/default/estore/template/catalog/product/list.phtml ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+
35
+
36
+ <?php
37
+ $_coreHelper = $this->helper('core');
38
+
39
+ $_productCollection=$this->getLoadedProductCollection();
40
+ $_helper = $this->helper('catalog/output');
41
+ ?>
42
+ <?php if(!$_productCollection->count()): ?>
43
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
44
+ <?php else: ?>
45
+ <div class="category-products">
46
+ <?php echo $this->getToolbarHtml() ?>
47
+ <div class="prods">
48
+
49
+ <?php // List mode ?>
50
+ <?php if($this->getMode()!='grid'): ?>
51
+ <?php $_iterator = 0; ?>
52
+ <ul class="listingprods">
53
+ <?php $_columnCount = $this->getColumnCount(); ?>
54
+
55
+ <?php foreach ($_productCollection as $_product): ?>
56
+
57
+ <li>
58
+ <?php $this->setProduct(Mage::getModel('catalog/product')->setStoreId(Mage::app()->getStore()->getId())->load($_product->getId()))?>
59
+
60
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="thumb">
61
+
62
+ <?php
63
+
64
+ $tier=$this->getTierPriceHtml();
65
+ if(!$tier)
66
+ {
67
+ ?>
68
+ <span class=" bold cufontxt upper"><?php echo $tier ?></span>
69
+
70
+ <?php }
71
+ else
72
+ {
73
+ ?>
74
+ <span class="save bold cufontxt upper"><?php echo $tier ?></span>
75
+
76
+ <?php
77
+ }
78
+ ?>
79
+ <?php echo $this->htmlEscape($_product->getName()) ?>
80
+ <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(163,186) ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" /></a>
81
+
82
+ <a href="<?php echo $_product->getProductUrl() ?>" class="title" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?>
83
+ <?php echo substr(($_product->getShortDescription()),0,20); ?></a>
84
+ <div class="clear"></div>
85
+
86
+ <?php //echo $this->getReviewsSummaryHtml($_product, 'short') ?>
87
+ <p class="newprice colr"> <?php echo $this->getPriceHtml($_product, true, '-new') ?></p>
88
+ <!--<p class="oldprice">$422.40</p>-->
89
+ <?php if($_product->isSaleable()): ?>
90
+ <div class="btns">
91
+ <a href="<?php echo $this->getAddToCartUrl($_product) ?>" class="buynow cufontxt upper colr">BUY Now</a>
92
+ <?php endif; ?>
93
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
94
+ <a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="wish">Add to Wishlist</a>
95
+ <?php endif; ?>
96
+ </div>
97
+
98
+
99
+
100
+ </li>
101
+ <?php endforeach; ?>
102
+ </ul>
103
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
104
+
105
+ <?php else: ?>
106
+
107
+ <?php // Grid Mode ?>
108
+
109
+ <?php $_collectionSize = $_productCollection->count() ?>
110
+ <?php $_columnCount = $this->getColumnCount(); ?>
111
+ <?php if ($i++%$_columnCount==0): ?>
112
+ <ul class="listinglist">
113
+ <?php endif ?>
114
+ <?php $i=0; foreach ($_productCollection as $_product): ?>
115
+ <li>
116
+ <?php $this->setProduct(Mage::getModel('catalog/product')->setStoreId(Mage::app()->getStore()->getId())->load($_product->getId()))?>
117
+ <?php $prices=$this->getTierPriceHtml(); ?>
118
+
119
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="thumb">
120
+
121
+ <span class="save bold cufontxt upper"><?php echo $prices ?></span>
122
+
123
+ <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(165,167); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
124
+ <div class="desc">
125
+ <h6><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"> <?php echo substr(($_product->getShortDescription()),0,20); ?></a></h6>
126
+
127
+ <p class="txt">
128
+ <?php echo substr(($_product->getShortDescription()),0,200); ?>
129
+ </p>
130
+ <div class="prices">
131
+ <?php echo $this->getPriceHtml($_product, true) ?>
132
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="buttonone" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
133
+
134
+ </div>
135
+ </div>
136
+ </li>
137
+ <?php endforeach ?>
138
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
139
+ </ul>
140
+ <?php endif ?>
141
+ <script type="text/javascript">decorateGeneric($$('ul.listinglist'), ['odd','even','first','last'])</script>
142
+ <?php endif; ?>
143
+
144
+ <div class="toolbar-bottom">
145
+ <?php //echo $this->getToolbarHtml() ?>
146
+ </div>
147
+ </div>
148
+ <div class="clr"></div>
149
+ <?php endif; ?>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($_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->htmlEscape($_item->getName()) ?>" /></a>
44
+ <div class="product-details">
45
+ <p class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_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/default/estore/template/catalog/product/list/toolbar.phtml ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+
35
+ <?php if($this->getCollection()->getSize()): ?>
36
+
37
+ <div class="sorting">
38
+ <div class="leftsort">
39
+ <h2 class="colr upper bold">Products</h2>
40
+ <?php if($this->getLastPageNum()>1): ?>
41
+ <p> <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
42
+ <?php else: ?>
43
+ <p><?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?></p>
44
+ <?php endif; ?></p>
45
+ </div>
46
+ <div class="sortby">
47
+ <p><?php echo $this->__('Sort By') ?></p>
48
+ <div class="selectmenu">
49
+ <select onchange="setLocation(this.value)">
50
+ <?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
51
+ <option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>
52
+ <?php echo $this->__($_order) ?>
53
+ </option>
54
+ <?php endforeach; ?>
55
+ </select>
56
+ </div>
57
+ </div>
58
+ <div class="showperpage">
59
+ <p><?php echo $this->__('Show') ?></p>
60
+ <div class="selectmenu">
61
+ <select onchange="setLocation(this.value)">
62
+ <?php foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
63
+ <option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
64
+ <?php echo $_limit ?>
65
+ </option>
66
+ <?php endforeach; ?>
67
+ </select>
68
+ </div>
69
+ <p><?php echo $this->__('per page') ?></p>
70
+ </div>
71
+ <?php if( $this->isEnabledViewSwitcher() ): ?>
72
+
73
+ <div class="gridlist">
74
+ <?php $_modes = $this->getModes(); ?>
75
+ <?php if($_modes && count($_modes)>1): ?>
76
+
77
+ <?php foreach ($this->getModes() as $_code=>$_label): ?>
78
+ <?php if($this->isModeActive($_code)): ?>
79
+
80
+ <a href="<?php echo $this->getModeUrl($_code) ?>" title="<?php echo $_label ?>" class="grid selected">&nbsp;</a>
81
+ <?php else: ?>
82
+
83
+ <a href="<?php echo $this->getModeUrl($_code) ?>" title="<?php echo $_label ?>" class="list">&nbsp;</a>
84
+ <?php endif; ?>
85
+ <?php endforeach; ?>
86
+ <?php endif; ?>
87
+
88
+ <?php /*?> <?php else: ?>
89
+ <a href="<?php echo $this->getOrderUrl(null, 'desc') ?>" title="<?php echo $this->__('Set Descending Direction') ?>" class="grid selected">&nbsp;</a><?php */?>
90
+
91
+ </div><?php endif ?>
92
+ </div>
93
+ <div class="clear"></div>
94
+ <?php endif ?><?php /*?>
95
+
96
+
97
+
98
+
99
+
100
+
101
+ <div class="toolbar">
102
+ <div class="pager">
103
+ <p class="amount">
104
+ <?php if($this->getLastPageNum()>1): ?>
105
+ <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
106
+ <?php else: ?>
107
+ <strong><?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?></strong>
108
+ <?php endif; ?>
109
+ </p>
110
+
111
+ <div class="limiter">
112
+ <label><?php echo $this->__('Show') ?></label>
113
+ <select onchange="setLocation(this.value)">
114
+ <?php foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
115
+ <option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
116
+ <?php echo $_limit ?>
117
+ </option>
118
+ <?php endforeach; ?>
119
+ </select> <?php echo $this->__('per page') ?>
120
+ </div>
121
+ <?php echo $this->getPagerHtml() ?>
122
+ </div>
123
+
124
+ <?php if( $this->isExpanded() ): ?>
125
+ <div class="sorter">
126
+ <?php if( $this->isEnabledViewSwitcher() ): ?>
127
+ <p class="view-mode">
128
+ <?php $_modes = $this->getModes(); ?>
129
+ <?php if($_modes && count($_modes)>1): ?>
130
+ <label><?php echo $this->__('View as') ?>:</label>
131
+ <?php foreach ($this->getModes() as $_code=>$_label): ?>
132
+ <?php if($this->isModeActive($_code)): ?>
133
+ <strong title="<?php echo $_label ?>" class="<?php echo strtolower($_code); ?>"><?php echo $_label ?></strong>&nbsp;
134
+ <?php else: ?>
135
+ <a href="<?php echo $this->getModeUrl($_code) ?>" title="<?php echo $_label ?>" class="<?php echo strtolower($_code); ?>"><?php echo $_label ?></a>&nbsp;
136
+ <?php endif; ?>
137
+ <?php endforeach; ?>
138
+ <?php endif; ?>
139
+ </p>
140
+ <?php endif; ?>
141
+
142
+ <div class="sort-by">
143
+ <label><?php echo $this->__('Sort By') ?></label>
144
+ <select onchange="setLocation(this.value)">
145
+ <?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
146
+ <option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>
147
+ <?php echo $this->__($_order) ?>
148
+ </option>
149
+ <?php endforeach; ?>
150
+ </select>
151
+ <?php if($this->getCurrentDirection() == 'desc'): ?>
152
+ <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>
153
+ <?php else: ?>
154
+ <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>
155
+ <?php endif; ?>
156
+ </div>
157
+ </div>
158
+ <?php endif; ?>
159
+ </div>
160
+
161
+ <?php */?>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($_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->htmlEscape($_link->getName()) ?>" /></a>
39
+ <h3 class="product-name"><a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>"><?php echo $this->htmlEscape($_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/default/estore/template/catalog/product/new.phtml ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="clear"></div>
28
+
29
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
30
+ <div id="late_prods">
31
+ <div class="inner">
32
+ <div class="headsec">
33
+ <h1 class="colr bold upper">Latest Products</h1>
34
+ <a href="#" class="goonline seccolr bold upper"><span>Go to Online Store</span></a>
35
+ </div><ul>
36
+ <?php $_columnCount = $this->getColumnCount(); ?>
37
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
38
+
39
+ <li>
40
+ <?php $this->setProduct(Mage::getModel('catalog/product')->setStoreId(Mage::app()->getStore()->getId())->load($_product->getId()))?>
41
+ <?php $prices=$this->getTierPriceHtml(); ?>
42
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="thumb"><span class="save bold cufontxt upper"><?php echo $prices ?></span><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(163,186) ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" /></a>
43
+
44
+ <a href="<?php echo $_product->getProductUrl() ?>" class="title" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo substr(($_product->getShortDescription()),0,20); ?>
45
+ </a>
46
+ <div class="clear"></div>
47
+
48
+ <?php //echo $this->getReviewsSummaryHtml($_product, 'short') ?>
49
+ <p class="newprice colr"> <?php echo $this->getPriceHtml($_product, true, '-new') ?></p>
50
+ <!--<p class="oldprice">$422.40</p>-->
51
+ <?php if($_product->isSaleable()): ?>
52
+ <div class="btns">
53
+ <a href="<?php echo $this->getAddToCartUrl($_product) ?>" class="buynow cufontxt upper colr">BUY Now</a>
54
+ <?php endif; ?>
55
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
56
+ <a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="wish">Add to Wishlist</a>
57
+ <?php endif; ?>
58
+ </div>
59
+ </li>
60
+ <?php endforeach; ?>
61
+ <?php endif; ?>
62
+ </ul>
63
+ </div>
64
+ </div>
65
+
66
+
67
+
app/design/frontend/default/estore/template/catalog/product/price.phtml ADDED
@@ -0,0 +1,414 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ $_id = $_product->getId();
45
+ $_weeeSeparator = '';
46
+ $_simplePricesTax = ($_taxHelper->displayPriceIncludingTax() || $_taxHelper->displayBothPrices());
47
+ $_minimalPriceValue = $_product->getMinimalPrice();
48
+ $_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
49
+ ?>
50
+
51
+ <?php if (!$_product->isGrouped()): ?>
52
+ <?php $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product); ?>
53
+ <?php if ($_weeeHelper->typeOfDisplay($_product, array(1,2,4))): ?>
54
+ <?php $_weeeTaxAmount = $_weeeHelper->getAmount($_product); ?>
55
+ <?php $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForDisplay($_product); ?>
56
+ <?php endif; ?>
57
+
58
+ <div class="price-box">
59
+ <?php $_price = $_taxHelper->getPrice($_product, $_product->getPrice()) ?>
60
+ <?php $_regularPrice = $_taxHelper->getPrice($_product, $_product->getPrice(), $_simplePricesTax) ?>
61
+ <?php $_finalPrice = $_taxHelper->getPrice($_product, $_product->getFinalPrice()) ?>
62
+ <?php $_finalPriceInclTax = $_taxHelper->getPrice($_product, $_product->getFinalPrice(), true) ?>
63
+ <?php $_weeeDisplayType = $_weeeHelper->getPriceDisplayType(); ?>
64
+ <?php if ($_finalPrice == $_price): ?>
65
+ <?php if ($_taxHelper->displayBothPrices()): ?>
66
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
67
+ <span class="price-excluding-tax">
68
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
69
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
70
+ <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,false) ?>
71
+ </span>
72
+ </span>
73
+ <span class="price-including-tax">
74
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
75
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
76
+ <?php echo $_coreHelper->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?>
77
+ </span>
78
+ </span>
79
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
80
+ <span class="price-excluding-tax">
81
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
82
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
83
+ <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,false) ?>
84
+ </span>
85
+ </span>
86
+ <span class="price-including-tax">
87
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
88
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
89
+ <?php echo $_coreHelper->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?>
90
+ </span>
91
+ <span class="weee">(
92
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
93
+ <?php echo $_weeeSeparator; ?>
94
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
95
+ <?php $_weeeSeparator = ' + '; ?>
96
+ <?php endforeach; ?>
97
+ )</span>
98
+ </span>
99
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
100
+ <span class="price-excluding-tax">
101
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
102
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
103
+ <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,false) ?>
104
+ </span>
105
+ </span>
106
+ <span class="price-including-tax">
107
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
108
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
109
+ <?php echo $_coreHelper->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?>
110
+ </span>
111
+ <span class="weee">(
112
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
113
+ <?php echo $_weeeSeparator; ?>
114
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(), true, true); ?>
115
+ <?php $_weeeSeparator = ' + '; ?>
116
+ <?php endforeach; ?>
117
+ )</span>
118
+ </span>
119
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
120
+ <span class="price-excluding-tax">
121
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
122
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
123
+ <?php echo $_coreHelper->currency($_price,true,false) ?>
124
+ </span>
125
+ </span>
126
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
127
+ <span class="weee">
128
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
129
+ </span>
130
+ <?php endforeach; ?>
131
+ <span class="price-including-tax">
132
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
133
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
134
+ <?php echo $_coreHelper->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?>
135
+ </span>
136
+ </span>
137
+ <?php else: ?>
138
+ <span class="price-excluding-tax">
139
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
140
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
141
+ <?php echo $_coreHelper->currency($_price,true,false) ?>
142
+ </span>
143
+ </span>
144
+ <span class="price-including-tax">
145
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
146
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
147
+ <?php echo $_coreHelper->currency($_finalPriceInclTax,true,false) ?>
148
+ </span>
149
+ </span>
150
+ <?php endif; ?>
151
+ <?php else: ?>
152
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
153
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
154
+ <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,true) ?>
155
+ </span>
156
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
157
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
158
+ <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,true) ?>
159
+ </span>
160
+ <span class="weee">(
161
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
162
+ <?php echo $_weeeSeparator; ?>
163
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
164
+ <?php $_weeeSeparator = ' + '; ?>
165
+ <?php endforeach; ?>
166
+ )</span>
167
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
168
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
169
+ <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,true) ?>
170
+ </span>
171
+ <span class="weee">(
172
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
173
+ <?php echo $_weeeSeparator; ?>
174
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(), true, true); ?>
175
+ <?php $_weeeSeparator = ' + '; ?>
176
+ <?php endforeach; ?>
177
+ )</span>
178
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
179
+ <span class="regular-price"><?php echo $_coreHelper->currency($_price,true,true) ?></span><br />
180
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
181
+ <span class="weee">
182
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
183
+ </span>
184
+ <?php endforeach; ?>
185
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
186
+ <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,true) ?>
187
+ </span>
188
+ <?php else: ?>
189
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
190
+ <?php echo $_coreHelper->currency($_price,true,true) ?>
191
+ </span>
192
+ <?php endif; ?>
193
+ <?php endif; ?>
194
+ <?php else: /* if ($_finalPrice == $_price): */ ?>
195
+ <?php $_originalWeeeTaxAmount = $_weeeHelper->getOriginalAmount($_product); ?>
196
+
197
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
198
+ <p class="old-price">
199
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
200
+ <span class="newprice colr" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
201
+ <?php echo $_coreHelper->currency($_regularPrice+$_originalWeeeTaxAmount,true,false) ?>
202
+ </span>
203
+ </p>
204
+
205
+ <?php if ($_taxHelper->displayBothPrices()): ?>
206
+ <p class="special-price">
207
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
208
+ <span class="price-excluding-tax">
209
+ <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
210
+ <span class="price" id="price-excluding-tax-<?php //echo $_id ?><?php //echo $this->getIdSuffix() ?>">
211
+ <?php echo $_coreHelper->currency($_finalPrice+$_weeeTaxAmount,true,false) ?>
212
+ </span>
213
+ </span>
214
+ <span class="price-including-tax">
215
+ <span class="label"><?php echo $_taxHelper->__('Incl. Tax:') ?></span>
216
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
217
+ <?php echo $_coreHelper->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?>
218
+ </span>
219
+ </span>
220
+ </p>
221
+ <?php else: ?>
222
+ <p class="special-price">
223
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
224
+ <span class="newprice colr" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
225
+ <?php echo $_coreHelper->currency($_finalPrice+$_weeeTaxAmount,true,false) ?>
226
+ </span>
227
+ </p>
228
+ <?php endif; ?>
229
+
230
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
231
+ <p class="old-price">
232
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
233
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
234
+ <?php echo $_coreHelper->currency($_regularPrice+$_originalWeeeTaxAmount,true,false) ?>
235
+ </span>
236
+ </p>
237
+
238
+ <p class="special-price">
239
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
240
+ <span class="price-excluding-tax">
241
+ <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
242
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
243
+ <?php echo $_coreHelper->currency($_finalPrice+$_weeeTaxAmount,true,false) ?>
244
+ </span>
245
+ </span>
246
+ <span class="weee">(
247
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
248
+ <?php echo $_weeeSeparator; ?>
249
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
250
+ <?php $_weeeSeparator = ' + '; ?>
251
+ <?php endforeach; ?>
252
+ )</span>
253
+ <span class="price-including-tax">
254
+ <span class="label"><?php echo $_taxHelper->__('Incl. Tax:') ?></span>
255
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
256
+ <?php echo $_coreHelper->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?>
257
+ </span>
258
+ </span>
259
+ </p>
260
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
261
+ <p class="old-price">
262
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
263
+ <span class="price" id="old-price-<?php //echo $_id ?><?php echo $this->getIdSuffix() ?>">
264
+ <?php echo $_coreHelper->currency($_regularPrice+$_originalWeeeTaxAmount,true,false) ?>
265
+ </span>
266
+ </p>
267
+
268
+ <p class="special-price">
269
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
270
+ <span class="price-excluding-tax">
271
+ <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
272
+ <span class="newprice colr" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
273
+ <?php echo $_coreHelper->currency($_finalPrice+$_weeeTaxAmount,true,false) ?>
274
+ </span>
275
+ </span>
276
+ <span class="weee">(
277
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
278
+ <?php echo $_weeeSeparator; ?>
279
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(), true, true); ?>
280
+ <?php $_weeeSeparator = ' + '; ?>
281
+ <?php endforeach; ?>
282
+ )</span>
283
+ <span class="price-including-tax">
284
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
285
+ <span class="newprice colr" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
286
+ <?php echo $_coreHelper->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?>
287
+ </span>
288
+ </span>
289
+ </p>
290
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
291
+ <p class="old-price">
292
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
293
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
294
+ <?php echo $_coreHelper->currency($_regularPrice,true,false) ?>
295
+ </span>
296
+ </p>
297
+
298
+ <p class="special-price">
299
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
300
+ <span class="price-excluding-tax">
301
+ <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
302
+ <span class="newprice colr" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
303
+ <?php echo $_coreHelper->currency($_finalPrice,true,false) ?>
304
+ </span>
305
+ </span>
306
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
307
+ <span class="weee">
308
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
309
+ </span>
310
+ <?php endforeach; ?>
311
+ <span class="price-including-tax">
312
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
313
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
314
+ <?php echo $_coreHelper->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?>
315
+ </span>
316
+ </span>
317
+ </p>
318
+ <?php else: // excl. ?>
319
+ <!-- <p class="old-price">-->
320
+ <p class="oldprice"><?php //echo $this->__('Old Price::') ?>
321
+ <span class="bold" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
322
+ <?php echo $_coreHelper->currency($_regularPrice,true,false) ?>
323
+ </span></p>
324
+ <!-- </p>
325
+ -->
326
+ <?php if ($_taxHelper->displayBothPrices()): ?>
327
+ <!-- <p class="special-price">
328
+ --> <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
329
+ <span class="price-excluding-tax">
330
+ <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
331
+ <span class="newprice colr" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
332
+ <?php echo $_coreHelper->currency($_finalPrice,true,false) ?>
333
+ </span>
334
+ </span>
335
+ <span class="price-including-tax">
336
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
337
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
338
+ <?php echo $_coreHelper->currency($_finalPriceInclTax,true,false) ?>
339
+ </span>
340
+ </span>
341
+ <!-- </p>
342
+ --> <?php else: ?>
343
+ <!-- <p class="special-price">
344
+ --> <p class="newprice colr"><?php //echo $this->__('New Price:') ?><span class="bold" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
345
+ <?php echo $_coreHelper->currency($_finalPrice,true,false) ?>
346
+ </span></p>
347
+
348
+ <!-- </p>
349
+ --> <?php endif; ?>
350
+ <?php endif; ?>
351
+
352
+ <?php endif; /* if ($_finalPrice == $_price): */ ?>
353
+
354
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_product->getFinalPrice()): ?>
355
+
356
+ <?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
357
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1, 4))): ?>
358
+ <?php $_minimalPriceDisplayValue = $_minimalPrice+$_weeeTaxAmount; ?>
359
+ <?php endif; ?>
360
+
361
+ <?php if ($this->getUseLinkForAsLowAs()):?>
362
+ <a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
363
+ <?php else:?>
364
+ <span class="minimal-price-link">
365
+ <?php endif?>
366
+ <span class="label"><?php //echo $this->__('As low as:') ?></span>
367
+ <span class="price" id="product-minimal-price-<?php // echo $_id ?><?php //echo $this->getIdSuffix() ?>">
368
+ <?php //echo $_coreHelper->currency($_minimalPriceDisplayValue,true,false) ?>
369
+ </span>
370
+ <?php if ($this->getUseLinkForAsLowAs()):?>
371
+ </a>
372
+ <?php else:?>
373
+ </span>
374
+ <?php endif?>
375
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
376
+ </div>
377
+
378
+ <?php else: /* if (!$_product->isGrouped()): */ ?>
379
+ <?php
380
+ $_exclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue, $includingTax = null);
381
+ $_inclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue, $includingTax = true);
382
+ ?>
383
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue): ?>
384
+ <div class="price-box">
385
+ <p class="minimal-price">
386
+ <span class="price-label"><?php echo $this->__('Starting at:') ?></span>
387
+ <?php if ($_taxHelper->displayBothPrices()): ?>
388
+ <span class="price-excluding-tax">
389
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
390
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
391
+ <?php echo $_coreHelper->currency($_exclTax, true, false) ?>
392
+ </span>
393
+ </span>
394
+ <span class="price-including-tax">
395
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
396
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
397
+ <?php echo $_coreHelper->currency($_inclTax, true, false) ?>
398
+ </span>
399
+ </span>
400
+ <?php else: ?>
401
+ <?php
402
+ $_showPrice = $_inclTax;
403
+ if (!$_taxHelper->displayPriceIncludingTax()) {
404
+ $_showPrice = $_exclTax;
405
+ }
406
+ ?>
407
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
408
+ <?php echo $_coreHelper->currency($_showPrice, true, false) ?>
409
+ </span>
410
+ <?php endif; ?>
411
+ </p>
412
+ </div>
413
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
414
+ <?php endif; /* if (!$_product->isGrouped()): */ ?>
app/design/frontend/default/estore/template/catalog/product/view.phtml ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="prod_detail">
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
+ <div class="no-display">
44
+ <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
45
+ <input type="hidden" name="related_product" id="related-products-field" value="" />
46
+ </div>
47
+ <h4 class="white bold smallheading upper"><span class="arrow"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></span></h4>
48
+ <div class="product-img-box"> <?php echo $this->getChildHtml('media') ?> </div>
49
+ <div class="descshort">
50
+ <div class="quickreview">
51
+ <h6 class="colr"><?php echo $this->__('Quick Overview') ?></h6>
52
+ <p> <?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?> </p>
53
+ </div>
54
+ <?php $this->getReviewsSummaryHtml($_product, false, true)?>
55
+ <?php echo $this->getChildHtml('alert_urls') ?>
56
+ <?php //echo $this->getTierPriceHtml() ?>
57
+ <?php echo $this->getChildHtml('extrahint') ?>
58
+ <?php if ($_product->getShortDescription()):?>
59
+ <?php endif;?>
60
+ <?php if($_product->isSaleable()): ?>
61
+ <p class="availability">
62
+ <?php
63
+ $stockLevel = (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();
64
+ if ($stockLevel <= "0")
65
+ echo $_product->getResource()->getAttribute('availability')->getFrontend()->getValue($_product);
66
+ else
67
+ ?>
68
+ <p class="availablity black bold"><span class="upper">
69
+ <?php echo $this->__('Availability: In stock.');
70
+ ?>
71
+ </span> </p>
72
+ <?php else: ?>
73
+ <p class="availablity black bold"><span class="upper"> <?php echo $this->__('Availability: Out of stock.') ?></span></p>
74
+ <?php endif; ?>
75
+ <div class="rating">
76
+ <?php if($_product->getRatingSummary()): ?>
77
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
78
+ <?php endif; ?>
79
+ <a href="<?php echo $this->getReviewLink($this->getProductId()) ?>" target="_blank" onclick="document.getElementById('review-form').style.display='';return false;"
80
+ class="reviews addr right white">Add Your Review</a> <a href="#" class="reviews under">
81
+ <?php //echo $this->__('%d Review(s)', $this->getReviewsCount()) ?>
82
+ </a> </div>
83
+ <div class="prod_options">
84
+ <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
85
+ <?php echo $html; ?>
86
+ <?php
87
+ $counter++;
88
+ endforeach;?>
89
+ <?php if(!$_product->isGrouped()): ?>
90
+ <p class="qty"><?php echo $this->__('Qty:') ?></p>
91
+ <div class="selectmenu qtyselect">
92
+ <select name="qty" id="qty" class="qtyselect">
93
+ <?php
94
+ // show dropdown instead of textfield
95
+ $_min = max(1, $this->getMinimalQty($_product));
96
+ $_max = Mage::getModel('cataloginventory/stock_item')->loadByProduct($this->getProduct())->getMaxSaleQty();
97
+ for ($i = $_min; $i <= $_max; $i++) {
98
+ $_selected = '';
99
+ if ($i == $this->getQty()) {
100
+ $_selected .= ' selected="selected"';
101
+ }
102
+ echo '<option value="' . $i . '"' . $_selected . '>' . $i . '</option>';
103
+ }
104
+ ?>
105
+ </select>
106
+ </div>
107
+ <?php endif; ?>
108
+ </div>
109
+ <div class="clear"></div>
110
+ <div class="prices">
111
+ <p class="newprice colr bold">
112
+ <?php $final_price= (float) $_product->getFinalPrice();
113
+ $final_price= number_format($final_price,2);
114
+ ?>
115
+ New Price: <?php echo "$". $final_price; ?></p>
116
+ <p class="oldprice">
117
+ <?php $price_mine= (float) $_product->getPrice();
118
+ $price_mine= number_format($price_mine,2);
119
+ ?>
120
+ <?php echo "$". $price_mine; ?></p>
121
+ <?php echo $this->getChildHtml('addtocart') ?> </div>
122
+ </p>
123
+ </div>
124
+ </form>
125
+ </div>
126
+ <div class="tabs">
127
+ <div class="tab_menu_container">
128
+ <ul id="tab_menu">
129
+ <li><a class="current colr cufontxt upper" rel="tab_sidebar_recent">Description</a></li>
130
+ <li><a class="colr cufontxt upper" rel="tab_sidebar_comments">Specifications</a></li>
131
+ <li><a class="colr cufontxt upper" rel="tab_sidebar_popular">Reviews</a></li>
132
+ </ul>
133
+ <div class="clear"></div>
134
+ </div>
135
+ <div class="tab_container">
136
+ <div class="tab_container_in">
137
+ <div style="display: none;" id="tab_sidebar_recent" class="tab_sidebar_list">
138
+ <p> <?php echo $_product->getDescription(); ?> </p>
139
+ </div>
140
+ <div style="display: none;" id="tab_sidebar_comments" class="tab_sidebar_list">
141
+ <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed elit. Nulla sem risus, vestibulum in, volutpat eget, dapibus ac, lectus. Curabitur dolor sapien, hendrerit non, suscipit bibendum, auctor ac, arcu. Vestibulum dapibus. Sed pede lacus, pretium in, condimentum sit amet, mollis dapibus, magna. Ut bibendum dolor nec augue. Ut tempus luctus metus. Sed a velit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed elit. Nulla sem risus, vestibulum in, volutpat eget, dapibus ac, lectus. </p>
142
+ <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed elit. Nulla sem risus, vestibulum in, volutpat eget, dapibus ac, lectus. Curabitur dolor sapien, hendrerit non, suscipit bibendum, auctor ac, arcu. Vestibulum dapibus. Sed pede lacus, pretium in, condimentum sit amet, mollis dapibus, magna. Ut bibendum dolor nec augue. Ut tempus luctus metus. Sed a velit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed elit. Nulla sem risus, vestibulum in, volutpat eget, dapibus ac, lectus. </p>
143
+ <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed elit. Nulla sem risus, vestibulum in, volutpat eget, dapibus ac, lectus. Curabitur dolor sapien, hendrerit non, suscipit bibendum, auctor ac, arcu. Vestibulum dapibus. Sed pede lacus, pretium in, condimentum sit amet, mollis dapibus, magna. Ut bibendum dolor nec augue. Ut tempus luctus metus. Sed a velit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed elit. Nulla sem risus, vestibulum in, volutpat eget, dapibus ac, lectus. </p>
144
+ </div>
145
+ <div style="display: none;" id="tab_sidebar_popular" class="tab_sidebar_list">
146
+ <p> <?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?> </p>
147
+ </div>
148
+ <div class="clear"></div>
149
+ </div>
150
+ </div>
151
+ </div>
152
+ <div style="display:none" id="review-form"> <?php echo $this->getChildHtml('review_form') ?> <?php echo $this->getLayout()->createBlock('review/form')->setBlockId('')->toHtml() ?> </div>
153
+ <div class="relatedproducts top_mar">
154
+ <h5 class="white upper">You may also be interested in the following product(s)</h5>
155
+ <ul class="listingprods">
156
+ <?php
157
+ $visibility = array(
158
+ Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
159
+ Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
160
+ );
161
+
162
+ $_productCollection = Mage::getResourceModel('reports/product_collection')
163
+ ->addAttributeToSelect('*')
164
+ ->addOrderedQty()
165
+ ->addAttributeToFilter('visibility', $visibility)
166
+ ->setOrder('ordered_qty', 'desc');
167
+ $counter=1;
168
+ ?>
169
+ <?php foreach($_productCollection as $product): ?>
170
+ <?php
171
+ $categories = null;
172
+ foreach (explode(",", $product->category_ids) as $catId){
173
+ //Mage_Catalog_Model_Category
174
+ $cat = Mage::getModel('catalog/category')
175
+ ->setStoreId(Mage::app()->getStore()->getId())
176
+ ->load($catId);
177
+ $catName = $cat->getName();
178
+ $catLink = $cat->getUrlPath();
179
+ $categories .= '<a href="'.$catLink.'" title="'.$catName.'">'.$catName.'</a>&nbsp;&nbsp;';
180
+ ?>
181
+ <?php if($counter <= 4): ?>
182
+ <?php $productUrl = $product->getProductUrl() ?>
183
+ <?php $this->setProduct(Mage::getModel('catalog/product')->setStoreId(Mage::app()->getStore()->getId())->load($_product->getId()))?>
184
+ <?php $prices=$this->getTierPriceHtml(); ?>
185
+ <li> <a href="<?php echo $productUrl ?>" title="View <?php echo $product->name ?>" class="thumb"><span class="save bold cufontxt upper"><?php echo $prices ?></span><img src="<?php echo $this->helper('catalog/image')->init($product, 'image')->resize(163,186); ?>" alt="" /></a> <a href="<?php echo $productUrl ?>" class="title"><?php echo $product->name ?></a>
186
+ <div class="clear"></div>
187
+ <p class="newprice colr">
188
+ <?php $final_price= (float) $_product->getFinalPrice();
189
+ $final_price= number_format($final_price,2);
190
+ ?>
191
+ <?php echo "$". $final_price; ?></p>
192
+ <p class="oldprice">
193
+ <?php $price_mine= (float) $_product->getPrice();
194
+ $price_mine= number_format($price_mine,2);
195
+ ?>
196
+ <?php echo "$". $price_mine; ?></p>
197
+ <div class="btns">
198
+ <button type="button" title= " BUY Now " class= "buttton cufontxt"
199
+ onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"
200
+ value= "BUY Now" >BUY Now</button>
201
+ <!-- <a href="cart.html" class="buynow cufontxt upper colr">BUY Now</a>
202
+ --> <a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="wish">Add to Wishlist</a> </div>
203
+ </li>
204
+ <?php endif; $counter++; ?>
205
+ <?php
206
+ }
207
+
208
+ endforeach; ?>
209
+ </ul>
210
+ </div>
211
+ </div>
212
+ <script type="text/javascript">
213
+ //<![CDATA[
214
+ var productAddToCartForm = new VarienForm('product_addtocart_form');
215
+ productAddToCartForm.submit = function(button, url) {
216
+ if (this.validator.validate()) {
217
+ var form = this.form;
218
+ var oldUrl = form.action;
219
+
220
+ if (url) {
221
+ form.action = url;
222
+ }
223
+ var e = null;
224
+ try {
225
+ this.form.submit();
226
+ } catch (e) {
227
+ }
228
+ this.form.action = oldUrl;
229
+ if (e) {
230
+ throw e;
231
+ }
232
+
233
+ if (button && button != 'undefined') {
234
+ button.disabled = true;
235
+ }
236
+ }
237
+ }.bind(productAddToCartForm);
238
+
239
+ productAddToCartForm.submitLight = function(button, url){
240
+ if(this.validator) {
241
+ var nv = Validation.methods;
242
+ delete Validation.methods['required-entry'];
243
+ delete Validation.methods['validate-one-required'];
244
+ delete Validation.methods['validate-one-required-by-name'];
245
+ if (this.validator.validate()) {
246
+ if (url) {
247
+ this.form.action = url;
248
+ }
249
+ this.form.submit();
250
+ }
251
+ Object.extend(Validation.methods, nv);
252
+ }
253
+ }.bind(productAddToCartForm);
254
+ //]]>
255
+ </script>
256
+ <?php //echo $this->getChildHtml('upsell_products') ?>
257
+ <?php //echo $this->getChildHtml('product_additional_data') ?>
258
+
259
+ <!-- Related products block END -->
260
+
app/design/frontend/default/estore/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) 2010 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/default/estore/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) 2010 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, '<?php echo $_wishlistSubmitUrl ?>'); 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/default/estore/template/catalog/product/view/addtocart.phtml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <?php
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) 2010 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
+ <script language="javascript">
29
+ $.noConflict();
30
+ $(document).ready(function() {
31
+ });
32
+ </script>
33
+ <?php $_product = $this->getProduct(); ?>
34
+ <?php $buttonTitle = $this->__('Add to Cart'); ?>
35
+ <?php if($_product->isSaleable()): ?>
36
+
37
+ <?php //echo $this->getPriceHtml($_product); ?>
38
+ <div class="btns">
39
+ <button type="button" title= " BUY Now " class= "buttton cufontxt"
40
+ onclick= " productAddToCartForm.submit(this) " value= "BUY Now" >BUY Now</button>
41
+ <!-- <a href=".#" onclick="productAddToCartForm.submit(this)" class="buynow cufontxt upper colr">BUY Now</a>-->
42
+ <a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="wish">Add to Wishlist</a>
43
+ </div>
44
+ <?php echo $this->getChildHtml('', true, true) ?>
45
+
46
+ <div class="clear"></div>
47
+ <?php endif; ?>
48
+
49
+
50
+ <?php /*?>
51
+
52
+
53
+ <?php $_product = $this->getProduct(); ?>
54
+ <?php $buttonTitle = $this->__('Add to Cart'); ?>
55
+ <?php if($_product->isSaleable()): ?>
56
+ <div class="add-to-cart">
57
+ <?php if(!$_product->isGrouped()): ?>
58
+ <label for="qty"><?php echo $this->__('Qty:') ?></label>
59
+ <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
60
+ <?php endif; ?>
61
+ <button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
62
+ <?php echo $this->getChildHtml('', true, true) ?>
63
+ </div>
64
+ <?php endif; ?>
65
+ <?php */?>
app/design/frontend/default/estore/template/catalog/product/view/attributes.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) 2010 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
+ <?php /*?>
40
+ <p class="size">Size *</p>
41
+ <div class="selectmenu sizeselect">
42
+ <select name="a" class="sizeselect">
43
+ <option>Small</option>
44
+ <option>Medium</option>
45
+ <option>Large</option>
46
+ </select>
47
+ </div>
48
+ <p class="color">Color *</p>
49
+ <div class="selectmenu colorselect">
50
+ <select name="a" class="colorselect">
51
+ <option>Black</option>
52
+ <option>Red</option>
53
+ <option>Pink</option>
54
+ </select>
55
+ </div><?php */?>
56
+
57
+ <div class="selectmenu sizeselect" id="product-attribute-specs-table">
58
+
59
+ <?php
60
+
61
+ $counter=1;
62
+ foreach ($_additional as $_data): ?>
63
+ <?php /*?> <th class="label"><?php echo $this->htmlEscape($this->__($_data['label'])) ?></th><?php */?>
64
+
65
+ <div class="selectmenu sizeselect">
66
+ <?php
67
+
68
+ if($counter==1)
69
+ {
70
+ ?>
71
+ <p class="size">Color *</p>
72
+ <?php
73
+ }else
74
+ {
75
+ ?>
76
+ <p class="color">Size *</p>
77
+
78
+ <?php
79
+ }
80
+ ?>
81
+ <select name="a" class="sizeselect"> <option><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></option> </select>
82
+ </div>
83
+ <?php
84
+ $counter++;
85
+ endforeach; ?>
86
+
87
+ </div>
88
+ <script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
89
+ <?php endif;?>
app/design/frontend/default/estore/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) 2010 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/default/estore/template/catalog/product/view/media.phtml ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+
38
+ <div class="thumbsec">
39
+ <div id="slider2" class="prod_gallery">
40
+ <div class="contentdiv">
41
+ <?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
42
+ <?php
43
+ $_img = '<img rel="example_group" id="image" src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(260,239).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
44
+ echo $_helper->productAttribute($_product, $_img, 'image');
45
+ ?>
46
+ </a>
47
+ <?php else: ?>
48
+ <?php
49
+ $_img = '<img rel="example_group" src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(260,239).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
50
+ //echo $_helper->productAttribute($_product, $_img, 'image');
51
+ ?>
52
+ </a>
53
+ <?php endif; ?>
54
+ </div>
55
+ </div>
56
+ <?php if (count($this->getGalleryImages()) > 0): ?>
57
+ <div class="galleryscrol"> <a href="#" class="prevbtn">&nbsp;</a>
58
+ <div class="anyClass" id="paginate-slider2">
59
+ <ul>
60
+ <?php foreach ($this->getGalleryImages() as $_image): ?>
61
+ <li> <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->htmlEscape($_image->getLabel()) ?>" class="toc"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a></li>
62
+ <?php endforeach; ?>
63
+ </ul>
64
+ </div>
65
+ <a href="#" class="nextbtn">&nbsp;</a> </div>
66
+ <?php endif; ?>
67
+ </div>
app/design/frontend/default/estore/template/catalog/product/view/options.phtml ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 $_options = Mage::helper('core')->decorateArray($this->getOptions()) ?>
29
+ <?php if (count($_options)):?>
30
+ <script type="text/javascript">
31
+ //<![CDATA[
32
+ var optionFileUpload = {
33
+ productForm : $('product_addtocart_form'),
34
+ formAction : '',
35
+ formElements : {},
36
+ upload : function(element){
37
+ this.formElements = this.productForm.select('input', 'select', 'textarea', 'button');
38
+ this.removeRequire(element.readAttribute('id').sub('option_', ''));
39
+
40
+ template = '<iframe id="upload_target" name="upload_target" style="width:0; height:0; border:0;"><\/iframe>';
41
+
42
+ Element.insert($('option_'+element.readAttribute('id').sub('option_', '')+'_uploaded_file'), {after: template});
43
+
44
+ this.formAction = this.productForm.action;
45
+
46
+ var baseUrl = '<?php echo $this->getUrl('*/product/upload') ?>';
47
+ var urlExt = 'option_id/'+element.readAttribute('id').sub('option_', '');
48
+
49
+ this.productForm.action = parseSidUrl(baseUrl, urlExt);
50
+ this.productForm.target = 'upload_target';
51
+ this.productForm.submit();
52
+ this.productForm.target = '';
53
+ this.productForm.action = this.formAction;
54
+ },
55
+ removeRequire : function(skipElementId){
56
+ for(var i=0; i<this.formElements.length; i++){
57
+ if (this.formElements[i].readAttribute('id') != 'option_'+skipElementId+'_file' && this.formElements[i].type != 'button') {
58
+ this.formElements[i].disabled='disabled';
59
+ }
60
+ }
61
+ },
62
+ addRequire : function(skipElementId){
63
+ for(var i=0; i<this.formElements.length; i++){
64
+ if (this.formElements[i].readAttribute('name') != 'options_'+skipElementId+'_file' && this.formElements[i].type != 'button') {
65
+ this.formElements[i].disabled='';
66
+ }
67
+ }
68
+ },
69
+ uploadCallback : function(data){
70
+ this.addRequire(data.optionId);
71
+ $('upload_target').remove();
72
+
73
+ if (data.error) {
74
+
75
+ } else {
76
+ $('option_'+data.optionId+'_uploaded_file').value = data.fileName;
77
+ $('option_'+data.optionId+'_file').value = '';
78
+ $('option_'+data.optionId+'_file').hide();
79
+ $('option_'+data.optionId+'').hide();
80
+ 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>';
81
+
82
+ Element.insert($('option_'+data.optionId+'_uploaded_file'), {after: template});
83
+ }
84
+ },
85
+ removeFile : function(optionId)
86
+ {
87
+ $('option_'+optionId+'_uploaded_file').value= '';
88
+ $('option_'+optionId+'_file').show();
89
+ $('option_'+optionId+'').show();
90
+
91
+ $('option_'+optionId+'_file_box').remove();
92
+ }
93
+ }
94
+ var optionTextCounter = {
95
+ count : function(field,cntfield,maxlimit){
96
+ if (field.value.length > maxlimit){
97
+ field.value = field.value.substring(0, maxlimit);
98
+ } else {
99
+ cntfield.innerHTML = maxlimit - field.value.length;
100
+ }
101
+ }
102
+ }
103
+
104
+ Product.Options = Class.create();
105
+ Product.Options.prototype = {
106
+ initialize : function(config){
107
+ this.config = config;
108
+ this.reloadPrice();
109
+ document.observe("dom:loaded", this.reloadPrice.bind(this));
110
+ },
111
+ reloadPrice : function(){
112
+ price = new Number();
113
+ config = this.config;
114
+ skipIds = [];
115
+ $$('.product-custom-option').each(function(element){
116
+ var optionId = 0;
117
+ element.name.sub(/[0-9]+/, function(match){
118
+ optionId = match[0];
119
+ });
120
+ if (this.config[optionId]) {
121
+ if (element.type == 'checkbox' || element.type == 'radio') {
122
+ if (element.checked) {
123
+ if (config[optionId][element.getValue()]) {
124
+ price += parseFloat(config[optionId][element.getValue()]);
125
+ }
126
+ }
127
+ } else if(element.hasClassName('datetime-picker') && !skipIds.include(optionId)) {
128
+ dateSelected = true;
129
+ $$('.product-custom-option[id^="options_' + optionId + '"]').each(function(dt){
130
+ if (dt.getValue() == '') {
131
+ dateSelected = false;
132
+ }
133
+ });
134
+ if (dateSelected) {
135
+ price += parseFloat(this.config[optionId]);
136
+ skipIds[optionId] = optionId;
137
+ }
138
+ } else if(element.type == 'select-one' || element.type == 'select-multiple') {
139
+ if (element.options) {
140
+ $A(element.options).each(function(selectOption){
141
+ if (selectOption.selected) {
142
+ if (this.config[optionId][selectOption.value]) {
143
+ price += parseFloat(this.config[optionId][selectOption.value]);
144
+ }
145
+ }
146
+ });
147
+ }
148
+ } else {
149
+ if (element.getValue().strip() != '') {
150
+ price += parseFloat(this.config[optionId]);
151
+ }
152
+ }
153
+ }
154
+ });
155
+ try {
156
+ optionsPrice.changePrice('options', price);
157
+ optionsPrice.changePrice('optionsPriceInclTax', price);
158
+ optionsPrice.reload();
159
+ } catch (e) {
160
+
161
+ }
162
+ }
163
+ }
164
+ function validateOptionsCallback(elmId, result){
165
+ var container = $(elmId).up('ul.options-list');
166
+ if (result == 'failed') {
167
+ container.removeClassName('validation-passed');
168
+ container.addClassName('validation-failed');
169
+ } else {
170
+ container.removeClassName('validation-failed');
171
+ container.addClassName('validation-passed');
172
+ }
173
+ }
174
+ var opConfig = new Product.Options(<?php echo $this->getJsonConfig() ?>);
175
+ //]]>
176
+ </script>
177
+ <dl>
178
+ <?php foreach($_options as $_option): ?>
179
+ <?php echo $this->getOptionHtml($_option) ?>
180
+ <?php endforeach; ?>
181
+ </dl>
182
+ <?php endif; ?>
app/design/frontend/default/estore/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) 2010 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/default/estore/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) 2010 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->htmlEscape($_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/default/estore/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) 2010 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->htmlEscape($_option->getTitle()) ?></label>
30
+ </dt>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($_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/default/estore/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) 2010 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->htmlEscape($_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/default/estore/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) 2010 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->htmlEscape($_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/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/template/catalog/product/view/price.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) 2010 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="special-price"><?php echo $this->getPrice() ?></p>
33
+
34
+ <p class="old-price"><?php echo $this->__('Old Price:') ?> <?php echo $this->getPrice() ?></p>
35
+ </div>
app/design/frontend/default/estore/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) 2010 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/default/estore/template/catalog/product/view/tierprices.phtml ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ $_weeeTaxAmount = Mage::helper('weee')->getAmountForDisplay($_product);
37
+ if (Mage::helper('weee')->typeOfDisplay($_product, array(1,2,4))) {
38
+ $_weeeTaxAttributes = Mage::helper('weee')->getProductWeeeAttributesForDisplay($_product);
39
+ }
40
+
41
+ ?>
42
+ <?php if (count($_tierPrices) > 0): ?>
43
+ <ul>
44
+ <?php if ($this->getInGrouped()): ?>
45
+ <?php $_tierPrices = $this->getTierPrices($_product); ?>
46
+ <?php endif; ?>
47
+ <?php Mage::helper('weee')->processTierPrices($_product, $_tierPrices); ?>
48
+
49
+ <?php foreach ($_tierPrices as $_price): ?>
50
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
51
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 0)): ?>
52
+ <li><?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']) ?>
53
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 1)): ?>
54
+ <li><?php //echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
55
+ <?php if ($_weeeTaxAttributes): ?>
56
+ (<small>
57
+ <?php //echo $this->__('%1$s incl tax.', $_price['formated_price_incl_weee']); ?>
58
+ <?php $separator = ' + '; foreach ($_weeeTaxAttributes as $_attribute): ?>
59
+ <?php //echo $separator; ?>
60
+ <?php //echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
61
+ <?php endforeach; ?>
62
+ </small>)
63
+ <?php endif; ?>
64
+ <?php //echo $this->__('each') ?>
65
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 4)): ?>
66
+ <li><?php //echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
67
+ <?php if ($_weeeTaxAttributes): ?>
68
+ (<small>
69
+ <?php //echo $this->__('%1$s incl tax.', $_price['formated_price_incl_weee']); ?>
70
+ <?php $separator = ' + '; foreach ($_weeeTaxAttributes as $_attribute): ?>
71
+ <?php //echo $separator; ?>
72
+ <?php //echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()+$_attribute->getTaxAmount()); ?>
73
+ <?php endforeach; ?>
74
+ </small>)
75
+ <?php endif; ?>
76
+ <?php //echo $this->__('each') ?>
77
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 2)): ?>
78
+ <li><?php //echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price']); ?>
79
+ <?php if ($_weeeTaxAttributes): ?>
80
+ (<small>
81
+ <?php foreach ($_weeeTaxAttributes as $_attribute): ?>
82
+ <?php //echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
83
+ <?php endforeach; ?>
84
+ <?php echo $this->__('Total incl. Tax: %1$s', $_price['formated_price_incl_weee']); ?>
85
+ </small>)
86
+ <?php endif; ?>
87
+ <?php //echo $this->__('each') ?>
88
+ <?php else: ?>
89
+ <li><?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']) ?>
90
+ <?php endif; ?>
91
+ <?php else: ?>
92
+ <?php if ($this->helper('tax')->displayPriceIncludingTax()): ?>
93
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 0)): ?>
94
+ <li><?php //echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_weee']) ?>
95
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 1)): ?>
96
+ <li><?php //echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee']); ?>
97
+ <?php if ($_weeeTaxAttributes): ?>
98
+ (</small>
99
+ <?php $separator = ''; foreach ($_weeeTaxAttributes as $_attribute): ?>
100
+ <?php //echo $separator; ?>
101
+ <?php //echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
102
+ <?php $separator = ' + '; endforeach; ?>
103
+ <small>)
104
+ <?php endif; ?>
105
+ <?php //echo $this->__('each') ?>
106
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 4)): ?>
107
+ <li><?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()+$_attribute->getTaxAmount()); ?>
113
+ <?php $separator = ' + '; endforeach; ?>
114
+ <small>)
115
+ <?php endif; ?>
116
+ <?php echo $this->__('each') ?>
117
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 2)): ?>
118
+ <li><?php //echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_tax']); ?>
119
+ <?php if ($_weeeTaxAttributes): ?>
120
+ (<small>
121
+ <?php foreach ($_weeeTaxAttributes as $_attribute): ?>
122
+ <?php //echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
123
+ <?php endforeach; ?>
124
+ <?php echo $this->__('Total incl. Tax: %1$s', $_price['formated_price_incl_weee']); ?>
125
+ </small>)
126
+ <?php endif; ?>
127
+ <?php echo $this->__('each') ?>
128
+ <?php else: ?>
129
+ <li><?php //echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_tax']) ?>
130
+ <?php endif; ?>
131
+ <?php else: ?>
132
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, 0)): ?>
133
+ <li><?php //echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_weee_only']) ?>
134
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 1)): ?>
135
+ <li><?php //echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price_incl_weee_only']); ?>
136
+ <?php if ($_weeeTaxAttributes): ?>
137
+ (<small>
138
+ <?php $separator = ''; foreach ($_weeeTaxAttributes as $_attribute): ?>
139
+ <?php echo $separator; ?>
140
+ <?php //echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
141
+ <?php $separator = ' + '; endforeach; ?>
142
+ </small>)
143
+ <?php endif; ?>
144
+ <?php echo $this->__('each') ?>
145
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 4)): ?>
146
+ <li><?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()+$_attribute->getTaxAmount()); ?>
152
+ <?php $separator = ' + '; endforeach; ?>
153
+ </small>)
154
+ <?php endif; ?>
155
+ <?php echo $this->__('each') ?>
156
+ <?php elseif(Mage::helper('weee')->typeOfDisplay($_product, 2)): ?>
157
+ <li><?php //echo $this->__('Buy %1$s for %2$s', $_price['price_qty'], $_price['formated_price']); ?>
158
+ <?php if ($_weeeTaxAttributes): ?>
159
+ (<small>
160
+ <?php foreach ($_weeeTaxAttributes as $_attribute): ?>
161
+ <?php //echo $_attribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_attribute->getAmount()); ?>
162
+ <?php endforeach; ?>
163
+ <?php echo $this->__('Total incl. Tax: %1$s', $_price['formated_price_incl_weee_only']); ?>
164
+ </small>)
165
+ <?php endif; ?>
166
+ <?php echo $this->__('each') ?>
167
+ <?php else: ?>
168
+ <li style="width:30px; padding:0px; position:relative; bottom:3px; left:5px;"><?php //echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price']) ?>
169
+ <?php endif; ?>
170
+ <?php endif; ?>
171
+ <?php endif; ?>
172
+ <?php if (!$this->getInGrouped()): ?>
173
+ <?php if(($_product->getPrice() == $_product->getFinalPrice() && $_product->getPrice() > $_price['price'])
174
+ || ($_product->getPrice() != $_product->getFinalPrice() && $_product->getFinalPrice() > $_price['price'])): ?>
175
+ <?php //echo $this->__('and') ?>&nbsp;
176
+ <?php echo $_price['savePercent']?>%<br /><?php echo $this->__('save')?>
177
+ <?php endif ?>
178
+ <?php endif; ?>
179
+ </li>
180
+ <?php endforeach ?>
181
+ </ul>
182
+ <?php endif;?>
app/design/frontend/default/estore/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) 2010 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/default/estore/template/catalog/product/view/type/default.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) 2010 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 ($_product->isAvailable()): ?>
31
+ <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
32
+ <?php else: ?>
33
+ <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
34
+ <?php endif; ?>
35
+ <?php echo $this->getChildHtml('product_type_data_extra') ?>
36
+ <?php echo $this->getPriceHtml($_product) ?>
app/design/frontend/default/estore/template/catalog/product/view/type/grouped.phtml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 ($_product->isAvailable() && $_hasAssociatedProducts): ?>
39
+ <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
40
+ <?php else: ?>
41
+ <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
42
+ <?php endif; ?>
43
+ <?php echo $this->getChildHtml('product_type_data_extra') ?>
44
+ <table class="data-table grouped-items-table" id="super-product-table">
45
+ <col />
46
+ <col />
47
+ <col width="1" />
48
+ <thead>
49
+ <tr>
50
+ <th><?php echo $this->__('Product Name') ?></th>
51
+ <?php if ($this->getCanShowProductPrice($_product)): ?>
52
+ <th class="a-right"><?php echo $this->__('Price') ?></th>
53
+ <?php endif; ?>
54
+ <?php if ($_product->isSaleable()): ?>
55
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
56
+ <?php endif; ?>
57
+ </tr>
58
+ </thead>
59
+ <tbody>
60
+ <?php if ($_hasAssociatedProducts): ?>
61
+ <?php foreach ($_associatedProducts as $_item): ?>
62
+ <?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_item, $_item->getFinalPrice(), true) ?>
63
+ <tr>
64
+ <td><?php echo $this->htmlEscape($_item->getName()) ?></td>
65
+ <?php if ($this->getCanShowProductPrice($_product)): ?>
66
+ <td class="a-right">
67
+ <?php if ($this->getCanShowProductPrice($_item)): ?>
68
+ <?php echo $this->getPriceHtml($_item, true) ?>
69
+ <?php echo $this->getTierPriceHtml($_item) ?>
70
+ <?php endif; ?>
71
+ </td>
72
+ <?php endif; ?>
73
+ <?php if ($_product->isSaleable()): ?>
74
+ <td class="a-center">
75
+ <?php if ($_item->isSaleable()) : ?>
76
+ <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" />
77
+ <?php else: ?>
78
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
79
+ <?php endif; ?>
80
+ </td>
81
+ <?php endif; ?>
82
+ </tr>
83
+ <?php endforeach; ?>
84
+ <?php else: ?>
85
+ <tr>
86
+ <td colspan="<?php if ($_product->isSaleable()): ?>4<?php else : ?>3<?php endif; ?>"><?php echo $this->__('No options of this product are available.') ?></td>
87
+ </tr>
88
+ <?php endif; ?>
89
+ </tbody>
90
+ </table>
91
+ <script type="text/javascript">decorateTable('super-product-table')</script>
app/design/frontend/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/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) 2010 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->htmlEscape($this->getAnchorText()) ?></span></a></span>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($this->getAnchorText()) ?></span></a></span>
app/design/frontend/default/estore/template/catalog/product/widget/new/column/new_default_list.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) 2010 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 $suffix = $this->getNameInLayout(); ?>
35
+ <ol class="mini-products-list" id="widget-new-products-<?php echo $suffix; ?>">
36
+ <?php foreach ($_products->getItems() as $_product): ?>
37
+ <li class="item">
38
+ <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>
39
+ <div class="product-details">
40
+ <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>
41
+ <?php echo $this->getPriceHtml($_product, true, '-widget-new-'.$suffix) ?>
42
+ <?php if ($_product->getIsSalable()): ?>
43
+ <a href="<?php echo $this->getAddToCartUrl($_product) ?>" class="link-cart"><?php echo $this->__('Add to Cart') ?></a>
44
+ <?php else: ?>
45
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
46
+ <?php endif; ?>
47
+ </div>
48
+ </li>
49
+ <?php endforeach; ?>
50
+ </ol>
51
+ <script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ <?php endif; ?>
app/design/frontend/default/estore/template/catalog/product/widget/new/column/new_images_list.phtml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 $suffix = $this->getNameInLayout(); ?>
35
+ <ol class="mini-products-images-list" id="widget-new-products-<?php echo $suffix; ?>">
36
+ <?php foreach ($_products->getItems() as $_product): ?>
37
+ <li class="item">
38
+ <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>
39
+ </li>
40
+ <?php endforeach; ?>
41
+ </ol>
42
+ <script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ <?php endif; ?>
app/design/frontend/default/estore/template/catalog/product/widget/new/column/new_names_list.phtml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 $suffix = $this->getNameInLayout(); ?>
35
+ <ol id="widget-new-products-<?php echo $suffix; ?>">
36
+ <?php foreach ($_products->getItems() as $_product): ?>
37
+ <li class="item">
38
+ <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>
39
+ </li>
40
+ <?php endforeach; ?>
41
+ </ol>
42
+ <script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ <?php endif; ?>
app/design/frontend/default/estore/template/catalog/product/widget/new/content/new_grid.phtml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 $_columnCount = $this->getColumnCount(); ?>
34
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
35
+ <?php if ($i++%$_columnCount==0): ?>
36
+ <ul class="products-grid">
37
+ <?php endif ?>
38
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
39
+ <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>
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-grid') ?>
43
+ <div class="actions">
44
+ <?php if ($_product->isSaleable()): ?>
45
+ <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>
46
+ <?php else: ?>
47
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
48
+ <?php endif; ?>
49
+ <ul class="add-to-links">
50
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
51
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
52
+ <?php endif; ?>
53
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
54
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
55
+ <?php endif; ?>
56
+ </ul>
57
+ </div>
58
+ </li>
59
+ <?php if ($i%$_columnCount==0 || $i==count($_products)): ?>
60
+ </ul>
61
+ <?php endif ?>
62
+ <?php endforeach; ?>
63
+ </div>
64
+ </div>
65
+ <?php endif; ?>
app/design/frontend/default/estore/template/catalog/product/widget/new/content/new_list.phtml ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <ol class="products-list">
34
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
35
+ <li class="item<?php echo (++$i == count($_products))?' last':''; ?>">
36
+ <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>
37
+ <div class="product-shop">
38
+ <div class="f-fix">
39
+ <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>
40
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
41
+ <?php echo $this->getPriceHtml($_product, true, '-widget-new-list') ?>
42
+ <?php if ($_product->isSaleable()): ?>
43
+ <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>
44
+ <?php else: ?>
45
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
46
+ <?php endif; ?>
47
+ <ul class="add-to-links">
48
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
49
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
50
+ <?php endif; ?>
51
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
52
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
53
+ <?php endif; ?>
54
+ </ul>
55
+ </div>
56
+ </div>
57
+ </li>
58
+ <?php endforeach; ?>
59
+ </ol>
60
+ </div>
61
+ </div>
62
+ <?php endif; ?>
app/design/frontend/default/estore/template/catalog/rss/product/price.phtml ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 $_product = $this->getProduct() ?>
37
+ <?php $_id = $_product->getId() ?>
38
+ <?php if ($_product->getCanShowPrice() !== false):?>
39
+
40
+ <?php $_weeeSeparator = ''; ?>
41
+
42
+ <?php $simplePricesTax = ($this->helper('tax')->displayPriceIncludingTax() || $this->helper('tax')->displayBothPrices()); ?>
43
+
44
+ <?php $_minimalPriceValue = $_product->getMinimalPrice() ?>
45
+ <?php $_minimalPrice = $this->helper('tax')->getPrice($_product, $_minimalPriceValue, $simplePricesTax) ?>
46
+
47
+ <?php if (!$_product->isGrouped()): ?>
48
+ <?php $_weeeTaxAmount = Mage::helper('weee')->getAmountForDisplay($_product); ?>
49
+ <?php if (Mage::helper('weee')->typeOfDisplay($_product, array(1,2,4))): ?>
50
+ <?php $_weeeTaxAmount = Mage::helper('weee')->getAmount($_product); ?>
51
+ <?php $_weeeTaxAttributes = Mage::helper('weee')->getProductWeeeAttributesForDisplay($_product); ?>
52
+ <?php endif; ?>
53
+
54
+ <div class="price-box">
55
+ <?php $_price = $this->helper('tax')->getPrice($_product, $_product->getPrice()) ?>
56
+ <?php $_regularPrice = $this->helper('tax')->getPrice($_product, $_product->getPrice(), $simplePricesTax) ?>
57
+ <?php $_finalPrice = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice()) ?>
58
+ <?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(), true) ?>
59
+ <?php $_weeeDisplayType = Mage::helper('weee')->getPriceDisplayType(); ?>
60
+ <?php if ($_finalPrice == $_price): ?>
61
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
62
+ <?php if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 0)): // including ?>
63
+ <span class="price-excluding-tax">
64
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
65
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price+$_weeeTaxAmount,true,false) ?></span>
66
+ </span>
67
+ <span class="price-including-tax">
68
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
69
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?></span>
70
+ </span>
71
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 1)): // incl. + weee ?>
72
+ <span class="price-excluding-tax">
73
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
74
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price+$_weeeTaxAmount,true,false) ?></span>
75
+ </span>
76
+ <span class="price-including-tax">
77
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
78
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?></span>
79
+ <br />
80
+ <span class="weee">(<small>
81
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
82
+ <?php echo $_weeeSeparator; ?>
83
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
84
+ <?php $_weeeSeparator = ' + '; ?>
85
+ <?php endforeach; ?>
86
+ </small>)</span>
87
+ </span>
88
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 4)): // incl. + weee ?>
89
+ <span class="price-excluding-tax">
90
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
91
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price+$_weeeTaxAmount,true,false) ?></span>
92
+ </span>
93
+ <span class="price-including-tax">
94
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
95
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?></span>
96
+ <br />
97
+ <span class="weee">(<small>
98
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
99
+ <?php echo $_weeeSeparator; ?>
100
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(), true, true); ?>
101
+ <?php $_weeeSeparator = ' + '; ?>
102
+ <?php endforeach; ?>
103
+ </small>)</span>
104
+ </span>
105
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
106
+ <span class="price-excluding-tax">
107
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
108
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price,true,false) ?></span>
109
+ </span>
110
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
111
+ <span class="weee">
112
+ <small>
113
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
114
+ </small>
115
+ </span>
116
+ <br />
117
+ <?php endforeach; ?>
118
+ <span class="price-including-tax">
119
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
120
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?></span>
121
+ </span>
122
+ <?php else: ?>
123
+ <span class="price-excluding-tax">
124
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
125
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price,true,false) ?></span>
126
+ </span>
127
+ <span class="price-including-tax">
128
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
129
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax,true,false) ?></span>
130
+ </span>
131
+ <?php endif; ?>
132
+ <?php else: ?>
133
+ <?php if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 0)): // including ?>
134
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price+$_weeeTaxAmount,true,true) ?></span>
135
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 1)): // incl. + weee ?>
136
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price+$_weeeTaxAmount,true,true) ?></span>
137
+ <br />
138
+ <span class="weee">(<small>
139
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
140
+ <?php echo $_weeeSeparator; ?>
141
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
142
+ <?php $_weeeSeparator = ' + '; ?>
143
+ <?php endforeach; ?>
144
+ </small>)</span>
145
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 4)): // incl. + weee ?>
146
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price+$_weeeTaxAmount,true,true) ?></span>
147
+ <br />
148
+ <span class="weee">(<small>
149
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
150
+ <?php echo $_weeeSeparator; ?>
151
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(), true, true); ?>
152
+ <?php $_weeeSeparator = ' + '; ?>
153
+ <?php endforeach; ?>
154
+ </small>)</span>
155
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
156
+ <span class="regular-price"><?php echo Mage::helper('core')->currency($_price,true,true) ?></span><br />
157
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
158
+ <span class="weee">
159
+ <small>
160
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
161
+ </small>
162
+ </span>
163
+ <br />
164
+ <?php endforeach; ?>
165
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price+$_weeeTaxAmount,true,true) ?></span>
166
+ <?php else: ?>
167
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price,true,true) ?></span>
168
+ <?php endif; ?>
169
+ <?php endif; ?>
170
+ <?php else: /* if ($_finalPrice == $_price): */ ?>
171
+ <?php $_originalWeeeTaxAmount = Mage::helper('weee')->getOriginalAmount($_product); ?>
172
+
173
+ <?php if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 0)): // including ?>
174
+ <p class="old-price">
175
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
176
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice+$_originalWeeeTaxAmount,true,false) ?></span>
177
+ </p>
178
+
179
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
180
+ <p class="special-price">
181
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
182
+ <span class="price-excluding-tax">
183
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
184
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice+$_weeeTaxAmount,true,false) ?></span>
185
+ </span>
186
+ <span class="price-including-tax">
187
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
188
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?></span>
189
+ </span>
190
+ </p>
191
+ <?php else: ?>
192
+ <p class="special-price">
193
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
194
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice+$_weeeTaxAmount,true,false) ?></span>
195
+ </p>
196
+ <?php endif; ?>
197
+
198
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 1)): // incl. + weee ?>
199
+ <p class="old-price">
200
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
201
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice+$_originalWeeeTaxAmount,true,false) ?></span>
202
+ </p>
203
+
204
+ <p class="special-price">
205
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
206
+ <span class="price-excluding-tax">
207
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
208
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice+$_weeeTaxAmount,true,false) ?></span>
209
+ </span>
210
+ <br />
211
+ <span class="weee">(<small>
212
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
213
+ <?php echo $_weeeSeparator; ?>
214
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
215
+ <?php $_weeeSeparator = ' + '; ?>
216
+ <?php endforeach; ?>
217
+ </small>)</span>
218
+ <span class="price-including-tax">
219
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
220
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?></span>
221
+ </span>
222
+ </p>
223
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 4)): // incl. + weee ?>
224
+ <p class="old-price">
225
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
226
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice+$_originalWeeeTaxAmount,true,false) ?></span>
227
+ </p>
228
+
229
+ <p class="special-price">
230
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
231
+ <span class="price-excluding-tax">
232
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
233
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice+$_weeeTaxAmount,true,false) ?></span>
234
+ </span>
235
+ <br />
236
+ <span class="weee">(<small>
237
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
238
+ <?php echo $_weeeSeparator; ?>
239
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount()+$_weeeTaxAttribute->getTaxAmount(), true, true); ?>
240
+ <?php $_weeeSeparator = ' + '; ?>
241
+ <?php endforeach; ?>
242
+ </small>)</span>
243
+ <span class="price-including-tax">
244
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
245
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?></span>
246
+ </span>
247
+ </p>
248
+ <?php elseif ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
249
+ <p class="old-price">
250
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
251
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice,true,false) ?></span>
252
+ </p>
253
+
254
+ <p class="special-price">
255
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
256
+ <span class="price-excluding-tax">
257
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
258
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice,true,false) ?></span>
259
+ </span>
260
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
261
+ <span class="weee">
262
+ <small>
263
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo Mage::helper('core')->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
264
+ </small>
265
+ </span>
266
+ <br />
267
+ <?php endforeach; ?>
268
+ <span class="price-including-tax">
269
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
270
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?></span>
271
+ </span>
272
+ </p>
273
+ <?php else: // excl. ?>
274
+ <p class="old-price">
275
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
276
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice,true,false) ?></span>
277
+ </p>
278
+
279
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
280
+ <p class="special-price">
281
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
282
+ <span class="price-excluding-tax">
283
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
284
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice,true,false) ?></span>
285
+ </span>
286
+ <span class="price-including-tax">
287
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
288
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax,true,false) ?></span>
289
+ </span>
290
+ </p>
291
+ <?php else: ?>
292
+ <p class="special-price">
293
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
294
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice,true,false) ?></span>
295
+ </p>
296
+ <?php endif; ?>
297
+ <?php endif; ?>
298
+
299
+ <?php endif; /* if ($_finalPrice == $_price): */ ?>
300
+
301
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_product->getFinalPrice()): ?>
302
+
303
+ <?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
304
+ <?php if ($_weeeTaxAmount && Mage::helper('weee')->typeOfDisplay($_product, array(0, 1, 4))): ?>
305
+ <?php $_minimalPriceDisplayValue = $_minimalPrice+$_weeeTaxAmount; ?>
306
+ <?php endif; ?>
307
+
308
+ <?php if ($this->getUseLinkForAsLowAs()):?>
309
+ <a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
310
+ <?php else:?>
311
+ <span class="minimal-price-link">
312
+ <?php endif?>
313
+ <span class="label"><?php echo $this->__('As low as:') ?></span>
314
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_minimalPriceDisplayValue,true,false) ?></span>
315
+ <?php if ($this->getUseLinkForAsLowAs()):?>
316
+ </a>
317
+ <?php else:?>
318
+ </span>
319
+ <?php endif?>
320
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
321
+ </div>
322
+
323
+ <?php else: /* if (!$_product->isGrouped()): */ ?>
324
+ <?php
325
+ $_exclTax = $this->helper('tax')->getPrice($_product, $_minimalPriceValue, $includingTax = null);
326
+ $_inclTax = $this->helper('tax')->getPrice($_product, $_minimalPriceValue, $includingTax = true);
327
+ ?>
328
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue): ?>
329
+ <div class="price-box">
330
+ <p class="minimal-price">
331
+ <span class="price-label"><?php echo $this->__('Starting at:') ?></span>
332
+ <?php if ($this->helper('tax')->displayBothPrices()): ?>
333
+ <span class="price-excluding-tax">
334
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
335
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_exclTax, true, false) ?></span>
336
+ </span>
337
+ <span class="price-including-tax">
338
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
339
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_inclTax, true, false) ?></span>
340
+ </span>
341
+ <?php else: ?>
342
+ <?php
343
+ $_showPrice = $_inclTax;
344
+ if (!$this->helper('tax')->displayPriceIncludingTax()) {
345
+ $_showPrice = $_exclTax;
346
+ }
347
+ ?>
348
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_showPrice, true, false) ?></span>
349
+ <?php endif; ?>
350
+ </p>
351
+ </div>
352
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
353
+ <?php endif; /* if (!$_product->isGrouped()): */ ?>
354
+ <?php else: ?>
355
+ <?php //echo $this->helper('catalog')->__('Price is not available');?>
356
+ <?php endif; /* if (!$_product->getCanShowPrice()): */?>
app/design/frontend/default/estore/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) 2010 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 $_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/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/template/cataloginventory/stockqty/composite.phtml ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <a href="#" id="<?php echo $this->getPlaceholderId() ?>" class="stock-qty">
33
+ <?php echo $this->__('Only %s left', $this->getStockQty()) ?>
34
+ </a>
35
+ <table id="<?php echo $this->getDetailsPlaceholderId() ?>" class="stock-qty-details no-display">
36
+ <thead>
37
+ <tr>
38
+ <th><?php echo $this->__('Product Name') ?></th>
39
+ <th><?php echo $this->__('Qty') ?></th>
40
+ </tr>
41
+ </thead>
42
+ <tbody>
43
+ <?php foreach ($this->getChildProducts() as $childProduct) : ?>
44
+ <?php $childProductStockQty = $this->getProductStockQty($childProduct); ?>
45
+ <?php if ($childProductStockQty > 0) : ?>
46
+ <tr>
47
+ <td><?php echo $childProduct->getName() ?></td>
48
+ <td><?php echo $childProductStockQty ?></td>
49
+ </tr>
50
+ <?php endif ?>
51
+ <?php endforeach ?>
52
+ </tbody>
53
+ </table>
54
+ <script type="text/javascript">
55
+ //<![CDATA[
56
+ $('<?php echo $this->getPlaceholderId() ?>').observe('click', function(event){
57
+ $('<?php echo $this->getDetailsPlaceholderId() ?>').toggleClassName('no-display');
58
+ event.stop();
59
+ });
60
+ //]]>
61
+ </script>
62
+ <?php endif; ?>
app/design/frontend/default/estore/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) 2010 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
+ <span class="stock-qty">
33
+ <?php echo $this->__('Only %s left', $this->getStockQty()) ?>
34
+ </span>
35
+ <?php endif ?>
app/design/frontend/default/estore/template/catalogsearch/advanced/form.phtml ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <div class="page-title">
35
+ <h1><?php echo $this->__('Catalog Advanced Search') ?></h1>
36
+ </div>
37
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
38
+ <form action="<?php echo $this->getSearchPostUrl() ?>" method="get" id="form-validate">
39
+ <div class="fieldset advanced-search">
40
+ <h2 class="legend"><?php echo $this->__('Search Settings') ?></h2>
41
+ <ul class="form-list" id="advanced-search-list">
42
+ <?php foreach ($this->getSearchableAttributes() as $_attribute): ?>
43
+ <?php $_code = $_attribute->getAttributeCode() ?>
44
+ <li>
45
+ <label for="<?php echo $_code ?>"><?php echo $this->getAttributeLabel($_attribute) ?></label>
46
+ <?php switch($this->getAttributeInputType($_attribute)):
47
+ case 'number': ?>
48
+ <div class="input-range">
49
+ <input type="text" name="<?php echo $_code ?>[from]" value="<?php echo $this->htmlEscape($this->getAttributeValue($_attribute, 'from')) ?>" id="<?php echo $_code ?>" title="<?php echo $this->htmlEscape($this->getAttributeLabel($_attribute)) ?>" class="input-text validate-number" />
50
+ <span class="separator">-</span>
51
+ <input type="text" name="<?php echo $_code ?>[to]" value="<?php echo $this->htmlEscape($this->getAttributeValue($_attribute, 'to')) ?>" id="<?php echo $_code ?>_to" title="<?php echo $this->htmlEscape($this->getAttributeLabel($_attribute)) ?>" class="input-text validate-number" />
52
+ </div>
53
+ <?php break;
54
+ case 'price': ?>
55
+ <div class="input-range">
56
+ <input name="<?php echo $_code ?>[from]" value="<?php echo $this->htmlEscape($this->getAttributeValue($_attribute, 'from')) ?>" id="<?php echo $_code ?>" title="<?php echo $this->htmlEscape($this->getAttributeLabel($_attribute)) ?>" class="input-text validate-number" type="text" />
57
+ <span class="separator">-</span>
58
+ <input name="<?php echo $_code ?>[to]" value="<?php echo $this->htmlEscape($this->getAttributeValue($_attribute, 'to')) ?>" id="<?php echo $_code ?>_to" title="<?php echo $this->htmlEscape($this->getAttributeLabel($_attribute)) ?>" class="input-text validate-number" type="text" />
59
+ <small>(<?php echo $this->getCurrency($_attribute); ?>)</small>
60
+ </div>
61
+ <?php break;
62
+ case 'select': ?>
63
+ <div class="input-box">
64
+ <?php echo $this->getAttributeSelectElement($_attribute) ?>
65
+ </div>
66
+ <?php break;
67
+ case 'yesno': ?>
68
+ <?php echo $this->getAttributeYesNoElement($_attribute) ?>
69
+ <?php break;
70
+ case 'date': ?>
71
+ <div class="input-range">
72
+ <?php echo $this->getDateInput($_attribute, 'from') ?>
73
+ <span class="separator">-</span>
74
+ <?php echo $this->getDateInput($_attribute, 'to') ?>
75
+ </div>
76
+ <?php break;
77
+ default: ?>
78
+ <div class="input-box">
79
+ <input type="text" name="<?php echo $_code ?>" id="<?php echo $_code ?>" value="<?php echo $this->htmlEscape($this->getAttributeValue($_attribute)) ?>" title="<?php echo $this->htmlEscape($this->getAttributeLabel($_attribute)) ?>" class="input-text <?php echo $this->getAttributeValidationClass($_attribute) ?>" />
80
+ </div>
81
+ <?php endswitch; ?>
82
+ </li>
83
+ <?php endforeach; ?>
84
+ </ul>
85
+ <script type="text/javascript">decorateList('advanced-search-list')</script>
86
+ </div>
87
+ <div class="buttons-set">
88
+ <button type="submit" title="<?php echo $this->__('Search') ?>" class="button"><span><span><?php echo $this->__('Search') ?></span></span></button>
89
+ </div>
90
+ </form>
91
+ <script type="text/javascript">
92
+ //<![CDATA[
93
+ var dataForm = new VarienForm('form-validate', true);
94
+ //]]>
95
+ </script>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($this->helper('catalog')->__($criteria['name'])); ?>:</strong> <?php echo $this->htmlEscape($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/default/estore/template/catalogsearch/form.mini.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) 2010 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="search_mini_form" action="<?php echo $this->helper('catalogsearch')->getResultUrl() ?>" method="get">
28
+ <div class="form-search">
29
+ <label for="search"><?php //echo $this->__('Search:') ?></label>
30
+ <input id="search" type="text" name="<?php echo $this->helper('catalogsearch')->getQueryParamName() ?>" onblur="if(this.value == '') { this.value = '<?php echo $this->helper('catalogsearch')->getEscapedQueryText() ?>'; }" onfocus="if(this.value == '<?php echo $this->helper('catalogsearch')->getEscapedQueryText() ?>') { this.value = ''; }" value="<?php echo $this->helper('catalogsearch')->getEscapedQueryText() ?>" class="bar" />
31
+ <button type="submit" style="background:none; border:0px; float:left; cursor:pointer; width:72px;" title="<?php //echo $this->__('Search') ?>"> <a href="#" class="go cufontxt seccolr upper">Search</a></button>
32
+ <div id="search_autocomplete" class="search-autocomplete"></div>
33
+ <script type="text/javascript">
34
+ //<![CDATA[
35
+ var searchForm = new Varien.searchForm('search_mini_form', 'search', '<?php echo $this->__('Search entire store here...') ?>');
36
+ searchForm.initAutocomplete('<?php echo $this->helper('catalogsearch')->getSuggestUrl() ?>', 'search_autocomplete');
37
+ //]]>
38
+ </script>
39
+ </div>
40
+ </form>
app/design/frontend/default/estore/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) 2010 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/default/estore/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) 2010 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->htmlEscape($_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/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/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) 2010 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/default/estore/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) 2010 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.gif'); ?>" 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.gif'); ?>" alt="<?php echo $this->__('MasterCard SecureCode') ?>" /></a>
32
+ </div>
33
+ </li>
app/design/frontend/default/estore/template/checkout/cart.phtml ADDED
@@ -0,0 +1,287 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="col3">
35
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
36
+
37
+ <h4 class="white bold longhead upper"><?php echo $this->__('My Shopping cart') ?></h4>
38
+ <?php echo $this->getChildHtml('form_before') ?>
39
+ <form action="<?php echo $this->getUrl('checkout/cart/updatePost') ?>" method="post">
40
+ <div class="shoppingcart" id="shopping-cart-table" >
41
+ <div class="carttable">
42
+ <ul class="head black">
43
+ <li class="imag"><?php echo $this->__('Product Image') ?></li>
44
+ <li class="p_name"><?php echo $this->__('Product Name') ?></li>
45
+ <li class="u_price"><?php echo $this->__('Unit Price') ?></li>
46
+ <li class="qty"><?php echo $this->__('Qty') ?></li>
47
+ <li class="s_total"><?php echo $this->__('Subtotal') ?></li>
48
+ <li class="remove">Remove</li>
49
+ </ul>
50
+ <?php
51
+ $counter=1;
52
+ ?>
53
+
54
+ <?php foreach($this->getItems() as $_item): ?>
55
+ <?php if($counter%2==0):?>
56
+ <ul class="cartcontents grey">
57
+ <?php echo $this->getItemHtml($_item) ?>
58
+ </ul>
59
+ <?php else:?>
60
+ <ul class="cartcontents">
61
+ <?php echo $this->getItemHtml($_item) ?>
62
+ </ul>
63
+ <?php endif?>
64
+ <?php
65
+ $counter++;
66
+ endforeach ?>
67
+
68
+
69
+ </div>
70
+ <div class="buttonssec">
71
+
72
+ <?php if($this->getContinueShoppingUrl()): ?>
73
+ <button type="button" title="<?php echo $this->__('Continue Shopping') ?>" class="continue left cufontxt upper colr" onclick="setLocation('<?php echo $this->getContinueShoppingUrl() ?>')"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
74
+ <?php endif; ?>
75
+
76
+ <button type="submit" title="<?php echo $this->__('Update Shopping Cart') ?>" class="buttonone right"><span><span><?php echo $this->__('Update Shopping Cart') ?></span></span></button>
77
+
78
+ </div>
79
+ <div class="clear"></div>
80
+
81
+ <?php if (!$this->getIsVirtual()): echo $this->getChildHtml('shipping'); endif; ?>
82
+
83
+ <?php echo $this->getChildHtml('coupon') ?>
84
+ <div class="grandtotal">
85
+ <?php echo $this->getChildHtml('totals'); ?>
86
+ <?php if(!$this->hasError()): ?>
87
+ <?php foreach ($this->getMethods('methods') as $method): ?>
88
+ <?php if ($methodHtml = $this->getMethodHtml($method)): ?>
89
+ <?php echo $methodHtml; ?>
90
+ <?php endif; ?>
91
+ <?php endforeach; ?>
92
+
93
+ <?php endif; ?>
94
+
95
+ </div>
96
+ <div class="clear"></div>
97
+
98
+ <!-- Related products block START -->
99
+
100
+ <!-- Related products block END -->
101
+
102
+
103
+
104
+
105
+ <!-- Related Items -->
106
+ <!--<div class="relateditems">
107
+ <h6 class="bold upper white relhead">Based on your selection, you may be interested in the following items.</h6>
108
+ <ul>
109
+ <li>
110
+ <a href="detail.html" class="thumb"><span class="save bold cufontxt upper">10%<br />Save</span>
111
+ <img src="<?php echo $this->getSkinUrl('images/prod4.gif') ?>" alt="" /></a>
112
+ <a href="detail.html" class="title">Lorum Ipsum Dolor Summit</a>
113
+ <div class="clear"></div>
114
+ <p class="newprice colr">$312.40</p>
115
+ <p class="oldprice">$422.40</p>
116
+ <div class="btns">
117
+ <a href="cart.html" class="buynow cufontxt upper colr">BUY Now</a>
118
+ <a href="#" class="wish">Add to Wishlist</a>
119
+ </div>
120
+ </li>
121
+ <li>
122
+ <a href="detail.html" class="thumb"><span class="save bold cufontxt upper">20%<br />Save</span>
123
+ <img src="<?php echo $this->getSkinUrl('images/prod5.gif') ?>" alt="" /></a>
124
+ <a href="detail.html" class="title">Lorum Ipsum Dolor Summit</a>
125
+ <div class="clear"></div>
126
+ <p class="newprice colr">$312.40</p>
127
+ <p class="oldprice">$422.40</p>
128
+ <div class="btns">
129
+ <a href="cart.html" class="buynow cufontxt upper colr">BUY Now</a>
130
+ <a href="#" class="wish">Add to Wishlist</a>
131
+ </div>
132
+ </li>
133
+ <li>
134
+ <a href="detail.html" class="thumb"><span class="save bold cufontxt upper">30%<br />Save</span>
135
+ <img src="<?php echo $this->getSkinUrl('images/prod6.gif') ?>" alt="" /></a>
136
+ <a href="detail.html" class="title">Lorum Ipsum Dolor Summit</a>
137
+ <div class="clear"></div>
138
+ <p class="newprice colr">$312.40</p>
139
+ <p class="oldprice">$422.40</p>
140
+ <div class="btns">
141
+ <a href="cart.html" class="buynow cufontxt upper colr">BUY Now</a>
142
+ <a href="#" class="wish">Add to Wishlist</a>
143
+ </div>
144
+ </li>
145
+ <li>
146
+ <a href="detail.html" class="thumb"><span class="save bold cufontxt upper">10%<br />Save</span>
147
+ <img src="<?php echo $this->getSkinUrl('images/prod7.gif') ?>" alt="" /></a>
148
+ <a href="detail.html" class="title">Lorum Ipsum Dolor Summit</a>
149
+ <div class="clear"></div>
150
+ <p class="newprice colr">$312.40</p>
151
+ <p class="oldprice">$422.40</p>
152
+ <div class="btns">
153
+ <a href="cart.html" class="buynow cufontxt upper colr">BUY Now</a>
154
+ <a href="#" class="wish">Add to Wishlist</a>
155
+ </div>
156
+ </li>
157
+ <li class="last">
158
+ <a href="detail.html" class="thumb"><span class="save bold cufontxt upper">50%<br />Save</span>
159
+ <img src="<?php echo $this->getSkinUrl('images/prod8.gif') ?>" alt="" /></a>
160
+ <a href="detail.html" class="title">Lorum Ipsum Dolor Summit</a>
161
+ <div class="clear"></div>
162
+ <p class="newprice colr">$312.40</p>
163
+ <p class="oldprice">$422.40</p>
164
+ <div class="btns">
165
+ <a href="cart.html" class="buynow cufontxt upper colr">BUY Now</a>
166
+ <a href="#" class="wish">Add to Wishlist</a>
167
+ </div>
168
+ </li>
169
+ </ul>
170
+ <div class="clear"></div>
171
+ </div>-->
172
+ <div class="clear"></div>
173
+ </div>
174
+
175
+ <script type="text/javascript">decorateTable('shopping-cart-table')</script>
176
+
177
+ </form>
178
+ </div>
179
+ <?php
180
+ $array_added_product = array();
181
+ $total_product= "";
182
+ $last_product= "";
183
+ ?>
184
+ <?php foreach($this->getItems() as $_item):
185
+ $array_added_product[]=$_item->getProductId();?>
186
+ <?php endforeach ?>
187
+ <?php
188
+ //print_r($array_added_product);
189
+ $total_product=sizeof($array_added_product);
190
+ //echo "<br>".$total_product;
191
+ if($total_product > 0){
192
+ $last_product=$array_added_product[($total_product-1)];
193
+ }
194
+ ?>
195
+
196
+
197
+ <?php
198
+ $nProducts = $total_product;
199
+ $_product = Mage::getModel('catalog/product')->load($total_product-1);
200
+ $ids = array();
201
+ ?>
202
+
203
+ <div class="relateditems">
204
+ <h6 class="bold upper white relhead">Based on your selection, you may be interested in the following items.</h6>
205
+ <?php
206
+ while ((count($ids) < 5) && ($nProducts > 0)){
207
+ $nProducts --;
208
+ $last_product=$array_added_product[($nProducts)];
209
+ $_product1 = Mage::getModel('catalog/product')->load($last_product);
210
+ if (!$_product1->hasRelatedProductIds()) {
211
+ foreach ($_product1->getRelatedProducts() as $product) {
212
+ if (count($ids) < 5) $ids[] = $product->getId();
213
+ else break;
214
+ }
215
+ $_product->setRelatedProductIds($ids);
216
+ }
217
+ }
218
+ ?>
219
+ <?php $product_per_row=5; //how many product show in a row ?>
220
+ <ul><?php
221
+ $product_counter=0;
222
+ foreach ($_product->getData('related_product_ids') as $r_productid) {
223
+ $_product = Mage::getModel('catalog/product')->load($r_productid);
224
+
225
+ ?>
226
+
227
+ <?php if(($product_counter%$product_per_row)==0){ ?>
228
+ <?php } ?>
229
+ <li> <a href="<?php echo $_product->getProductUrl() ?>" class="thumb">
230
+
231
+ <?php $this->setProduct(Mage::getModel('catalog/product')->setStoreId(Mage::app()->getStore()->getId())->load($_product->getId()))?>
232
+ <?php $prices=$this->getTierPriceHtml(); ?>
233
+ <?php
234
+ if($prices==''):
235
+ ?>
236
+ <span style="padding-top:5px;" class="save bold cufontxt upper">10% <br />save </span>
237
+ <?php endif;?>
238
+ <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(163,186); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
239
+ <?php /*?>
240
+ <img src="<? echo Mage::helper('catalog/image')->init($_product, 'thumbnail')->resize(50, 50); ?>" alt="<?php //echo $this->htmlEscape($_product['name']); ?>" border="0" width="50" />
241
+ <?php */?> </a>
242
+ <a href="<?php echo $_product->getProductUrl() ?>" class="title"><?php
243
+ if (strlen($this->helper('catalog/output')->productAttribute($_product, $_product->getName(), 'name')) > 32) {echo substr($this->helper('catalog/output')->productAttribute($_product, $_product->getName(), 'name'),0,32)."...";}
244
+ else echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName(), 'name');
245
+ ?></a>
246
+ <div class="clear"></div>
247
+ <p class="newprice colr"><?php $final_price= (float) $_product->getFinalPrice();
248
+ $final_price= number_format($final_price,2);
249
+ ?>
250
+ <?php echo "$". $final_price; ?></p>
251
+ <p class="oldprice"><?php $price_mine= (float) $_product->getPrice();
252
+ $price_mine= number_format($price_mine,2);
253
+ ?>
254
+ <?php echo "$". $price_mine; ?>
255
+ </p>
256
+
257
+ <div class="btns">
258
+ <a href="<?php echo $this->getAddToCartUrl($product) ?>" class="buynow cufontxt upper colr">BUY Now</a>
259
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
260
+ <a href="<?php //echo $this->getAddToWishlistUrl() ?>" class="wish">Add to Wishlist</a>
261
+ </div>
262
+ <?php endif; ?>
263
+ </li>
264
+
265
+
266
+ <?php
267
+ $product_counter++;
268
+ if(($product_counter%$product_per_row)==0){
269
+ ?>
270
+
271
+ <?php } ?>
272
+ <?php }
273
+ ?>
274
+
275
+
276
+
277
+ <div class="clear"></div>
278
+
279
+ </ul></div>
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
app/design/frontend/default/estore/template/checkout/cart/coupon.phtml ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+
29
+ <div class="discount">
30
+ <h4 class="seccolr upper"><?php echo $this->__('Discount Codes') ?></h4>
31
+ <p><?php echo $this->__('Enter your coupon code if you have one.') ?></p>
32
+ <div class="clear"></div>
33
+ <input type="hidden" name="remove" id="remove-coupone" value="0" />
34
+ <input type="text" value="<?php echo $this->htmlEscape($this->getCouponCode()) ?>" id="coupon_code"
35
+ name="coupon_code" onblur="if(this.value == '') { this.value = 'Enter Coupon'; }" onfocus="if(this.value == 'Enter Coupon') { this.value = ''; }" class="bar" />
36
+
37
+ <button type="button" title="<?php echo $this->__('Submit') ?>" class="buttonone coupon_one_mar" onclick="discountForm.submit(false)" value="<?php echo $this->__('Apply Coupon') ?>"><span><span><?php echo $this->__('Submit') ?></span></span></button>
38
+ <?php if(strlen($this->getCouponCode())): ?>
39
+ &nbsp; <button type="button" title="<?php echo $this->__('Cancel Coupon') ?>" class="buttonone coupon_one_mar" onclick="discountForm.submit(true)" value="<?php echo $this->__('Cancel') ?>"><span><span><?php echo $this->__('Cancel') ?></span></span></button>
40
+ <?php endif;?>
41
+
42
+ </div>
43
+
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>
60
+ <?php /*?><div class="discount">
61
+ <h2><?php echo $this->__('Discount Codes') ?></h2>
62
+ <div class="discount-form">
63
+ <label for="coupon_code"><?php echo $this->__('Enter your coupon code if you have one.') ?></label>
64
+ <input type="hidden" name="remove" id="remove-coupone" value="0" />
65
+ <div class="input-box">
66
+ <input class="input-text" id="coupon_code" name="coupon_code" value="<?php echo $this->htmlEscape($this->getCouponCode()) ?>" />
67
+ </div>
68
+ <div class="buttons-set">
69
+ <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>
70
+ <?php if(strlen($this->getCouponCode())): ?>
71
+ &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>
72
+ <?php endif;?>
73
+ </div>
74
+ </div>
75
+ </div><?php */?>
76
+
77
+
app/design/frontend/default/estore/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) 2010 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->htmlEscape($_item->getName()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
41
+ <div class="product-details">
42
+ <h3 class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_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/default/estore/template/checkout/cart/item/configure/updatecart.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) 2010 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
+ <p class="qty"><?php echo $this->__('Qty:') ?></p>
34
+ <div class="selectmenu qtyselect">
35
+
36
+ <select name="qty" id="qty" class="qtyselect">
37
+ <?php
38
+ // show dropdown instead of textfield
39
+ $_min = max(1, $this->getMinimalQty($_product));
40
+ $_max = Mage::getModel('cataloginventory/stock_item')->loadByProduct($this->getProduct())->getMaxSaleQty();
41
+ for ($i = $_min; $i <= $_max; $i++) {
42
+ $_selected = '';
43
+ if ($i == $this->getQty()) {
44
+ $_selected .= ' selected="selected"';
45
+ }
46
+ echo '<option value="' . $i . '"' . $_selected . '>' . $i . '</option>';
47
+ }
48
+ ?>
49
+ </select>
50
+ </div>
51
+ <?php endif; ?>
52
+ <button type="button" title="<?php echo $buttonTitle ?>" class="buttonone right" style="margin-top:10px;" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
53
+ <?php echo $this->getChildHtml('', true, true) ?>
54
+ </div>
55
+ <?php endif; ?>
app/design/frontend/default/estore/template/checkout/cart/item/default.phtml ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ ?>
31
+ <li class="imag"><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(50); ?>" width="50" height="50" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></li>
32
+ <li class="p_name">
33
+ <div class="txtsec">
34
+ <?php if ($this->hasProductUrl()):?>
35
+ <a href="<?php echo $this->getProductUrl() ?>" class="bold colr under" ><?php echo $this->htmlEscape($this->getProductName()) ?></a>
36
+ <?php else: ?>
37
+ <?php echo $this->htmlEscape($this->getProductName()) ?>
38
+ <?php endif; ?>
39
+ <p><?php
40
+ $custom = Mage::getModel('catalog/product')->load($_item->getProductId());
41
+ echo $custom->getShortDescription();
42
+ ?>
43
+ </p>
44
+ </div>
45
+ <?php if ($isVisibleProduct): ?>
46
+ <a href="<?php echo $this->getConfigureUrl()?>" class="right colr bold edit under" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
47
+ <?php endif ?>
48
+ </li>
49
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
50
+
51
+ <li class="u_price"><?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
52
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
53
+ <?php else: ?>
54
+ <p class="colr"> <?php endif; ?>
55
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
56
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
57
+ <?php else: ?>
58
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
59
+ <?php endif; ?>
60
+
61
+ </p>
62
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
63
+
64
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
65
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
66
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
67
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
68
+ <?php endforeach; ?>
69
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
70
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
71
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
72
+ <?php endforeach; ?>
73
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
74
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
75
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
76
+ <?php endforeach; ?>
77
+ <?php endif; ?>
78
+ </div>
79
+
80
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
81
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
82
+ <p class="colr"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></p>
83
+ </div>
84
+ <?php endif; ?>
85
+ <?php endif; ?></p></li>
86
+ <?php endif; ?>
87
+
88
+ <li class="qty"> <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" maxlength="12" /></li>
89
+
90
+
91
+
92
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
93
+ <li class="s_total">
94
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
95
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
96
+ <?php else: ?>
97
+ <p class="colr">
98
+ <?php endif; ?>
99
+
100
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
101
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
102
+ <?php else: ?>
103
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
104
+ <?php endif; ?>
105
+
106
+ </p>
107
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
108
+
109
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
110
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
111
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
112
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
113
+ <?php endforeach; ?>
114
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, '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['row_amount_incl_tax'],true,true); ?></span>
117
+ <?php endforeach; ?>
118
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, '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['row_amount_incl_tax'],true,true); ?></span>
121
+ <?php endforeach; ?>
122
+ <?php endif; ?>
123
+ </div>
124
+
125
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
126
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
127
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
128
+ </div>
129
+ <?php endif; ?>
130
+ <?php endif; ?>
131
+ </li>
132
+ <?php endif; ?>
133
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
134
+ <li class="s_total">
135
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
136
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
137
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
138
+ <?php else: ?>
139
+ <p class="colr">
140
+ <?php endif; ?>
141
+
142
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
143
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
144
+ <?php else: ?>
145
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
146
+ <?php endif; ?>
147
+
148
+ </p>
149
+
150
+
151
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
152
+
153
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
154
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
155
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
156
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
157
+ <?php endforeach; ?>
158
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
159
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
160
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
161
+ <?php endforeach; ?>
162
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
163
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
164
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
165
+ <?php endforeach; ?>
166
+ <?php endif; ?>
167
+ </div>
168
+
169
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
170
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
171
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
172
+ </div>
173
+ <?php endif; ?>
174
+ <?php endif; ?>
175
+ </li>
176
+ <?php endif; ?>
177
+ </li>
178
+ <li class="remove"><a href="<?php echo $this->getDeleteUrl()?>" title="<?php echo $this->__('Remove item')?>" ><?php echo $this->__('Remove item')?></a></li>
app/design/frontend/default/estore/template/checkout/cart/noItems.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) 2010 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
+ <p><?php echo $this->__('You have no items in your shopping cart.') ?></p>
33
+ <p><?php echo $this->__('Click <a href="%s">here</a> to continue shopping.', $this->getContinueShoppingUrl()) ?></p>
34
+ </div>
app/design/frontend/default/estore/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) 2010 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->htmlEscape($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->htmlEscape($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
+ <input type="checkbox" value="1" name="cart[<?php echo $_item->getId() ?>][wishlist]" class="checkbox" />
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/default/estore/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) 2010 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->htmlEscape($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->htmlEscape($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
+ <input type="checkbox" value="1" name="cart[<?php echo $_item->getId() ?>][wishlist]" class="checkbox" />
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/default/estore/template/checkout/cart/shipping.phtml ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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_Checkout_Block_Cart_Shipping
30
+ */
31
+ ?>
32
+ <div class="estimate">
33
+ <h4 class="seccolr upper"><?php echo $this->__('SHIPPING') ?></h4>
34
+ <p><?php echo $this->__('Enter your destination to get a shipping estimate.') ?></p>
35
+ <form action="<?php echo $this->getUrl('checkout/cart/estimatePost') ?>" method="post" id="shipping-zip-form">
36
+
37
+ <div class="clear"></div>
38
+ <div class="selectmenu">
39
+ <div class="input-box">
40
+ <?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
41
+ </div>
42
+ </div>
43
+ <div class="selectmenu">
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></div>
47
+ <div class="selectmenu">
48
+ <input type="text" id="region" class="bar" name="region" value="<?php echo $this->htmlEscape($this->getEstimateRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" style="display:none;" />
49
+ </div>
50
+ <script type="text/javascript">
51
+ //<![CDATA[
52
+ $('region_id').setAttribute('defaultValue', "<?php echo $this->getEstimateRegionId() ?>");
53
+ //]]>
54
+ </script>
55
+ <?php if($this->getCityActive()): ?>
56
+ <label for="city"<?php if ($this->isCityRequired()) echo ' class="required"' ?>><?php if ($this->isCityRequired()) echo '<em>*</em>' ?><?php echo $this->__('City') ?></label> <?php endif; ?>
57
+ <div style="float:left; width:305px;">
58
+ <input type="text" id="postcode" name="estimate_postcode" value="<?php echo $this->htmlEscape($this->getEstimatePostcode()) ?>" onblur="if(this.value == '') { this.value = 'Zip/Postal Code'; }" onfocus="if(this.value == 'Zip/Postal Code') { this.value = ''; }" class="bar" style="float:left;" />
59
+ <button type="button" title="<?php echo $this->__('Get a Quote') ?>" onclick="coShippingMethodForm.submit()" class="buttonone coupon_one_mar"><span><span><?php echo $this->__('Get a Quote') ?></span></span></button>
60
+ </div>
61
+
62
+ </form>
63
+
64
+ </div>
65
+ <script type="text/javascript">
66
+ //<![CDATA[
67
+ new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
68
+ //]]>
69
+ </script>
70
+
71
+ <?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
72
+ <form id="co-shipping-method-form" action="<?php echo $this->getUrl('checkout/cart/estimateUpdatePost') ?>">
73
+ <dl class="sp-methods">
74
+ <?php foreach ($_shippingRateGroups as $code => $_rates): ?>
75
+ <dt><?php echo $this->getCarrierName($code) ?></dt>
76
+ <dd>
77
+ <ul>
78
+ <?php foreach ($_rates as $_rate): ?>
79
+ <li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
80
+ <?php if ($_rate->getErrorMessage()): ?>
81
+ <?php echo $_rate->getErrorMessage() ?>
82
+ <?php else: ?>
83
+ <input name="estimate_method" type="radio" value="<?php echo $this->htmlEscape($_rate->getCode()) ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" />
84
+ <label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
85
+ <?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
86
+ <?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
87
+ <?php echo $_excl; ?>
88
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
89
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
90
+ <?php endif; ?>
91
+ </label>
92
+ <?php endif ?>
93
+ </li>
94
+ <?php endforeach; ?>
95
+ </ul>
96
+ </dd>
97
+ <?php endforeach; ?>
98
+ </dl>
99
+ <div class="buttons-set">
100
+ <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>
101
+ </div>
102
+ </form>
103
+ <?php endif; ?>
104
+ <script type="text/javascript">
105
+ //<![CDATA[
106
+ var coShippingMethodForm = new VarienForm('shipping-zip-form');
107
+ var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
108
+
109
+ coShippingMethodForm.submit = function () {
110
+ var country = $F('country');
111
+ var optionalZip = false;
112
+
113
+ for (i=0; i < countriesWithOptionalZip.length; i++) {
114
+ if (countriesWithOptionalZip[i] == country) {
115
+ optionalZip = true;
116
+ }
117
+ }
118
+ if (optionalZip) {
119
+ $('postcode').removeClassName('required-entry');
120
+ }
121
+ else {
122
+ $('postcode').addClassName('required-entry');
123
+ }
124
+ return VarienForm.prototype.submit.bind(coShippingMethodForm)();
125
+ }
126
+ //]]>
127
+ </script>
128
+
129
+
130
+
131
+ <?php /*?><div class="shipping">
132
+ <h2><?php echo $this->__('Estimate Shipping and Tax') ?></h2>
133
+ <div class="shipping-form">
134
+ <form action="<?php echo $this->getUrl('checkout/cart/estimatePost') ?>" method="post" id="shipping-zip-form">
135
+ <p><?php echo $this->__('Enter your destination to get a shipping estimate.') ?></p>
136
+ <ul class="form-list">
137
+ <li>
138
+ <label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
139
+ <div class="input-box">
140
+ <?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
141
+ </div>
142
+ </li>
143
+ <?php //if($this->getStateActive()): ?>
144
+ <li>
145
+ <label for="region_id"<?php if ($this->isStateProvinceRequired()) echo ' class="required"' ?>><?php if ($this->isStateProvinceRequired()) echo '<em>*</em>' ?><?php echo $this->__('State/Province') ?></label>
146
+ <div class="input-box">
147
+ <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" style="display:none;"<?php echo ($this->isStateProvinceRequired() ? ' class="validate-select"' : '') ?>>
148
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
149
+ </select>
150
+ <script type="text/javascript">
151
+ //<![CDATA[
152
+ $('region_id').setAttribute('defaultValue', "<?php echo $this->getEstimateRegionId() ?>");
153
+ //]]>
154
+ </script>
155
+ <input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getEstimateRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
156
+ </div>
157
+ </li>
158
+ <?php //endif; ?>
159
+ <?php if($this->getCityActive()): ?>
160
+ <li>
161
+ <label for="city"<?php if ($this->isCityRequired()) echo ' class="required"' ?>><?php if ($this->isCityRequired()) echo '<em>*</em>' ?><?php echo $this->__('City') ?></label>
162
+ <div class="input-box">
163
+ <input class="input-text<?php if ($this->isCityRequired()):?> required-entry<?php endif;?>" id="city" type="text" name="estimate_city" value="<?php echo $this->htmlEscape($this->getEstimateCity()) ?>" />
164
+ </div>
165
+ </li>
166
+ <?php endif; ?>
167
+ <li>
168
+ <label for="postcode"<?php if ($this->isZipCodeRequired()) echo ' class="required"' ?>><?php if ($this->isZipCodeRequired()) echo '<em>*</em>' ?><?php echo $this->__('Zip/Postal Code') ?></label>
169
+ <div class="input-box">
170
+ <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->htmlEscape($this->getEstimatePostcode()) ?>" />
171
+ </div>
172
+ </li>
173
+ </ul>
174
+ <div class="buttons-set">
175
+ <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>
176
+ </div>
177
+ </form>
178
+ <script type="text/javascript">
179
+ //<![CDATA[
180
+ new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
181
+ //]]>
182
+ </script>
183
+
184
+ <?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
185
+ <form id="co-shipping-method-form" action="<?php echo $this->getUrl('checkout/cart/estimateUpdatePost') ?>">
186
+ <dl class="sp-methods">
187
+ <?php foreach ($_shippingRateGroups as $code => $_rates): ?>
188
+ <dt><?php echo $this->getCarrierName($code) ?></dt>
189
+ <dd>
190
+ <ul>
191
+ <?php foreach ($_rates as $_rate): ?>
192
+ <li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
193
+ <?php if ($_rate->getErrorMessage()): ?>
194
+ <?php echo $_rate->getErrorMessage() ?>
195
+ <?php else: ?>
196
+ <input name="estimate_method" type="radio" value="<?php echo $this->htmlEscape($_rate->getCode()) ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" />
197
+ <label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
198
+ <?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
199
+ <?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
200
+ <?php echo $_excl; ?>
201
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
202
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
203
+ <?php endif; ?>
204
+ </label>
205
+ <?php endif ?>
206
+ </li>
207
+ <?php endforeach; ?>
208
+ </ul>
209
+ </dd>
210
+ <?php endforeach; ?>
211
+ </dl>
212
+ <div class="buttons-set">
213
+ <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>
214
+ </div>
215
+ </form>
216
+ <?php endif; ?>
217
+ <script type="text/javascript">
218
+ //<![CDATA[
219
+ var coShippingMethodForm = new VarienForm('shipping-zip-form');
220
+ var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
221
+
222
+ coShippingMethodForm.submit = function () {
223
+ var country = $F('country');
224
+ var optionalZip = false;
225
+
226
+ for (i=0; i < countriesWithOptionalZip.length; i++) {
227
+ if (countriesWithOptionalZip[i] == country) {
228
+ optionalZip = true;
229
+ }
230
+ }
231
+ if (optionalZip) {
232
+ $('postcode').removeClassName('required-entry');
233
+ }
234
+ else {
235
+ $('postcode').addClassName('required-entry');
236
+ }
237
+ return VarienForm.prototype.submit.bind(coShippingMethodForm)();
238
+ }
239
+ //]]>
240
+ </script>
241
+ </div>
242
+ </div><?php */?>
app/design/frontend/default/estore/template/checkout/cart/sidebar.phtml ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <span class="label"><?php echo $this->__('Cart Subtotal:') ?></span> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
50
+ <?php if ($_subtotalInclTax = $this->getSubtotalInclTax()): ?>
51
+ <br />(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax) ?> <?php echo Mage::helper('tax')->getIncExcText(true) ?>)
52
+ <?php endif; ?>
53
+ </p>
54
+ </div>
55
+ <?php endif ?>
56
+ <?php if($_cartQty && $this->isPossibleOnepageCheckout()): ?>
57
+ <div class="actions">
58
+ <?php echo $this->getChildHtml('extra_actions') ?>
59
+ <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>
60
+ </div>
61
+ <?php endif ?>
62
+ <?php $_items = $this->getRecentItems() ?>
63
+ <?php if(count($_items)): ?>
64
+ <p class="block-subtitle"><?php echo $this->__('Recently added item(s)') ?></p>
65
+ <ol id="cart-sidebar" class="mini-products-list">
66
+ <?php foreach($_items as $_item): ?>
67
+ <?php echo $this->getItemHtml($_item) ?>
68
+ <?php endforeach; ?>
69
+ </ol>
70
+ <script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script>
71
+ <?php else: ?>
72
+ <p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
73
+ <?php endif ?>
74
+ </div>
75
+ </div>
76
+ <?php endif;?>
app/design/frontend/default/estore/template/checkout/cart/sidebar/default.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) 2010 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
+ ?>
31
+ <li class="item">
32
+ <?php if ($this->hasProductUrl()): ?>
33
+ <a href="<?php echo $this->getProductUrl()?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>" width="50" height="50" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /></a>
34
+ <?php else: ?>
35
+ <span class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>" width="50" height="50" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /></span>
36
+ <?php endif; ?>
37
+ <div class="product-details">
38
+ <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>
39
+ <?php if ($isVisibleProduct): ?>
40
+ <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item') ?>" class="btn-edit"><?php echo $this->__('Edit item')?></a>
41
+ <?php endif ?>
42
+ <p class="product-name"><?php if ($this->hasProductUrl()): ?><a href="<?php echo $this->getProductUrl() ?>"><?php endif; ?><?php echo $this->htmlEscape($this->getProductName()) ?><?php if ($this->hasProductUrl()): ?></a><?php endif; ?></p>
43
+ <strong><?php echo $this->getQty() ?></strong> x
44
+
45
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
46
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
47
+ <?php echo $this->__('Excl. Tax'); ?>:
48
+ <?php endif; ?>
49
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
50
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
51
+ <?php else: ?>
52
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
53
+ <?php endif; ?>
54
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
55
+ <br />
56
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
57
+ <small>
58
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
59
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
60
+ <?php endforeach; ?>
61
+ </small>
62
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
63
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
64
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
65
+ <?php endforeach; ?>
66
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
67
+ <small>
68
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
69
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
70
+ <?php endforeach; ?>
71
+ </small>
72
+ <?php endif; ?>
73
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
74
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
75
+ <?php endif; ?>
76
+ <?php endif; ?>
77
+ <?php endif; ?>
78
+
79
+
80
+
81
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
82
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
83
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
84
+ <br /><?php echo $this->__('Incl. Tax'); ?>:
85
+ <?php endif; ?>
86
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
87
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
88
+ <?php else: ?>
89
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
90
+ <?php endif; ?>
91
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
92
+ <br />
93
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
94
+ <small>
95
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
96
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
97
+ <?php endforeach; ?>
98
+ </small>
99
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
100
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
101
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
102
+ <?php endforeach; ?>
103
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
104
+ <small>
105
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
106
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
107
+ <?php endforeach; ?>
108
+ </small>
109
+ <?php endif; ?>
110
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
111
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
112
+ <?php endif; ?>
113
+ <?php endif; ?>
114
+ <?php endif; ?>
115
+ <?php if ($_options = $this->getOptionList()):?>
116
+ <div class="truncated">
117
+ <div class="truncated_full_value">
118
+ <dl class="item-options">
119
+ <?php foreach ($_options as $_option) : ?>
120
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
121
+ <dd>
122
+ <?php if (is_array($_option['value'])): ?>
123
+ <?php echo nl2br(implode("\n", $_option['value'])) ?>
124
+ <?php else: ?>
125
+ <?php echo $_option['value'] ?>
126
+ <?php endif; ?>
127
+ </dd>
128
+ <?php endforeach; ?>
129
+ </dl>
130
+ </div>
131
+ <a href="#" onclick="return false;" class="details"><?php echo $this->__('Details') ?></a>
132
+ </div>
133
+ <?php endif; ?>
134
+ </div>
135
+ </li>
app/design/frontend/default/estore/template/checkout/cart/totals.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) 2010 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
+ */
33
+ ?>
34
+ <div id="shopping-cart-totals-table">
35
+ <col />
36
+ <col width="1" />
37
+ <?php echo $this->renderTotals('footer'); ?>
38
+ <?php echo $this->renderTotals(); ?>
39
+ </div>
app/design/frontend/default/estore/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) 2010 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/default/estore/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) 2010 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 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->htmlEscape($_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="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Shopping Cart') ?></a></p>
78
+ <button type="submit" title="<?php echo $this->__('Continue to Shipping Information') ?>" class="button<?php if ($this->isContinueDisabled()):?> disabled<?php endif; ?>" onclick="$('can_continue_flag').value=1"<?php if ($this->isContinueDisabled()):?> disabled="disabled"<?php endif; ?>><span><span><?php echo $this->__('Continue to Shipping Information') ?></span></span></button>
79
+ </div>
80
+ </div>
81
+ </form>
app/design/frontend/default/estore/template/checkout/multishipping/agreements.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) 2010 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_Checkout_Block_Agreements
30
+ */
31
+ ?>
32
+
33
+ <?php if (!$this->getAgreements()) return; ?>
34
+ <ol id="checkout-agreements" class="checkout-agreements">
35
+ <?php foreach ($this->getAgreements() as $_a): ?>
36
+ <li>
37
+ <div class="agreement-content"<?php echo ($_a->getContentHeight() ? ' style="height:' . $_a->getContentHeight() . '"' : '')?>>
38
+ <?php if ($_a->getIsHtml()):?>
39
+ <?php echo $_a->getContent() ?>
40
+ <?php else:?>
41
+ <?php echo nl2br($this->htmlEscape($_a->getContent())) ?>
42
+ <?php endif; ?>
43
+ </div>
44
+ <p class="agree">
45
+ <input type="checkbox" id="agreement-<?php echo $_a->getId()?>" name="agreement[<?php echo $_a->getId()?>]" value="1" title="<?php echo $this->htmlEscape($_a->getCheckboxText()) ?>" class="checkbox" /><label for="agreement-<?php echo $_a->getId()?>"><?php echo $this->htmlEscape($_a->getCheckboxText()) ?></label>
46
+ </p>
47
+ </li>
48
+ <?php endforeach ?>
49
+ </ol>
app/design/frontend/default/estore/template/checkout/multishipping/billing.phtml ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ * Multishipping checkout billing information
30
+ *
31
+ * @see Mage_Checkout_Block_Multishipping_Billing
32
+ */
33
+ ?>
34
+ <div class="multiple-checkout">
35
+ <div class="page-title">
36
+ <h1><?php echo $this->__('Billing Information') ?></h1>
37
+ </div>
38
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
39
+ <script src="<?php echo Mage::getBaseUrl('js') ?>varien/payment.js" type="text/javascript"></script>
40
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="multishipping-billing-form">
41
+ <div class="col2-set">
42
+ <div class="col-1 col-narrow">
43
+ <div class="box">
44
+ <div class="box-title">
45
+ <h2><?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="<?php echo $this->getSelectAddressUrl() ?>"><?php echo $this->__('Change') ?></a></h2>
46
+ </div>
47
+ <div class="box-content">
48
+ <?php $_address=$this->getAddress() ?>
49
+ <address><?php echo $_address->format('html') ?></address>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <div class="col-2 col-wide">
54
+ <div class="box">
55
+ <div class="box-title">
56
+ <h2><?php echo $this->__('Payment Method') ?></h2>
57
+ </div>
58
+ <div class="box-content">
59
+ <div class="tool-tip" id="payment-tool-tip" style="display:none;">
60
+ <div class="btn-close"><a href="#" id="payment-tool-tip-close" title="<?php echo $this->__('Close') ?>"><?php echo $this->__('Close') ?></a></div>
61
+ <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>
62
+ </div>
63
+ <!-- Payment methods forms list -->
64
+ <dl class="sp-methods">
65
+ <?php
66
+ $_methods = $this->getMethods();
67
+ $_methodsCount = count($_methods);
68
+ ?>
69
+ <?php foreach ($_methods as $_method): $_code = $_method->getCode() ?>
70
+ <dt>
71
+ <?php if ($_methodsCount > 1): ?>
72
+ <input type="radio" id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" name="payment[method]" title="<?php echo $this->htmlEscape($_method->getTitle()) ?>" onclick="payment.switchMethod('<?php echo $_code ?>')"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio" />
73
+ <?php else :?>
74
+ <span class="no-display"><input type="radio" id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" name="payment[method]" checked="checked" class="radio" /></span>
75
+ <?php endif;?>
76
+ <label for="p_method_<?php echo $_code ?>"><?php echo $_method->getTitle() ?></label>
77
+ </dt>
78
+ <?php if($html = $this->getChildHtml('payment.method.'.$_code)) : ?>
79
+ <dd>
80
+ <?php echo $html; ?>
81
+ </dd>
82
+ <?php endif; ?>
83
+ <?php endforeach; ?>
84
+ </dl>
85
+ <?php echo $this->getChildHtml('checkout_billing_items') ?>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ <div class="buttons-set">
91
+ <p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Shipping Information') ?></a></p>
92
+ <button type="submit" title="<?php echo $this->__('Continue to Review Your Order') ?>" class="button"><span><span><?php echo $this->__('Continue to Review Your Order') ?></span></span></button>
93
+ </div>
94
+ </form>
95
+ <script type="text/javascript">
96
+ //<![CDATA[
97
+ var payment = new paymentForm('multishipping-billing-form');
98
+ function toggleToolTip(event){
99
+ if($('payment-tool-tip')){
100
+ /*$('payment-tool-tip').setStyle({
101
+ top: (Event.pointerY(event)-510)+'px',
102
+ left: (Event.pointerX(event)-800)+'px'
103
+ })*/
104
+ $('payment-tool-tip').toggle();
105
+ }
106
+ Event.stop(event);
107
+ }
108
+ if($('payment-tool-tip-close')){
109
+ Event.observe($('payment-tool-tip-close'), 'click', toggleToolTip);
110
+ }
111
+ $$('.cvv-what-is-this').each(function(element){
112
+ Event.observe(element, 'click', toggleToolTip);
113
+ });
114
+ //]]>
115
+ </script>
116
+ </div>
app/design/frontend/default/estore/template/checkout/multishipping/billing/items.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) 2010 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->getQuote()->hasVirtualItems()): ?>
28
+ <div class="col2-set">
29
+ <h2 class="legend"><?php echo $this->__('Other Items in Your Order') ?></h2>
30
+ <div class="col-1 col-narrow"></div>
31
+ <div class="col-2 col-wide">
32
+ <h3><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getVirtualProductEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h3>
33
+ <table class="data-table" id="unavailable-shipping-table">
34
+ <col />
35
+ <col width="1" />
36
+ <thead>
37
+ <tr>
38
+ <th><?php echo $this->__('Product Name') ?></th>
39
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
40
+ </tr>
41
+ </thead>
42
+ <tbody>
43
+ <?php foreach ($this->getVirtualQuoteItems() as $_item): ?>
44
+ <tr>
45
+ <td><?php echo $this->getItemHtml($_item) ?></td>
46
+ <td class="a-center"><?php echo $_item->getQty() ?></td>
47
+ </tr>
48
+ <?php endforeach; ?>
49
+ </tbody>
50
+ </table>
51
+ <script type="text/javascript">decorateTable('unavailable-shipping-table')</script>
52
+ </div>
53
+ </div>
54
+ <?php endif; ?>
app/design/frontend/default/estore/template/checkout/multishipping/item/default.phtml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <h3 class="product-name"><a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a></h3>
28
+ <?php if ($_options = $this->getOptionList()):?>
29
+ <dl class="item-options">
30
+ <?php foreach ($_options as $_option) : ?>
31
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
32
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
33
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
34
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
35
+ <div class="truncated_full_value">
36
+ <dl class="item-options">
37
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
38
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
39
+ </dl>
40
+ </div>
41
+ <?php endif; ?>
42
+ </dd>
43
+ <?php endforeach; ?>
44
+ </dl>
45
+ <?php endif; ?>
app/design/frontend/default/estore/template/checkout/multishipping/link.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) 2010 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
+ <a href="<?php echo $this->getCheckoutUrl()?>" title="<?php echo Mage::helper('checkout')->__('Checkout with Multiple Addresses');?>"><?php echo Mage::helper('checkout')->__('Checkout with Multiple Addresses');?></a>
app/design/frontend/default/estore/template/checkout/multishipping/overview.phtml ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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">
29
+ <h1><?php echo $this->__('Review Order') ?></h1>
30
+ </div>
31
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
32
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" onsubmit="return showLoader();">
33
+ <div class="col2-set">
34
+ <h2 class="legend"><?php echo $this->__('Billing Information') ?></h2>
35
+ <div class="col-1">
36
+ <div class="box">
37
+ <?php $_address=$this->getBillingAddress() ?>
38
+ <div class="box-title">
39
+ <h3><?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditBillingAddressUrl($_address) ?>"><?php echo $this->__('Change') ?></a></h3>
40
+ </div>
41
+ <div class="box-content">
42
+ <address>
43
+ <?php echo $_address->format('html') ?>
44
+ </address>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <div class="col-2">
49
+ <div class="box">
50
+ <div class="box-title">
51
+ <h3><?php echo $this->__('Payment Method') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditBillingUrl() ?>"><?php echo $this->__('Change') ?></a></h3>
52
+ </div>
53
+ <div class="box-content">
54
+ <input type="hidden" name="payment[cc_number]" value="<?php echo $this->htmlEscape($this->getPayment()->getCcNumber())?>" />
55
+ <input type="hidden" name="payment[cc_cid]" value="<?php echo $this->htmlEscape($this->getPayment()->getCcCid())?>" />
56
+ <?php echo $this->getPaymentHtml() ?>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
62
+ <div class="col2-set">
63
+ <h2 class="legend"><?php echo $this->__('Shipping Information') ?></h2>
64
+ <?php foreach ($this->getShippingAddresses() as $_index => $_address): ?>
65
+ <h3 class="legend"><?php echo $this->__('Address %s of %s', ($_index+1), $this->getShippingAddressCount()) ?></h3>
66
+ <div class="col-1 col-narrow">
67
+ <div class="box">
68
+ <div class="box-title">
69
+ <h4><?php echo $this->__('Shipping To') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditShippingAddressUrl($_address) ?>"><?php echo $this->__('Change') ?></a></h4>
70
+ </div>
71
+ <div class="box-content">
72
+ <address>
73
+ <?php echo $_address->format('html') ?>
74
+ </address>
75
+ </div>
76
+ </div>
77
+ <div class="box">
78
+ <div class="box-title">
79
+ <h4><?php echo $this->__('Shipping Method') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditShippingUrl() ?>"><?php echo $this->__('Change') ?></a></h4>
80
+ </div>
81
+ <div class="box-content">
82
+ <?php if($_rate=$this->getShippingAddressRate($_address)): ?>
83
+ <p>
84
+ <?php echo $_rate->getCarrierTitle() ?> - <?php echo $_rate->getMethodTitle() ?>
85
+ <?php $_excl = $this->getShippingPriceExclTax($_address); ?>
86
+ <?php $_incl = $this->getShippingPriceInclTax($_address); ?>
87
+ <?php echo $_excl; ?>
88
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
89
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
90
+ <?php endif; ?>
91
+ </p>
92
+ <?php endif; ?>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ <div class="col-2 col-wide">
97
+ <h4><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getAddressesEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h4>
98
+ <table class="data-table" id="overview-table-<?php echo $_address->getId() ?>">
99
+ <col />
100
+ <col width="1" />
101
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
102
+ <col width="1" />
103
+ <?php endif; ?>
104
+ <col width="1" />
105
+ <col width="1" />
106
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
107
+ <col width="1" />
108
+ <?php endif; ?>
109
+ <thead>
110
+ <tr>
111
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
112
+ <th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Price') ?></th>
113
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Qty') ?></th>
114
+ <th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
115
+ </tr>
116
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
117
+ <tr>
118
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
119
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
120
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
121
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
122
+ </tr>
123
+ <?php endif; ?>
124
+ </thead>
125
+ <tfoot>
126
+ <?php echo $this->renderTotals($this->getShippingAddressTotals($_address)); ?>
127
+ </tfoot>
128
+ <tbody>
129
+ <?php foreach ($this->getShippingAddressItems($_address) as $_item): ?>
130
+ <?php echo $this->getRowItemHtml($_item); ?>
131
+ <?php endforeach; ?>
132
+ </tbody>
133
+ </table>
134
+ <script type="text/javascript">decorateTable('overview-table-<?php echo $_address->getId() ?>')</script>
135
+ </div>
136
+ <?php if($this->getShippingAddressCount()!=$_index+1): ?>
137
+ <div class="divider"></div>
138
+ <?php endif; ?>
139
+ <?php endforeach; ?>
140
+ </div>
141
+ <?php if ($this->getQuote()->hasVirtualItems()): ?>
142
+ <div class="col2-set">
143
+ <h2 class="legend"><?php echo $this->__('Other Items in Your Order') ?></h2>
144
+ <div class="col-1 col-narrow"></div>
145
+ <div class="col-2 col-wide">
146
+ <h3><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getVirtualProductEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h3>
147
+ <?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
148
+ <table class="data-table" id="virtual-overview-table">
149
+ <col />
150
+ <col width="1" />
151
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
152
+ <col width="1" />
153
+ <?php endif; ?>
154
+ <col width="1" />
155
+ <col width="1" />
156
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
157
+ <col width="70" />
158
+ <?php endif; ?>
159
+ <thead>
160
+ <tr>
161
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
162
+ <th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Price') ?></th>
163
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Qty') ?></th>
164
+ <th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
165
+ </tr>
166
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
167
+ <tr>
168
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
169
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
170
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
171
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
172
+ </tr>
173
+ <?php endif; ?>
174
+ </thead>
175
+ <tfoot>
176
+ <?php echo $this->renderTotals($this->getBillinAddressTotals()); ?>
177
+ </tfoot>
178
+ <tbody>
179
+ <?php foreach ($this->getVirtualItems() as $_item): ?>
180
+ <?php echo $this->getRowItemHtml($_item); ?>
181
+ <?php endforeach; ?>
182
+ </tbody>
183
+ </table>
184
+ <script type="text/javascript">decorateTable('virtual-overview-table')</script>
185
+ </div>
186
+ </div>
187
+ <?php endif; ?>
188
+
189
+ <?php echo $this->getChildHtml('items_after'); ?>
190
+
191
+ <div id="checkout-review-submit">
192
+ <?php echo $this->getChildHtml('agreements') ?>
193
+ <div class="place-order">
194
+ <div class="grand-total">
195
+ <div class="inner">
196
+ <big><?php echo $this->__('Grand Total:') ?> <?php echo $this->helper('checkout')->formatPrice($this->getTotal()) ?></big>
197
+ <div id="review-buttons-container">
198
+ <button type="submit" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" id="review-button"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
199
+ </div>
200
+ </div>
201
+ </div>
202
+ <span class="please-wait" id="review-please-wait" style="display:none;">
203
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
204
+ </span>
205
+ </div>
206
+ </div>
207
+ <div class="buttons-set">
208
+ <p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Billing Information') ?></a></p>
209
+ </div>
210
+ </form>
211
+ <script type="text/javascript">
212
+ //<![CDATA[
213
+ var submitted = false;
214
+
215
+ function showLoader()
216
+ {
217
+ if (submitted) {
218
+ return false;
219
+ }
220
+ if ($('checkout-agreements')) {
221
+ var checkboxes = $$('#checkout-agreements input');
222
+ for (var i=0, l=checkboxes.length; i<l; i++) {
223
+ if (!checkboxes[i].checked) {
224
+ alert("<?php echo $this->__('Please agree to all Terms and Conditions before placing the orders.')?>");
225
+ return false;
226
+ }
227
+ }
228
+ }
229
+
230
+ submitted = true;
231
+ var step='review';
232
+ Element.show(step+'-please-wait');
233
+ $(step+'-buttons-container').setStyle({opacity:.5});
234
+ $(step+'-buttons-container').descendants().each(function(s) {
235
+ s.disabled = true;
236
+ });
237
+ return true;
238
+ }
239
+ //]]>
240
+ </script>
241
+ </div>
app/design/frontend/default/estore/template/checkout/multishipping/overview/item.phtml ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ * Quote Item row html
30
+ *
31
+ * @see Mage_Checkout_Block_Cart_Item_Renderer
32
+ */
33
+ ?>
34
+ <?php $_item = $this->getItem() ?>
35
+ <tr>
36
+ <td><?php echo $this->getRenderedBlock()->getItemHtml($_item) ?></td>
37
+
38
+ <!--- Excluding Tax -->
39
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
40
+ <td class="a-right">
41
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
42
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
43
+ <?php else: ?>
44
+ <div class="cart-price">
45
+ <?php endif; ?>
46
+
47
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
48
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
49
+ <?php else: ?>
50
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
51
+ <?php endif; ?>
52
+
53
+ </div>
54
+
55
+
56
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
57
+
58
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
59
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
60
+ <small>
61
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
62
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
63
+ <?php endforeach; ?>
64
+ </small>
65
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
66
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
67
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
68
+ <?php endforeach; ?>
69
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
70
+ <small>
71
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
72
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
73
+ <?php endforeach; ?>
74
+ </small>
75
+ <?php endif; ?>
76
+ </div>
77
+
78
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
79
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
80
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
81
+ </div>
82
+ <?php endif; ?>
83
+ <?php endif; ?>
84
+ </td>
85
+ <?php endif; ?>
86
+ <!--- // Excluding Tax -->
87
+
88
+ <!--- Including Tax -->
89
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
90
+ <td>
91
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
92
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
93
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
94
+ <?php else: ?>
95
+ <div class="cart-price">
96
+ <?php endif; ?>
97
+
98
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
99
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
100
+ <?php else: ?>
101
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
102
+ <?php endif; ?>
103
+
104
+ </div>
105
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
106
+
107
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
108
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
109
+ <small>
110
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
111
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
112
+ <?php endforeach; ?>
113
+ </small>
114
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
115
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
116
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
117
+ <?php endforeach; ?>
118
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
119
+ <small>
120
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
121
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
122
+ <?php endforeach; ?>
123
+ </small>
124
+ <?php endif; ?>
125
+ </div>
126
+
127
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
128
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
129
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
130
+ </div>
131
+ <?php endif; ?>
132
+ <?php endif; ?>
133
+
134
+ </td>
135
+ <?php endif; ?>
136
+ <!--- // Including Tax -->
137
+
138
+ <td class="a-center"><?php echo $_item->getQty()*1 ?></td>
139
+
140
+ <!--- Excluding Tax Subtotal -->
141
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
142
+ <td class="a-right">
143
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
144
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
145
+ <?php else: ?>
146
+ <div class="cart-price">
147
+ <?php endif; ?>
148
+
149
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
150
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
151
+ <?php else: ?>
152
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
153
+ <?php endif; ?>
154
+
155
+ </div>
156
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
157
+
158
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
159
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
160
+ <small>
161
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
162
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
163
+ <?php endforeach; ?>
164
+ </small>
165
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
166
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
167
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
168
+ <?php endforeach; ?>
169
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
170
+ <small>
171
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
172
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
173
+ <?php endforeach; ?>
174
+ </small>
175
+ <?php endif; ?>
176
+ </div>
177
+
178
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
179
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
180
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
181
+ </div>
182
+ <?php endif; ?>
183
+ <?php endif; ?>
184
+ </td>
185
+ <?php endif; ?>
186
+ <!--- //Excluding Tax Subtotal -->
187
+
188
+ <!--- Including Tax Subtotal -->
189
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
190
+ <td>
191
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
192
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
193
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
194
+ <?php else: ?>
195
+ <div class="cart-price">
196
+ <?php endif; ?>
197
+
198
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
199
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
200
+ <?php else: ?>
201
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
202
+ <?php endif; ?>
203
+
204
+ </div>
205
+
206
+
207
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
208
+
209
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
210
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
211
+ <small>
212
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
213
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
214
+ <?php endforeach; ?>
215
+ </small>
216
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
217
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
218
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
219
+ <?php endforeach; ?>
220
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
221
+ <small>
222
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
223
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
224
+ <?php endforeach; ?>
225
+ </small>
226
+ <?php endif; ?>
227
+ </div>
228
+
229
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
230
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
231
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
232
+ </div>
233
+ <?php endif; ?>
234
+ <?php endif; ?>
235
+ </td>
236
+ <?php endif; ?>
237
+ <!--- //Including Tax Subtotal -->
238
+ </tr>
app/design/frontend/default/estore/template/checkout/multishipping/shipping.phtml ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ * Multishipping checkout shipping template
30
+ *
31
+ * @see Mage_Checkout_Block_Multishipping_Shipping
32
+ */
33
+ ?>
34
+
35
+
36
+ <div class="multiple-checkout">
37
+ <div class="page-title">
38
+ <h1><?php echo $this->__('Select Shipping Method') ?></h1>
39
+ </div>
40
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
41
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="shipping_method_form">
42
+ <?php foreach ($this->getAddresses() as $_index => $_address): ?>
43
+ <div class="col2-set">
44
+ <h2 class="legend"><?php echo $this->__('Address %s of %s', ($_index+1), $this->getAddressCount()) ?></h2>
45
+ <div class="col-1 col-narrow">
46
+ <div class="box">
47
+ <div class="box-title">
48
+ <h3><?php echo $this->__('Shipping To') ?> <span class="separator">|</span> <a href="<?php echo $this->getAddressEditUrl($_address) ?>"><?php echo $this->__('Change') ?></a></h3>
49
+ </div>
50
+ <div class="box-content">
51
+ <address><?php echo $_address->format('html') ?></address>
52
+ </div>
53
+ </div>
54
+ <div class="box box-sp-methods">
55
+ <div class="pointer"></div>
56
+ <div class="box-title">
57
+ <h3><?php echo $this->__('Shipping Method') ?></h3>
58
+ </div>
59
+ <div class="box-content">
60
+ <?php if (!($_shippingRateGroups = $this->getShippingRates($_address))): ?>
61
+ <p><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></p>
62
+ <?php else: ?>
63
+ <dl class="sp-methods">
64
+ <?php $_sole = count($_shippingRateGroups) == 1; foreach ($_shippingRateGroups as $code => $_rates): ?>
65
+ <dt><?php echo $this->getCarrierName($code) ?></dt>
66
+ <dd>
67
+ <ul>
68
+ <?php $_sole = $_sole && count($_rates) == 1; foreach ($_rates as $_rate): ?>
69
+ <li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"' ?>>
70
+ <?php if ($_rate->getErrorMessage()): ?>
71
+ <?php echo $_rate->getCarrierTitle() ?>: <?php echo $_rate->getErrorMessage() ?>
72
+ <?php else: ?>
73
+ <?php if ($_sole) : ?>
74
+ <span class="no-display"><input type="radio" name="shipping_method[<?php echo $_address->getId() ?>]" value="<?php echo $this->htmlEscape($_rate->getCode()) ?>" id="s_method_<?php echo $_address->getId() ?>_<?php echo $_rate->getCode() ?>" checked="checked"/></span>
75
+ <?php else: ?>
76
+ <input type="radio" name="shipping_method[<?php echo $_address->getId() ?>]" value="<?php echo $this->htmlEscape($_rate->getCode()) ?>" id="s_method_<?php echo $_address->getId() ?>_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod($_address)) echo ' checked="checked"' ?> class="radio" />
77
+ <?php endif; ?>
78
+ <label for="s_method_<?php echo $_address->getId() ?>_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
79
+ <?php $_excl = $this->getShippingPrice($_address, $_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
80
+ <?php $_incl = $this->getShippingPrice($_address, $_rate->getPrice(), true); ?>
81
+ <?php echo $_excl; ?>
82
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
83
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
84
+ <?php endif; ?>
85
+ </label>
86
+ <?php endif ?>
87
+ </li>
88
+ <?php endforeach; ?>
89
+ </ul>
90
+ </dd>
91
+ <?php endforeach; ?>
92
+ </dl>
93
+ <?php endif; ?>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ <div class="col-2 col-wide">
98
+ <?php echo $this->helper('giftmessage/message')->getInline('multishipping_adress_checkbox', $_address); ?>
99
+ <h3><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getItemsEditUrl($_address) ?>"><?php echo $this->__('Edit Items') ?></a></h3>
100
+ <table class="data-table" id="shipping-table-<?php echo $_address->getId() ?>">
101
+ <col />
102
+ <col width="1" />
103
+ <thead>
104
+ <tr>
105
+ <th><?php echo $this->__('Product Name') ?></th>
106
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
107
+ </tr>
108
+ </thead>
109
+ <tbody>
110
+ <?php foreach ($this->getAddressItems($_address) as $_item): ?>
111
+ <tr>
112
+ <td>
113
+ <?php echo $this->getItemHtml($_item->getQuoteItem()) ?>
114
+ </td>
115
+ <td class="a-center"><?php echo $_item->getQty() ?></td>
116
+ </tr>
117
+ <?php endforeach; ?>
118
+ </tbody>
119
+ </table>
120
+ <script type="text/javascript">decorateTable('shipping-table-<?php echo $_address->getId() ?>')</script>
121
+ <?php echo $this->helper('giftmessage/message')->getInline('multishipping_adress', $_address); ?>
122
+ </div>
123
+ </div>
124
+ <?php endforeach; ?>
125
+ <?php echo $this->getChildHtml('checkout_billing_items') ?>
126
+ <div class="buttons-set">
127
+ <p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Select Addresses') ?></a></p>
128
+ <button type="submit" title="<?php echo $this->__('Continue to Billing Information') ?>" class="button"><span><span><?php echo $this->__('Continue to Billing Information') ?></span></span></button>
129
+ </div>
130
+ </form>
131
+ </div>
app/design/frontend/default/estore/template/checkout/multishipping/state.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) 2010 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
+ * Mustishipping state
30
+ *
31
+ * @see Mage_Checkout_Block_Multishipping_State
32
+ */
33
+ ?>
34
+ <ul class="checkout-progress" id="checkout-progress-state">
35
+ <?php foreach ($this->getSteps() as $_step): ?>
36
+ <li title="<?php echo $_step->getLabel() ?>"<?php if($_step->getIsActive()): ?> class="active"<?php endif; ?>><span><?php echo $_step->getLabel() ?></span></li>
37
+ <?php endforeach; ?>
38
+ </ul>
39
+ <script type="text/javascript">decorateGeneric($$('#checkout-progress-state li'), ['first','last']);</script>
app/design/frontend/default/estore/template/checkout/multishipping/success.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) 2010 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">
29
+ <h1><?php echo $this->__('Order Success') ?></h1>
30
+ </div>
31
+ <h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
32
+ <p><?php echo $this->__('We are processing your order and you will soon receive an email with details of the order. Once the order has shipped you will receive another email with a link to track its progress.') ?></p>
33
+ <?php if($_orderIds = $this->getOrderIds()): ?>
34
+ <p>
35
+ <?php $flag = false ?>
36
+ <?php echo $this->__('Your order number is ') ?>
37
+ <?php foreach ($_orderIds as $orderId=>$incrementId): ?>
38
+ <?php if ($flag): ?>
39
+ <?php echo ', ' ?>
40
+ <?php endif; ?>
41
+ <?php $flag = true ?>
42
+ <a href="<?php echo $this->getViewOrderUrl($orderId) ?>"><?php echo $incrementId ?></a>
43
+ <?php endforeach; ?>
44
+ </p>
45
+ <?php endif; ?>
46
+ <?php echo $this->getChildHtml() ?>
47
+ <div class="buttons-set">
48
+ <button type="button" title="<?php echo $this->__('Continue Shopping') ?>" class="button" onclick="setLocation('<?php echo $this->getContinueUrl() ?>')"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
49
+ </div>
50
+ </div>
app/design/frontend/default/estore/template/checkout/onepage.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) 2010 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="checkoutsec check_one_mar">
28
+ <h1><?php //echo $this->__('Checkout') ?></h1>
29
+
30
+ <script type="text/javascript" src="<?php echo $this->getJsUrl('varien/accordion.js') ?>"></script>
31
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/opcheckout.js') ?>"></script>
32
+ <script type="text/javascript">countryRegions = <?php echo $this->helper('directory')->getRegionJson() ?></script>
33
+ <ol class="opc" id="checkoutSteps">
34
+ <?php $i=0; foreach($this->getSteps() as $_stepId => $_stepInfo): ?>
35
+ <?php if (!$this->getChild($_stepId) || !$this->getChild($_stepId)->isShow()): continue; endif; $i++ ?>
36
+ <li id="opc-<?php echo $_stepId ?>" class="section<?php echo !empty($_stepInfo['allow'])?' allow':'' ?><?php echo !empty($_stepInfo['complete'])?' saved':'' ?>">
37
+ <div class="step-title">
38
+ <span class="number"><?php //echo $i ?></span>
39
+ <h2><?php echo $_stepInfo['label'] ?></h2>
40
+ <a href="#"><?php echo $this->__('Edit') ?></a>
41
+ </div>
42
+ <div id="checkout-step-<?php echo $_stepId ?>" class="step a-item" style="display:none;">
43
+ <?php echo $this->getChildHtml($_stepId) ?>
44
+ </div>
45
+
46
+ </li>
47
+ <?php endforeach ?>
48
+ </ol>
49
+ </div>
50
+ <script type="text/javascript">
51
+ //<![CDATA[
52
+ var accordion = new Accordion('checkoutSteps', '.step-title', true);
53
+ <?php if($this->getActiveStep()): ?>
54
+ accordion.openSection('opc-<?php echo $this->getActiveStep() ?>');
55
+ <?php endif ?>
56
+ var checkout = new Checkout(accordion,{
57
+ progress: '<?php echo $this->getUrl('checkout/onepage/progress') ?>',
58
+ review: '<?php echo $this->getUrl('checkout/onepage/review') ?>',
59
+ saveMethod: '<?php echo $this->getUrl('checkout/onepage/saveMethod') ?>',
60
+ failure: '<?php echo $this->getUrl('checkout/cart') ?>'}
61
+ );
62
+ //]]>
63
+ </script>
app/design/frontend/default/estore/template/checkout/onepage/agreements.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) 2010 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_Checkout_Block_Agreements
30
+ */
31
+ ?>
32
+
33
+ <?php if (!$this->getAgreements()) return; ?>
34
+ <form action="" id="checkout-agreements" onsubmit="return false;">
35
+ <ol class="checkout-agreements">
36
+ <?php foreach ($this->getAgreements() as $_a): ?>
37
+ <li>
38
+ <div class="agreement-content"<?php echo ($_a->getContentHeight() ? ' style="height:' . $_a->getContentHeight() . '"' : '')?>>
39
+ <?php if ($_a->getIsHtml()):?>
40
+ <?php echo $_a->getContent() ?>
41
+ <?php else:?>
42
+ <?php echo nl2br($this->htmlEscape($_a->getContent())) ?>
43
+ <?php endif; ?>
44
+ </div>
45
+ <p class="agree">
46
+ <input type="checkbox" id="agreement-<?php echo $_a->getId()?>" name="agreement[<?php echo $_a->getId()?>]" value="1" title="<?php echo $this->htmlEscape($_a->getCheckboxText()) ?>" class="checkbox" /><label for="agreement-<?php echo $_a->getId()?>"><?php echo $this->htmlEscape($_a->getCheckboxText()) ?></label>
47
+ </p>
48
+ </li>
49
+ <?php endforeach ?>
50
+ </ol>
51
+ </form>
app/design/frontend/default/estore/template/checkout/onepage/billing.phtml ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="co-billing-form" action="">
28
+ <fieldset>
29
+ <ul class="form-list">
30
+ <?php if ($this->customerHasAddresses()): ?>
31
+ <li class="wide">
32
+ <label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
33
+ <div class="input-box">
34
+ <?php echo $this->getAddressesHtmlSelect('billing') ?>
35
+ </div>
36
+ </li>
37
+ <?php endif; ?>
38
+ <li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
39
+ <fieldset>
40
+ <input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
41
+ <ul>
42
+ <li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getQuote()->getCustomer())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
43
+ <ul class="forms">
44
+ <li class="txt"><?php echo $this->__('Company') ?></li>
45
+ <li class="inputfield">
46
+ <input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="bar" />
47
+ </li>
48
+ </ul>
49
+ <?php if(!$this->isCustomerLoggedIn()): ?>
50
+ <ul class="forms">
51
+ <li class="txt"><em>*</em><?php echo $this->__('Email Address') ?></li>
52
+ <li class="inputfield">
53
+ <input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="bar validate-email required-entry" />
54
+ </li>
55
+ </ul>
56
+ <?php endif ?>
57
+ <div class="clear"></div>
58
+ <ul class="forms">
59
+ <li class="txt"><em>*</em><?php echo $this->__('Address') ?></li>
60
+ <li class="inputfield">
61
+ <input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="bbar" />
62
+ </li>
63
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
64
+ <li class="inputfield">
65
+ <input type="text" title="<?php echo $this->__('Street Address %s', $_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="bbar" />
66
+ </li>
67
+
68
+ <?php endfor ?>
69
+ </ul>
70
+ <ul class="forms">
71
+ <li class="txt"><em>*</em><?php echo $this->__('City') ?></li>
72
+ <li class="inputfield">
73
+ <input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="bar required-entry" id="billing:city" />
74
+ </li></ul>
75
+ <ul class="forms">
76
+ <li class="txt"><em>*</em><em>*</em><?php echo $this->__('State/Province') ?></li>
77
+ <li class="inputfield">
78
+ <select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="bar" style="display:none;">
79
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
80
+ </select>
81
+
82
+ <script type="text/javascript">
83
+ //<![CDATA[
84
+ $('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
85
+ //]]>
86
+ </script>
87
+ <input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="bar" style="display:none;" />
88
+ </li>
89
+ </ul>
90
+ <ul class="forms">
91
+ <li class="txt"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></li>
92
+ <li class="inputfield">
93
+ <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class=" bar validate-zip-international" />
94
+ </li>
95
+ </ul>
96
+ <ul class="forms">
97
+ <li class="txt"><em>*</em><?php echo $this->__('Country') ?></li>
98
+ <li class="inputfield" style="color:#000;"> <?php echo $this->getCountryHtmlSelect('billing') ?>
99
+ </li>
100
+ </ul>
101
+ <ul class="forms">
102
+ <li class="txt"><em>*</em><?php echo $this->__('Telephone') ?></li>
103
+ <li class="inputfield">
104
+ <input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="bar required-entry" id="billing:telephone" />
105
+ </li>
106
+ </ul>
107
+ <ul class="forms">
108
+ <li class="txt"><?php echo $this->__('Fax') ?></li>
109
+ <li class="inputfield">
110
+ <input type="text" name="billing[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="bar" id="billing:fax" />
111
+ </li>
112
+ </ul>
113
+ </li>
114
+ <?php if(!$this->isCustomerLoggedIn()): ?>
115
+
116
+ <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
117
+ <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
118
+ <?php if ($_dob->isEnabled() || $_gender->isEnabled()): ?>
119
+ <li class="fields">
120
+ <?php if ($_dob->isEnabled()): ?>
121
+ <div class="field">
122
+ <?php echo $_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
123
+ </div>
124
+ <?php endif; ?>
125
+ <?php if ($_gender->isEnabled()): ?>
126
+ <div class="field">
127
+ <?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
128
+ </div>
129
+ <?php endif ?>
130
+ </li>
131
+ <?php endif ?>
132
+
133
+ <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
134
+ <?php if ($_taxvat->isEnabled()): ?>
135
+ <li>
136
+ <?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
137
+ </li>
138
+ <?php endif ?>
139
+
140
+ <li class="fields" id="register-customer-password">
141
+ <ul class="forms">
142
+ <li class="txt"><em>*</em><?php echo $this->__('Password') ?></li>
143
+ <li class="inputfield">
144
+ <input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="bar required-entry validate-password" />
145
+ </li>
146
+ </ul>
147
+
148
+ <ul class="forms">
149
+ <li class="txt"><em>*</em><?php echo $this->__('Confirm Password') ?></li>
150
+ <li class="inputfield">
151
+ <input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="bar required-entry validate-cpassword" />
152
+ </li>
153
+ </ul>
154
+ </li>
155
+ <?php endif; ?>
156
+ <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
157
+ <li class="control">
158
+ <input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label>
159
+ </li>
160
+ <?php else:?>
161
+ <li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
162
+ <?php endif; ?>
163
+ </ul>
164
+ </fieldset>
165
+ </li>
166
+ <?php if ($this->canShip()): ?>
167
+ <ul class="forms smallforms">
168
+ <li class="check">
169
+ <input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1"<?php if ($this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to this address') ?>" onclick="$('shipping:same_as_billing').checked = true;" class="left" /></li>
170
+ <li class="txt smalltxt"><?php echo $this->__('Ship to this address') ?></li>
171
+ </ul>
172
+ <div class="clear"></div>
173
+ <ul class="forms smallforms">
174
+ <li class="check">
175
+ <input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0"<?php if (!$this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to different address') ?>" onclick="$('shipping:same_as_billing').checked = false;" class="left" /></li><li class="txt smalltxt"><?php echo $this->__('Ship to different address') ?></li>
176
+ </ul>
177
+ <?php endif; ?>
178
+ </ul>
179
+ <?php if (!$this->canShip()): ?>
180
+ <input type="hidden" name="billing[use_for_shipping]" value="1" />
181
+ <?php endif; ?>
182
+ <div class="checkoutbtns" id="billing-buttons-container">
183
+ <p class="req bold"><?php echo $this->__('* Required Fields') ?></p>
184
+ <button type="button" title="<?php echo $this->__('Continue') ?>" class="buttonone right" onclick="billing.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
185
+ <span class="please-wait" id="billing-please-wait" style="display:none;">
186
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
187
+ </span>
188
+ </div>
189
+ </fieldset>
190
+ </form>
191
+ <script type="text/javascript">
192
+ //<![CDATA[
193
+ var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
194
+ var billingForm = new VarienForm('co-billing-form');
195
+
196
+ //billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
197
+ $('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
198
+
199
+ var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', countryRegions, undefined, 'billing:postcode');
200
+ //]]>
201
+ </script>
app/design/frontend/default/estore/template/checkout/onepage/failure.phtml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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->__('An error occurred in the process of payment') ?></h1>
29
+ </div>
30
+ <?php if ($this->getRealOrderId()) : ?><p><?php echo $this->__('Order #') . $this->getRealOrderId() ?></p><?php endif ?>
31
+ <?php if ($error = $this->getErrorMessage()) : ?><p><?php echo $error ?></p><?php endif ?>
32
+ <p><?php echo $this->__('Click <a href="%s">here</a> to continue shopping.', $this->getContinueShoppingUrl()) ?></p>
app/design/frontend/default/estore/template/checkout/onepage/link.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) 2010 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 if ($this->isPossibleOnepageCheckout()):?>
29
+
30
+ <button type="button" title="<?php echo $this->__('Check out') ?>" class="buttonone button_one_mar <?php if ($this->isDisabled()):?> no-checkout<?php endif; ?>"<?php if ($this->isDisabled()):?> disabled="disabled"<?php endif; ?> onclick="window.location='<?php echo $this->getCheckoutUrl() ?>';"><span><span><?php echo $this->__('Check out') ?></span></span></button>
31
+ <?php endif?>
app/design/frontend/default/estore/template/checkout/onepage/login.phtml ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="col2-set">
28
+ <?php echo $this->getChildHtml('login_before')?>
29
+ <div class="col-1">
30
+ <h3><?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?><?php echo $this->__('Checkout as a Guest or Register') ?><?php else: ?><?php echo $this->__('Register to Create an Account') ?><?php endif; ?></h3>
31
+ <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
32
+ <p><?php echo $this->__('Register with us for future convenience:') ?></p>
33
+ <?php else: ?>
34
+ <p><strong><?php echo $this->__('Register and save time!') ?></strong><br />
35
+ <?php echo $this->__('Register with us for future convenience:') ?></p>
36
+ <ul>
37
+ <li><?php echo $this->__('Fast and easy check out') ?></li>
38
+ <li><?php echo $this->__('Easy access to your order history and status') ?></li>
39
+ </ul>
40
+ <?php endif; ?>
41
+ <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
42
+ <ul class="form-list">
43
+ <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
44
+ <li class="control">
45
+ <input type="radio" name="checkout_method" id="login:guest" value="guest"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_GUEST): ?> checked="checked"<?php endif; ?> class="radio" /><label for="login:guest"><?php echo $this->__('Checkout as Guest') ?></label>
46
+ </li>
47
+ <?php endif; ?>
48
+ <li class="control">
49
+ <input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER || !$this->getQuote()->isAllowedGuestCheckout()): ?> checked="checked"<?php endif ?> class="radio" /><label for="login:register"><?php echo $this->__('Register') ?></label>
50
+ </li>
51
+ </ul>
52
+ <h4><?php echo $this->__('Register and save time!') ?></h4>
53
+ <p><?php echo $this->__('Register with us for future convenience:') ?></p>
54
+ <ul class="ul">
55
+ <li><?php echo $this->__('Fast and easy check out') ?></li>
56
+ <li><?php echo $this->__('Easy access to your order history and status') ?></li>
57
+ </ul>
58
+ <?php else: ?>
59
+ <input type="hidden" name="checkout_method" id="login:register" value="register" checked="checked" />
60
+ <?php endif; ?>
61
+ </div>
62
+ <div class="col-2">
63
+ <h3><?php echo $this->__('Login') ?></h3>
64
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
65
+ <form id="login-form" action="<?php echo $this->getPostAction() ?>" method="post">
66
+ <fieldset>
67
+ <h4><?php echo $this->__('Already registered?') ?></h4>
68
+ <p><?php echo $this->__('Please log in below:') ?></p>
69
+
70
+ <ul class="forms" style="padding-left:0px;">
71
+ <li class="txt">
72
+ <em>*</em><?php echo $this->__('Email Address') ?></li>
73
+ <li class="inputfield" ><input type="text" class="bar" id="login-email" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" />
74
+ </li>
75
+ </ul>
76
+ <ul class="forms" style="padding-left:0px;">
77
+ <li class="txt"><em>*</em><?php echo $this->__('Password') ?></li>
78
+ <li class="inputfield">
79
+ <input type="password" class="bar" id="login-password" name="login[password]" />
80
+ </li>
81
+ </ul>
82
+ </fieldset>
83
+ </form>
84
+ </div>
85
+ <div class="col2-set">
86
+ <div class="col-1">
87
+ <div class="buttons-set">
88
+ <p class="required">&nbsp;</p>
89
+ <button type="button" class="buttonone right" onclick="checkout.setMethod();"><span><span><?php echo ($this->getQuote()->isAllowedGuestCheckout() ? $this->__('Continue') : $this->__('Register')) ?></span></span></button>
90
+ </div>
91
+ </div>
92
+ <div class="col-2">
93
+ <div class="buttons-set">
94
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
95
+ <a href="<?php echo $this->getUrl('customer/account/forgotpassword') ?>" class="f-left"><?php echo $this->__('Forgot your password?') ?></a>
96
+ <button type="submit" class="buttonone right" onclick="onepageLogin(this)"><span><span><?php echo $this->__('Login') ?></span></span></button>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ <script type="text/javascript">
101
+ //<![CDATA[
102
+ var loginForm = new VarienForm('login-form', true);
103
+ $('login-email').observe('keypress', bindLoginPost);
104
+ $('login-password').observe('keypress', bindLoginPost);
105
+ function bindLoginPost(evt){
106
+ if (evt.keyCode == Event.KEY_RETURN) {
107
+ loginForm.submit();
108
+ }
109
+ }
110
+ function onepageLogin(button)
111
+ {
112
+ if(loginForm.validator && loginForm.validator.validate()){
113
+ button.disabled = true;
114
+ loginForm.submit();
115
+ }
116
+ }
117
+ //]]>
118
+ </script>
app/design/frontend/default/estore/template/checkout/onepage/payment.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) 2010 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 payment = new Payment('co-payment-form', '<?php echo $this->getUrl('checkout/onepage/savePayment') ?>');
30
+ //]]>
31
+ </script>
32
+ <form action="" id="co-payment-form">
33
+ <fieldset>
34
+ <?php echo $this->getChildHtml('methods') ?>
35
+ </fieldset>
36
+ </form>
37
+ <div class="tool-tip" id="payment-tool-tip" style="display:none;">
38
+ <div class="btn-close"><a href="#" id="payment-tool-tip-close" title="<?php echo $this->__('Close') ?>"><?php echo $this->__('Close') ?></a></div>
39
+ <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>
40
+ </div>
41
+ <div class="buttons-set" id="payment-buttons-container">
42
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
43
+ <p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
44
+ <button type="button" class="buttonone right" onclick="payment.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
45
+ <span class="please-wait" id="payment-please-wait" style="display:none;">
46
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
47
+ </span>
48
+ </div>
49
+ <script type="text/javascript">
50
+ //<![CDATA[
51
+ function toggleToolTip(event){
52
+ if($('payment-tool-tip')){
53
+ $('payment-tool-tip').setStyle({
54
+ top: (Event.pointerY(event)-560)+'px'//,
55
+ //left: (Event.pointerX(event)+100)+'px'
56
+ })
57
+ $('payment-tool-tip').toggle();
58
+ }
59
+ Event.stop(event);
60
+ }
61
+ if($('payment-tool-tip-close')){
62
+ Event.observe($('payment-tool-tip-close'), 'click', toggleToolTip);
63
+ }
64
+ //]]>
65
+ </script>
66
+ <script type="text/javascript">
67
+ //<![CDATA[
68
+ payment.currentMethod = "<?php echo $this->getChild('methods')->getSelectedMethodCode() ?>";
69
+ //]]>
70
+ </script>
app/design/frontend/default/estore/template/checkout/onepage/payment/methods.phtml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ * One page checkout payment methods
30
+ *
31
+ * @see Mage_Checkout_Block_Onepage_Payment_Methods
32
+ */
33
+ ?>
34
+ <dl class="sp-methods" id="checkout-payment-method-load">
35
+ <?php foreach ($this->getMethods() as $_method): $_code = $_method->getCode() ?>
36
+ <dt>
37
+ <?php if( sizeof($this->getMethods()) > 1 ): ?>
38
+ <input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" title="<?php echo $this->htmlEscape($_method->getTitle()) ?>" onclick="payment.switchMethod('<?php echo $_code ?>')"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio" />
39
+ <?php else: ?>
40
+ <span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio" /></span>
41
+ <?php endif; ?>
42
+ <label for="p_method_<?php echo $_code ?>"><?php echo $this->getMethodTitle($_method) ?> <?php echo $this->getMethodLabelAfterHtml($_method) ?></label>
43
+ </dt>
44
+ <?php if ($html = $this->getPaymentMethodFormHtml($_method)): ?>
45
+ <dd>
46
+ <?php echo $html; ?>
47
+ </dd>
48
+ <?php endif; ?>
49
+ <?php endforeach; ?>
50
+ </dl>
51
+ <?php echo $this->getChildChildHtml('additional'); ?>
52
+ <script type="text/javascript">
53
+ //<![CDATA[
54
+ <?php echo $this->getChildChildHtml('scripts'); ?>
55
+ payment.init();
56
+ //]]>
57
+ </script>
app/design/frontend/default/estore/template/checkout/onepage/progress.phtml ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="process">
28
+ <h5 class="seccolr upper"><?php echo $this->__('Discount Codes') ?></h5>
29
+ <?php if ($this->getCheckout()->getStepData('billing', 'is_show')): ?>
30
+ <?php if($this->getCheckout()->getStepData('billing', 'complete')): ?>
31
+ <div class="proceshead">
32
+ <h6 class="colr"><?php echo $this->__('Billing Address') ?> </h6>
33
+ <a href="#billing" onclick="checkout.accordion.openSection('opc-billing'); return false;" class="change colr"><?php echo $this->__('Change') ?></a>
34
+ </div>
35
+ <div class="protxtsec">
36
+ <address><?php echo $this->getBilling()->format('html') ?></address>
37
+ </div>
38
+ <?php else: ?>
39
+ <div class="proceshead">
40
+ <h6 class="colr">
41
+ <?php echo $this->__('Billing Address') ?>
42
+ </h6>
43
+
44
+ </div>
45
+ <?php endif; ?>
46
+ <?php endif; ?>
47
+ <?php if ($this->getCheckout()->getStepData('shipping', 'is_show')): ?>
48
+ <?php if($this->getCheckout()->getStepData('shipping', 'complete')): ?>
49
+
50
+ <div class="proceshead">
51
+ <h6 class="colr"><?php echo $this->__('Shipping Address') ?></h6>
52
+ <a href="#payment" onclick="checkout.accordion.openSection('opc-shipping');return false;" class="change colr">Change</a></div>
53
+ <div class="protxtsec">
54
+ <address><?php echo $this->getBilling()->format('html') ?></address>
55
+ </div>
56
+
57
+ <?php else: ?>
58
+ <div class="proceshead">
59
+ <h6 class="colr"><?php echo $this->__('Shipping Address') ?></h6>
60
+ </div>
61
+ <?php endif; ?>
62
+ <?php endif; ?>
63
+ <?php if ($this->getCheckout()->getStepData('shipping_method', 'is_show')): ?>
64
+ <?php if($this->getCheckout()->getStepData('shipping_method', 'complete')): ?>
65
+
66
+ <div class="proceshead">
67
+ <h6 class="colr"> <?php echo $this->__('Shipping Method') ?></h6>
68
+ <a href="#shipping_method" onclick="checkout.accordion.openSection('opc-shipping_method'); return false;" class="change colr"><?php echo $this->__('Change') ?></a></div>
69
+ <div class="protextsec">
70
+ <address>
71
+ <?php if ($this->getShippingMethod()): ?>
72
+ <?php echo $this->getShippingDescription() ?>
73
+
74
+ <?php $_excl = $this->getShippingPriceExclTax(); ?>
75
+ <?php $_incl = $this->getShippingPriceInclTax(); ?>
76
+ <?php if ($this->helper('tax')->displayShippingPriceIncludingTax()): ?>
77
+ <?php echo $_incl; ?>
78
+ <?php else: ?>
79
+ <?php echo $_excl; ?>
80
+ <?php endif; ?>
81
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
82
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
83
+ <?php endif; ?>
84
+
85
+ <?php else: ?>
86
+ <?php echo $this->__('Shipping method has not been selected yet') ?>
87
+ <?php endif; ?>
88
+ </address>
89
+ </div>
90
+ <?php else: ?>
91
+ <div class="proceshead">
92
+ <h6 class="colr"> <?php echo $this->__('Shipping Method') ?></h6>
93
+ </div>
94
+
95
+ <?php endif; ?>
96
+ <?php endif; ?>
97
+ <?php if ($this->getCheckout()->getStepData('payment', 'is_show')): ?>
98
+ <?php if($this->getCheckout()->getStepData('payment', 'complete')): ?>
99
+
100
+ <div class="proceshead">
101
+ <h6 class="colr"> <?php echo $this->__('Payment Method') ?></h6>
102
+ <a href="#payment" onclick="checkout.accordion.openSection('opc-payment'); return false;" class="change colr"><?php echo $this->__('Change') ?></a> </div>
103
+
104
+ <div class="protxtsec">
105
+ <address> <?php echo $this->getPaymentHtml() ?></address></div>
106
+ <?php else: ?>
107
+ <div class="proceshead">
108
+ <h6 class="colr"> <?php echo $this->__('Payment Method') ?></h6>
109
+ </div>
110
+
111
+ <?php endif; ?>
112
+ <?php endif; ?>
113
+
114
+ </div>
115
+ <?php /*?><div class="block block-progress opc-block-progress">
116
+ <div class="block-title">
117
+ <strong><span><?php echo $this->__('Your Checkout Progress') ?></span></strong>
118
+ </div>
119
+ <div class="block-content">
120
+ <dl>
121
+ <?php if ($this->getCheckout()->getStepData('billing', 'is_show')): ?>
122
+ <?php if($this->getCheckout()->getStepData('billing', 'complete')): ?>
123
+ <dt class="complete">
124
+ <?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="#billing" onclick="checkout.accordion.openSection('opc-billing'); return false;"><?php echo $this->__('Change') ?></a>
125
+ </dt>
126
+ <dd class="complete">
127
+ <address><?php echo $this->getBilling()->format('html') ?></address>
128
+ </dd>
129
+ <?php else: ?>
130
+ <dt>
131
+ <?php echo $this->__('Billing Address') ?>
132
+ </dt>
133
+ <?php endif; ?>
134
+ <?php endif; ?>
135
+
136
+ <?php if ($this->getCheckout()->getStepData('shipping', 'is_show')): ?>
137
+ <?php if($this->getCheckout()->getStepData('shipping', 'complete')): ?>
138
+ <dt class="complete">
139
+ <?php echo $this->__('Shipping Address') ?> <span class="separator">|</span> <a href="#payment" onclick="checkout.accordion.openSection('opc-shipping');return false;"><?php echo $this->__('Change') ?></a>
140
+ </dt>
141
+ <dd class="complete">
142
+ <address><?php echo $this->getShipping()->format('html') ?></address>
143
+ </dd>
144
+ <?php else: ?>
145
+ <dt>
146
+ <?php echo $this->__('Shipping Address') ?>
147
+ </dt>
148
+ <?php endif; ?>
149
+ <?php endif; ?>
150
+
151
+ <?php if ($this->getCheckout()->getStepData('shipping_method', 'is_show')): ?>
152
+ <?php if($this->getCheckout()->getStepData('shipping_method', 'complete')): ?>
153
+ <dt class="complete">
154
+ <?php echo $this->__('Shipping Method') ?> <span class="separator">|</span> <a href="#shipping_method" onclick="checkout.accordion.openSection('opc-shipping_method'); return false;"><?php echo $this->__('Change') ?></a>
155
+ </dt>
156
+ <dd class="complete">
157
+ <?php if ($this->getShippingMethod()): ?>
158
+ <?php echo $this->getShippingDescription() ?>
159
+
160
+ <?php $_excl = $this->getShippingPriceExclTax(); ?>
161
+ <?php $_incl = $this->getShippingPriceInclTax(); ?>
162
+ <?php if ($this->helper('tax')->displayShippingPriceIncludingTax()): ?>
163
+ <?php echo $_incl; ?>
164
+ <?php else: ?>
165
+ <?php echo $_excl; ?>
166
+ <?php endif; ?>
167
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
168
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
169
+ <?php endif; ?>
170
+
171
+ <?php else: ?>
172
+ <?php echo $this->__('Shipping method has not been selected yet') ?>
173
+ <?php endif; ?>
174
+ </dd>
175
+ <?php else: ?>
176
+ <dt>
177
+ <?php echo $this->__('Shipping Method') ?>
178
+ </dt>
179
+ <?php endif; ?>
180
+ <?php endif; ?>
181
+
182
+ <?php if ($this->getCheckout()->getStepData('payment', 'is_show')): ?>
183
+ <?php if($this->getCheckout()->getStepData('payment', 'complete')): ?>
184
+ <dt class="complete">
185
+ <?php echo $this->__('Payment Method') ?> <span class="separator">|</span> <a href="#payment" onclick="checkout.accordion.openSection('opc-payment'); return false;"><?php echo $this->__('Change') ?></a>
186
+ </dt>
187
+ <dd class="complete">
188
+ <?php echo $this->getPaymentHtml() ?>
189
+ </dd>
190
+ <?php else: ?>
191
+ <dt>
192
+ <?php echo $this->__('Payment Method') ?>
193
+ </dt>
194
+ <?php endif; ?>
195
+ <?php endif; ?>
196
+ </dl>
197
+ </div>
198
+ </div><?php */?>
app/design/frontend/default/estore/template/checkout/onepage/review.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) 2010 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="order-review" id="checkout-review-load">
28
+ <?php echo $this->getChildHtml('info') ?>
29
+ </div>
app/design/frontend/default/estore/template/checkout/onepage/review/button.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) 2010 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
+ <button type="submit" title="<?php echo $this->__('Place Order') ?>" class="buttonone right" onclick="review.save();"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
app/design/frontend/default/estore/template/checkout/onepage/review/info.phtml ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 echo $this->getChildHtml('items_before'); ?>
28
+ <div id="checkout-review-table-wrapper">
29
+ <table class="data-table" id="checkout-review-table">
30
+ <?php if ($this->helper('tax')->displayCartBothPrices()): $colspan = $rowspan = 2; else: $colspan = $rowspan = 1; endif; ?>
31
+ <col />
32
+ <col width="1" />
33
+ <col width="1" />
34
+ <col width="1" />
35
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
36
+ <col width="1" />
37
+ <col width="1" />
38
+ <?php endif; ?>
39
+ <thead>
40
+ <tr>
41
+ <th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product Name') ?></th>
42
+ <th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Price') ?></th>
43
+ <th rowspan="<?php echo $rowspan ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
44
+ <th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
45
+ </tr>
46
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
47
+ <tr>
48
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
49
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
50
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
51
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
52
+ </tr>
53
+ <?php endif; ?>
54
+ </thead>
55
+ <?php echo $this->getChildHtml('totals'); ?>
56
+ <tbody>
57
+ <?php foreach($this->getItems() as $_item): ?>
58
+ <?php echo $this->getItemHtml($_item)?>
59
+ <?php endforeach ?>
60
+ </tbody>
61
+ </table>
62
+ </div>
63
+ <?php echo $this->getChildHtml('items_after'); ?>
64
+ <script type="text/javascript">
65
+ //<![CDATA[
66
+ decorateTable('checkout-review-table');
67
+ truncateOptions();
68
+ //]]>
69
+ </script>
70
+ <div id="checkout-review-submit">
71
+ <?php echo $this->getChildHtml('agreements') ?>
72
+ <div class="buttons-set" id="review-buttons-container">
73
+ <p class="f-left"><?php echo $this->__('Forgot an Item?') ?> <a href="<?php echo $this->getUrl('checkout/cart') ?>"><?php echo $this->__('Edit Your Cart') ?></a></p>
74
+ <?php echo $this->getChildHtml('button') ?>
75
+ <span class="please-wait" id="review-please-wait" style="display:none;">
76
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
77
+ </span>
78
+ </div>
79
+ <script type="text/javascript">
80
+ //<![CDATA[
81
+ review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
82
+ //]]>
83
+ </script>
84
+ </div>
app/design/frontend/default/estore/template/checkout/onepage/review/item.phtml ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ <tr>
29
+ <td><h3 class="product-name"><?php echo $this->htmlEscape($this->getProductName()) ?></h3>
30
+ <?php if ($_options = $this->getOptionList()):?>
31
+ <dl class="item-options">
32
+ <?php foreach ($_options as $_option) : ?>
33
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
34
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
35
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
36
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
37
+ <div class="truncated_full_value">
38
+ <dl class="item-options">
39
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
40
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
41
+ </dl>
42
+ </div>
43
+ <?php endif; ?>
44
+ </dd>
45
+ <?php endforeach; ?>
46
+ </dl>
47
+ <?php endif;?>
48
+ <?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
49
+ <?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
50
+ <?php endif;?>
51
+ </td>
52
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
53
+ <td class="a-right">
54
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
55
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
56
+ <?php else: ?>
57
+ <span class="cart-price">
58
+ <?php endif; ?>
59
+
60
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
61
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
62
+ <?php else: ?>
63
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
64
+ <?php endif; ?>
65
+
66
+ </span>
67
+
68
+
69
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
70
+
71
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
72
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
73
+ <small>
74
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
75
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
76
+ <?php endforeach; ?>
77
+ </small>
78
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
79
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
80
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
81
+ <?php endforeach; ?>
82
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
83
+ <small>
84
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
85
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
86
+ <?php endforeach; ?>
87
+ </small>
88
+ <?php endif; ?>
89
+ </div>
90
+
91
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
92
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
93
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
94
+ </div>
95
+ <?php endif; ?>
96
+ <?php endif; ?>
97
+ </td>
98
+ <?php endif; ?>
99
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
100
+ <td>
101
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
102
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
103
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
104
+ <?php else: ?>
105
+ <span class="cart-price">
106
+ <?php endif; ?>
107
+
108
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
109
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
110
+ <?php else: ?>
111
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
112
+ <?php endif; ?>
113
+
114
+ </span>
115
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
116
+
117
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
118
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
119
+ <small>
120
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
121
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
122
+ <?php endforeach; ?>
123
+ </small>
124
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
125
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
126
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
127
+ <?php endforeach; ?>
128
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
129
+ <small>
130
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
131
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
132
+ <?php endforeach; ?>
133
+ </small>
134
+ <?php endif; ?>
135
+ </div>
136
+
137
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
138
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
139
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
140
+ </div>
141
+ <?php endif; ?>
142
+ <?php endif; ?>
143
+ </td>
144
+ <?php endif; ?>
145
+ <td class="a-center"><?php echo $_item->getQty() ?></td>
146
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
147
+ <td class="a-right">
148
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
149
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->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($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
155
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
156
+ <?php else: ?>
157
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
158
+ <?php endif; ?>
159
+
160
+ </span>
161
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
162
+
163
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
164
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
165
+ <small>
166
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
167
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
168
+ <?php endforeach; ?>
169
+ </small>
170
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
171
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
172
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
173
+ <?php endforeach; ?>
174
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
175
+ <small>
176
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
177
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
178
+ <?php endforeach; ?>
179
+ </small>
180
+ <?php endif; ?>
181
+ </div>
182
+
183
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
184
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
185
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
186
+ </div>
187
+ <?php endif; ?>
188
+ <?php endif; ?>
189
+ </td>
190
+ <?php endif; ?>
191
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
192
+ <td>
193
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
194
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
195
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
196
+ <?php else: ?>
197
+ <span class="cart-price">
198
+ <?php endif; ?>
199
+
200
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
201
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
202
+ <?php else: ?>
203
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
204
+ <?php endif; ?>
205
+
206
+ </span>
207
+
208
+
209
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
210
+
211
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
212
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
213
+ <small>
214
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
215
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
216
+ <?php endforeach; ?>
217
+ </small>
218
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
219
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
220
+ <span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
221
+ <?php endforeach; ?>
222
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
223
+ <small>
224
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
225
+ <span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
226
+ <?php endforeach; ?>
227
+ </small>
228
+ <?php endif; ?>
229
+ </div>
230
+
231
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
232
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
233
+ <span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
234
+ </div>
235
+ <?php endif; ?>
236
+ <?php endif; ?>
237
+ </td>
238
+ <?php endif; ?>
239
+ </tr>
app/design/frontend/default/estore/template/checkout/onepage/review/totals.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) 2010 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_Checkout_Block_Cart_Totals
29
+ */
30
+ ?>
31
+ <?php if ($this->getTotals()): ?>
32
+ <tfoot>
33
+ <?php $_colspan = $this->helper('tax')->displayCartBothPrices() ? 5 : 3; ?>
34
+ <?php echo $this->renderTotals(null, $_colspan); ?>
35
+ <?php echo $this->renderTotals('footer', $_colspan); ?>
36
+ <?php if ($this->needDisplayBaseGrandtotal()):?>
37
+ <tr>
38
+ <td class="a-right" colspan="<?php echo $_colspan; ?>">
39
+ <small><?php echo $this->helper('sales')->__('Your credit card will be charged for') ?></small>
40
+ </td>
41
+ <td class="a-right">
42
+ <small><?php echo $this->displayBaseGrandtotal() ?></small>
43
+ </td>
44
+ </tr>
45
+ <?php endif?>
46
+ </tfoot>
47
+ <?php endif; ?>
app/design/frontend/default/estore/template/checkout/onepage/shipping.phtml ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 action="" id="co-shipping-form">
28
+ <ul class="form-list">
29
+ <?php if ($this->customerHasAddresses()): ?>
30
+ <li class="wide">
31
+ <label for="shipping-address-select"><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></label>
32
+ <div class="input-box">
33
+ <?php echo $this->getAddressesHtmlSelect('shipping') ?>
34
+ </div>
35
+ </li>
36
+ <?php endif ?>
37
+ <li id="shipping-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif ?>>
38
+ <fieldset>
39
+ <input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
40
+ <ul>
41
+ <li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())->setFieldIdFormat('shipping:%s')->setFieldNameFormat('shipping[%s]')->setFieldParams('onchange="shipping.setSameAsBilling(false)"')->toHtml() ?></li>
42
+ <li class="fields">
43
+ <ul class="forms">
44
+ <li class="txt"><?php echo $this->__('Company') ?></li>
45
+ <li class="inputfield">
46
+ <input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="bar" onchange="shipping.setSameAsBilling(false);" />
47
+ </li>
48
+ </ul>
49
+ <?php if(false): ?>
50
+ <ul class="forms">
51
+ <li class="txt"><em>*</em><?php echo $this->__('Email Address') ?></li>
52
+ <li class="inputfield">
53
+ <input type="text" name="shipping[email]" id="shipping:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="bar validate-email required-entry" />
54
+ </li>
55
+ </ul>
56
+ <?php endif ?>
57
+ </li>
58
+ <div class="clear"></div>
59
+ <ul class="forms">
60
+ <li class="txt"><em>*</em><?php echo $this->__('Address') ?></li>
61
+ <li class="inputfield">
62
+ <input type="text" title="<?php echo $this->__('Street Address') ?>" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="bbar required-entry" onchange="shipping.setSameAsBilling(false);" />
63
+ </li>
64
+
65
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
66
+ <li class="wide">
67
+ <li class="inputfield">
68
+ <input type="text" title="<?php echo $this->__('Street Address %s', $_i) ?>" name="shipping[street][]" id="shipping:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="bbar" onchange="shipping.setSameAsBilling(false);" />
69
+ </li>
70
+ </ul>
71
+ </li>
72
+ <?php endfor ?>
73
+ <li class="fields">
74
+ <ul class="forms">
75
+ <li class="txt"><em>*</em><?php echo $this->__('City') ?></li>
76
+ <li class="inputfield">
77
+ <input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="bar required-entry" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />
78
+ </li>
79
+ </ul>
80
+ <ul class="forms">
81
+ <li class="txt"><em>*</em><em>*</em><?php echo $this->__('State/Province') ?></li>
82
+ <li class="inputfield">
83
+
84
+ <select id="shipping:region_id" name="shipping[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select bar" style="display:none;">
85
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
86
+ </select>
87
+ <script type="text/javascript">
88
+ //<![CDATA[
89
+ $('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
90
+ //]]>
91
+ </script>
92
+ <input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="bar" style="display:none;" />
93
+ </li>
94
+ </ul>
95
+ </li>
96
+ <li class="fields">
97
+ <ul class="forms">
98
+ <li class="txt"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></li>
99
+ <li class="inputfield">
100
+ <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="bar validate-zip-international required-entry" onchange="shipping.setSameAsBilling(false);" />
101
+ </li></ul>
102
+ <ul class="forms">
103
+ <li class="txt"><em>*</em><?php echo $this->__('Country') ?></li>
104
+ <li class="inputfield" style="color:#000;">
105
+ <?php echo $this->getCountryHtmlSelect('shipping') ?>
106
+ </li>
107
+ </ul>
108
+ </li>
109
+ <li class="fields">
110
+ <ul class="forms">
111
+ <li class="txt"><em>*</em><?php echo $this->__('Telephone') ?></li>
112
+ <li class="inputfield">
113
+ <input type="text" name="shipping[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="bar required-entry" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" />
114
+ </li>
115
+ </ul>
116
+ <ul class="forms">
117
+ <li class="txt"><?php echo $this->__('Fax') ?></li>
118
+ <li class="inputfield">
119
+ <input type="text" name="shipping[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="bar" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" />
120
+ </li>
121
+ </ul>
122
+ </li>
123
+ <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
124
+ <li class="control">
125
+ <ul class="forms smallforms">
126
+ <li class="check">
127
+ <input type="checkbox" name="shipping[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /></li><li class="txt smalltxt"><?php echo $this->__('Save in address book') ?></li>
128
+
129
+ </li>
130
+ <?php else:?>
131
+ <li class="no-display"><input type="hidden" name="shipping[save_in_address_book]" value="1" /></li>
132
+ <?php endif;?>
133
+ </ul>
134
+ </fieldset>
135
+ </li>
136
+ <li class="control">
137
+ <input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getAddress()->getSameAsBilling()): ?> checked="checked"<?php endif; ?> title="<?php echo $this->__('Use Billing Address') ?>" onclick="shipping.setSameAsBilling(this.checked)" class="checkbox" /><label for="shipping:same_as_billing"><?php echo $this->__('Use Billing Address') ?></label>
138
+ </li>
139
+ </ul>
140
+ <div class="buttons-set" id="shipping-buttons-container">
141
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
142
+ <p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
143
+ <button type="button" class="buttonone right" title="<?php echo $this->__('Continue') ?>" onclick="shipping.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
144
+ <span id="shipping-please-wait" class="please-wait" style="display:none;">
145
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
146
+ </span>
147
+ </div>
148
+ </form>
149
+ <script type="text/javascript">
150
+ //<![CDATA[
151
+ var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveShipping') ?>',
152
+ '<?php echo $this->getUrl('checkout/onepage/shippingMethod') ?>');
153
+ var shippingForm = new VarienForm('co-shipping-form');
154
+ shippingForm.extraChildParams = ' onchange="shipping.setSameAsBilling(false);"';
155
+ //shippingForm.setElementsRelation('shipping:country_id', 'shipping:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
156
+ $('shipping-address-select') && shipping.newAddress(!$('shipping-address-select').value);
157
+
158
+ var shippingRegionUpdater = new RegionUpdater('shipping:country_id', 'shipping:region', 'shipping:region_id', countryRegions, undefined, 'shipping:postcode');
159
+ //]]>
160
+ </script>
app/design/frontend/default/estore/template/checkout/onepage/shipping_method.phtml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="co-shipping-method-form" action="">
28
+ <div id="checkout-shipping-method-load">
29
+ <?php echo $this->getChildHtml('available') ?>
30
+ </div>
31
+ <script type="text/javascript">
32
+ //<![CDATA[
33
+ var shippingMethod = new ShippingMethod('co-shipping-method-form', "<?php echo $this->getUrl('checkout/onepage/saveShippingMethod') ?>");
34
+ //]]>
35
+ </script>
36
+ <div id="onepage-checkout-shipping-method-additional-load">
37
+ <?php echo $this->getChildHtml('additional') ?>
38
+ </div>
39
+ <div class="buttons-set" id="shipping-method-buttons-container">
40
+ <p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
41
+ <button type="button" class="buttonone right" onclick="shippingMethod.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
42
+ <span id="shipping-method-please-wait" class="please-wait" style="display:none;">
43
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
44
+ </span>
45
+ </div>
46
+ </form>
app/design/frontend/default/estore/template/checkout/onepage/shipping_method/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) 2010 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->getQuote()->isVirtual()): ?>
28
+ <?php echo $this->helper('giftmessage/message')->getInline('onepage_checkout', $this->getQuote(), $this->getDontDisplayContainer()) ?>
29
+ <?php endif; ?>
app/design/frontend/default/estore/template/checkout/onepage/shipping_method/available.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) 2010 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 (!($_shippingRateGroups = $this->getShippingRates())): ?>
28
+ <p><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></p>
29
+ <?php else: ?>
30
+ <dl class="sp-methods">
31
+ <?php $shippingMe = array(); ?>
32
+ <?php $_sole = count($_shippingRateGroups) == 1; foreach ($_shippingRateGroups as $code => $_rates): ?>
33
+ <dt><?php echo $this->getCarrierName($code) ?></dt>
34
+ <dd>
35
+ <ul>
36
+ <?php $_sole = $_sole && count($_rates) == 1; foreach ($_rates as $_rate): ?>
37
+ <?php $shippingMe[] = "'".$_rate->getCode()."':".(float)$_rate->getPrice(); ?>
38
+ <li>
39
+ <?php if ($_rate->getErrorMessage()): ?>
40
+ <ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
41
+ <?php else: ?>
42
+ <?php if ($_sole) : ?>
43
+ <span class="no-display"><input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" /></span>
44
+ <?php else: ?>
45
+ <input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" onchange="return includingShipping('<?php echo $_rate->getCode();?>');"/>
46
+
47
+ <script type="text/javascript">
48
+ //<![CDATA[
49
+ <?php if ($_rate->getCode()===$this->getAddressShippingMethod()): ?>
50
+ lastPrice = <?php echo (float)$_rate->getPrice(); ?>;
51
+ <?php endif; ?>
52
+ //]]>
53
+ </script>
54
+
55
+ <?php endif; ?>
56
+ <label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
57
+ <?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
58
+ <?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
59
+ <?php echo $_excl; ?>
60
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
61
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
62
+ <?php endif; ?>
63
+ </label>
64
+ <?php endif ?>
65
+ </li>
66
+ <?php endforeach; ?>
67
+ </ul>
68
+ </dd>
69
+ <?php endforeach; ?>
70
+ </dl>
71
+ <script type="text/javascript">
72
+ //<![CDATA[
73
+ <?php if (!empty($shippingMe)): ?>
74
+ var shippingMe = {<?php echo implode(',',$shippingMe); ?>};
75
+ <?php endif; ?>
76
+
77
+ function includingShipping(getShippingCode)
78
+ {
79
+ <?php if (!empty($shippingMe)): ?>
80
+ var newPrice = shippingMe[getShippingCode];
81
+ if (!lastPrice) {
82
+ lastPrice = newPrice;
83
+ quoteBaseGrandTotal += newPrice;
84
+ }
85
+ if (newPrice != lastPrice) {
86
+ quoteBaseGrandTotal += (newPrice-lastPrice);
87
+ lastPrice = newPrice;
88
+
89
+ }
90
+ <?php endif; ?>
91
+ checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
92
+ return false;
93
+ }
94
+ //]]>
95
+ </script>
96
+ <?php endif; ?>
app/design/frontend/default/estore/template/checkout/success.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) 2010 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->__('Your order has been received') ?></h1>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
32
+
33
+ <?php if ($this->getOrderId()):?>
34
+ <?php if ($this->getCanViewOrder()) :?>
35
+ <p><?php echo $this->__('Your order # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p>
36
+ <?php else :?>
37
+ <p><?php echo $this->__('Your order # is: %s.', $this->escapeHtml($this->getOrderId())) ?>.</p>
38
+ <?php endif;?>
39
+ <p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p>
40
+ <?php if ($this->getViewOrder() && $this->getCanPrintOrder()) :?>
41
+ <p>
42
+ <?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?>
43
+ <?php echo $this->getChildHtml() ?>
44
+ </p>
45
+ <?php endif;?>
46
+ <?php endif;?>
47
+
48
+ <?php if ($this->getAgreementRefId()): ?>
49
+ <p><?php echo $this->__('Your billing agreement # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getAgreementUrl()), $this->escapeHtml($this->getAgreementRefId())))?></p>
50
+ <?php endif;?>
51
+
52
+ <?php if ($profiles = $this->getRecurringProfiles()):?>
53
+ <p><?php echo $this->__('Your recurring payment profiles:'); ?></p>
54
+ <ul class="disc">
55
+ <?php foreach($profiles as $profile):?>
56
+ <?php $profileIdHtml = ($this->getCanViewProfiles() ? sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getProfileUrl($profile)), $this->escapeHtml($this->getObjectData($profile, 'reference_id'))) : $this->escapeHtml($this->getObjectData($profile, 'reference_id')));?>
57
+ <li><?php echo $this->__('Payment profile # %s: "%s".', $profileIdHtml, $this->escapeHtml($this->getObjectData($profile, 'schedule_description')))?></li>
58
+ <?php endforeach;?>
59
+ </ul>
60
+ <?php endif;?>
61
+
62
+ <div class="buttons-set">
63
+ <button type="button" class="buttonone right" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
64
+ </div>
app/design/frontend/default/estore/template/checkout/total/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) 2010 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
+ <tr>
28
+ <th colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
29
+ <?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
30
+ <?php echo $this->getTotal()->getTitle() ?>
31
+ <?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
32
+ </th>
33
+ <td style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
34
+ <?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
35
+ <?php echo $this->helper('checkout')->formatPrice($this->getTotal()->getValue()) ?>
36
+ <?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
37
+ </td>
38
+ </tr>
app/design/frontend/default/estore/template/checkout/total/nominal.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) 2010 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_Checkout_Block_Total_Nominal
30
+ */
31
+ ?>
32
+ <tr>
33
+ <th colspan="<?php echo $this->getColspan() + 1; ?>" style="<?php echo $this->getTotalStyle() ?>" class="a-right">
34
+ <?php echo sprintf(($this->getRenderingArea() == $this->getTotalArea()) ? '<strong>%s</strong>' : '%s', $this->escapeHtml($this->getTotalTitle())) ?>
35
+ </th>
36
+ </tr>
37
+ <?php foreach ($this->getTotalItems() as $i => $item): ?>
38
+ <?php foreach ($this->getTotalItemDetails($item) as $j => $row):?>
39
+ <tr class="summary-details <?php echo "summary-details-nominal-{$i}" . (0 == $j ? ' summary-details-first' : '') . ($this->getItemDetailsRowIsCompounded($row) ? '' : ' summary-details-excluded')?>" style="display:none;">
40
+ <td colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotalStyle() ?>" class="a-right">
41
+ <?php echo $this->escapeHtml($this->getItemDetailsRowLabel($row)) ?>
42
+ </td>
43
+ <td class="a-right">
44
+ <?php echo $this->formatPrice($this->getItemDetailsRowAmount($row)) ?>
45
+ </td>
46
+ </tr>
47
+ <?php endforeach; ?>
48
+ <tr class="summary-total" onclick="expandDetails(this, '<?php echo ".summary-details-nominal-{$i}"?>')">
49
+ <td colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotalStyle() ?>">
50
+ <div class="summary-collapse"><?php echo $this->escapeHtml($this->getItemName($item)); ?></div>
51
+ </td>
52
+ <td class="a-right">
53
+ <?php echo $this->helper('checkout')->formatPrice($this->getItemRowTotal($item)) ?>
54
+ </td>
55
+ </tr>
56
+ <?php endforeach; ?>
app/design/frontend/default/estore/template/checkout/total/tax.phtml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 global $taxIter; $taxIter++; ?>
28
+ <?php if ($this->helper('tax')->displayFullSummary() && $this->getTotal()->getValue()!=0): ?>
29
+ <?php $isTop = 1; ?>
30
+ <?php foreach ($this->getTotal()->getFullInfo() as $info): ?>
31
+ <?php if (isset($info['hidden']) && $info['hidden']) continue; ?>
32
+ <?php $percent = $info['percent']; ?>
33
+ <?php $amount = $info['amount']; ?>
34
+ <?php $rates = $info['rates']; ?>
35
+ <?php $isFirst = 1; ?>
36
+
37
+ <?php foreach ($rates as $rate): ?>
38
+ <tr class="summary-details-<?php echo $taxIter; ?> summary-details<?php if ($isTop): echo ' summary-details-first'; endif; ?>" style="display:none;">
39
+ <td class="a-right" style="<?php echo $this->getTotal()->getStyle() ?>" colspan="<?php echo $this->getColspan(); ?>">
40
+ <?php echo $rate['title']; ?>
41
+ <?php if (!is_null($rate['percent'])): ?>
42
+ (<?php echo (float)$rate['percent']; ?>%)
43
+ <?php endif; ?>
44
+ <br />
45
+ </td>
46
+ <?php if ($isFirst): ?>
47
+ <td rowspan="<?php echo count($rates); ?>" class="a-right" style="<?php echo $this->getTotal()->getStyle() ?>">
48
+ <?php echo $this->helper('checkout')->formatPrice($amount); ?>
49
+ </td>
50
+ <?php endif; ?>
51
+ </tr>
52
+ <?php $isFirst = 0; ?>
53
+ <?php $isTop = 0; ?>
54
+ <?php endforeach; ?>
55
+ <?php endforeach; ?>
56
+ <?php endif;?>
57
+ <tr<?php if ($this->helper('tax')->displayFullSummary() && $this->getTotal()->getValue()!=0): ?> class="summary-total" onclick="expandDetails(this, '.summary-details-<?php echo $taxIter;?>')"<?php endif; ?>>
58
+ <td class="a-right" colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotal()->getStyle() ?>">
59
+ <?php if ($this->helper('tax')->displayFullSummary()): ?>
60
+ <div class="summary-collapse"><?php echo $this->getTotal()->getTitle() ?></div>
61
+ <?php else: ?>
62
+ <?php echo $this->getTotal()->getTitle() ?>
63
+ <?php endif;?>
64
+ </td>
65
+ <td class="a-right" style="<?php echo $this->getTotal()->getStyle() ?>">
66
+ <strong><?php echo $this->helper('checkout')->formatPrice($this->getTotal()->getValue()) ?></strong>
67
+ </td>
68
+ </tr>
app/design/frontend/default/estore/template/chimpdesign/form/index.phtml ADDED
@@ -0,0 +1 @@
 
1
+ Hello World!
app/design/frontend/default/estore/template/cms/content.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) 2010 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 echo $pageData->getPageContent(); ?>
app/design/frontend/default/estore/template/cms/content_heading.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) 2010 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($_heading = $this->getContentHeading()): ?>
28
+ <div class="page-title">
29
+ <h1><?php echo $_heading; ?></h1>
30
+ </div>
31
+ <?php endif; ?>
app/design/frontend/default/estore/template/cms/default/home.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) 2010 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
+ There was no Home CMS page configured or found.
app/design/frontend/default/estore/template/cms/default/no-route.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) 2010 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
+ There was no 404 CMS page configured or found.
app/design/frontend/default/estore/template/cms/meta.phtml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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($pageData->getPageMetaKeywords()): ?>
28
+ <meta name="keywords" content="<?php echo $pageData->getPageMetaKeywords() ?>" />
29
+ <?php endif; ?>
30
+ <?php if($pageData->getPageMetaDescription()): ?>
31
+ <meta name="description" content="<?php echo $pageData->getPageMetaDescription() ?>" />
32
+ <?php endif; ?>
app/design/frontend/default/estore/template/cms/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) 2010 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-cms-link"><a <?php echo $this->getLinkAttributes() ?>><span><?php echo $this->htmlEscape($this->getAnchorText()) ?></span></a></span>
app/design/frontend/default/estore/template/cms/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) 2010 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-cms-link-inline"><a <?php echo $this->getLinkAttributes() ?>><span><?php echo $this->htmlEscape($this->getAnchorText()) ?></span></a></span>
app/design/frontend/default/estore/template/cms/widget/static_block/default.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) 2010 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="widget widget-static-block"><?php echo $this->getText(); ?></div>
app/design/frontend/default/estore/template/contacts/form.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) 2010 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 id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
28
+ <div class="page-title">
29
+ <h1><?php echo Mage::helper('contacts')->__('Contact Us') ?></h1>
30
+ </div>
31
+ <form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
32
+ <div class="fieldset">
33
+ <h2 class="legend"><?php echo Mage::helper('contacts')->__('Contact Information') ?></h2>
34
+ <ul class="form-list">
35
+ <li class="fields">
36
+ <div class="field">
37
+ <label for="name" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Name') ?></label>
38
+ <div class="input-box">
39
+ <input name="name" id="name" title="<?php echo Mage::helper('contacts')->__('Name') ?>" value="<?php echo $this->htmlEscape($this->helper('contacts')->getUserName()) ?>" class="input-text required-entry" type="text" />
40
+ </div>
41
+ </div>
42
+ <div class="field">
43
+ <label for="email" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Email') ?></label>
44
+ <div class="input-box">
45
+ <input name="email" id="email" title="<?php echo Mage::helper('contacts')->__('Email') ?>" value="<?php echo $this->htmlEscape($this->helper('contacts')->getUserEmail()) ?>" class="input-text required-entry validate-email" type="text" />
46
+ </div>
47
+ </div>
48
+ </li>
49
+ <li>
50
+ <label for="telephone"><?php echo Mage::helper('contacts')->__('Telephone') ?></label>
51
+ <div class="input-box">
52
+ <input name="telephone" id="telephone" title="<?php echo Mage::helper('contacts')->__('Telephone') ?>" value="" class="input-text" type="text" />
53
+ </div>
54
+ </li>
55
+ <li class="wide">
56
+ <label for="comment" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Comment') ?></label>
57
+ <div class="input-box">
58
+ <textarea name="comment" id="comment" title="<?php echo Mage::helper('contacts')->__('Comment') ?>" class="required-entry input-text" cols="5" rows="3"></textarea>
59
+ </div>
60
+ </li>
61
+ </ul>
62
+ </div>
63
+ <div class="buttons-set">
64
+ <p class="required"><?php echo Mage::helper('contacts')->__('* Required Fields') ?></p>
65
+ <input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
66
+ <button type="submit" title="<?php echo Mage::helper('contacts')->__('Submit') ?>" class="button"><span><span><?php echo Mage::helper('contacts')->__('Submit') ?></span></span></button>
67
+ </div>
68
+ </form>
69
+ <script type="text/javascript">
70
+ //<![CDATA[
71
+ var contactForm = new VarienForm('contactForm', true);
72
+ //]]>
73
+ </script>
app/design/frontend/default/estore/template/core/formkey.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) 2010 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
+ <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
app/design/frontend/default/estore/template/core/link.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) 2010 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
+ <a <?php echo $this->getLinkAttributes() ?>><?php echo $this->htmlEscape($this->getAnchorText()) ?></a>
app/design/frontend/default/estore/template/core/messages.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) 2010 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 ($types as $type) {
28
+ if ( $messages = $this->getMessages($type) ) {
29
+ if ( !$html ) {
30
+ $html .= '<ul class="messages">';
31
+ }
32
+ $html .= '<li class="' . $type . '-msg">';
33
+ $html .= '<ul>';
34
+
35
+ foreach ( $messages as $message ) {
36
+ $html.= '<li>';
37
+ $html.= $message->getText();
38
+ $html.= '</li>';
39
+ }
40
+ $html .= '</ul>';
41
+ $html .= '</li>';
42
+ }
43
+ }
44
+ if ( $html) {
45
+ $html .= '</ul>';
46
+ }
47
+ ?>
app/design/frontend/default/estore/template/customer/account/dashboard.phtml ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="account">
28
+ <h4 class="seccolr bold smallheading upper"><span class="arrow"><?php echo $this->__('Dashboard') ?></span></h4>
29
+ <div class="accinner">
30
+ <div class="hello">
31
+
32
+ <?php $customerName = Mage::helper('customer')->getCustomerName();
33
+ ?>
34
+
35
+ <h6 class="colr">Hello <?php echo $customerName; ?>!</h6>
36
+ <p>
37
+
38
+ From your My Account Dashboard you have the ability to view a snapshot of your recent account activity and update your account information. Select a link below to view or edit information.
39
+ </p>
40
+ </div>
41
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
42
+ <?php //echo $this->getChildHtml('hello') ?>
43
+ <?php echo $this->getChildHtml('top') ?>
44
+
45
+ <div class="clear"></div>
46
+ <!-- Account Sections -->
47
+ <?php echo $this->getChildHtml('info') ?>
48
+ <?php echo $this->getChildHtml('address') ?>
49
+ <div class="clear"></div>
50
+
51
+ <?php echo $this->getChildHtml('info1') ?>
52
+ <div class="clear"></div>
53
+
54
+ <?php echo $this->getChildHtml('info2') ?>
55
+ <!-- Account Sections -->
56
+ </div>
57
+ </div>
58
+
59
+
60
+
61
+
62
+ <?php /*?>
63
+ <div class="dashboard">
64
+ ><div class="page-title">
65
+ <h1><?php echo $this->__('My Dashboard') ?></h1>
66
+ </div>
67
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
68
+ <?php //echo $this->getChildHtml('hello') ?>
69
+ <?php echo $this->getChildHtml('top') ?>
70
+ <div class="box-account box-info">
71
+ <div class="box-head">
72
+ <h2><?php echo $this->__('Account Information') ?></h2>
73
+ </div>
74
+ <?php echo $this->getChildHtml('info') ?>
75
+ <?php echo $this->getChildHtml('address') ?>
76
+ </div>
77
+ <?php echo $this->getChildHtml('info1') ?>
78
+ <?php echo $this->getChildHtml('info2') ?>
79
+ </div><?php */?>
app/design/frontend/default/estore/template/customer/account/dashboard/address.phtml ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="sections mar_btm">
28
+ <div class="sec">
29
+ <div class="sechead">
30
+ <h6 class="seccolr"><?php echo $this->__('Address Book') ?></h6>
31
+ <a href="<?php echo $this->getAddressBookUrl() ?>" class="white"><?php echo $this->__('Edit') ?></a>
32
+ </div>
33
+ <div class="clear"></div>
34
+ <div class="txtsection">
35
+ <p>
36
+ <span class="colr bold"><?php echo $this->__('Default Billing Address') ?></span><br />
37
+ <?php echo $this->getPrimaryBillingAddressHtml() ?>.<br />
38
+ <a href="<?php echo $this->getPrimaryBillingAddressEditUrl() ?>" class="colr under">Edit Address</a>
39
+ </p>
40
+ </div>
41
+ </div>
42
+ <div class="sec right">
43
+ <div class="sechead">
44
+ <h6 class="seccolr"><?php echo $this->__('Newsletters') ?></h6>
45
+ <a href="<?php echo $this->getUrl('newsletter/manage') ?>" class="white"><?php echo $this->__('Edit') ?></a>
46
+ </div>
47
+ <div class="clear"></div>
48
+ <div class="txtsection">
49
+ <p>
50
+ <span class="colr bold"><?php echo $this->__('Default Shipping Address') ?></span><br />
51
+ <?php echo $this->getPrimaryShippingAddressHtml() ?>.<br />
52
+ <a href="<?php echo $this->getPrimaryShippingAddressEditUrl() ?>" class="colr under"><?php echo $this->__('Edit Address') ?></a>
53
+ </p>
54
+ </div>
55
+ </div>
56
+ <div class="clear"></div>
57
+ </div>
58
+
59
+
60
+ <?php /*?><div class="col2-set">
61
+ <div class="box">
62
+ <div class="box-title">
63
+ <h3><?php echo $this->__('Address Book') ?></h3>
64
+ <a href="<?php echo $this->getAddressBookUrl() ?>"><?php echo $this->__('Manage Addresses') ?></a>
65
+ </div>
66
+ <div class="box-content">
67
+ <div class="col-1">
68
+ <h4><?php echo $this->__('Default Billing Address') ?></h4>
69
+ <address>
70
+ <?php echo $this->getPrimaryBillingAddressHtml() ?><br />
71
+ <a href="<?php echo $this->getPrimaryBillingAddressEditUrl() ?>"><?php echo $this->__('Edit Address') ?></a>
72
+ </address>
73
+ </div>
74
+ <div class="col-2">
75
+ <h4><?php echo $this->__('Default Shipping Address') ?></h4>
76
+ <address>
77
+ <?php echo $this->getPrimaryShippingAddressHtml() ?><br />
78
+ <a href="<?php echo $this->getPrimaryShippingAddressEditUrl() ?>"><?php echo $this->__('Edit Address') ?></a>
79
+ </address>
80
+ </div>
81
+ </div>
82
+ </div>
83
+ </div><?php */?>
app/design/frontend/default/estore/template/customer/account/dashboard/hello.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) 2010 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="welcome-msg">
28
+ <p class="hello"><strong><?php echo $this->__('Hello, %s!', $this->htmlEscape($this->getCustomerName())) ?></strong></p>
29
+ <p><?php echo $this->__('From your My Account Dashboard you have the ability to view a snapshot of your recent account activity and update your account information. Select a link below to view or edit information.') ?></p>
30
+ </div>
app/design/frontend/default/estore/template/customer/account/dashboard/info.phtml ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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="sections">
28
+ <div class="sec">
29
+ <div class="sechead">
30
+ <h6 class="seccolr"><?php echo $this->__('Contact Information') ?></h6>
31
+ <a href="<?php echo $this->getUrl('customer/account/edit') ?>" class="white"><?php echo $this->__('Edit') ?></a>
32
+ </div>
33
+ <div class="clear"></div>
34
+ <div class="txtsection">
35
+ <a href="#" class="colr bold"> <?php echo $this->htmlEscape($this->getCustomer()->getName()) ?></a><br />
36
+ <a href="#"> <?php echo $this->htmlEscape($this->getCustomer()->getEmail()) ?></a><br />
37
+ <a href="<?php echo $this->getChangePasswordUrl() ?>" class="colr under"><?php echo $this->__('Change Password') ?></a><br />
38
+ </div>
39
+ </div>
40
+ <div class="sec right">
41
+ <div class="sechead">
42
+ <h6 class="seccolr"><?php echo $this->__('Newsletters') ?></h6>
43
+ <a href="<?php echo $this->getUrl('newsletter/manage') ?>" class="white"><?php echo $this->__('Edit') ?></a>
44
+ </div>
45
+ <div class="clear"></div>
46
+ <div class="txtsection">
47
+ <?php if( $this->getIsSubscribed() ): ?>
48
+ <?php echo $this->__("You are currently subscribed to 'General Subscription'.") ?>
49
+ <?php else: ?>
50
+ <?php echo $this->__('You are currently not subscribed to any newsletter.') ?>
51
+ <?php endif; ?>
52
+ </div>
53
+ </div>
54
+ <div class="clear"></div>
55
+
56
+ </div>
57
+
58
+
59
+
60
+ <?php /*?><div class="col2-set">
61
+ <div class="col-1">
62
+ <div class="box">
63
+ <div class="box-title">
64
+ <h3><?php echo $this->__('Contact Information') ?></h3>
65
+ <a href="<?php echo $this->getUrl('customer/account/edit') ?>"><?php echo $this->__('Edit') ?></a>
66
+ </div>
67
+ <div class="box-content">
68
+ <p>
69
+ <?php echo $this->htmlEscape($this->getCustomer()->getName()) ?><br />
70
+ <?php echo $this->htmlEscape($this->getCustomer()->getEmail()) ?><br />
71
+ <a href="<?php echo $this->getChangePasswordUrl() ?>"><?php echo $this->__('Change Password') ?></a>
72
+ </p>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ <?php if( $this->isNewsletterEnabled() ): ?>
77
+ <div class="col-2">
78
+ <div class="box">
79
+ <div class="box-title">
80
+ <h3><?php echo $this->__('Newsletters') ?></h3>
81
+ <a href="<?php echo $this->getUrl('newsletter/manage') ?>"><?php echo $this->__('Edit') ?></a>
82
+ </div>
83
+ <div class="box-content">
84
+ <p>
85
+ <?php if( $this->getIsSubscribed() ): ?>
86
+ <?php echo $this->__("You are currently subscribed to 'General Subscription'.") ?>
87
+ <?php else: ?>
88
+ <?php echo $this->__('You are currently not subscribed to any newsletter.') ?>
89
+ <?php endif; ?>
90
+ </p>
91
+ </div>
92
+ </div>
93
+ </div>
94
+ <?php endif; ?>
95
+ </div><?php */?>
app/design/frontend/default/estore/template/customer/account/dashboard/newsletter.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) 2010 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="sechead">
28
+ <h6 class="seccolr"><?php echo $this->__('Newsletters') ?></h6>
29
+ <a href="<?php echo $this->getUrl('newsletter/manage') ?>" class="white"><?php echo $this->__('Edit') ?></a>
30
+ <p><?php echo $this->__('You are currently subscribed to our newsletter.') ?></p>
31
+
32
+ </div>
33
+
34
+ <?php /*?><div class="col-2">
35
+ <h4><?php echo $this->__('Newsletters') ?></h4>
36
+ <a href="<?php echo $this->getUrl('newsletter/manage') ?>"><?php echo $this->__('Edit Newsletters') ?></a>
37
+ <p><?php echo $this->__('You are currently subscribed to our newsletter.') ?></p>
38
+ </div><?php */?>
app/design/frontend/default/estore/template/customer/account/link/back.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) 2010 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="buttons-set">
28
+ <p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
29
+ </div>
app/design/frontend/default/estore/template/customer/account/navigation.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) 2010 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="byprice">
28
+ <h5 class="white upper"><?php echo $this->__('My Account'); ?></h5>
29
+ <ul>
30
+ <?php $_links = $this->getLinks(); ?>
31
+ <?php $_index = 1; ?>
32
+ <?php $_count = count($_links); ?>
33
+ <?php foreach ($_links as $_link): ?>
34
+ <?php $_last = ($_index++ >= $_count); ?>
35
+ <?php if ($this->isActive($_link)): ?>
36
+ <li><a class="current<?php echo ($_last ? ' last' : '') ?>"><?php echo $_link->getLabel() ?></a></li>
37
+ <?php else: ?>
38
+ <li<?php echo ($_last ? ' class="last"' : '') ?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a></li>
39
+ <?php endif; ?>
40
+ <?php endforeach; ?>
41
+ </ul>
42
+ </div>
43
+ <div class="clear"></div>
app/design/frontend/default/estore/template/customer/address.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) 2010 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->__('Address Books') ?></h1>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <table width="100%">
32
+ <tr>
33
+ <td style="width:50%;"><h3>Default</h3>
34
+ <table width="100%">
35
+ <?php if(!empty($primaryAddresses)): ?>
36
+ <?php foreach($primaryAddresses as $_address): ?>
37
+ <tr>
38
+ <td>
39
+ <address>
40
+ <?php echo $_address->format('html') ?>
41
+ </address>
42
+ <p>
43
+ <strong><a href="<?php echo $this->getUrl('customer/address/form', array('address'=>$_address->getAddressId())) ?>" class="red-link"><?php echo $this->__('Edit Address') ?></a></strong>
44
+ </p>
45
+ </td>
46
+ </tr>
47
+ <?php endforeach; ?>
48
+ <?php else: ?>
49
+ <tr>
50
+ <td>
51
+ <p><?php echo $this->__('You have no default entries in your address book.') ?></p>
52
+ </td>
53
+ </tr>
54
+ <?php endif ?>
55
+ </table>
56
+ </td>
57
+ <td style="width:50%;"><h3><?php echo $this->__('Additional Address Entries') ?></h3>
58
+ <table width="100%">
59
+ <?php if(!empty($alternativeAddresses)): ?>
60
+ <?php foreach($alternativeAddresses as $_address): ?>
61
+ <tr>
62
+ <td>
63
+ <address>
64
+ <?php echo $_address->format('html') ?>
65
+ </address>
66
+ <p>
67
+ <strong><a href="<?php echo $this->getUrl('customer/address/form', array('address'=>$_address->getAddressId())) ?>" class="red-link"><?php echo $this->__('Edit Address') ?></a></strong><span class="separator">&nbsp;|&nbsp;</span><strong><a href="#" onclick="return deleteAddress('<?php echo $_address->getAddressId() ?>');" class="red-link"><?php echo $this->__('Delete Address') ?></a></strong>
68
+ </p>
69
+ </td>
70
+ </tr>
71
+ <?php endforeach; ?>
72
+ <?php else: ?>
73
+ <tr>
74
+ <td>
75
+ <p><?php echo $this->__('You have no additional entries in your address book.') ?></p>
76
+ </td>
77
+ </tr>
78
+ <?php endif ?>
79
+ </table>
80
+ </td>
81
+ </tr>
82
+ </table>
83
+ <div class="buttons-set">
84
+ <p class="back-link"><a href="<?php echo $this->getUrl('customer/account/') ?>"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
85
+ <button type="button" onclick="window.location='<?php echo $this->getUrl('customer/address/form') ?>';" class="button"><span><span><?php echo $this->__('New Address') ?></span></span></button>
86
+ </div>
87
+ <script type="text/javascript">
88
+ function deleteAddress(addressId) {
89
+ if(confirm('<?php echo $this->__('Are you sure you want to delete this address?') ?>')) {
90
+ window.location='<?php echo $this->getUrl("customer/address/delete") ?>address/'+addressId;
91
+ }
92
+ return false;
93
+ }
94
+ </script>
app/design/frontend/default/estore/template/customer/address/book.phtml ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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
+ * Temlate for Mage_Customer_Block_Address_Book block
30
+ * @var $test Mage_Customer_Block_Address_Book
31
+ */
32
+ ?>
33
+ <div class="page-title title-buttons">
34
+ <h1><?php echo $this->__('Address Book') ?></h1>
35
+ <button type="button" title="<?php echo $this->__('Add New Address') ?>" class="button" onclick="window.location='<?php echo $this->getAddAddressUrl() ?>';"><span><span><?php echo $this->__('Add New Address') ?></span></span></button>
36
+ </div>
37
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
38
+ <div class="col2-set addresses-list">
39
+ <div class="col-1 addresses-primary">
40
+ <h2><?php echo $this->__('Default Addresses') ?></h2>
41
+ <ol>
42
+ <?php if($_pAddsses = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?>
43
+ <li class="item">
44
+ <h3><?php echo $this->__('Default Billing Address') ?></h3>
45
+ <address>
46
+ <?php echo $this->getAddressHtml(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>
47
+ </address>
48
+ <p><a href="<?php echo $this->getAddressEditUrl(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>"><?php echo $this->__('Change Billing Address') ?></a></p>
49
+ </li>
50
+ <?php else: ?>
51
+ <li class="item">
52
+ <h3><?php echo $this->__('Default Billing Address') ?></h3>
53
+ <?php echo $this->__('You have no default billing address in your address book.') ?>
54
+ </li>
55
+ <?php endif ?>
56
+
57
+ <?php if($_pAddsses = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping()): ?>
58
+ <li class="item">
59
+ <h3><?php echo $this->__('Default Shipping Address') ?></h3>
60
+ <address>
61
+ <?php echo $this->getAddressHtml(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>
62
+ </address>
63
+ <p><a href="<?php echo $this->getAddressEditUrl(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>"><?php echo $this->__('Change Shipping Address') ?></a></p>
64
+ </li>
65
+ <?php else: ?>
66
+ <li class="item empty">
67
+ <h3><?php echo $this->__('Default Shipping Address') ?></h3>
68
+ <p><?php echo $this->__('You have no default shipping address in your address book.') ?></p>
69
+ </li>
70
+ <?php endif ?>
71
+ </ol>
72
+ </div>
73
+ <div class="col-2 addresses-additional">
74
+ <h2><?php echo $this->__('Additional Address Entries') ?></h2>
75
+ <ol>
76
+ <?php if($_pAddsses = $this->getAdditionalAddresses()): ?>
77
+ <?php foreach($_pAddsses as $_address): ?>
78
+ <li class="item">
79
+ <address>
80
+ <?php echo $this->getAddressHtml($_address) ?>
81
+ </address>
82
+ <p><a href="<?php echo $this->getUrl('customer/address/edit', array('id'=>$_address->getId())) ?>"><?php echo $this->__('Edit Address') ?></a> <span class="separator">|</span> <a href="#" class="link-remove" onclick="return deleteAddress('<?php echo $_address->getId() ?>');"><?php echo $this->__('Delete Address') ?></a></p>
83
+ </li>
84
+ <?php endforeach; ?>
85
+ <?php else: ?>
86
+ <li class="item empty">
87
+ <p><?php echo $this->__('You have no additional address entries in your address book.') ?></p>
88
+ </li>
89
+ <?php endif ?>
90
+ </ol>
91
+ </div>
92
+ </div>
93
+ <div class="buttons-set">
94
+ <p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
95
+ </div>
96
+ <script type="text/javascript">
97
+ //<![CDATA[
98
+ function deleteAddress(addressId) {
99
+ if(confirm('<?php echo $this->__('Are you sure you want to delete this address?') ?>')) {
100
+ window.location='<?php echo $this->getDeleteUrl() ?>id/'+addressId;
101
+ }
102
+ return false;
103
+ }
104
+ //]]>
105
+ </script>
app/design/frontend/default/estore/template/customer/address/edit.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) 2010 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
+ * Edit customer address template
30
+ *
31
+ * @see Mage_Customer_Block_Address_Edit
32
+ */
33
+ ?>
34
+ <?php if($this->getTitle()): ?>
35
+ <div class="page-title">
36
+ <h1><?php echo $this->getTitle() ?></h1>
37
+ </div>
38
+ <?php endif; ?>
39
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
40
+ <form action="<?php echo $this->getSaveUrl() ?>" method="post" id="form-validate">
41
+ <div class="fieldset">
42
+ <?php echo $this->getBlockHtml('formkey')?>
43
+ <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
44
+ <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
45
+ <h2 class="legend"><?php echo $this->__('Contact Information') ?></h2>
46
+ <ul class="form-list">
47
+ <li class="fields">
48
+ <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getCustomer())->toHtml() ?>
49
+ </li>
50
+ <li class="wide">
51
+ <ul class="forms">
52
+ <li class="txt"><?php echo $this->__('Company') ?></li>
53
+ <li class="inputfield">
54
+ <input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" class="bar" />
55
+ </li>
56
+ </ul>
57
+ </li>
58
+ <li class="fields">
59
+ <ul class="forms">
60
+ <li class="txt"><em>*</em><?php echo $this->__('Telephone') ?></li>
61
+ <li class="inputfield">
62
+ <input type="text" name="telephone" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="bar required-entry" id="telephone" />
63
+