Interface_Frontend_Default_Blank - Version 1.1.7

Version Notes

1.1.7

Download this release

Release Info

Developer Magento Core Team
Extension Interface_Frontend_Default_Blank
Version 1.1.7
Comparing to
See all releases


Version 1.1.7

Files changed (296) hide show
  1. app/design/frontend/default/blank/layout/bundle.xml +291 -0
  2. app/design/frontend/default/blank/layout/catalog.xml +360 -0
  3. app/design/frontend/default/blank/layout/catalogsearch.xml +111 -0
  4. app/design/frontend/default/blank/layout/checkout.xml +379 -0
  5. app/design/frontend/default/blank/layout/cms.xml +76 -0
  6. app/design/frontend/default/blank/layout/contacts.xml +44 -0
  7. app/design/frontend/default/blank/layout/core.xml +30 -0
  8. app/design/frontend/default/blank/layout/customer.xml +247 -0
  9. app/design/frontend/default/blank/layout/directory.xml +60 -0
  10. app/design/frontend/default/blank/layout/giftmessage.xml +71 -0
  11. app/design/frontend/default/blank/layout/googleanalytics.xml +41 -0
  12. app/design/frontend/default/blank/layout/googlecheckout.xml +53 -0
  13. app/design/frontend/default/blank/layout/newsletter.xml +69 -0
  14. app/design/frontend/default/blank/layout/page.xml +116 -0
  15. app/design/frontend/default/blank/layout/paypal.xml +70 -0
  16. app/design/frontend/default/blank/layout/paypaluk.xml +70 -0
  17. app/design/frontend/default/blank/layout/poll.xml +57 -0
  18. app/design/frontend/default/blank/layout/productalert.xml +40 -0
  19. app/design/frontend/default/blank/layout/reports.xml +37 -0
  20. app/design/frontend/default/blank/layout/review.xml +117 -0
  21. app/design/frontend/default/blank/layout/rss.xml +92 -0
  22. app/design/frontend/default/blank/layout/sales.xml +220 -0
  23. app/design/frontend/default/blank/layout/sendfriend.xml +40 -0
  24. app/design/frontend/default/blank/layout/shipping.xml +51 -0
  25. app/design/frontend/default/blank/layout/tag.xml +128 -0
  26. app/design/frontend/default/blank/layout/wishlist.xml +104 -0
  27. app/design/frontend/default/blank/locale/en_US/translate.csv +1 -0
  28. app/design/frontend/default/blank/template/bundle/catalog/product/list/partof.phtml +52 -0
  29. app/design/frontend/default/blank/template/bundle/catalog/product/price.phtml +101 -0
  30. app/design/frontend/default/blank/template/bundle/catalog/product/view/price.phtml +54 -0
  31. app/design/frontend/default/blank/template/bundle/catalog/product/view/tierprices.phtml +41 -0
  32. app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle.phtml +44 -0
  33. app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/option/checkbox.phtml +48 -0
  34. app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/option/multi.phtml +46 -0
  35. app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/option/radio.phtml +72 -0
  36. app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/option/select.phtml +61 -0
  37. app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/options.phtml +45 -0
  38. app/design/frontend/default/blank/template/bundle/email/order/items/creditmemo/default.phtml +101 -0
  39. app/design/frontend/default/blank/template/bundle/email/order/items/invoice/default.phtml +102 -0
  40. app/design/frontend/default/blank/template/bundle/email/order/items/order/default.phtml +107 -0
  41. app/design/frontend/default/blank/template/bundle/email/order/items/shipment/default.phtml +92 -0
  42. app/design/frontend/default/blank/template/bundle/sales/order/creditmemo/items/renderer.phtml +172 -0
  43. app/design/frontend/default/blank/template/bundle/sales/order/invoice/items/renderer.phtml +153 -0
  44. app/design/frontend/default/blank/template/bundle/sales/order/items/renderer.phtml +177 -0
  45. app/design/frontend/default/blank/template/bundle/sales/order/shipment/items/renderer.phtml +111 -0
  46. app/design/frontend/default/blank/template/callouts/left_col.phtml +39 -0
  47. app/design/frontend/default/blank/template/callouts/right_col.phtml +31 -0
  48. app/design/frontend/default/blank/template/catalog/category/page.phtml +32 -0
  49. app/design/frontend/default/blank/template/catalog/category/view.phtml +93 -0
  50. app/design/frontend/default/blank/template/catalog/layer/filter.phtml +42 -0
  51. app/design/frontend/default/blank/template/catalog/layer/state.phtml +46 -0
  52. app/design/frontend/default/blank/template/catalog/layer/view.phtml +55 -0
  53. app/design/frontend/default/blank/template/catalog/navigation/left.phtml +58 -0
  54. app/design/frontend/default/blank/template/catalog/navigation/top.phtml +40 -0
  55. app/design/frontend/default/blank/template/catalog/product/compare/list.phtml +124 -0
  56. app/design/frontend/default/blank/template/catalog/product/compare/sidebar.phtml +55 -0
  57. app/design/frontend/default/blank/template/catalog/product/gallery.phtml +63 -0
  58. app/design/frontend/default/blank/template/catalog/product/list.phtml +128 -0
  59. app/design/frontend/default/blank/template/catalog/product/list/related.phtml +94 -0
  60. app/design/frontend/default/blank/template/catalog/product/list/toolbar.phtml +112 -0
  61. app/design/frontend/default/blank/template/catalog/product/list/upsell.phtml +52 -0
  62. app/design/frontend/default/blank/template/catalog/product/new.phtml +60 -0
  63. app/design/frontend/default/blank/template/catalog/product/price.phtml +130 -0
  64. app/design/frontend/default/blank/template/catalog/product/view.phtml +129 -0
  65. app/design/frontend/default/blank/template/catalog/product/view/additional.phtml +29 -0
  66. app/design/frontend/default/blank/template/catalog/product/view/addto.phtml +36 -0
  67. app/design/frontend/default/blank/template/catalog/product/view/addtocart.phtml +39 -0
  68. app/design/frontend/default/blank/template/catalog/product/view/attributes.phtml +49 -0
  69. app/design/frontend/default/blank/template/catalog/product/view/description.phtml +35 -0
  70. app/design/frontend/default/blank/template/catalog/product/view/media.phtml +78 -0
  71. app/design/frontend/default/blank/template/catalog/product/view/options.phtml +164 -0
  72. app/design/frontend/default/blank/template/catalog/product/view/options/type/date.phtml +37 -0
  73. app/design/frontend/default/blank/template/catalog/product/view/options/type/default.phtml +30 -0
  74. app/design/frontend/default/blank/template/catalog/product/view/options/type/file.phtml +39 -0
  75. app/design/frontend/default/blank/template/catalog/product/view/options/type/select.phtml +37 -0
  76. app/design/frontend/default/blank/template/catalog/product/view/options/type/text.phtml +39 -0
  77. app/design/frontend/default/blank/template/catalog/product/view/options/wrapper.phtml +33 -0
  78. app/design/frontend/default/blank/template/catalog/product/view/options/wrapper/bottom.phtml +29 -0
  79. app/design/frontend/default/blank/template/catalog/product/view/price.phtml +30 -0
  80. app/design/frontend/default/blank/template/catalog/product/view/price_clone.phtml +28 -0
  81. app/design/frontend/default/blank/template/catalog/product/view/tierprices.phtml +50 -0
  82. app/design/frontend/default/blank/template/catalog/product/view/type/configurable.phtml +39 -0
  83. app/design/frontend/default/blank/template/catalog/product/view/type/grouped.phtml +80 -0
  84. app/design/frontend/default/blank/template/catalog/product/view/type/options/configurable.phtml +46 -0
  85. app/design/frontend/default/blank/template/catalog/product/view/type/simple.phtml +40 -0
  86. app/design/frontend/default/blank/template/catalog/product/view/type/virtual.phtml +40 -0
  87. app/design/frontend/default/blank/template/catalog/seo/sitemap.phtml +43 -0
  88. app/design/frontend/default/blank/template/catalog/seo/sitemap/container.phtml +33 -0
  89. app/design/frontend/default/blank/template/catalogsearch/advanced/form.phtml +91 -0
  90. app/design/frontend/default/blank/template/catalogsearch/advanced/result.phtml +61 -0
  91. app/design/frontend/default/blank/template/catalogsearch/form.mini.phtml +41 -0
  92. app/design/frontend/default/blank/template/catalogsearch/result.phtml +43 -0
  93. app/design/frontend/default/blank/template/catalogsearch/term.phtml +38 -0
  94. app/design/frontend/default/blank/template/checkout/cart.phtml +125 -0
  95. app/design/frontend/default/blank/template/checkout/cart/coupon.phtml +58 -0
  96. app/design/frontend/default/blank/template/checkout/cart/crosssell.phtml +58 -0
  97. app/design/frontend/default/blank/template/checkout/cart/item/default.phtml +85 -0
  98. app/design/frontend/default/blank/template/checkout/cart/noItems.phtml +32 -0
  99. app/design/frontend/default/blank/template/checkout/cart/render/default.phtml +66 -0
  100. app/design/frontend/default/blank/template/checkout/cart/render/simple.phtml +66 -0
  101. app/design/frontend/default/blank/template/checkout/cart/shipping.phtml +131 -0
  102. app/design/frontend/default/blank/template/checkout/cart/sidebar.phtml +70 -0
  103. app/design/frontend/default/blank/template/checkout/cart/sidebar/default.phtml +63 -0
  104. app/design/frontend/default/blank/template/checkout/cart/totals.phtml +43 -0
  105. app/design/frontend/default/blank/template/checkout/links.phtml +26 -0
  106. app/design/frontend/default/blank/template/checkout/multishipping/address/select.phtml +58 -0
  107. app/design/frontend/default/blank/template/checkout/multishipping/addresses.phtml +79 -0
  108. app/design/frontend/default/blank/template/checkout/multishipping/agreements.phtml +50 -0
  109. app/design/frontend/default/blank/template/checkout/multishipping/billing.phtml +102 -0
  110. app/design/frontend/default/blank/template/checkout/multishipping/billing/items.phtml +54 -0
  111. app/design/frontend/default/blank/template/checkout/multishipping/item/default.phtml +45 -0
  112. app/design/frontend/default/blank/template/checkout/multishipping/link.phtml +27 -0
  113. app/design/frontend/default/blank/template/checkout/multishipping/overview.phtml +253 -0
  114. app/design/frontend/default/blank/template/checkout/multishipping/shipping.phtml +112 -0
  115. app/design/frontend/default/blank/template/checkout/multishipping/state.phtml +38 -0
  116. app/design/frontend/default/blank/template/checkout/multishipping/success.phtml +45 -0
  117. app/design/frontend/default/blank/template/checkout/onepage.phtml +61 -0
  118. app/design/frontend/default/blank/template/checkout/onepage/agreements.phtml +52 -0
  119. app/design/frontend/default/blank/template/checkout/onepage/billing.phtml +152 -0
  120. app/design/frontend/default/blank/template/checkout/onepage/failure.phtml +32 -0
  121. app/design/frontend/default/blank/template/checkout/onepage/link.phtml +31 -0
  122. app/design/frontend/default/blank/template/checkout/onepage/login.phtml +108 -0
  123. app/design/frontend/default/blank/template/checkout/onepage/payment.phtml +70 -0
  124. app/design/frontend/default/blank/template/checkout/onepage/payment/methods.phtml +51 -0
  125. app/design/frontend/default/blank/template/checkout/onepage/progress.phtml +110 -0
  126. app/design/frontend/default/blank/template/checkout/onepage/review.phtml +42 -0
  127. app/design/frontend/default/blank/template/checkout/onepage/review/info.phtml +65 -0
  128. app/design/frontend/default/blank/template/checkout/onepage/review/item.phtml +62 -0
  129. app/design/frontend/default/blank/template/checkout/onepage/review/totals.phtml +33 -0
  130. app/design/frontend/default/blank/template/checkout/onepage/shipping.phtml +112 -0
  131. app/design/frontend/default/blank/template/checkout/onepage/shipping_method.phtml +48 -0
  132. app/design/frontend/default/blank/template/checkout/onepage/shipping_method/additional.phtml +27 -0
  133. app/design/frontend/default/blank/template/checkout/onepage/shipping_method/available.phtml +56 -0
  134. app/design/frontend/default/blank/template/checkout/success.phtml +43 -0
  135. app/design/frontend/default/blank/template/checkout/total/default.phtml +38 -0
  136. app/design/frontend/default/blank/template/checkout/total/tax.phtml +63 -0
  137. app/design/frontend/default/blank/template/cms/content.phtml +27 -0
  138. app/design/frontend/default/blank/template/cms/default/home.phtml +27 -0
  139. app/design/frontend/default/blank/template/cms/default/no-route.phtml +27 -0
  140. app/design/frontend/default/blank/template/cms/meta.phtml +32 -0
  141. app/design/frontend/default/blank/template/contacts/form.phtml +67 -0
  142. app/design/frontend/default/blank/template/core/messages.phtml +47 -0
  143. app/design/frontend/default/blank/template/customer/account/dashboard.phtml +39 -0
  144. app/design/frontend/default/blank/template/customer/account/dashboard/address.phtml +44 -0
  145. app/design/frontend/default/blank/template/customer/account/dashboard/hello.phtml +30 -0
  146. app/design/frontend/default/blank/template/customer/account/dashboard/info.phtml +50 -0
  147. app/design/frontend/default/blank/template/customer/account/dashboard/newsletter.phtml +31 -0
  148. app/design/frontend/default/blank/template/customer/account/dashboard/sidebar.phtml +26 -0
  149. app/design/frontend/default/blank/template/customer/account/link/back.phtml +29 -0
  150. app/design/frontend/default/blank/template/customer/account/navigation.phtml +46 -0
  151. app/design/frontend/default/blank/template/customer/address.phtml +94 -0
  152. app/design/frontend/default/blank/template/customer/address/book.phtml +117 -0
  153. app/design/frontend/default/blank/template/customer/address/edit.phtml +134 -0
  154. app/design/frontend/default/blank/template/customer/balance.phtml +31 -0
  155. app/design/frontend/default/blank/template/customer/form/address.phtml +123 -0
  156. app/design/frontend/default/blank/template/customer/form/changepassword.phtml +60 -0
  157. app/design/frontend/default/blank/template/customer/form/confirmation.phtml +51 -0
  158. app/design/frontend/default/blank/template/customer/form/edit.phtml +103 -0
  159. app/design/frontend/default/blank/template/customer/form/forgotpassword.phtml +54 -0
  160. app/design/frontend/default/blank/template/customer/form/login.phtml +77 -0
  161. app/design/frontend/default/blank/template/customer/form/mini.login.phtml +33 -0
  162. app/design/frontend/default/blank/template/customer/form/newsletter.phtml +42 -0
  163. app/design/frontend/default/blank/template/customer/form/register.phtml +152 -0
  164. app/design/frontend/default/blank/template/customer/logout.phtml +35 -0
  165. app/design/frontend/default/blank/template/customer/order/view.phtml +85 -0
  166. app/design/frontend/default/blank/template/customer/orders.phtml +61 -0
  167. app/design/frontend/default/blank/template/customer/widget/dob.phtml +79 -0
  168. app/design/frontend/default/blank/template/customer/widget/name.phtml +113 -0
  169. app/design/frontend/default/blank/template/customer/widget/taxvat.phtml +33 -0
  170. app/design/frontend/default/blank/template/customer/wishlist.phtml +67 -0
  171. app/design/frontend/default/blank/template/directory/currency.phtml +58 -0
  172. app/design/frontend/default/blank/template/directory/currency/switch.phtml +31 -0
  173. app/design/frontend/default/blank/template/email/order/creditmemo/items.phtml +89 -0
  174. app/design/frontend/default/blank/template/email/order/invoice/items.phtml +76 -0
  175. app/design/frontend/default/blank/template/email/order/items.phtml +84 -0
  176. app/design/frontend/default/blank/template/email/order/items/creditmemo/default.phtml +53 -0
  177. app/design/frontend/default/blank/template/email/order/items/invoice/default.phtml +53 -0
  178. app/design/frontend/default/blank/template/email/order/items/order/default.phtml +59 -0
  179. app/design/frontend/default/blank/template/email/order/items/shipment/default.phtml +43 -0
  180. app/design/frontend/default/blank/template/email/order/shipment/items.phtml +47 -0
  181. app/design/frontend/default/blank/template/email/order/shipment/track.phtml +46 -0
  182. app/design/frontend/default/blank/template/email/productalert/price.phtml +48 -0
  183. app/design/frontend/default/blank/template/email/productalert/stock.phtml +48 -0
  184. app/design/frontend/default/blank/template/giftmessage/form.phtml +81 -0
  185. app/design/frontend/default/blank/template/giftmessage/helper.phtml +80 -0
  186. app/design/frontend/default/blank/template/giftmessage/inline.phtml +275 -0
  187. app/design/frontend/default/blank/template/googlecheckout/form.phtml +30 -0
  188. app/design/frontend/default/blank/template/googlecheckout/link.phtml +34 -0
  189. app/design/frontend/default/blank/template/newsletter/subscribe.phtml +52 -0
  190. app/design/frontend/default/blank/template/page/1column.phtml +53 -0
  191. app/design/frontend/default/blank/template/page/2columns-left.phtml +55 -0
  192. app/design/frontend/default/blank/template/page/2columns-right.phtml +55 -0
  193. app/design/frontend/default/blank/template/page/3columns.phtml +56 -0
  194. app/design/frontend/default/blank/template/page/html/breadcrumbs.phtml +47 -0
  195. app/design/frontend/default/blank/template/page/html/footer.phtml +29 -0
  196. app/design/frontend/default/blank/template/page/html/head.phtml +42 -0
  197. app/design/frontend/default/blank/template/page/html/header.phtml +34 -0
  198. app/design/frontend/default/blank/template/page/html/pager.phtml +78 -0
  199. app/design/frontend/default/blank/template/page/html/top.links.phtml +34 -0
  200. app/design/frontend/default/blank/template/page/html/wrapper.phtml +46 -0
  201. app/design/frontend/default/blank/template/page/popup.phtml +44 -0
  202. app/design/frontend/default/blank/template/page/print.phtml +52 -0
  203. app/design/frontend/default/blank/template/page/redirect.phtml +36 -0
  204. app/design/frontend/default/blank/template/page/switch/flags.phtml +38 -0
  205. app/design/frontend/default/blank/template/page/switch/languages.phtml +44 -0
  206. app/design/frontend/default/blank/template/page/switch/stores.phtml +47 -0
  207. app/design/frontend/default/blank/template/page/template/container.phtml +35 -0
  208. app/design/frontend/default/blank/template/page/template/links.phtml +39 -0
  209. app/design/frontend/default/blank/template/payment/form/cc.phtml +83 -0
  210. app/design/frontend/default/blank/template/payment/form/ccsave.phtml +83 -0
  211. app/design/frontend/default/blank/template/payment/form/checkmo.phtml +43 -0
  212. app/design/frontend/default/blank/template/payment/form/purchaseorder.phtml +34 -0
  213. app/design/frontend/default/blank/template/payment/info/cc.phtml +34 -0
  214. app/design/frontend/default/blank/template/payment/info/ccsave.phtml +30 -0
  215. app/design/frontend/default/blank/template/payment/info/checkmo.phtml +38 -0
  216. app/design/frontend/default/blank/template/payment/info/default.phtml +27 -0
  217. app/design/frontend/default/blank/template/payment/info/purchaseorder.phtml +28 -0
  218. app/design/frontend/default/blank/template/paypal/express/form.phtml +30 -0
  219. app/design/frontend/default/blank/template/paypal/express/info.phtml +28 -0
  220. app/design/frontend/default/blank/template/paypal/express/review.phtml +151 -0
  221. app/design/frontend/default/blank/template/paypal/express/review/details.phtml +62 -0
  222. app/design/frontend/default/blank/template/paypal/link.phtml +29 -0
  223. app/design/frontend/default/blank/template/paypal/standard/form.phtml +30 -0
  224. app/design/frontend/default/blank/template/paypaluk/direct/form.phtml +179 -0
  225. app/design/frontend/default/blank/template/paypaluk/direct/info.phtml +38 -0
  226. app/design/frontend/default/blank/template/paypaluk/express/form.phtml +30 -0
  227. app/design/frontend/default/blank/template/paypaluk/express/info.phtml +28 -0
  228. app/design/frontend/default/blank/template/paypaluk/express/review.phtml +147 -0
  229. app/design/frontend/default/blank/template/paypaluk/express/review/details.phtml +62 -0
  230. app/design/frontend/default/blank/template/paypaluk/link.phtml +29 -0
  231. app/design/frontend/default/blank/template/poll/active.phtml +66 -0
  232. app/design/frontend/default/blank/template/poll/result.phtml +46 -0
  233. app/design/frontend/default/blank/template/productalert/price.phtml +29 -0
  234. app/design/frontend/default/blank/template/productalert/stock.phtml +29 -0
  235. app/design/frontend/default/blank/template/rating/detailed.phtml +46 -0
  236. app/design/frontend/default/blank/template/rating/empty.phtml +29 -0
  237. app/design/frontend/default/blank/template/reports/home_product_compared.phtml +60 -0
  238. app/design/frontend/default/blank/template/reports/home_product_viewed.phtml +65 -0
  239. app/design/frontend/default/blank/template/reports/product_compared.phtml +41 -0
  240. app/design/frontend/default/blank/template/reports/product_viewed.phtml +41 -0
  241. app/design/frontend/default/blank/template/review/customer/list.phtml +64 -0
  242. app/design/frontend/default/blank/template/review/customer/recent.phtml +50 -0
  243. app/design/frontend/default/blank/template/review/customer/view.phtml +65 -0
  244. app/design/frontend/default/blank/template/review/form.phtml +117 -0
  245. app/design/frontend/default/blank/template/review/helper/summary.phtml +42 -0
  246. app/design/frontend/default/blank/template/review/helper/summary_short.phtml +40 -0
  247. app/design/frontend/default/blank/template/review/product/view/count.phtml +29 -0
  248. app/design/frontend/default/blank/template/review/product/view/list.phtml +63 -0
  249. app/design/frontend/default/blank/template/review/product/view/other.phtml +31 -0
  250. app/design/frontend/default/blank/template/review/view.phtml +63 -0
  251. app/design/frontend/default/blank/template/rss/list.phtml +78 -0
  252. app/design/frontend/default/blank/template/rss/nofeed.phtml +27 -0
  253. app/design/frontend/default/blank/template/rss/order/details.phtml +101 -0
  254. app/design/frontend/default/blank/template/sales/order/creditmemo.phtml +61 -0
  255. app/design/frontend/default/blank/template/sales/order/creditmemo/items.phtml +130 -0
  256. app/design/frontend/default/blank/template/sales/order/creditmemo/items/renderer/default.phtml +100 -0
  257. app/design/frontend/default/blank/template/sales/order/details.phtml +112 -0
  258. app/design/frontend/default/blank/template/sales/order/history.phtml +76 -0
  259. app/design/frontend/default/blank/template/sales/order/info.phtml +83 -0
  260. app/design/frontend/default/blank/template/sales/order/invoice.phtml +61 -0
  261. app/design/frontend/default/blank/template/sales/order/invoice/items.phtml +88 -0
  262. app/design/frontend/default/blank/template/sales/order/invoice/items/renderer/default.phtml +97 -0
  263. app/design/frontend/default/blank/template/sales/order/items.phtml +116 -0
  264. app/design/frontend/default/blank/template/sales/order/items/renderer/default.phtml +119 -0
  265. app/design/frontend/default/blank/template/sales/order/print.phtml +108 -0
  266. app/design/frontend/default/blank/template/sales/order/print/creditmemo.phtml +168 -0
  267. app/design/frontend/default/blank/template/sales/order/print/invoice.phtml +126 -0
  268. app/design/frontend/default/blank/template/sales/order/print/shipment.phtml +89 -0
  269. app/design/frontend/default/blank/template/sales/order/print/tax.phtml +60 -0
  270. app/design/frontend/default/blank/template/sales/order/recent.phtml +75 -0
  271. app/design/frontend/default/blank/template/sales/order/shipment.phtml +61 -0
  272. app/design/frontend/default/blank/template/sales/order/shipment/items.phtml +88 -0
  273. app/design/frontend/default/blank/template/sales/order/shipment/items/renderer/default.phtml +61 -0
  274. app/design/frontend/default/blank/template/sales/order/tax.phtml +64 -0
  275. app/design/frontend/default/blank/template/sales/order/trackinginfo.phtml +68 -0
  276. app/design/frontend/default/blank/template/sales/order/view.phtml +86 -0
  277. app/design/frontend/default/blank/template/sales/reorder/sidebar.phtml +79 -0
  278. app/design/frontend/default/blank/template/sendfriend/send.phtml +128 -0
  279. app/design/frontend/default/blank/template/shipping/tracking/ajax.phtml +26 -0
  280. app/design/frontend/default/blank/template/shipping/tracking/popup.phtml +165 -0
  281. app/design/frontend/default/blank/template/tag/cloud.phtml +38 -0
  282. app/design/frontend/default/blank/template/tag/customer/edit.phtml +45 -0
  283. app/design/frontend/default/blank/template/tag/customer/recent.phtml +49 -0
  284. app/design/frontend/default/blank/template/tag/customer/tags.phtml +43 -0
  285. app/design/frontend/default/blank/template/tag/customer/view.phtml +75 -0
  286. app/design/frontend/default/blank/template/tag/list.phtml +58 -0
  287. app/design/frontend/default/blank/template/tag/mytags.phtml +75 -0
  288. app/design/frontend/default/blank/template/tag/popular.phtml +41 -0
  289. app/design/frontend/default/blank/template/tag/product/result.phtml +65 -0
  290. app/design/frontend/default/blank/template/tag/result.phtml +41 -0
  291. app/design/frontend/default/blank/template/tag/search.phtml +42 -0
  292. app/design/frontend/default/blank/template/wishlist/email/items.phtml +51 -0
  293. app/design/frontend/default/blank/template/wishlist/email/rss.phtml +31 -0
  294. app/design/frontend/default/blank/template/wishlist/shared.phtml +74 -0
  295. app/design/frontend/default/blank/template/wishlist/sharing.phtml +79 -0
  296. app/design/frontend/default/blank/template/wishlist/sidebar.phtml +8 -0
app/design/frontend/default/blank/layout/bundle.xml ADDED
@@ -0,0 +1,291 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage_Bundle
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+ <default>
78
+ <reference name="wishlist_sidebar">
79
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
80
+ </reference>
81
+ </default>
82
+
83
+ <wishlist_index_index>
84
+ <reference name="customer.wishlist">
85
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
86
+ </reference>
87
+ </wishlist_index_index>
88
+
89
+ <wishlist_shared_index>
90
+ <reference name="customer.wishlist">
91
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
92
+ </reference>
93
+ </wishlist_shared_index>
94
+
95
+ <catalog_product_view>
96
+ <reference name="catalog.product.related">
97
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
98
+ </reference>
99
+ </catalog_product_view>
100
+
101
+ <!--
102
+ Partof block for simple broducts
103
+ -->
104
+
105
+ <PRODUCT_TYPE_simple>
106
+ <!--
107
+ <reference name="product.info.additional">
108
+
109
+ <block type="bundle/catalog_product_list_partof" before="-" name="product.info.partof" as="partof_products" template="bundle/catalog/product/list/partof.phtml">
110
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
111
+ </block>
112
+ -->
113
+ <reference name="product.info.upsell">
114
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
115
+ <action method="setItemLimit"><type>bundle</type><limit>4</limit></action>
116
+ </reference>
117
+ </PRODUCT_TYPE_simple>
118
+
119
+ <!--
120
+ Shopping cart item renderer (sidebar)
121
+ -->
122
+
123
+ <default>
124
+ <reference name="cart_sidebar">
125
+ <action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
126
+ </reference>
127
+ </default>
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
+ <!--
180
+ Additional block for bundle product type
181
+ -->
182
+
183
+ <PRODUCT_TYPE_bundle>
184
+ <reference name="head">
185
+ <action method="addItem"><type>skin_js</type><name>js/bundle.js</name></action>
186
+ </reference>
187
+ <reference name="product.info">
188
+ <block type="bundle/catalog_product_view_type_bundle" name="product.info.bundle" as="product_type_data" template="bundle/catalog/product/view/type/bundle.phtml">
189
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
190
+ <block type="bundle/catalog_product_price" name="bundle.prices" as="bundle_prices" template="bundle/catalog/product/view/price.phtml" />
191
+ </block>
192
+ </reference>
193
+ <reference name="product.info.options.wrapper">
194
+ <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">
195
+ <action method="addRenderer"><type>select</type><block>bundle/catalog_product_view_type_bundle_option_select</block></action>
196
+ <action method="addRenderer"><type>multi</type><block>bundle/catalog_product_view_type_bundle_option_multi</block></action>
197
+ <action method="addRenderer"><type>radio</type><block>bundle/catalog_product_view_type_bundle_option_radio</block></action>
198
+ <action method="addRenderer"><type>checkbox</type><block>bundle/catalog_product_view_type_bundle_option_checkbox</block></action>
199
+ </block>
200
+ <action method="insert"><block>product.info.bundle.options</block></action>
201
+ </reference>
202
+ <reference name="product.info.options.wrapper.bottom">
203
+ <remove name="product.tierprices" />
204
+ <block type="bundle/catalog_product_view" name="bundle.tierprices" as="tierprices" before="-" template="bundle/catalog/product/view/tierprices.phtml"/>
205
+ </reference>
206
+ <reference name="product.clone_prices">
207
+ <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/view/price.phtml</template></action>
208
+ </reference>
209
+ </PRODUCT_TYPE_bundle>
210
+
211
+ <sales_order_view>
212
+ <reference name="order_items">
213
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/items/renderer.phtml</template></action>
214
+ </reference>
215
+ </sales_order_view>
216
+
217
+ <sales_order_invoice>
218
+ <reference name="invoice_items">
219
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/invoice/items/renderer.phtml</template></action>
220
+ </reference>
221
+ </sales_order_invoice>
222
+
223
+ <sales_order_shipment>
224
+ <reference name="shipment_items">
225
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/shipment/items/renderer.phtml</template></action>
226
+ </reference>
227
+ </sales_order_shipment>
228
+
229
+ <sales_order_creditmemo>
230
+ <reference name="creditmemo_items">
231
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/creditmemo/items/renderer.phtml</template></action>
232
+ </reference>
233
+ </sales_order_creditmemo>
234
+
235
+ <!--
236
+ Print pages
237
+ -->
238
+
239
+ <sales_order_print>
240
+ <reference name="sales.order.print">
241
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/items/renderer.phtml</template></action>
242
+ </reference>
243
+ </sales_order_print>
244
+
245
+ <sales_order_printinvoice>
246
+ <reference name="sales.order.print.invoice">
247
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/invoice/items/renderer.phtml</template></action>
248
+ </reference>
249
+ </sales_order_printinvoice>
250
+
251
+ <sales_order_printshipment>
252
+ <reference name="sales.order.print.shipment">
253
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/shipment/items/renderer.phtml</template></action>
254
+ </reference>
255
+ </sales_order_printshipment>
256
+
257
+ <sales_order_printcreditmemo>
258
+ <reference name="sales.order.print.creditmemo">
259
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/sales/order/creditmemo/items/renderer.phtml</template></action>
260
+ </reference>
261
+ </sales_order_printcreditmemo>
262
+
263
+ <!--
264
+ Emails
265
+ -->
266
+ <sales_email_order_items>
267
+ <reference name="items">
268
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/order/default.phtml</template></action>
269
+ </reference>
270
+ </sales_email_order_items>
271
+
272
+ <sales_email_order_invoice_items>
273
+ <reference name="items">
274
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/invoice/default.phtml</template></action>
275
+ </reference>
276
+ </sales_email_order_invoice_items>
277
+
278
+
279
+ <sales_email_order_shipment_items>
280
+ <reference name="items">
281
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/shipment/default.phtml</template></action>
282
+ </reference>
283
+ </sales_email_order_shipment_items>
284
+
285
+ <sales_email_order_creditmemo_items>
286
+ <reference name="items">
287
+ <action method="addItemRender"><type>bundle</type><block>bundle/sales_order_items_renderer</block><template>bundle/email/order/items/creditmemo/default.phtml</template></action>
288
+ </reference>
289
+ </sales_email_order_creditmemo_items>
290
+
291
+ </layout>
app/design/frontend/default/blank/layout/catalog.xml ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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 (800) DEMO-NUMBER.</alt></action>
55
+ <action method="setLinkUrl"><url>checkout/cart</url></action>
56
+ </block>
57
+ </reference>
58
+ <reference name="right">
59
+ <block type="core/template" before="cart_sidebar" 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
+ </reference>
62
+ <reference name="footer_links">
63
+ <action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
64
+ </reference>
65
+
66
+ </default>
67
+
68
+
69
+ <!--
70
+ Category default layout
71
+ -->
72
+
73
+ <catalog_category_default>
74
+ <reference name="left">
75
+ <block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
76
+ </reference>
77
+ <reference name="content">
78
+ <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
79
+ <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
80
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
81
+ <!-- The following code shows how to set your own pager increments -->
82
+ <!--
83
+ <action method="setDefaultListPerPage"><limit>4</limit></action>
84
+ <action method="setDefaultGridPerPage"><limit>9</limit></action>
85
+ <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
86
+ <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
87
+ <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
88
+ <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
89
+ <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
90
+ -->
91
+ </block>
92
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
93
+ </block>
94
+ </block>
95
+ </reference>
96
+ </catalog_category_default>
97
+
98
+ <!--
99
+ Category layered navigation layout
100
+ -->
101
+
102
+ <catalog_category_layered>
103
+ <reference name="left">
104
+ <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
105
+ </reference>
106
+ <reference name="content">
107
+ <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
108
+ <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
109
+ <!-- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action> -->
110
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
111
+ <!-- The following code shows how to set your own pager increments -->
112
+ <!--
113
+ <action method="setDefaultListPerPage"><limit>4</limit></action>
114
+ <action method="setDefaultGridPerPage"><limit>3</limit></action>
115
+ <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
116
+ <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
117
+ <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
118
+ <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
119
+ <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
120
+ <action method="addPagerLimit"><mode>grid</mode><limit>3</limit></action>
121
+ <action method="addPagerLimit"><mode>grid</mode><limit>6</limit></action>
122
+ <action method="addPagerLimit"><mode>grid</mode><limit>9</limit></action>
123
+ <action method="addPagerLimit"><mode>grid</mode><limit>all</limit><label>All</label></action>
124
+ -->
125
+ </block>
126
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
127
+ </block>
128
+ </block>
129
+ </reference>
130
+ </catalog_category_layered>
131
+
132
+ <catalog_category_layered_nochildren>
133
+ <remove name="right.reports.product.viewed" />
134
+ <reference name="right">
135
+ <block type="reports/product_viewed" before="right.permanent.callout" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
136
+ </reference>
137
+ </catalog_category_layered_nochildren>
138
+
139
+ <!--
140
+ Compare products page
141
+ -->
142
+
143
+ <catalog_product_compare_index>
144
+ <!-- Mage_Catalog -->
145
+ <reference name="root">
146
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
147
+ </reference>
148
+ <reference name="head">
149
+ <action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
150
+ <action method="addJs"><script>varien/product.js</script></action>
151
+ </reference>
152
+ <reference name="content">
153
+ <block type="catalog/product_compare_list" name="catalog.compare.list" template="catalog/product/compare/list.phtml"/>
154
+ </reference>
155
+ </catalog_product_compare_index>
156
+
157
+ <customer_account_index>
158
+
159
+ <reference name="right">
160
+ <action method="unsetChild"><name>catalog_compare_sidebar</name></action>
161
+ </reference>
162
+ </customer_account_index>
163
+
164
+ <!--
165
+ Product view
166
+ -->
167
+
168
+ <catalog_product_view>
169
+ <!-- Mage_Catalog -->
170
+ <reference name="root">
171
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
172
+ </reference>
173
+ <reference name="head">
174
+ <action method="addJs"><script>varien/product.js</script></action>
175
+
176
+ <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
177
+ <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
178
+ <action method="addItem"><type>js</type><name>calendar/lang/calendar-en.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
179
+ <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
180
+ </reference>
181
+ <reference name="content">
182
+ <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
183
+ <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
184
+ <block type="core/text_list" name="alert.urls" as="alert_urls" />
185
+ <block type="catalog/product_view" name="product.tierprices" as="tierprices" template="catalog/product/view/tierprices.phtml"/>
186
+
187
+ <block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
188
+ <action method="setColumnCount"><columns>4</columns></action>
189
+ <action method="setItemLimit"><type>upsell</type><limit>4</limit></action>
190
+ </block>
191
+
192
+ <block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
193
+ <block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml"/>
194
+ <block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml"/>
195
+ <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
196
+ <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
197
+
198
+ <block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml">
199
+ <block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
200
+ <action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
201
+ <action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
202
+ <action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
203
+ <action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
204
+ </block>
205
+ </block>
206
+ <block type="catalog/product_view" name="product.info.options.wrapper.bottom" as="product_options_wrapper_bottom" template="catalog/product/view/options/wrapper/bottom.phtml">
207
+ <action method="insert"><block>product.tierprices</block></action>
208
+ <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
209
+ <action method="append"><block>product.info.addtocart</block></action>
210
+ </block>
211
+
212
+ <block type="core/template_facade" name="product.info.container1" as="container1">
213
+ <action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
214
+ <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
215
+ <action method="append"><block>product.info.options.wrapper</block></action>
216
+ <action method="append"><block>product.info.options.wrapper.bottom</block></action>
217
+ </block>
218
+ <block type="core/template_facade" name="product.info.container2" as="container2">
219
+ <action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
220
+ <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
221
+ <action method="append"><block>product.info.options.wrapper</block></action>
222
+ <action method="append"><block>product.info.options.wrapper.bottom</block></action>
223
+ </block>
224
+ <action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
225
+ <action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
226
+ </block>
227
+ </reference>
228
+ <reference name="right">
229
+ <block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
230
+ </reference>
231
+ </catalog_product_view>
232
+
233
+ <!--
234
+ Additional block dependant on product type
235
+ -->
236
+ <PRODUCT_TYPE_simple>
237
+ <reference name="product.info">
238
+ <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/simple.phtml"/>
239
+ </reference>
240
+ </PRODUCT_TYPE_simple>
241
+ <PRODUCT_TYPE_configurable>
242
+ <reference name="product.info">
243
+ <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/configurable.phtml"/>
244
+ </reference>
245
+ <reference name="product.info.options.wrapper">
246
+ <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
247
+ </reference>
248
+ </PRODUCT_TYPE_configurable>
249
+ <PRODUCT_TYPE_grouped>
250
+ <reference name="product.info">
251
+ <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml"/>
252
+ </reference>
253
+ </PRODUCT_TYPE_grouped>
254
+ <PRODUCT_TYPE_virtual>
255
+ <reference name="product.info">
256
+ <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/virtual.phtml"/>
257
+ </reference>
258
+ </PRODUCT_TYPE_virtual>
259
+
260
+
261
+
262
+ <!--
263
+ Product send to friend
264
+ -->
265
+
266
+ <catalog_product_send>
267
+ <!-- Mage_Catalog -->
268
+ <reference name="root">
269
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
270
+ </reference>
271
+ <reference name="head">
272
+ <action method="addJs"><script>varien/product.js</script></action>
273
+ </reference>
274
+ <reference name="content">
275
+ <block type="catalog/product_send" name="product.send" template="catalog/product/send.phtml">
276
+ </block>
277
+ </reference>
278
+ </catalog_product_send>
279
+
280
+ <!--
281
+ Product additional images gallery popup
282
+ -->
283
+
284
+ <catalog_product_gallery>
285
+ <!-- Mage_Catalog -->
286
+ <reference name="root">
287
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
288
+ </reference>
289
+ <reference name="content">
290
+ <block type="catalog/product_gallery" name="catalog_product_gallery" template="catalog/product/gallery.phtml"/>
291
+ </reference>
292
+ </catalog_product_gallery>
293
+
294
+ <!--
295
+ SEO Site Map
296
+ -->
297
+
298
+ <catalog_seo_sitemap>
299
+ <remove name="right"/>
300
+ <remove name="left"/>
301
+
302
+ <reference name="root">
303
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
304
+ </reference>
305
+ <reference name="content">
306
+ <block type="page/template_container" name="seo.sitemap.container" template="catalog/seo/sitemap/container.phtml">
307
+ <block type="page/template_links" name="seo.sitemap.links" as="links" template="page/template/links.phtml"/>
308
+ <block type="page/html_pager" name="seo.sitemap.pager.top" as="pager_top" template="page/html/pager.phtml"/>
309
+ <block type="page/html_pager" name="seo.sitemap.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
310
+ </block>
311
+ </reference>
312
+ </catalog_seo_sitemap>
313
+
314
+ <catalog_seo_sitemap_category>
315
+ <update handle="catalog_seo_sitemap" />
316
+ <reference name="seo.sitemap.container">
317
+ <action method="setTitle" translate="title" module="catalog"><title>Categories</title></action>
318
+ <block type="catalog/seo_sitemap_category" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
319
+ <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
320
+ <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
321
+ <action method="setItemsTitle" translate="title" module="catalog"><title>categories</title></action>
322
+ </block>
323
+ </reference>
324
+ <reference name="seo.sitemap.links">
325
+ <action method="addLink" translate="label title" module="catalog"><label>Products Sitemap</label><url helper="catalog/map/getProductUrl"/><title>Products Sitemap</title></action>
326
+ </reference>
327
+ </catalog_seo_sitemap_category>
328
+
329
+ <catalog_seo_sitemap_product>
330
+ <update handle="catalog_seo_sitemap" />
331
+ <reference name="seo.sitemap.container">
332
+ <action method="setTitle" translate="title" module="catalog"><title>Products</title></action>
333
+ <block type="catalog/seo_sitemap_product" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
334
+ <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
335
+ <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
336
+ <action method="setItemsTitle" translate="title" module="catalog"><title>products</title></action>
337
+ </block>
338
+ </reference>
339
+ <reference name="seo.sitemap.links">
340
+ <action method="addLink" translate="label title" module="catalog"><label>Categories Sitemap</label><url helper="catalog/map/getCategoryUrl"/><title>Categories Sitemap</title></action>
341
+ </reference>
342
+ </catalog_seo_sitemap_product>
343
+
344
+
345
+ <!--
346
+ Catalog search terms block
347
+ -->
348
+
349
+ <catalog_seo_searchterm_popular>
350
+ <remove name="right"/>
351
+ <remove name="left"/>
352
+ <reference name="root">
353
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
354
+ </reference>
355
+ <reference name="content">
356
+ <block type="catalog/seo_searchterm" name="seo.searchterm" template="catalog/seo/searchterm.phtml"/>
357
+ </reference>
358
+ </catalog_seo_searchterm_popular>
359
+
360
+ </layout>
app/design/frontend/default/blank/layout/catalogsearch.xml ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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"><label>Search Terms</label><url helper="catalogsearch/getSearchTermUrl" /><title>Search Terms</title></action>
37
+ <action method="addLink" translate="label title" module="catalogsearch"><label>Advanced Search</label><url helper="catalogsearch/getAdvancedSearchUrl" /><title>Advanced Search</title></action>
38
+ </reference>
39
+ </default>
40
+
41
+ <catalogsearch_result_index>
42
+ <remove name="right.newsletter" />
43
+ <remove name="right.reports.product.viewed" />
44
+ <reference name="root">
45
+ <action method="setTemplate"><template>page/3columns.phtml</template></action>
46
+ </reference>
47
+ <reference name="left">
48
+ <block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
49
+ </reference>
50
+ <reference name="content">
51
+ <block type="catalogsearch/result" name="search.result" template="catalogsearch/result.phtml">
52
+ <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml"></block>
53
+ <action method="setListOrders"/>
54
+ <action method="setListModes"/>
55
+ <action method="setListCollection"/>
56
+ </block>
57
+ </reference>
58
+
59
+ <reference name="right">
60
+ <block type="reports/product_viewed" before="right.permanent.callout" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
61
+ </reference>
62
+ </catalogsearch_result_index>
63
+
64
+ <catalogsearch_advanced_index>
65
+ <!-- Mage_Catalogsearch -->
66
+ <reference name="root">
67
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
68
+ </reference>
69
+ <reference name="head">
70
+ <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
71
+ <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
72
+ <action method="addItem"><type>js</type><name>calendar/lang/calendar-en.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
73
+ <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
74
+ </reference>
75
+ <reference name="content">
76
+ <block type="catalogsearch/advanced_form" name="catalogsearch_advanced_form" template="catalogsearch/advanced/form.phtml"/>
77
+ </reference>
78
+ </catalogsearch_advanced_index>
79
+
80
+ <!--
81
+ Advanced search results
82
+ -->
83
+
84
+ <catalogsearch_advanced_result>
85
+ <!-- Mage_Catalogsearch -->
86
+ <reference name="root">
87
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
88
+ </reference>
89
+ <reference name="content">
90
+ <block type="catalogsearch/advanced_result" name="catalogsearch_advanced_result" template="catalogsearch/advanced/result.phtml">
91
+ <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml"></block>
92
+ <action method="setListOrders"/>
93
+ <action method="setListModes"/>
94
+ <action method="setListCollection"/>
95
+ </block>
96
+ </reference>
97
+ </catalogsearch_advanced_result>
98
+
99
+ <catalogsearch_term_popular>
100
+ <remove name="right"/>
101
+ <remove name="left"/>
102
+
103
+ <reference name="root">
104
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
105
+ </reference>
106
+ <reference name="content">
107
+ <block type="catalogsearch/term" name="seo.searchterm" template="catalogsearch/term.phtml"/>
108
+ </reference>
109
+ </catalogsearch_term_popular>
110
+
111
+ </layout>
app/design/frontend/default/blank/layout/checkout.xml ADDED
@@ -0,0 +1,379 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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>
50
+ </reference>
51
+
52
+ </default>
53
+
54
+ <checkout_cart_index>
55
+ <remove name="right"/>
56
+ <remove name="left"/>
57
+ <!-- Mage_Checkout -->
58
+ <reference name="root">
59
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
60
+ </reference>
61
+ <reference name="content">
62
+ <block type="checkout/cart" name="checkout.cart">
63
+ <action method="setCartTemplate"><value>checkout/cart.phtml</value></action>
64
+ <action method="setEmptyTemplate"><value>checkout/cart/noItems.phtml</value></action>
65
+ <action method="chooseTemplate"/>
66
+ <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
67
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/item/default.phtml</template></action>
68
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/item/default.phtml</template></action>
69
+
70
+ <block type="core/text_list" name="checkout.cart.top_methods" as="top_methods">
71
+ <block type="checkout/onepage_link" name="checkout.cart.methods.onepage" template="checkout/onepage/link.phtml"/>
72
+ </block>
73
+
74
+ <block type="core/text_list" name="checkout.cart.methods" as="methods">
75
+ <block type="checkout/onepage_link" name="checkout.cart.methods.onepage" template="checkout/onepage/link.phtml"/>
76
+ <block type="checkout/multishipping_link" name="checkout.cart.methods.multishipping" template="checkout/multishipping/link.phtml"/>
77
+ </block>
78
+
79
+ <block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="checkout/cart/coupon.phtml"/>
80
+ <block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" template="checkout/cart/shipping.phtml"/>
81
+ <block type="checkout/cart_crosssell" name="checkout.cart.crosssell" as="crosssell" template="checkout/cart/crosssell.phtml"/>
82
+
83
+ <block type="checkout/cart_totals" name="checkout.cart.totals" as="totals" template="checkout/cart/totals.phtml"/>
84
+ </block>
85
+ </reference>
86
+ </checkout_cart_index>
87
+
88
+ <!--
89
+ Multi address shipping checkout main layout,
90
+ will be rendered on all checkout pages
91
+ -->
92
+
93
+ <checkout_multishipping>
94
+ <!-- Mage_Checkout -->
95
+ <remove name="right"/>
96
+ <remove name="left"/>
97
+
98
+ <reference name="root">
99
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
100
+ </reference>
101
+ <reference name="content">
102
+ <block type="checkout/multishipping_state" name="checkout_state" template="checkout/multishipping/state.phtml"/>
103
+ </reference>
104
+ </checkout_multishipping>
105
+
106
+ <checkout_multishipping_login>
107
+ <update handle="customer_account_login"/>
108
+ </checkout_multishipping_login>
109
+
110
+ <checkout_multishipping_register>
111
+ <update handle="customer_account_create"/>
112
+ </checkout_multishipping_register>
113
+
114
+ <!--
115
+ Multi address shipping checkout selection of address per item page
116
+ -->
117
+
118
+ <checkout_multishipping_address_select>
119
+ <update handle="checkout_multishipping"/>
120
+ <!-- Mage_Checkout -->
121
+ <reference name="content">
122
+ <block type="checkout/multishipping_address_select" name="checkout_address_select" template="checkout/multishipping/address/select.phtml"/>
123
+ </reference>
124
+ </checkout_multishipping_address_select>
125
+
126
+ <checkout_multishipping_address_selectbilling>
127
+ <update handle="checkout_multishipping"/>
128
+ <!-- Mage_Checkout -->
129
+ <reference name="content">
130
+ <block type="checkout/multishipping_address_select" name="checkout_address_select" template="checkout/multishipping/address/select.phtml"/>
131
+ </reference>
132
+ </checkout_multishipping_address_selectbilling>
133
+
134
+
135
+ <checkout_multishipping_address_newshipping>
136
+ <update handle="checkout_multishipping"/>
137
+ <update handle="checkout_multishipping_customer_address"/>
138
+ </checkout_multishipping_address_newshipping>
139
+
140
+ <checkout_multishipping_address_newbilling>
141
+ <update handle="checkout_multishipping"/>
142
+ <update handle="checkout_multishipping_customer_address"/>
143
+ </checkout_multishipping_address_newbilling>
144
+
145
+ <checkout_multishipping_address_editshipping>
146
+ <update handle="checkout_multishipping"/>
147
+ <update handle="checkout_multishipping_customer_address"/>
148
+ </checkout_multishipping_address_editshipping>
149
+
150
+ <checkout_multishipping_address_editaddress>
151
+ <update handle="checkout_multishipping"/>
152
+ <update handle="checkout_multishipping_customer_address"/>
153
+ </checkout_multishipping_address_editaddress>
154
+
155
+ <checkout_multishipping_address_editbilling>
156
+ <update handle="checkout_multishipping"/>
157
+ <update handle="checkout_multishipping_customer_address"/>
158
+ </checkout_multishipping_address_editbilling>
159
+
160
+ <checkout_multishipping_customer_address>
161
+ <reference name="content">
162
+ <block type="customer/address_edit" name="customer_address_edit" template="customer/address/edit.phtml"/>
163
+ </reference>
164
+ </checkout_multishipping_customer_address>
165
+
166
+ <!--
167
+ Multi address shipping checkout address page
168
+ -->
169
+
170
+ <checkout_multishipping_addresses>
171
+ <update handle="checkout_multishipping"/>
172
+ <!-- Mage_Checkout -->
173
+ <reference name="content">
174
+ <block type="checkout/multishipping_addresses" name="checkout_addresses" template="checkout/multishipping/addresses.phtml">
175
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
176
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
177
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
178
+ </block>
179
+ </reference>
180
+ </checkout_multishipping_addresses>
181
+
182
+ <!--
183
+ Multi address shipping checkout shipping information
184
+ -->
185
+
186
+ <checkout_multishipping_shipping>
187
+ <update handle="checkout_multishipping"/>
188
+ <!-- Mage_Checkout -->
189
+ <reference name="content">
190
+ <block type="checkout/multishipping_shipping" name="checkout_shipping" template="checkout/multishipping/shipping.phtml">
191
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
192
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
193
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
194
+
195
+ <block type="checkout/multishipping_billing_items" name="checkout_billing_items" template="checkout/multishipping/billing/items.phtml">
196
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
197
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
198
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
199
+ </block>
200
+ </block>
201
+ </reference>
202
+ </checkout_multishipping_shipping>
203
+
204
+ <!--
205
+ Multi address shipping checkout billing information
206
+ -->
207
+
208
+ <checkout_multishipping_billing>
209
+ <update handle="checkout_multishipping"/>
210
+ <!-- Mage_Checkout -->
211
+ <reference name="content">
212
+ <block type="checkout/multishipping_billing" name="checkout_billing" template="checkout/multishipping/billing.phtml">
213
+ <action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
214
+
215
+ <!--<block type="checkout/multishipping_billing_items" name="checkout_billing_items" template="checkout/multishipping/billing/items.phtml">
216
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
217
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
218
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
219
+ </block>-->
220
+
221
+ </block>
222
+ </reference>
223
+ </checkout_multishipping_billing>
224
+
225
+ <!--
226
+ Multi address shipping checkout overview
227
+ -->
228
+
229
+ <checkout_multishipping_overview>
230
+ <update handle="checkout_multishipping"/>
231
+ <!-- Mage_Checkout -->
232
+ <reference name="content">
233
+ <block type="checkout/multishipping_overview" name="checkout_overview" template="checkout/multishipping/overview.phtml">
234
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/multishipping/item/default.phtml</template></action>
235
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/multishipping/item/default.phtml</template></action>
236
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/multishipping/item/default.phtml</template></action>
237
+ <block type="checkout/multishipping_payment_info" name="payment_info">
238
+ <action method="setInfoTemplate"><method></method><template></template></action>
239
+ </block>
240
+ <block type="checkout/agreements" name="checkout.multishipping.agreements" as="agreements" template="checkout/multishipping/agreements.phtml"/>
241
+ <block type="checkout/cart_totals" name="totals" />
242
+ </block>
243
+ </reference>
244
+ </checkout_multishipping_overview>
245
+
246
+ <!--
247
+ Multi address shipping checkout success
248
+ -->
249
+
250
+ <checkout_multishipping_success>
251
+ <update handle="checkout_multishipping"/>
252
+ <!-- Mage_Checkout -->
253
+ <reference name="content">
254
+ <block type="checkout/multishipping_success" name="checkout_success" template="checkout/multishipping/success.phtml"/>
255
+ </reference>
256
+ </checkout_multishipping_success>
257
+
258
+ <!--
259
+ One page checkout main layout
260
+ -->
261
+
262
+ <checkout_onepage_index>
263
+ <!-- Mage_Checkout -->
264
+ <remove name="left"/>
265
+
266
+ <reference name="root">
267
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
268
+ </reference>
269
+ <reference name="right">
270
+ <action method="unsetChildren"></action>
271
+
272
+ <block type="checkout/onepage_progress" name="checkout.progress" before="-" template="checkout/onepage/progress.phtml"/>
273
+ </reference>
274
+ <reference name="content">
275
+ <block type="checkout/onepage" name="checkout.onepage" template="checkout/onepage.phtml">
276
+ <block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="checkout/onepage/login.phtml"/>
277
+ <block type="checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="checkout/onepage/billing.phtml"/>
278
+ <block type="checkout/onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="checkout/onepage/shipping.phtml"/>
279
+ <block type="checkout/onepage_shipping_method" name="checkout.onepage.shipping_method" as="shipping_method" template="checkout/onepage/shipping_method.phtml">
280
+ <block type="checkout/onepage_shipping_method_available" name="checkout.onepage.shipping_method.available" as="available" template="checkout/onepage/shipping_method/available.phtml"/>
281
+ <block type="checkout/onepage_shipping_method_additional" name="checkout.onepage.shipping_method.additional" as="additional" template="checkout/onepage/shipping_method/additional.phtml"/>
282
+ </block>
283
+ <block type="checkout/onepage_payment" name="checkout.onepage.payment" as="payment" template="checkout/onepage/payment.phtml">
284
+ <block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/methods.phtml">
285
+ <action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
286
+ </block>
287
+ </block>
288
+ <block type="checkout/onepage_review" name="checkout.onepage.review" as="review" template="checkout/onepage/review.phtml">
289
+ <block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
290
+ </block>
291
+ </block>
292
+ </reference>
293
+ </checkout_onepage_index>
294
+
295
+ <!--
296
+ One page checkout progress block
297
+ -->
298
+
299
+ <checkout_onepage_progress>
300
+ <!-- Mage_Checkout -->
301
+ <remove name="right"/>
302
+ <remove name="left"/>
303
+
304
+ <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress.phtml">
305
+ <block type="checkout/onepage_payment_info" name="payment_info">
306
+ <action method="setInfoTemplate"><method></method><template></template></action>
307
+ </block>
308
+ </block>
309
+ </checkout_onepage_progress>
310
+
311
+ <!--
312
+ One page checkout payment methods block
313
+ -->
314
+ <checkout_onepage_paymentmethod>
315
+ <remove name="right"/>
316
+ <remove name="left"/>
317
+
318
+ <block type="checkout/onepage_payment_methods" name="root" output="toHtml" template="checkout/onepage/payment/methods.phtml">
319
+ <action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
320
+ </block>
321
+ </checkout_onepage_paymentmethod>
322
+
323
+
324
+ <!--
325
+ One page checkout shipping methods block
326
+ -->
327
+
328
+ <checkout_onepage_shippingmethod>
329
+ <!-- Mage_Checkout -->
330
+ <remove name="right"/>
331
+ <remove name="left"/>
332
+
333
+ <block type="checkout/onepage_shipping_method_available" name="root" output="toHtml" template="checkout/onepage/shipping_method/available.phtml"/>
334
+ </checkout_onepage_shippingmethod>
335
+
336
+ <checkout_onepage_additional>
337
+ <!-- Mage_Checkout -->
338
+ <remove name="right"/>
339
+ <remove name="left"/>
340
+
341
+ <block type="checkout/onepage_shipping_method_additional" name="root" output="toHtml" template="checkout/onepage/shipping_method/additional.phtml">
342
+ <action method="setDontDisplayContainer"><param>1</param></action>
343
+ </block>
344
+ </checkout_onepage_additional>
345
+
346
+ <!--
347
+ One page checkout order review block
348
+ -->
349
+
350
+ <checkout_onepage_review>
351
+ <!-- Mage_Checkout -->
352
+ <remove name="right"/>
353
+ <remove name="left"/>
354
+
355
+ <block type="checkout/onepage_review_info" name="root" output="toHtml" template="checkout/onepage/review/info.phtml">
356
+ <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
357
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
358
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
359
+ <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
360
+ </block>
361
+ </checkout_onepage_review>
362
+
363
+ <checkout_onepage_success>
364
+ <reference name="root">
365
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
366
+ </reference>
367
+ <reference name="content">
368
+ <block type="checkout/onepage_success" name="checkout.success" template="checkout/success.phtml"/>
369
+ </reference>
370
+ </checkout_onepage_success>
371
+ <checkout_onepage_failure>
372
+ <reference name="root">
373
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
374
+ </reference>
375
+ <reference name="content">
376
+ <block type="checkout/onepage_failure" name="checkout.failure" template="checkout/onepage/failure.phtml"/>
377
+ </reference>
378
+ </checkout_onepage_failure>
379
+ </layout>
app/design/frontend/default/blank/layout/cms.xml ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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>
46
+ <reference name="content">
47
+ <block type="cms/page" name="cms_page"/>
48
+ </reference>
49
+ </cms_page>
50
+
51
+
52
+ <cms_index_defaultindex>
53
+ <remove name="right"/>
54
+ <remove name="left"/>
55
+
56
+ <reference name="root">
57
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
58
+ </reference>
59
+ <reference name="content">
60
+ <block type="core/template" name="default_home_page" template="cms/default/home.phtml"/>
61
+ </reference>
62
+ </cms_index_defaultindex>
63
+
64
+ <cms_index_defaultnoroute>
65
+ <remove name="right"/>
66
+ <remove name="left"/>
67
+
68
+ <reference name="root">
69
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
70
+ </reference>
71
+ <reference name="content">
72
+ <block type="core/template" name="default_no_route" template="cms/default/no-route.phtml"/>
73
+ </reference>
74
+ </cms_index_defaultnoroute>
75
+
76
+ </layout>
app/design/frontend/default/blank/layout/contacts.xml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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>
36
+ <reference name="root">
37
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
38
+ <action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action>
39
+ </reference>
40
+ <reference name="content">
41
+ <block type="core/template" name="contactForm" template="contacts/form.phtml"/>
42
+ </reference>
43
+ </contacts_index_index>
44
+ </layout>
app/design/frontend/default/blank/layout/core.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category design_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+ </layout>
app/design/frontend/default/blank/layout/customer.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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+
51
+ <!-- Mage_Customer -->
52
+ <reference name="top.links">
53
+ <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>
54
+ </reference>
55
+ </default>
56
+
57
+ <!--
58
+ Load this update on every page when customer is logged in
59
+ -->
60
+
61
+ <customer_logged_in>
62
+ <reference name="top.links">
63
+ <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>
64
+ </reference>
65
+ </customer_logged_in>
66
+
67
+ <!--
68
+ Load this update on every page when customer is logged out
69
+ -->
70
+
71
+ <customer_logged_out>
72
+ <reference name="top.links">
73
+ <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>
74
+ </reference>
75
+ <remove name="wishlist_sidebar"></remove>
76
+ <remove name="reorder"></remove>
77
+ </customer_logged_out>
78
+
79
+ <!--
80
+ Layout for customer login page
81
+ -->
82
+
83
+ <customer_account_login>
84
+ <!-- Mage_Customer -->
85
+ <remove name="right"/>
86
+ <remove name="left"/>
87
+
88
+ <reference name="root">
89
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
90
+ </reference>
91
+ <reference name="content">
92
+ <block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml"/>
93
+ </reference>
94
+ </customer_account_login>
95
+
96
+ <!--
97
+ Layout for customer log out page
98
+ -->
99
+
100
+ <customer_account_logoutsuccess>
101
+ <!-- Mage_Customer -->
102
+ <remove name="right"/>
103
+ <remove name="left"/>
104
+
105
+ <reference name="root">
106
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
107
+ </reference>
108
+ <reference name="content">
109
+ <block type="core/template" name="customer_logout" template="customer/logout.phtml"/>
110
+ </reference>
111
+ </customer_account_logoutsuccess>
112
+
113
+ <!--
114
+ New customer registration
115
+ -->
116
+
117
+ <customer_account_create>
118
+ <!-- Mage_Customer -->
119
+ <remove name="right"/>
120
+ <remove name="left"/>
121
+
122
+ <reference name="root">
123
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
124
+ </reference>
125
+ <reference name="content">
126
+ <block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml"/>
127
+ </reference>
128
+ </customer_account_create>
129
+
130
+ <customer_account_forgotpassword>
131
+ <remove name="right"/>
132
+ <remove name="left"/>
133
+
134
+ <reference name="root">
135
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
136
+ <action method="setHeaderTitle" translate="title" module="customer"><title>Password forgotten</title></action>
137
+ </reference>
138
+ <reference name="content">
139
+ <!--<block type="core/template" name="forgotPassword" template="customer/form/forgotpassword.phtml"/>-->
140
+ <block type="customer/account_forgotpassword" name="forgotPassword" template="customer/form/forgotpassword.phtml"/>
141
+ </reference>
142
+ </customer_account_forgotpassword>
143
+
144
+ <customer_account_confirmation>
145
+ <remove name="right"/>
146
+ <remove name="left"/>
147
+
148
+ <reference name="root">
149
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
150
+ <action method="setHeaderTitle" translate="title" module="customer"><title>Send confirmation link</title></action>
151
+ </reference>
152
+ <reference name="content">
153
+ <block type="core/template" name="accountConfirmation" template="customer/form/confirmation.phtml"/>
154
+ </reference>
155
+ </customer_account_confirmation>
156
+
157
+ <customer_account_edit>
158
+ <update handle="customer_account"/>
159
+ <reference name="root">
160
+ <action method="setHeaderTitle" translate="title" module="customer"><title>Edit Account Info</title></action>
161
+ </reference>
162
+ <reference name="content">
163
+ <block type="customer/form_edit" name="customer_edit" template="customer/form/edit.phtml"/>
164
+ </reference>
165
+
166
+ <reference name="left">
167
+ <action method="unsetChild"><name>left.permanent.callout</name></action>
168
+ </reference>
169
+ </customer_account_edit>
170
+
171
+ <!--
172
+ Customer account pages, rendered for all tabs in dashboard
173
+ -->
174
+
175
+ <customer_account>
176
+ <!-- Mage_Customer -->
177
+ <reference name="root">
178
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
179
+ </reference>
180
+
181
+ <reference name="left">
182
+ <block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml">
183
+ <action method="addLink" translate="label" module="customer"><name>account</name><path>customer/account/</path><label>Account Dashboard</label></action>
184
+ <action method="addLink" translate="label" module="customer"><name>account_edit</name><path>customer/account/edit/</path><label>Account Information</label></action>
185
+ <action method="addLink" translate="label" module="customer"><name>address_book</name><path>customer/address/</path><label>Address Book</label></action>
186
+ </block>
187
+ <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml">
188
+ <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
189
+ <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
190
+ <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
191
+ </block>
192
+ <block type="core/template" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
193
+ <block type="sales/reorder_sidebar" name="sale.reorder.sidebar" as="reorder" template="sales/reorder/sidebar.phtml"/>
194
+ <remove name="tags_popular"/>
195
+
196
+ </reference>
197
+ </customer_account>
198
+
199
+ <!--
200
+ Customer account home dashboard layout
201
+ -->
202
+
203
+ <customer_account_index>
204
+ <update handle="customer_account"/>
205
+ <!-- Mage_Customer -->
206
+ <reference name="root">
207
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
208
+ </reference>
209
+ <reference name="content">
210
+ <block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml">
211
+ <block type="customer/account_dashboard_hello" name="customer_account_dashboard_hello" as="hello" template="customer/account/dashboard/hello.phtml"/>
212
+ <block type="core/template" name="customer_account_dashboard_top" as="top" />
213
+ <block type="customer/account_dashboard_info" name="customer_account_dashboard_info" as="info" template="customer/account/dashboard/info.phtml"/>
214
+ <block type="customer/account_dashboard_newsletter" name="customer_account_dashboard_newsletter" as="newsletter" template="customer/account/dashboard/newsletter.phtml"/>
215
+ <block type="customer/account_dashboard_address" name="customer_account_dashboard_address" as="address" template="customer/account/dashboard/address.phtml"/>
216
+ <block type="core/template" name="customer_account_dashboard_info1" as="info1" />
217
+ <block type="core/template" name="customer_account_dashboard_info2" as="info2" />
218
+ </block>
219
+ </reference>
220
+
221
+ </customer_account_index>
222
+
223
+ <!--
224
+ Customer account address book
225
+ -->
226
+
227
+ <customer_address_index>
228
+ <!-- Mage_Customer -->
229
+ <update handle="customer_account"/>
230
+ <reference name="content">
231
+ <block type="customer/address_book" name="address_book" before="-" template="customer/address/book.phtml"/>
232
+ </reference>
233
+ </customer_address_index>
234
+
235
+ <!--
236
+ Customer account address edit page
237
+ -->
238
+
239
+ <customer_address_form>
240
+ <!-- Mage_Customer -->
241
+ <update handle="customer_account"/>
242
+ <reference name="content">
243
+ <block type="customer/address_edit" name="customer_address_edit" template="customer/address/edit.phtml"/>
244
+ </reference>
245
+ </customer_address_form>
246
+
247
+ </layout>
app/design/frontend/default/blank/layout/directory.xml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+
35
+ <catalog_category_default>
36
+ <reference name="left">
37
+ <block type="directory/currency" name="currency" before="catalog.leftnav" template="directory/currency.phtml"/>
38
+ </reference>
39
+ </catalog_category_default>
40
+
41
+ <!--
42
+ Category layered navigation layout
43
+ -->
44
+
45
+ <catalog_category_layered>
46
+ <reference name="left">
47
+ <block type="directory/currency" name="currency" before="catalog.leftnav" template="directory/currency.phtml"/>
48
+ </reference>
49
+ </catalog_category_layered>
50
+
51
+ <!--
52
+ Catalog Search layout
53
+ -->
54
+
55
+ <catalogsearch_advanced_index>
56
+ <reference name="right">
57
+ <block type="directory/currency" name="right_currency" before="-" template="directory/currency.phtml"/>
58
+ </reference>
59
+ </catalogsearch_advanced_index>
60
+ </layout>
app/design/frontend/default/blank/layout/giftmessage.xml ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+ Gift message add/edit form
33
+ -->
34
+ <giftmessage_index_edit>
35
+ <reference name="root">
36
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
37
+ </reference>
38
+ <reference name="content">
39
+ <block type="giftmessage/message_form" name="giftmessage.form" template="giftmessage/form.phtml"/>
40
+ </reference>
41
+ </giftmessage_index_edit>
42
+
43
+ <!--
44
+ Gift message save result
45
+ -->
46
+ <giftmessage_index_save>
47
+ <reference name="root">
48
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
49
+ </reference>
50
+ <reference name="content">
51
+ <block type="giftmessage/message_form" name="giftmessage.form" template="giftmessage/form.phtml" >
52
+ <action method="setSaveMode"><mode>save</mode></action>
53
+ </block>
54
+ </reference>
55
+ </giftmessage_index_save>
56
+
57
+ <!--
58
+ Gift message remove result
59
+ -->
60
+ <giftmessage_index_remove>
61
+ <reference name="root">
62
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
63
+ </reference>
64
+ <reference name="content">
65
+ <block type="giftmessage/message_form" name="giftmessage.form" template="giftmessage/form.phtml" >
66
+ <action method="setSaveMode"><mode>remove</mode></action>
67
+ </block>
68
+ </reference>
69
+ </giftmessage_index_remove>
70
+
71
+ </layout>
app/design/frontend/default/blank/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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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="before_body_end">
38
+ <block type="googleanalytics/ga" name="google_analytics" as="google_analytics" />
39
+ </reference>
40
+ </default>
41
+ </layout>
app/design/frontend/default/blank/layout/googlecheckout.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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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" template="googlecheckout/link.phtml" before="-"/>
34
+ </reference>
35
+
36
+ <reference name="checkout.cart.methods">
37
+ <block type="googlecheckout/link" name="checkout.cart.methods.googlecheckout" template="googlecheckout/link.phtml"/>
38
+ </reference>
39
+
40
+ <reference name="google_analytics">
41
+ <action method="setGoogleCheckout"><flag>true</flag></action>
42
+ </reference>
43
+ </checkout_cart_index>
44
+
45
+ <googlecheckout_redirect_redirect>
46
+ <reference name="root">
47
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
48
+ </reference>
49
+ <reference name="content">
50
+ <block type="googlecheckout/redirect" name="googlecheckout_redirect" template="page/redirect.phtml"></block>
51
+ </reference>
52
+ </googlecheckout_redirect_redirect>
53
+ </layout>
app/design/frontend/default/blank/layout/newsletter.xml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category design_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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="right.newsletter" template="newsletter/subscribe.phtml"/>
40
+ </reference>
41
+
42
+ </default>
43
+
44
+ <!--
45
+ Customer account pages, rendered for all tabs in dashboard
46
+ -->
47
+
48
+ <customer_account>
49
+ <!-- Mage_Newsletter -->
50
+ <reference name="customer_account_navigation">
51
+ <action method="addLink" translate="label" module="newsletter"><name>newsletter</name><path>newsletter/manage/</path><label>Newsletter Subscriptions</label></action>
52
+ </reference>
53
+ </customer_account>
54
+
55
+ <customer_account_index>
56
+
57
+ <reference name="right">
58
+ <action method="unsetChild"><name>right.newsletter</name></action>
59
+ </reference>
60
+ </customer_account_index>
61
+
62
+ <newsletter_manage_index>
63
+ <update handle="customer_account"/>
64
+ <reference name="content">
65
+ <block type="customer/newsletter" name="customer_newsletter"/>
66
+ </reference>
67
+ </newsletter_manage_index>
68
+
69
+ </layout>
app/design/frontend/default/blank/layout/page.xml ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+ <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">
35
+
36
+ <block type="page/html_head" name="head" as="head">
37
+ <action method="addJs"><script>prototype/prototype.js</script></action>
38
+ <action method="addJs" ifconfig="dev/js/deprecation"><script>prototype/deprecation.js</script></action>
39
+ <action method="addJs"><script>prototype/validation.js</script></action>
40
+ <action method="addJs"><script>scriptaculous/builder.js</script></action>
41
+ <action method="addJs"><script>scriptaculous/effects.js</script></action>
42
+ <action method="addJs"><script>scriptaculous/dragdrop.js</script></action>
43
+ <action method="addJs"><script>scriptaculous/controls.js</script></action>
44
+ <action method="addJs"><script>scriptaculous/slider.js</script></action>
45
+ <action method="addJs"><script>varien/js.js</script></action>
46
+ <action method="addJs"><script>varien/form.js</script></action>
47
+ <action method="addJs"><script>varien/menu.js</script></action>
48
+ <action method="addJs"><script>mage/translate.js</script></action>
49
+ <action method="addJs"><script>mage/cookies.js</script></action>
50
+ <action method="addCss"><stylesheet>css/reset.css</stylesheet></action>
51
+ <action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
52
+ <action method="addCss"><stylesheet>css/clears.css</stylesheet></action>
53
+
54
+ <action method="addItem"><type>skin_css</type><name>css/styles-ie.css</name><params/><if>IE</if></action>
55
+
56
+ <action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
57
+ <action method="addItem"><type>js</type><name>varien/iehover-fix.js</name><params/><if>lt IE 7</if></action>
58
+
59
+ <action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
60
+ </block>
61
+
62
+ <block type="page/html_header" name="header" as="header">
63
+ <block type="page/template_links" name="top.links" as="topLinks"/>
64
+ <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
65
+ <block type="core/text_list" name="top.menu" as="topMenu"/>
66
+ </block>
67
+
68
+ <block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
69
+
70
+ <block type="core/text_list" name="left" as="left"/>
71
+
72
+ <block type="core/messages" name="global_messages" as="global_messages"/>
73
+ <block type="core/messages" name="messages" as="messages"/>
74
+
75
+ <block type="core/text_list" name="content" as="content"/>
76
+
77
+ <block type="core/text_list" name="right" as="right"/>
78
+
79
+ <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
80
+ <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>
81
+ <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>
82
+ </block>
83
+
84
+ <block type="core/text_list" name="before_body_end" as="before_body_end"/>
85
+ </block>
86
+
87
+ <block type="core/profiler" output="toHtml"/>
88
+ </default>
89
+
90
+ <print>
91
+ <!-- Mage_Page -->
92
+ <block type="page/html" name="root" output="toHtml" template="page/print.phtml">
93
+
94
+ <block type="page/html_head" name="head" as="head">
95
+ <action method="addJs"><script>prototype/prototype.js</script></action>
96
+ <action method="addJs"><script>mage/translate.js</script></action>
97
+ <action method="addJs"><script>prototype/validation.js</script></action>
98
+ <action method="addJs"><script>varien/js.js</script></action>
99
+
100
+ <action method="addCss"><stylesheet>css/reset.css</stylesheet></action>
101
+ <action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
102
+ <action method="addCss"><stylesheet>css/clears.css</stylesheet></action>
103
+
104
+ <action method="addItem"><type>skin_css</type><name>css/styles-ie.css</name><params/><if>IE</if></action>
105
+
106
+ <action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
107
+ <action method="addItem"><type>js</type><name>varien/iehover-fix.js</name><params/><if>lt IE 7</if></action>
108
+
109
+ <action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
110
+ </block>
111
+
112
+ <block type="core/text_list" name="content" as="content"/>
113
+
114
+ </block>
115
+ </print>
116
+ </layout>
app/design/frontend/default/blank/layout/paypal.xml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+ Shopping cart
33
+ -->
34
+
35
+ <checkout_cart_index>
36
+ <!-- Mage_Paypal -->
37
+ <reference name="checkout.cart.methods">
38
+ <block type="paypal/link_shortcut" name="checkout.cart.methods.paypal_express" template="paypal/link.phtml"/>
39
+ </reference>
40
+ </checkout_cart_index>
41
+
42
+ <!--
43
+ PayPal Express Review page after shortcut link invocation
44
+ -->
45
+
46
+ <paypal_express_review>
47
+ <!-- Mage_Paypal -->
48
+ <remove name="right"/>
49
+ <remove name="left"/>
50
+
51
+ <reference name="root">
52
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
53
+ </reference>
54
+ <reference name="content">
55
+ <block type="paypal/express_review" name="paypal_express_review" template="paypal/express/review.phtml">
56
+ <block type="paypal/express_review_details" name="paypal_express_review_details" as="details" template="paypal/express/review/details.phtml"/>
57
+ </block>
58
+ </reference>
59
+ </paypal_express_review>
60
+
61
+ <!--
62
+ PayPal Express Review details block
63
+ -->
64
+
65
+ <paypal_express_review_details>
66
+ <!-- Mage_Paypal -->
67
+ <block type="paypal/express_review_details" name="root" output="toHtml" template="paypal/express/review/details.phtml"/>
68
+ </paypal_express_review_details>
69
+
70
+ </layout>
app/design/frontend/default/blank/layout/paypaluk.xml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+ Shopping cart
33
+ -->
34
+
35
+ <checkout_cart_index>
36
+ <!-- Mage_Paypal -->
37
+ <reference name="checkout.cart.methods">
38
+ <block type="paypaluk/link_shortcut" name="checkout.cart.methods.paypaluk_express" template="paypaluk/link.phtml"/>
39
+ </reference>
40
+ </checkout_cart_index>
41
+
42
+ <!--
43
+ PayPal Express Review page after shortcut link invocation and after getting express checkout details
44
+ -->
45
+
46
+ <paypaluk_express_review>
47
+ <!-- Mage_Paypal -->
48
+ <remove name="right"/>
49
+ <remove name="left"/>
50
+
51
+ <reference name="root">
52
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
53
+ </reference>
54
+ <reference name="content">
55
+ <block type="paypaluk/express_review" name="paypaluk_express_review" template="paypaluk/express/review.phtml">
56
+ <block type="paypaluk/express_review_details" name="paypaluk_express_review_details" as="details" template="paypaluk/express/review/details.phtml"/>
57
+ </block>
58
+ </reference>
59
+ </paypaluk_express_review>
60
+
61
+ <!--
62
+ PayPalUk Express Review details block
63
+ -->
64
+
65
+ <paypaluk_express_review_details>
66
+ <!-- Mage_Paypal -->
67
+ <block type="paypaluk/express_review_details" name="root" output="toHtml" template="paypaluk/express/review/details.phtml"/>
68
+ </paypaluk_express_review_details>
69
+
70
+ </layout>
app/design/frontend/default/blank/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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+
28
+ -->
29
+ <layout version="0.1.0">
30
+
31
+ <!--
32
+ Default layout, loads most of the pages
33
+ -->
34
+
35
+ <default>
36
+
37
+ <!-- Mage_Poll -->
38
+ <reference name="right">
39
+ <block type="poll/activePoll" name="right.poll">
40
+ <action method="setPollTemplate"><template>poll/active.phtml</template><type>poll</type></action>
41
+ <action method="setPollTemplate"><template>poll/result.phtml</template><type>results</type></action>
42
+ </block>
43
+ </reference>
44
+
45
+ </default>
46
+
47
+ <!--
48
+ Customer account home dashboard layout
49
+ -->
50
+
51
+ <customer_account_index>
52
+ <reference name="right">
53
+ <action method="unsetChild"><name>right.poll</name></action>
54
+ </reference>
55
+ </customer_account_index>
56
+
57
+ </layout>
app/design/frontend/default/blank/layout/productalert.xml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+ <reference name="product.info">
33
+ <reference name="alert.urls">
34
+ <block type="productalert/price" name="productalert.price" as="productalert_price" template="productalert/price.phtml" />
35
+ <block type="productalert/stock" name="productalert.stock" as="productalert_stock" />
36
+ </reference>
37
+ </reference>
38
+ </reference>
39
+ </catalog_product_view>
40
+ </layout>
app/design/frontend/default/blank/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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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/blank/layout/review.xml ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+ <action method="unsetChild"><name>customer_account_dashboard_info1</name></action>
48
+ <block type="review/customer_recent" name="customer_account_dashboard_info1" as="info1" template="review/customer/recent.phtml"/>
49
+ </reference>
50
+
51
+ </customer_account_index>
52
+
53
+
54
+ <!--
55
+ Product reviews page (?)
56
+ -->
57
+
58
+ <reviews>
59
+ <!-- Mage_Review -->
60
+ <reference name="root">
61
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
62
+ </reference>
63
+ </reviews>
64
+
65
+ <!--
66
+ Product reviews page
67
+ -->
68
+
69
+ <review_product_list>
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
+ </reference>
76
+ <reference name="content">
77
+ <block type="review/product_view" name="product.info" template="catalog/product/view.phtml">
78
+ <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml">
79
+ <action method="disableGallery"/>
80
+ </block>
81
+ <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
82
+ <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
83
+ <block type="catalog/product_view" name="product.tierprices" as="tierprices" template="catalog/product/view/tierprices.phtml"/>
84
+ <block type="core/template" name="product.info.other" as="other" template="review/product/view/other.phtml"/>
85
+ <block type="page/html_pager" name="product_review_list.toolbar" />
86
+ <block type="core/template" name="product_review_list.count" template="review/product/view/count.phtml" />
87
+ <block type="review/product_view_list" name="product.info.product_additional_data" as="product_additional_data" template="review/product/view/list.phtml">
88
+ <block type="review/form" name="product.review.form" as="review_form"/>
89
+ </block>
90
+ </block>
91
+ </reference>
92
+ </review_product_list>
93
+
94
+ <review_product_view>
95
+ <reference name="root">
96
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
97
+ </reference>
98
+ <reference name="content">
99
+ <block type="review/view" name="review_view"/>
100
+ </reference>
101
+ </review_product_view>
102
+
103
+ <review_customer_index>
104
+ <update handle="customer_account"/>
105
+ <reference name="content">
106
+ <block type="review/customer_list" name="review_customer_list" template="review/customer/list.phtml"/>
107
+ </reference>
108
+ </review_customer_index>
109
+
110
+ <review_customer_view>
111
+ <update handle="customer_account"/>
112
+ <reference name="content">
113
+ <block type="review/customer_view" name="customers_review"/>
114
+ </reference>
115
+ </review_customer_view>
116
+
117
+ </layout>
app/design/frontend/default/blank/layout/rss.xml ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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 testing</title><prepare>true</prepare><urlParams/><position/><li/><a>class="link-feed"</a></action>
32
+ </reference>
33
+ </default>
34
+ <!--
35
+ Default layout, loads most of the pages
36
+ -->
37
+ <rss_index_index>
38
+ <reference name="root">
39
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
40
+ </reference>
41
+ <reference name="content">
42
+ <block type="rss/list" name="rss.list" template="rss/list.phtml"/>
43
+ </reference>
44
+ </rss_index_index>
45
+
46
+ <rss_index_nofeed>
47
+ <block type="core/template" name="root" output="toHtml" template="rss/nofeed.phtml"/>
48
+ </rss_index_nofeed>
49
+
50
+ <rss_index_wishlist>
51
+ <block type="rss/wishlist" name="rss.wishlist" output="toHtml"/>
52
+ </rss_index_wishlist>
53
+ <!--
54
+ Catalog layout
55
+ -->
56
+ <rss_catalog_new>
57
+ <block type="rss/catalog_new" output="toHtml" name="rss.catalog.new"/>
58
+ </rss_catalog_new>
59
+
60
+ <rss_catalog_special>
61
+ <block type="rss/catalog_special" output="toHtml" name="rss.catalog.special"/>
62
+ </rss_catalog_special>
63
+
64
+ <rss_catalog_salesrule>
65
+ <block type="rss/catalog_salesrule" output="toHtml" name="rss.catalog.salesrule"/>
66
+ </rss_catalog_salesrule>
67
+
68
+ <rss_catalog_tag>
69
+ <block type="rss/catalog_tag" output="toHtml" name="rss.catalog.tag" />
70
+ </rss_catalog_tag>
71
+
72
+ <rss_catalog_notifystock>
73
+ <block type="rss/catalog_notifyStock" output="toHtml" name="rss.catalog.notifystock" />
74
+ </rss_catalog_notifystock>
75
+
76
+ <rss_catalog_review>
77
+ <block type="rss/catalog_review" output="toHtml" name="rss.catalog.review" />
78
+ </rss_catalog_review>
79
+
80
+ <rss_catalog_category>
81
+ <block type="rss/catalog_category" output="toHtml" name="rss.catalog.category" />
82
+ </rss_catalog_category>
83
+ <!--
84
+ Order layout
85
+ -->
86
+ <rss_order_new>
87
+ <block type="rss/order_new" output="toHtml" name="rss.order.new"/>
88
+ </rss_order_new>
89
+ <rss_order_status>
90
+ <block type="rss/order_status" output="toHtml" name="rss.order.status"/>
91
+ </rss_order_status>
92
+ </layout>
app/design/frontend/default/blank/layout/sales.xml ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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
+ <reference name="customer_account_dashboard">
65
+ <action method="unsetChild"><name>top</name></action>
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>
72
+ <update handle="customer_account"/>
73
+ <reference name="content">
74
+ <block type="sales/order_history" name="sales.order.history"/>
75
+ <block type="customer/account_dashboard" name="customer.account.link.back" template="customer/account/link/back.phtml"/>
76
+ </reference>
77
+ </sales_order_history>
78
+
79
+
80
+ <sales_order_view>
81
+ <update handle="customer_account"/>
82
+ <reference name="content">
83
+ <block type="sales/order_info" as="info" name="sales.order.info"/>
84
+ <block type="sales/order_view" name="sales.order.view">
85
+ <block type="sales/order_items" name="order_items" template="sales/order/items.phtml">
86
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
87
+ <block type="sales/order_tax" name="tax" template="sales/order/tax.phtml" />
88
+ </block>
89
+ </block>
90
+ </reference>
91
+ <reference name="sales.order.info">
92
+ <action method="addLink" translate="label" module="sales"><name>view</name><path></path><label>Order Information</label></action>
93
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
94
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
95
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
96
+ </reference>
97
+ </sales_order_view>
98
+
99
+ <sales_order_invoice>
100
+ <update handle="customer_account"/>
101
+ <reference name="content">
102
+ <block type="sales/order_info" as="info" name="sales.order.info"/>
103
+ <block type="sales/order_invoice" name="sales.order.invoice">
104
+ <block type="sales/order_invoice_items" name="invoice_items" template="sales/order/invoice/items.phtml">
105
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
106
+ </block>
107
+ </block>
108
+ </reference>
109
+ <reference name="sales.order.info">
110
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
111
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path></path><label>Invoices</label></action>
112
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
113
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
114
+ </reference>
115
+ </sales_order_invoice>
116
+
117
+ <sales_order_shipment>
118
+ <update handle="customer_account"/>
119
+ <reference name="content">
120
+ <block type="sales/order_info" as="info" name="sales.order.info"/>
121
+ <block type="sales/order_shipment" name="sales.order.shipment">
122
+ <block type="sales/order_shipment_items" name="shipment_items" template="sales/order/shipment/items.phtml">
123
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
124
+ </block>
125
+ </block>
126
+ </reference>
127
+ <reference name="sales.order.info">
128
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
129
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
130
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path></path><label>Shipments</label></action>
131
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
132
+ </reference>
133
+ </sales_order_shipment>
134
+
135
+ <sales_order_creditmemo>
136
+ <update handle="customer_account"/>
137
+ <reference name="content">
138
+ <block type="sales/order_info" as="info" name="sales.order.info"/>
139
+ <block type="sales/order_creditmemo" name="sales.order.creditmemo">
140
+ <block type="sales/order_creditmemo_items" name="creditmemo_items" template="sales/order/creditmemo/items.phtml">
141
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
142
+ </block>
143
+ </block>
144
+ </reference>
145
+ <reference name="sales.order.info">
146
+ <action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
147
+ <action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
148
+ <action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
149
+ <action method="addLink" translate="label" module="sales"><name>creditmemo</name><path></path><label>Refunds</label></action>
150
+ </reference>
151
+ </sales_order_creditmemo>
152
+
153
+ <sales_order_reorder>
154
+ <update handle="customer_account"/>
155
+ <reference name="content">
156
+ <block type="sales/order_view" name="sales.order.view"/>
157
+ </reference>
158
+ </sales_order_reorder>
159
+
160
+ <sales_order_print>
161
+ <reference name="content">
162
+ <block type="sales/order_print" name="sales.order.print" template="sales/order/print.phtml">
163
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
164
+ <block type="sales/order_tax" name="tax" template="sales/order/print/tax.phtml" />
165
+ </block>
166
+ </reference>
167
+ </sales_order_print>
168
+
169
+ <sales_order_printinvoice>
170
+ <reference name="content">
171
+ <block type="sales/order_print_invoice" name="sales.order.print.invoice" template="sales/order/print/invoice.phtml">
172
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
173
+ </block>
174
+ </reference>
175
+ </sales_order_printinvoice>
176
+
177
+ <sales_order_printshipment>
178
+ <reference name="content">
179
+ <block type="sales/order_print_shipment" name="sales.order.print.shipment" template="sales/order/print/shipment.phtml">
180
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
181
+ </block>
182
+ </reference>
183
+ </sales_order_printshipment>
184
+
185
+ <sales_order_printcreditmemo>
186
+ <reference name="content">
187
+ <block type="sales/order_print_creditmemo" name="sales.order.print.creditmemo" template="sales/order/print/creditmemo.phtml">
188
+ <action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
189
+ </block>
190
+ </reference>
191
+ </sales_order_printcreditmemo>
192
+
193
+ <!--
194
+ Email layouts section
195
+ -->
196
+ <sales_email_order_items>
197
+ <block type="sales/order_email_items" name="items" template="email/order/items.phtml">
198
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_order_default</block><template>email/order/items/order/default.phtml</template></action>
199
+ </block>
200
+ </sales_email_order_items>
201
+
202
+ <sales_email_order_invoice_items>
203
+ <block type="sales/order_email_invoice_items" name="items" template="email/order/invoice/items.phtml">
204
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/invoice/default.phtml</template></action>
205
+ </block>
206
+ </sales_email_order_invoice_items>
207
+
208
+ <sales_email_order_shipment_items>
209
+ <block type="sales/order_email_shipment_items" name="items" template="email/order/shipment/items.phtml">
210
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/shipment/default.phtml</template></action>
211
+ </block>
212
+ </sales_email_order_shipment_items>
213
+
214
+ <sales_email_order_creditmemo_items>
215
+ <block type="sales/order_email_creditmemo_items" name="items" template="email/order/creditmemo/items.phtml">
216
+ <action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/creditmemo/default.phtml</template></action>
217
+ </block>
218
+ </sales_email_order_creditmemo_items>
219
+
220
+ </layout>
app/design/frontend/default/blank/layout/sendfriend.xml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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>
30
+ <reference name="root">
31
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
32
+ </reference>
33
+ <reference name="head">
34
+ <action method="addJs"><script>varien/product.js</script></action>
35
+ </reference>
36
+ <reference name="content">
37
+ <block type="sendfriend/send" name="sendfriend.send" template="sendfriend/send.phtml" />
38
+ </reference>
39
+ </sendfriend_product_send>
40
+ </layout>
app/design/frontend/default/blank/layout/shipping.xml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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>
40
+ <reference name="root">
41
+ <action method="setTemplate"><template>page/popup.phtml</template></action>
42
+ </reference>
43
+ <!--<reference name="head">
44
+ <action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
45
+ </reference>-->
46
+ <reference name="content">
47
+ <block type="shipping/tracking_popup" name="shipping.tracking.popup" template="shipping/tracking/popup.phtml" />
48
+ </reference>
49
+ </shipping_tracking_popup>
50
+ </layout>
51
+
app/design/frontend/default/blank/layout/tag.xml ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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>
67
+ <!-- Mage_Tag -->
68
+ <reference name="product.info.additional">
69
+ <block type="tag/product_list" name="product_tag_list" before="-" template="tag/list.phtml"></block>
70
+ </reference>
71
+ </catalog_product_view>
72
+
73
+ <!--
74
+ All tags page
75
+ -->
76
+
77
+ <tag_list_index>
78
+ <!-- Mage_Tag -->
79
+ <reference name="root">
80
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
81
+ </reference>
82
+ <reference name="content">
83
+ <block type="tag/all" name="tags_all" template="tag/cloud.phtml"/>
84
+ </reference>
85
+ </tag_list_index>
86
+
87
+ <tag_product_list>
88
+ <!-- Mage_Tag -->
89
+ <reference name="content">
90
+ <block type="tag/product_result" name="tag_products" template="catalogsearch/result.phtml">
91
+ <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml"></block>
92
+ <action method="setListOrders"/>
93
+ <action method="setListModes"/>
94
+ <action method="setListCollection"/>
95
+ </block>
96
+ </reference>
97
+ </tag_product_list>
98
+
99
+ <tag_customer_index>
100
+ <update handle="customer_account"/>
101
+ <reference name="root">
102
+ <action method="setHeaderTitle" translate="title" module="customer"><title>My Account</title></action>
103
+ </reference>
104
+ <reference name="content">
105
+ <block type="tag/customer_tags" name="customer_tags" template="tag/customer/tags.phtml"/>
106
+ </reference>
107
+ </tag_customer_index>
108
+
109
+ <tag_customer_view>
110
+ <update handle="customer_account"/>
111
+ <reference name="root">
112
+ <action method="setHeaderTitle" translate="title" module="customer"><title>My Account</title></action>
113
+ </reference>
114
+ <reference name="content">
115
+ <block type="tag/customer_view" name="customer_view" template="tag/customer/view.phtml"/>
116
+ </reference>
117
+ </tag_customer_view>
118
+
119
+ <tag_customer_edit>
120
+ <update handle="customer_account"/>
121
+ <reference name="root">
122
+ <action method="setHeaderTitle" translate="title" module="customer"><title>My Account</title></action>
123
+ </reference>
124
+ <reference name="content">
125
+ <block type="tag/customer_edit" name="customer_edit" template="tag/customer/edit.phtml"/>
126
+ </reference>
127
+ </tag_customer_edit>
128
+ </layout>
app/design/frontend/default/blank/layout/wishlist.xml ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_default
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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="addWishlistLink"></action>
40
+ </block>
41
+ </reference>
42
+
43
+ <!-- Mage_Wishlist -->
44
+ <reference name="right">
45
+ <block type="wishlist/customer_sidebar" name="wishlist_sidebar" as="wishlist" after="cart_sidebar" template="wishlist/sidebar.phtml"/>
46
+ </reference>
47
+
48
+ </default>
49
+
50
+ <!--
51
+ Customer account pages, rendered for all tabs in dashboard
52
+ -->
53
+
54
+ <customer_account>
55
+ <!-- Mage_Wishlist -->
56
+ <reference name="customer_account_navigation">
57
+ <action method="addLink" translate="label" module="wishlist" ifconfig="wishlist/general/active"><name>wishlist</name><path>wishlist/</path><label>My Wishlist</label></action>
58
+ </reference>
59
+ </customer_account>
60
+
61
+ <!--
62
+ Customer account home dashboard layout
63
+ -->
64
+
65
+ <customer_account_index>
66
+
67
+ <reference name="right">
68
+ <action method="unsetChild"><name>wishlist</name></action>
69
+ </reference>
70
+ </customer_account_index>
71
+
72
+ <!--
73
+ Wishlist pages
74
+ -->
75
+
76
+ <wishlist_index_index>
77
+ <!-- Mage_Wishlist -->
78
+ <update handle="customer_account"/>
79
+ <reference name="content">
80
+ <block type="wishlist/customer_wishlist" name="customer.wishlist" template="wishlist/view.phtml"/>
81
+ </reference>
82
+ <reference name="right">
83
+ <action method="unsetChild"><name>wishlist_customer_sidebar</name></action>
84
+ </reference>
85
+ </wishlist_index_index>
86
+
87
+ <wishlist_index_share>
88
+ <!-- Mage_Wishlist -->
89
+ <update handle="customer_account"/>
90
+ <reference name="content">
91
+ <block type="wishlist/customer_sharing" name="wishlist.sharing" template="wishlist/sharing.phtml"/>
92
+ </reference>
93
+ <reference name="right">
94
+ <action method="unsetChild"><name>wishlist_customer_sidebar</name></action>
95
+ </reference>
96
+ </wishlist_index_share>
97
+
98
+ <wishlist_shared_index>
99
+ <!-- Mage_Wishlist -->
100
+ <reference name="content">
101
+ <block type="wishlist/share_wishlist" name="customer.wishlist" template="wishlist/shared.phtml"/>
102
+ </reference>
103
+ </wishlist_shared_index>
104
+ </layout>
app/design/frontend/default/blank/locale/en_US/translate.csv ADDED
@@ -0,0 +1 @@
 
1
+ "Keep your eyes open for our special Back to School items and save A LOT!","Keep your eyes open for our special Back to School items and save A LOT!"
app/design/frontend/default/blank/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_blank
22
+ * @package Mage_Bundle
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 if($this->getItemCollection()->getSize()): ?>
28
+ <div class="up-sell">
29
+ <h3><?php echo $this->__('This product is also part of bundle(s)') ?></h3>
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
+ <p class="product-image"><a href="<?php echo $_bundle->getProductUrl() ?>"><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()) ?>" title="<?php echo $this->htmlEscape($_bundle->getName()) ?>" /></a></p>
39
+ <h4><a href="<?php echo $_bundle->getProductUrl() ?>"><?php echo $this->htmlEscape($_bundle->getName()) ?></a></h4>
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/blank/template/bundle/catalog/product/price.phtml ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
22
+ * @package Mage_Bundle
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 $_product = $this->getProduct() ?>
28
+ <?php list($_minimalPrice, $_maximalPrice) = $_product->getPriceModel()->getPrices($_product) ?>
29
+ <?php $_id = $_product->getId() ?>
30
+
31
+ <?php $_minimalPriceTax = Mage::helper('tax')->getPrice($_product, $_minimalPrice); ?>
32
+ <?php $_minimalPriceInclTax = Mage::helper('tax')->getPrice($_product, $_minimalPrice, true); ?>
33
+
34
+ <div class="price-box">
35
+ <?php if ($_product->getPriceView()): ?>
36
+ <p class="minimal-price">
37
+ <span class="price-label"><?php echo $this->__('As low as') ?>:</span>
38
+ <?php if ($this->helper('tax')->displayBothPrices() && $this->isRatesGraterThenZero()): ?>
39
+ <span class="price-excluding-tax">
40
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
41
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
42
+ </span>
43
+ <span class="price-including-tax">
44
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
45
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
46
+ </span>
47
+ </p>
48
+ <?php else: ?>
49
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
50
+ </p>
51
+ <?php endif; ?>
52
+ <?php else: ?>
53
+ <?php if ($_minimalPrice <> $_maximalPrice): ?>
54
+ <p class="price-from">
55
+ <span class="price-label"><?php echo $this->__('From') ?>:</span>
56
+ <?php if ($this->helper('tax')->displayBothPrices() && $this->isRatesGraterThenZero()): ?>
57
+ <span class="price-excluding-tax">
58
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
59
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
60
+ </span>
61
+ <span class="price-including-tax">
62
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
63
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
64
+ </span>
65
+ <?php else: ?>
66
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
67
+ <?php endif; ?>
68
+ </p>
69
+ <?php $_maximalPriceTax = Mage::helper('tax')->getPrice($_product, $_maximalPrice); ?>
70
+ <?php $_maximalPriceInclTax = Mage::helper('tax')->getPrice($_product, $_maximalPrice, true); ?>
71
+ <p class="price-to">
72
+ <span class="price-label"><?php echo $this->__('To') ?>:</span>
73
+ <?php if ($this->helper('tax')->displayBothPrices() && $this->isRatesGraterThenZero()): ?>
74
+ <span class="price-excluding-tax">
75
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
76
+ <?php echo Mage::helper('core')->currency($_maximalPriceTax) ?>
77
+ </span>
78
+ <span class="price-including-tax">
79
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax') ?></span>
80
+ <?php echo Mage::helper('core')->currency($_maximalPriceInclTax) ?>
81
+ </span>
82
+ <?php else: ?>
83
+ <?php echo Mage::helper('core')->currency($_maximalPriceTax) ?>
84
+ <?php endif; ?>
85
+ </p>
86
+ <?php else: ?>
87
+ <?php if ($this->helper('tax')->displayBothPrices() && $this->isRatesGraterThenZero()): ?>
88
+ <span class="price-excluding-tax">
89
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
90
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
91
+ </span>
92
+ <span class="price-including-tax">
93
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
94
+ <?php echo Mage::helper('core')->currency($_minimalPriceInclTax) ?>
95
+ </span>
96
+ <?php else: ?>
97
+ <?php echo Mage::helper('core')->currency($_minimalPriceTax) ?>
98
+ <?php endif; ?>
99
+ <?php endif; ?>
100
+ <?php endif; ?>
101
+ </div>
app/design/frontend/default/blank/template/bundle/catalog/product/view/price.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_blank
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 $_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
+
31
+ <div class="price-box">
32
+ <p class="price-as-configured">
33
+ <span class="price-label"><?php echo $this->helper('bundle')->__('Price as configured') ?>:</span>
34
+ <?php if ($this->helper('tax')->displayBothPrices() && $this->isRatesGraterThenZero()): ?>
35
+ <span class="price-tax">
36
+ <span class="price-excluding-tax">
37
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
38
+ <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>
39
+ </span>
40
+ <span class="price-including-tax">
41
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
42
+ <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>
43
+ </span>
44
+ </span>
45
+ <?php else: ?>
46
+ <span class="price" id="product-price-<?php echo $_product->getId() ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice,true,false) ?></span>
47
+ <?php endif; ?>
48
+ </p>
49
+ </div>
50
+ <?php if($_product->isSaleable()): ?>
51
+ <script type="text/javascript">
52
+ bundle.reloadPrice();
53
+ </script>
54
+ <?php endif; ?>
app/design/frontend/default/blank/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_blank
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
+
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">
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/blank/template/bundle/catalog/product/view/type/bundle.phtml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
22
+ * @package Mage_Bundle
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
+ ?>
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
+ <p class="availability"><?php echo $this->helper('catalog')->__('Availability') ?>: <span class="in-stock"><?php echo $this->helper('catalog')->__('In stock') ?></span></p>
37
+ <?php else: ?>
38
+ <p class="availability"><?php echo $this->helper('catalog')->__('Availability') ?>: <span class="out-of-stock"><?php echo $this->helper('catalog')->__('Out of stock') ?></span></p>
39
+ <?php endif; ?>
40
+
41
+ <div class="price-box-bundle">
42
+ <?php echo $this->getPriceHtml($_product) ?>
43
+ </div>
44
+ <?php echo $this->getChildHtml('bundle_prices') ?>
app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/option/checkbox.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_blank
22
+ * @package Mage_Bundle
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
+ ?>
28
+ <?php $_option = $this->getOption() ?>
29
+ <?php $_selections = $_option->getSelections() ?>
30
+ <dt><label><?php echo $this->htmlEscape($_option->getTitle()) ?><?php if ($_option->getRequired()) echo '<span class="required">&nbsp;*</span>' ?></label></dt>
31
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
32
+ <?php if (count($_selections) == 1 && $_option->getRequired()): ?>
33
+ <?php echo $this->getSelectionQtyTitlePrice($_selections[0]) ?>
34
+ <input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>" />
35
+ <?php else:?>
36
+ <ul class="options-list">
37
+ <?php foreach($_selections as $_selection): ?>
38
+ <li><input onclick="bundle.changeSelection(this)" class="checkbox bundle-option-<?php echo $_option->getId() ?> <?php echo $_option->getRequired() ? '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 echo ($_selection->getIsDefault() && $_selection->isSaleable())?' checked="checked" ':'' ?><?php echo !$_selection->isSaleable()?' disabled="disabled" ':'' ?> value="<?php echo $_selection->getSelectionId() ?>" />
39
+ <span class="label"><label for="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>"><?php echo $this->getSelectionQtyTitlePrice($_selection) ?></label></span>
40
+ <?php if($_option->getRequired()): ?>
41
+ <?php echo $this->setValidationContainer('bundle-option-'.$_option->getId().'-'.$_selection->getSelectionId(), 'bundle-option-'.$_option->getId().'-container') ?>
42
+ <?php endif; ?>
43
+ </li>
44
+ <?php endforeach;?>
45
+ </ul>
46
+ <span id="bundle-option-<?php echo $_option->getId() ?>-container"></span>
47
+ <?php endif; ?>
48
+ </dd>
app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/option/multi.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_blank
22
+ * @package Mage_Bundle
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
+ ?>
28
+
29
+ <?php $_option = $this->getOption() ?>
30
+ <?php $_selections = $_option->getSelections() ?>
31
+ <dt><label><?php echo $this->htmlEscape($_option->getTitle()) ?><?php if ($_option->getRequired()) echo '<span class="required">&nbsp;*</span>' ?></label></dt>
32
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
33
+ <?php if (count($_selections) == 1 && $_option->getRequired()): ?>
34
+ <?php echo $this->getSelectionQtyTitlePrice($_selections[0]) ?>
35
+ <input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>" />
36
+ <?php else:?>
37
+ <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">
38
+ <?php if(!$_option->getRequired()): ?>
39
+ <option value=""><?php echo $this->__('None') ?></option>
40
+ <?php endif; ?>
41
+ <?php foreach($_selections as $_selection): ?>
42
+ <option value="<?php echo $_selection->getSelectionId() ?>"<?php echo ($_selection->getIsDefault() && $_selection->isSaleable())?' selected="selected" ':'' ?><?php echo !$_selection->isSaleable()?' disabled="disabled" ':'' ?>><?php echo $this->getSelectionQtyTitlePrice($_selection, false) ?></option>
43
+ <?php endforeach;?>
44
+ </select>
45
+ <?php endif; ?>
46
+ </dd>
app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/option/radio.phtml ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
22
+ * @package Mage_Bundle
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
+ ?>
28
+
29
+ <?php $_option = $this->getOption() ?>
30
+ <?php $_selections = $_option->getSelections() ?>
31
+ <?php $_default = $_option->getDefaultSelection() ?>
32
+ <?php $_showSingle = (count($_selections) == 1 && $_option->getRequired()) ?>
33
+ <dt><span class="qty-holder">
34
+ <?php if ($_default): ?>
35
+ <?php $_defaultQty = $_default->getSelectionQty()*1 ?>
36
+ <?php $_canChangeQty = $_default->getSelectionCanChangeQty() ?>
37
+ <?php else: ?>
38
+ <?php if (!$_showSingle): ?>
39
+ <?php $_defaultQty = '0' ?>
40
+ <?php $_canChangeQty = false ?>
41
+ <?php else: ?>
42
+ <?php $_defaultQty = $_selections[0]->getSelectionQty()*1 ?>
43
+ <?php $_canChangeQty = $_selections[0]->getSelectionCanChangeQty() ?>
44
+ <?php endif; ?>
45
+ <?php endif; ?>
46
+ <label for="bundle-option-<?php echo $_option->getId() ?>-qty-input"><?php echo $this->__('Qty:') ?>&nbsp;</label><input onkeyup="bundle.changeOptionQty(this)" <?php echo $_canChangeQty?'':'disabled="disabled"' ?> id="bundle-option-<?php echo $_option->getId() ?>-qty-input" class="input-text qty<?php echo $_canChangeQty?'':' qty-disabled' ?>" type="text" name="bundle_option_qty[<?php echo $_option->getId() ?>]" value="<?php echo $_defaultQty ?>" />
47
+ </span>
48
+ <label><?php echo $this->htmlEscape($_option->getTitle()) ?><?php if ($_option->getRequired()) echo '<span class="required">&nbsp;*</span>' ?></label>
49
+ </dt>
50
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
51
+ <?php if (count($_selections) == 1 && $_option->getRequired()): ?>
52
+ <?php echo $this->getSelectionTitlePrice($_selections[0]) ?>
53
+ <input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>" />
54
+ <?php else:?>
55
+ <ul class="options-list">
56
+ <?php if(!$_option->getRequired()): ?>
57
+ <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="" />
58
+ <span class="label"><label for="bundle-option-<?php echo $_option->getId() ?>"><?php echo $this->__('None') ?></label></span>
59
+ </li>
60
+ <?php endif; ?>
61
+ <?php foreach($_selections as $_selection): ?>
62
+ <li><input type="radio" onclick="bundle.changeSelection(this)" class="radio<?php echo $_option->getRequired()?' validate-one-required-by-name':'' ?>" id="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>" name="bundle_option[<?php echo $_option->getId() ?>]"<?php echo ($_selection->getIsDefault() && $_selection->isSaleable())?' checked="checked" ':'' ?><?php echo !$_selection->isSaleable()?' disabled="disabled" ':'' ?>value="<?php echo $_selection->getSelectionId() ?>" />
63
+ <span class="label"><label for="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>"><?php echo $this->getSelectionTitlePrice($_selection) ?></label></span>
64
+ <?php if($_option->getRequired()): ?>
65
+ <?php echo $this->setValidationContainer('bundle-option-'.$_option->getId().'-'.$_selection->getSelectionId(), 'bundle-option-'.$_option->getId().'-container') ?>
66
+ <?php endif; ?>
67
+ </li>
68
+ <?php endforeach;?>
69
+ </ul>
70
+ <span id="bundle-option-<?php echo $_option->getId() ?>-container"></span>
71
+ <?php endif; ?>
72
+ </dd>
app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/option/select.phtml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
22
+ * @package Mage_Bundle
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
+ ?>
28
+
29
+ <?php $_option = $this->getOption() ?>
30
+ <?php $_selections = $_option->getSelections() ?>
31
+ <?php $_showSingle = (count($_selections) == 1 && $_option->getRequired()) ?>
32
+ <dt><span class="qty-holder">
33
+ <?php if ($_default = $_option->getDefaultSelection()): ?>
34
+ <?php $_defaultQty = $_default->getSelectionQty()*1 ?>
35
+ <?php $_canChangeQty = $_default->getSelectionCanChangeQty() ?>
36
+ <?php else: ?>
37
+ <?php if (!$_showSingle): ?>
38
+ <?php $_defaultQty = '0' ?>
39
+ <?php $_canChangeQty = false ?>
40
+ <?php else: ?>
41
+ <?php $_defaultQty = $_selections[0]->getSelectionQty()*1 ?>
42
+ <?php $_canChangeQty = $_selections[0]->getSelectionCanChangeQty() ?>
43
+ <?php endif; ?>
44
+ <?php endif; ?>
45
+ <label for="bundle-option-<?php echo $_option->getId() ?>-qty-input"><?php echo $this->__('Qty:') ?>&nbsp;</label><input onkeyup="bundle.changeOptionQty(this)" <?php echo $_canChangeQty?'':'disabled="disabled"' ?> id="bundle-option-<?php echo $_option->getId() ?>-qty-input" class="input-text qty<?php echo $_canChangeQty?'':' qty-disabled' ?>" type="text" name="bundle_option_qty[<?php echo $_option->getId() ?>]" value="<?php echo $_defaultQty ?>" />
46
+ </span>
47
+ <label><?php echo $this->htmlEscape($_option->getTitle()) ?><?php if ($_option->getRequired()) echo '<span class="required">&nbsp;*</span>' ?></label>
48
+ </dt>
49
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
50
+ <?php if ($_showSingle): ?>
51
+ <?php echo $this->getSelectionTitlePrice($_selections[0]) ?>
52
+ <input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>" />
53
+ <?php else:?>
54
+ <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">
55
+ <option value=""><?php echo $this->__('Choose a selection...') ?></option>
56
+ <?php foreach($_selections as $_selection): ?>
57
+ <option value="<?php echo $_selection->getSelectionId() ?>"<?php echo ($_selection->getIsDefault() && $_selection->isSaleable())?' selected="selected" ':'' ?><?php echo !$_selection->isSaleable()?' disabled="disabled" ':'' ?>><?php echo $this->getSelectionTitlePrice($_selection, false) ?></option>
58
+ <?php endforeach;?>
59
+ </select>
60
+ <?php endif; ?>
61
+ </dd>
app/design/frontend/default/blank/template/bundle/catalog/product/view/type/bundle/options.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_blank
22
+ * @package Mage_Bundle
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
+
28
+ <?php
29
+ $_product = $this->getProduct();
30
+ $_options = Mage::helper('core')->decorateArray($this->getOptions());
31
+ ?>
32
+ <?php if ($_product->isSaleable()):?>
33
+ <?php if (count($_options)): ?>
34
+ <dl>
35
+ <?php foreach ($_options as $_option): ?>
36
+ <?php if (!$_option->getSelections()): ?>
37
+ <?php continue; ?>
38
+ <?php endif; ?>
39
+ <?php echo $this->getOptionHtml($_option) ?>
40
+ <?php endforeach; ?>
41
+ </dl>
42
+ <?php else: ?>
43
+ <p><?php echo $this->__('No options of this product are available.') ?></p>
44
+ <?php endif; ?>
45
+ <?php endif;?>
app/design/frontend/default/blank/template/bundle/email/order/items/creditmemo/default.phtml ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
22
+ * @package Mage_Bundle
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 $parentItem = $this->getItem() ?>
28
+
29
+ <?php $items = $this->getChilds($parentItem) ?>
30
+
31
+ <?php $_prevOptionId = '' ?>
32
+
33
+ <?php foreach ($items as $_item): ?>
34
+
35
+ <?php if($this->getItemOptions() || $parentItem->getDescription() || $this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
36
+ <?php $_showlastRow = true ?>
37
+ <?php else: ?>
38
+ <?php $_showlastRow = false ?>
39
+ <?php endif; ?>
40
+
41
+ <?php if ($_item->getOrderItem()->getParentItem()): ?>
42
+ <?php $attributes = $this->getSelectionAttributes($_item) ?>
43
+ <?php if ($_prevOptionId != $attributes['option_id']): ?>
44
+ <tr>
45
+ <td align="left" valign="top" style="padding:3px 9px"><strong><?php echo $attributes['option_label'] ?></strong></td>
46
+ <td>&nbsp;</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->getOrderItem()->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 $_item->getSku() ?></td>
60
+ <td align="center" valign="top" style="padding:3px 9px">
61
+ <?php if ($this->canShowPriceInfo($_item)): ?>
62
+ <?php echo $_item->getQty()*1 ?>
63
+ <?php else: ?>
64
+ &nbsp;
65
+ <?php endif; ?>
66
+ </td>
67
+ <td align="right" valign="top" style="padding:3px 9px">
68
+ <?php if ($this->canShowPriceInfo($_item)): ?>
69
+ <?php if ($this->helper('tax')->displayCartPriceInclTax($_item->getOrderItem()->getOrder()->getStore())): ?>
70
+ <?php echo $_item->getOrderItem()->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxAmount()) ?>
71
+ <?php elseif ($this->helper('tax')->displayCartPriceExclTax($_item->getOrderItem()->getOrder()->getStore())): ?>
72
+ <?php echo $_item->getOrderItem()->getOrder()->formatPrice($_item->getRowTotal()) ?>
73
+ <?php else: ?>
74
+ <?php echo Mage::helper('tax')->__('Excl. Tax'); ?>: <?php echo $_item->getOrderItem()->getOrder()->formatPrice($_item->getRowTotal()) ?><br />
75
+ <?php echo Mage::helper('tax')->__('Incl. Tax'); ?>: <?php echo $_item->getOrderItem()->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxAmount()) ?>
76
+ <?php endif; ?>
77
+ <?php else: ?>
78
+ &nbsp;
79
+ <?php endif; ?>
80
+ </td>
81
+ </tr>
82
+ <?php endforeach; ?>
83
+
84
+ <?php if ($_showlastRow): ?>
85
+ <tr>
86
+ <td align="left" valign="top" style="padding:3px 9px">
87
+ <?php if ($this->getItemOptions()): ?>
88
+ <dl style="margin:0; padding:0;">
89
+ <?php foreach ($this->getItemOptions() as $option): ?>
90
+ <dt><strong><em><?php echo $option['label'] ?></em></strong></dt>
91
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
92
+ <?php endforeach; ?>
93
+ </dl>
94
+ <?php endif; ?>
95
+ <?php echo $_item->getDescription() ?>
96
+ </td>
97
+ <td>&nbsp;</td>
98
+ <td>&nbsp;</td>
99
+ <td>&nbsp;</td>
100
+ </tr>
101
+ <?php endif; ?>
app/design/frontend/default/blank/template/bundle/email/order/items/invoice/default.phtml ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+
28
+ <?php $parentItem = $this->getItem() ?>
29
+ <?php $items = $this->getChilds($parentItem) ?>
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->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><em><?php echo $attributes['option_label'] ?></em></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 $_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')->displayCartPriceInclTax($_item->getOrderItem()->getOrder()->getStore())): ?>
71
+ <?php echo $_item->getOrderItem()->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxAmount()) ?>
72
+ <?php elseif ($this->helper('tax')->displayCartPriceExclTax($_item->getOrderItem()->getOrder()->getStore())): ?>
73
+ <?php echo $_item->getOrderItem()->getOrder()->formatPrice($_item->getRowTotal()) ?>
74
+ <?php else: ?>
75
+ <?php echo Mage::helper('tax')->__('Excl. Tax'); ?>: <?php echo $_item->getOrderItem()->getOrder()->formatPrice($_item->getRowTotal()) ?><br />
76
+ <?php echo Mage::helper('tax')->__('Incl. Tax'); ?>: <?php echo $_item->getOrderItem()->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxAmount()) ?>
77
+ <?php endif; ?>
78
+ <?php else: ?>
79
+ &nbsp;
80
+ <?php endif; ?>
81
+ </td>
82
+ </tr>
83
+ <?php endforeach; ?>
84
+
85
+ <?php if ($_showlastRow): ?>
86
+ <tr>
87
+ <td align="left" valign="top" style="padding:3px 9px">
88
+ <?php if ($this->getItemOptions()): ?>
89
+ <dl style="margin:0; padding:0;">
90
+ <?php foreach ($this->getItemOptions() as $option): ?>
91
+ <dt><strong><em><?php echo $option['label'] ?></em></strong></dt>
92
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
93
+ <?php endforeach; ?>
94
+ </dl>
95
+ <?php endif; ?>
96
+ <?php echo $_item->getDescription() ?>
97
+ </td>
98
+ <td>&nbsp;</td>
99
+ <td>&nbsp;</td>
100
+ <td>&nbsp;</td>
101
+ </tr>
102
+ <?php endif; ?>
app/design/frontend/default/blank/template/bundle/email/order/items/order/default.phtml ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_item = $this->getItem() ?>
28
+
29
+ <?php $parentItem = $this->getItem() ?>
30
+ <?php $items = array_merge(array($parentItem), $parentItem->getChildrenItems()); ?>
31
+
32
+ <?php if($this->getItemOptions() || $_item->getDescription() || $this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $_item) && $_item->getGiftMessageId()): ?>
33
+ <?php $_showlastRow = true ?>
34
+ <?php else: ?>
35
+ <?php $_showlastRow = false ?>
36
+ <?php endif; ?>
37
+
38
+ <?php $_prevOptionId = '' ?>
39
+
40
+ <?php foreach ($items as $_item): ?>
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
+ <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->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 $_item->getSku() ?></td>
61
+ <td align="center" valign="top" style="padding:3px 9px">
62
+ <?php if (!$_item->getParentItem()): ?>
63
+ <?php echo $_item->getQtyOrdered()*1 ?>
64
+ <?php else: ?>
65
+ &nbsp;
66
+ <?php endif; ?>
67
+ </td>
68
+ <td align="right" valign="top" style="padding:3px 9px">
69
+ <?php if (!$_item->getParentItem()): ?>
70
+ <?php if ($this->helper('tax')->displayCartPriceInclTax($_item->getOrder()->getStore())): ?>
71
+ <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxBeforeDiscount()) ?>
72
+ <?php elseif ($this->helper('tax')->displayCartPriceExclTax($_item->getOrder()->getStore())): ?>
73
+ <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal()) ?>
74
+ <?php else: ?>
75
+ <?php echo Mage::helper('tax')->__('Excl. Tax'); ?>: <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal()) ?><br />
76
+ <?php echo Mage::helper('tax')->__('Incl. Tax'); ?>: <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxBeforeDiscount()) ?>
77
+ <?php endif; ?>
78
+ <?php else: ?>
79
+ &nbsp;
80
+ <?php endif; ?>
81
+ </td>
82
+ </tr>
83
+ <?php endforeach; ?>
84
+
85
+ <?php if ($_showlastRow): ?>
86
+ <tr>
87
+ <td align="left" valign="top" style="padding:3px 9px">
88
+ <?php if ($this->getItemOptions()): ?>
89
+ <dl style="margin:0; padding:0;">
90
+ <?php foreach ($this->getItemOptions() as $option): ?>
91
+ <dt><strong><em><?php echo $option['label'] ?></em></strong></dt>
92
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
93
+ <?php endforeach; ?>
94
+ </dl>
95
+ <?php endif; ?>
96
+ <?php if ($_item->getGiftMessageId() && $_giftMessage = $this->helper('giftmessage/message')->getGiftMessage($_item->getGiftMessageId())): ?>
97
+ <br /><strong><?php echo $this->__('Gift Message') ?></strong>
98
+ <br /><?php echo $this->__('From:'); ?> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?>
99
+ <br /><?php echo $this->__('To:'); ?> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?>
100
+ <br /><?php echo $this->__('Message:'); ?><br /> <?php echo $this->htmlEscape($_giftMessage->getMessage()) ?>
101
+ <?php endif; ?>
102
+ </td>
103
+ <td>&nbsp;</td>
104
+ <td>&nbsp;</td>
105
+ <td>&nbsp;</td>
106
+ </tr>
107
+ <?php endif; ?>
app/design/frontend/default/blank/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_blank
22
+ * @package Mage_Bundle
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 $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 $_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 $_item->getDescription() ?>
88
+ </td>
89
+ <td>&nbsp;</td>
90
+ <td>&nbsp;</td>
91
+ </tr>
92
+ <?php endif; ?>
app/design/frontend/default/blank/template/bundle/sales/order/creditmemo/items/renderer.phtml ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
22
+ * @package Mage_Bundle
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 $parentItem = $this->getItem() ?>
28
+
29
+ <?php $items = $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->getOrderItem()->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
+ <td>&nbsp;</td>
51
+ <td>&nbsp;</td>
52
+ <td>&nbsp;</td>
53
+ <td>&nbsp;</td>
54
+ </tr>
55
+ <?php $_prevOptionId = $attributes['option_id'] ?>
56
+ <?php endif; ?>
57
+ <?php endif; ?>
58
+ <tr<?php echo (++$_index==$_count && !$_showlastRow)?' class="border"':'' ?> id="order-item-row-<?php echo $_item->getId() ?>">
59
+ <?php if (!$_item->getOrderItem()->getParentItem()): ?>
60
+ <td><h4 class="product-name"><?php echo $this->htmlEscape($_item->getName()) ?></h4>
61
+ </td>
62
+ <?php else: ?>
63
+ <td><div class="option-value"><?php echo $this->getValueHtml($_item) ?></div></td>
64
+ <?php endif; ?>
65
+ <td><?php echo $_item->getSku() ?></td>
66
+ <td class="a-right">
67
+ <?php if ($this->canShowPriceInfo($_item)): ?>
68
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
69
+ <span class="price-excl-tax">
70
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
71
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax'); ?>:</span>
72
+ <?php endif; ?>
73
+ <?php echo $this->getOrder()->formatPrice($_item->getPrice()) ?>
74
+ </span>
75
+ <?php endif; ?>
76
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
77
+ <span class="price-incl-tax">
78
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
79
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax'); ?>:</span>
80
+ <?php endif; ?>
81
+ <?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
82
+ </span>
83
+ <?php endif; ?>
84
+ <?php else: ?>
85
+ &nbsp;
86
+ <?php endif; ?>
87
+ </td>
88
+ <td class="a-center">
89
+ <?php if ($this->canShowPriceInfo($_item)): ?>
90
+ <?php echo $_item->getQty()*1 ?>
91
+ <?php else: ?>
92
+ &nbsp;
93
+ <?php endif; ?>
94
+ </td>
95
+ <td class="a-right">
96
+ <?php if ($this->canShowPriceInfo($_item)): ?>
97
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
98
+ <span class="price-excl-tax">
99
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
100
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax'); ?>:</span>
101
+ <?php endif; ?>
102
+ <?php echo $this->getOrder()->formatPrice($_item->getRowTotal()) ?>
103
+ </span>
104
+ <?php endif; ?>
105
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
106
+ <span class="price-incl-tax">
107
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
108
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax'); ?>:</span>
109
+ <?php endif; ?>
110
+ <?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
111
+ </span>
112
+ <?php endif; ?>
113
+ <?php else: ?>
114
+ &nbsp;
115
+ <?php endif; ?>
116
+ </td>
117
+ <td class="a-right">
118
+ <?php if ($this->canShowPriceInfo($_item)): ?>
119
+ <?php echo $this->getOrder()->formatPrice(-$_item->getDiscountAmount()) ?>
120
+ <?php else: ?>
121
+ &nbsp;
122
+ <?php endif; ?>
123
+ </td>
124
+ <td class="last a-right">
125
+ <?php if ($this->canShowPriceInfo($_item)): ?>
126
+ <?php echo $this->getOrder()->formatPrice($_item->getRowTotal()-$_item->getDiscountAmount()+$_item->getTaxAmount()) ?>
127
+ <?php else: ?>
128
+ &nbsp;
129
+ <?php endif; ?>
130
+ </td>
131
+ </tr>
132
+ <?php endforeach; ?>
133
+
134
+ <?php if ($_showlastRow): ?>
135
+ <tr class="border">
136
+ <td>
137
+ <?php if($_options = $this->getItemOptions()): ?>
138
+ <dl class="item-options">
139
+ <?php foreach ($_options as $_option) : ?>
140
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
141
+ <?php if (!$this->getPrintStatus()): ?>
142
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option['value']) ?>
143
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
144
+ <?php echo $_formatedOptionValue['value'] ?>
145
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
146
+ <div class="truncated_full_value">
147
+ <dl class="item-options">
148
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
149
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
150
+ </dl>
151
+ </div>
152
+ <?php endif; ?>
153
+ </dd>
154
+ <?php else: ?>
155
+ <dd><?php echo $this->htmlEscape($_option['value']) ?></dd>
156
+ <?php endif; ?>
157
+ <?php endforeach; ?>
158
+ </dl>
159
+ <?php endif; ?>
160
+ <?php echo $_item->getDescription() ?>
161
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
162
+ <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>
163
+ <?php endif; ?>
164
+ </td>
165
+ <td>&nbsp;</td>
166
+ <td>&nbsp;</td>
167
+ <td>&nbsp;</td>
168
+ <td>&nbsp;</td>
169
+ <td>&nbsp;</td>
170
+ <td>&nbsp;</td>
171
+ </tr>
172
+ <?php endif; ?>
app/design/frontend/default/blank/template/bundle/sales/order/invoice/items/renderer.phtml ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
22
+ * @package Mage_Bundle
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 $parentItem = $this->getItem() ?>
28
+
29
+ <?php $items = $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->getOrderItem()->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
+ <td>&nbsp;</td>
51
+ <td>&nbsp;</td>
52
+ </tr>
53
+ <?php $_prevOptionId = $attributes['option_id'] ?>
54
+ <?php endif; ?>
55
+ <?php endif; ?>
56
+ <tr<?php echo (++$_index==$_count && !$_showlastRow)?' class="border"':'' ?> id="order-item-row-<?php echo $_item->getId() ?>">
57
+ <?php if (!$_item->getOrderItem()->getParentItem()): ?>
58
+ <td><h4 class="product-name"><?php echo $this->htmlEscape($_item->getName()) ?></h4></td>
59
+ <?php else: ?>
60
+ <td><div class="option-value"><?php echo $this->getValueHtml($_item) ?></div></td>
61
+ <?php endif; ?>
62
+ <td><?php echo $_item->getSku() ?></td>
63
+ <td class="a-right">
64
+ <?php if ($this->canShowPriceInfo($_item)): ?>
65
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
66
+ <span class="price-excl-tax">
67
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
68
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax'); ?>:</span>
69
+ <?php endif; ?>
70
+ <?php echo $this->getOrder()->formatPrice($_item->getPrice()) ?>
71
+ </span>
72
+ <?php endif; ?>
73
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
74
+ <span class="price-incl-tax">
75
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
76
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax'); ?>:</span>
77
+ <?php endif; ?>
78
+ <?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
79
+ </span>
80
+ <?php endif; ?>
81
+ <?php else: ?>
82
+ &nbsp;
83
+ <?php endif; ?>
84
+ </td>
85
+ <td class="a-center">
86
+ <?php if ($this->canShowPriceInfo($_item)): ?>
87
+ <?php echo $_item->getQty()*1 ?>
88
+ <?php else: ?>
89
+ &nbsp;
90
+ <?php endif; ?>
91
+ </td>
92
+ <td class="a-right">
93
+ <?php if ($this->canShowPriceInfo($_item)): ?>
94
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
95
+ <span class="price-excl-tax">
96
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
97
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax'); ?>:</span>
98
+ <?php endif; ?>
99
+ <?php echo $this->getOrder()->formatPrice($_item->getRowTotal()) ?>
100
+ </span>
101
+ <?php endif; ?>
102
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
103
+ <span class="price-incl-tax">
104
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
105
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax'); ?>:</span>
106
+ <?php endif; ?>
107
+ <?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
108
+ </span>
109
+ <?php endif; ?>
110
+ <?php else: ?>
111
+ &nbsp;
112
+ <?php endif; ?>
113
+ </td>
114
+ </tr>
115
+ <?php endforeach; ?>
116
+
117
+ <?php if ($_showlastRow): ?>
118
+ <tr class="border">
119
+ <td>
120
+ <?php if($_options = $this->getItemOptions()): ?>
121
+ <dl class="item-options">
122
+ <?php foreach ($_options as $_option) : ?>
123
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
124
+ <?php if (!$this->getPrintStatus()): ?>
125
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option['value']) ?>
126
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
127
+ <?php echo $_formatedOptionValue['value'] ?>
128
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
129
+ <div class="truncated_full_value">
130
+ <dl class="item-options">
131
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
132
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
133
+ </dl>
134
+ </div>
135
+ <?php endif; ?>
136
+ </dd>
137
+ <?php else: ?>
138
+ <dd><?php echo $this->htmlEscape($_option['value']) ?></dd>
139
+ <?php endif; ?>
140
+ <?php endforeach; ?>
141
+ </dl>
142
+ <?php endif; ?>
143
+ <?php echo $_item->getDescription() ?>
144
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
145
+ <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>
146
+ <?php endif; ?>
147
+ </td>
148
+ <td>&nbsp;</td>
149
+ <td>&nbsp;</td>
150
+ <td>&nbsp;</td>
151
+ <td>&nbsp;</td>
152
+ </tr>
153
+ <?php endif; ?>
app/design/frontend/default/blank/template/bundle/sales/order/items/renderer.phtml ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
22
+ * @package Mage_Bundle
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 $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><h4 class="product-name"><?php echo $this->htmlEscape($_item->getName()) ?></h4></td>
59
+ <?php else: ?>
60
+ <td><div class="option-value"><?php echo $this->getValueHtml($_item)?></div></td>
61
+ <?php endif; ?>
62
+ <td><?php echo Mage::helper('core/string')->splitInjection($_item->getSku()) ?></td>
63
+ <td class="a-right">
64
+ <?php if (!$_item->getParentItem()): ?>
65
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
66
+ <span class="price-excl-tax">
67
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
68
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax'); ?>:</span>
69
+ <?php endif; ?>
70
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()) ?>
71
+ </span>
72
+ <?php endif; ?>
73
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
74
+ <span class="price-incl-tax">
75
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
76
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax'); ?>:</span>
77
+ <?php endif; ?>
78
+ <?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getPriceInclTax($this->getItem())); ?>
79
+ </span>
80
+ <?php endif; ?>
81
+ <?php else: ?>
82
+ &nbsp;
83
+ <?php endif; ?>
84
+ </td>
85
+ <td class="a-right">
86
+ <?php if (($_item->getParentItem() && $this->isChildCalculated()) ||
87
+ (!$_item->getParentItem() && !$this->isChildCalculated())): ?>
88
+ <span class="nobr">
89
+ <?php if ($_item->getQtyOrdered() > 0): ?>
90
+ <?php echo Mage::helper('sales')->__('Ordered'); ?>: <strong><?php echo $_item->getQtyOrdered()*1 ?></strong><br />
91
+ <?php endif; ?>
92
+ <?php if ($_item->getQtyShipped() > 0 && !$this->isShipmentSeparately()): ?>
93
+ <?php echo Mage::helper('sales')->__('Shipped'); ?>: <strong><?php echo $_item->getQtyShipped()*1 ?></strong><br />
94
+ <?php endif; ?>
95
+ <?php if ($_item->getQtyCanceled() > 0): ?>
96
+ <?php echo Mage::helper('sales')->__('Canceled'); ?>: <strong><?php echo $_item->getQtyCanceled()*1 ?></strong><br />
97
+ <?php endif; ?>
98
+ <?php if ($_item->getQtyRefunded() > 0): ?>
99
+ <?php echo Mage::helper('sales')->__('Refunded'); ?>: <strong><?php echo $_item->getQtyRefunded()*1 ?></strong>
100
+ <?php endif; ?>
101
+ </span>
102
+ <?php elseif ($_item->getQtyShipped() > 0 && $_item->getParentItem() && $this->isShipmentSeparately()): ?>
103
+ <span class="nobr"><?php echo Mage::helper('sales')->__('Shipped'); ?>: <strong><?php echo $_item->getQtyShipped()*1 ?></strong></span>
104
+ <?php else: ?>
105
+ &nbsp;
106
+ <?php endif; ?>
107
+ </td>
108
+ <td class="a-right">
109
+ <?php if (!$_item->getParentItem()): ?>
110
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
111
+ <span class="price-excl-tax">
112
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
113
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax'); ?>:</span>
114
+ <?php endif; ?>
115
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()) ?>
116
+ </span>
117
+ <?php endif; ?>
118
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
119
+ <span class="price-incl-tax">
120
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
121
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax'); ?>:</span>
122
+ <?php endif; ?>
123
+ <?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getSubtotalInclTax($this->getItem())); ?>
124
+ </span>
125
+ <?php endif; ?>
126
+ <?php else: ?>
127
+ &nbsp;
128
+ <?php endif; ?>
129
+ </td>
130
+ <!--
131
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
132
+ <th class="a-right"><?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()) ?></th>
133
+ <?php endif; ?>
134
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
135
+ <th class="a-right"><?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getSubtotalInclTax($this->getItem())); ?></th>
136
+ <?php endif; ?>
137
+ -->
138
+ </tr>
139
+ <?php endforeach; ?>
140
+
141
+ <?php if ($_showlastRow): ?>
142
+ <tr class="border">
143
+ <td>
144
+ <?php if($_options = $this->getItemOptions()): ?>
145
+ <dl class="item-options">
146
+ <?php foreach ($_options as $_option) : ?>
147
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
148
+ <?php if (!$this->getPrintStatus()): ?>
149
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option['value']) ?>
150
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
151
+ <?php echo $_formatedOptionValue['value'] ?>
152
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
153
+ <div class="truncated_full_value">
154
+ <dl class="item-options">
155
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
156
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
157
+ </dl>
158
+ </div>
159
+ <?php endif; ?>
160
+ </dd>
161
+ <?php else: ?>
162
+ <dd><?php echo $this->htmlEscape($_option['value']) ?></dd>
163
+ <?php endif; ?>
164
+ <?php endforeach; ?>
165
+ </dl>
166
+ <?php endif; ?>
167
+ <?php echo $_item->getDescription() ?>
168
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $parentItem) && $parentItem->getGiftMessageId()): ?>
169
+ <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>
170
+ <?php endif; ?>
171
+ </td>
172
+ <td>&nbsp;</td>
173
+ <td>&nbsp;</td>
174
+ <td>&nbsp;</td>
175
+ <td>&nbsp;</td>
176
+ </tr>
177
+ <?php endif; ?>
app/design/frontend/default/blank/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_blank
22
+ * @package Mage_Bundle
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 $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 $_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['value']) ?>
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($_option['value']) ?></dd>
99
+ <?php endif; ?>
100
+ <?php endforeach; ?>
101
+ </dl>
102
+ <?php endif; ?>
103
+ <?php echo $_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/blank/template/callouts/left_col.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <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() ?>">
31
+ <?php elseif($this->getLinkUrl()): ?>
32
+ <a href="<?php echo $this->getUrl($this->getLinkUrl()) ?>">
33
+ <?php endif; ?>
34
+ <img src="<?php echo $this->getSkinUrl($this->getImgSrc()) ?>" width="195" alt="<?php echo $this->__($this->getImgAlt()) ?>" title="<?php echo $this->__($this->getImgAlt()) ?>" />
35
+ <?php if ($this->getLinkUrl()): ?>
36
+ </a>
37
+ <?php endif ?>
38
+ </div>
39
+ </div>
app/design/frontend/default/blank/template/callouts/right_col.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_blank
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
+ <div class="block block-banner">
28
+ <div class="block-content">
29
+ <img src="<?php echo $this->getSkinUrl('images/media/col_right_callout.jpg') ?>" width="195" alt="<?php echo __('Keep your eyes open for our special Back to School items and save A LOT!') ?>" title="<?php echo __('Keep your eyes open for our special Back to School items and save A LOT!') ?>" />
30
+ </div>
31
+ </div>
app/design/frontend/default/blank/template/catalog/category/page.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->getTitle() ?></h2>
29
+ </div>
30
+ <div>
31
+ <?php echo $this->getContent() ?>
32
+ </div>
app/design/frontend/default/blank/template/catalog/category/view.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_blank
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
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 = '<img src="'.$_imgUrl.'" alt="'.$this->htmlEscape($_category->getName()).'" title="'.$this->htmlEscape($_category->getName()).'" class="category-image" />';
40
+ $_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, 'image');
41
+ }
42
+ ?>
43
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
44
+ <?php if($this->isContentMode()): ?>
45
+ <div class="category-title">
46
+ <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?>
47
+ <a href="<?php echo $this->getRssLink() ?>" class="link-rss"><?php echo $this->__('Subscribe to RSS Feed') ?></a>
48
+ <?php endif; ?>
49
+ <h2><?php echo $_helper->categoryAttribute($_category, $this->htmlEscape($this->getCurrentCategory()->getName()), 'name') ?></h2>
50
+ </div>
51
+ <?php if($_imgUrl): ?>
52
+ <?php echo $_imgHtml ?>
53
+ <?php endif; ?>
54
+ <?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
55
+ <p class="category-description"><?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?></p>
56
+ <?php endif; ?>
57
+ <?php echo $this->getCmsBlockHtml() ?>
58
+ <?php elseif($this->isMixedMode()): ?>
59
+ <div class="category-title">
60
+ <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?>
61
+ <a href="<?php echo $this->getRssLink() ?>" class="link-rss"><?php echo $this->__('Subscribe to RSS Feed') ?></a>
62
+ <?php endif; ?>
63
+ <h2><?php echo $_helper->categoryAttribute($_category, $this->htmlEscape($this->getCurrentCategory()->getName()), 'name') ?></h2>
64
+ </div>
65
+ <?php if($_imgUrl): ?>
66
+ <?php echo $_imgHtml ?>
67
+ <?php endif; ?>
68
+ <?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
69
+ <p class="category-description"><?php echo $_helper->categoryAttribute($_category, $_description, 'description'); ?></p>
70
+ <?php endif; ?>
71
+ <?php /*
72
+ <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?>
73
+ <a href="<?php echo $this->getRssLink() ?>" class="link-rss"><?php echo $this->__('Subscribe to RSS Feed') ?></a>
74
+ <?php endif; ?>
75
+ */ ?>
76
+ <?php echo $this->getCmsBlockHtml() ?>
77
+ <?php echo $this->getProductListHtml() ?>
78
+
79
+ <?php else: ?>
80
+ <div class="category-title">
81
+ <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?>
82
+ <a href="<?php echo $this->getRssLink() ?>" class="link-rss"><?php echo $this->__('Subscribe to RSS Feed') ?></a>
83
+ <?php endif; ?>
84
+ <h2><?php echo $_helper->categoryAttribute($_category, $this->htmlEscape($this->getCurrentCategory()->getName()), 'name') ?></h2>
85
+ </div>
86
+ <?php if($_imgUrl): ?>
87
+ <?php echo $_imgUrl ?>
88
+ <?php endif; ?>
89
+ <?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
90
+ <p class="category-description"><?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?></p>
91
+ <?php endif; ?>
92
+ <?php echo $this->getProductListHtml() ?>
93
+ <?php endif; ?>
app/design/frontend/default/blank/template/catalog/layer/filter.phtml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
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
+ <a href="<?php echo $_item->getUrl() ?>"><?php echo $_item->getLabel() ?></a>
39
+ (<?php echo $_item->getCount() ?>)
40
+ </li>
41
+ <?php endforeach ?>
42
+ </ol>
app/design/frontend/default/blank/template/catalog/layer/state.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_blank
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
28
+ /**
29
+ * Category layered navigation state
30
+ *
31
+ * @see Mage_Catalog_Block_Layer_State
32
+ */
33
+ ?>
34
+ <?php $_filters = $this->getActiveFilters() ?>
35
+ <?php if(!empty($_filters)): ?>
36
+ <h3><?php echo $this->__('Currently Shopping by') ?></h3>
37
+ <ol class="currently">
38
+ <?php foreach ($_filters as $_filter): ?>
39
+ <li>
40
+ <a href="<?php echo $_filter->getRemoveUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/list_remove_btn.gif') ?>" alt="<?php echo $this->__('Remove This Item') ?>" title="<?php echo $this->__('Remove This Item') ?>" class="v-middle" /></a>
41
+ <span class="label"><?php echo $this->__($_filter->getName()) ?>:</span> <?php echo $_filter->getLabel() ?>
42
+ </li>
43
+ <?php endforeach; ?>
44
+ </ol>
45
+ <div class="actions"><a href="<?php echo $this->getClearUrl() ?>"><?php echo $this->__('Clear All') ?></a></div>
46
+ <?php endif; ?>
app/design/frontend/default/blank/template/catalog/layer/view.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_blank
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
28
+ /**
29
+ * Category layered navigation
30
+ *
31
+ * @see Mage_Catalog_Block_Layer_View
32
+ */
33
+ ?>
34
+ <?php if($this->canShowBlock()): ?>
35
+ <div class="block block-layered-nav">
36
+ <div class="block-title">
37
+ <h2><?php echo $this->__('Shop by') ?></h2>
38
+ </div>
39
+ <div class="block-content">
40
+ <?php echo $this->getStateHtml() ?>
41
+ <?php if($this->canShowOptions()): ?>
42
+ <h3><?php echo $this->__('Shopping Options') ?></h3>
43
+ <dl>
44
+ <?php $_filters = $this->getFilters() ?>
45
+ <?php foreach ($_filters as $_filter): ?>
46
+ <?php if($_filter->getItemsCount()): ?>
47
+ <dt><?php echo $this->__($_filter->getName()) ?></dt>
48
+ <dd><?php echo $_filter->getHtml() ?></dd>
49
+ <?php endif; ?>
50
+ <?php endforeach; ?>
51
+ </dl>
52
+ <?php endif; ?>
53
+ </div>
54
+ </div>
55
+ <?php endif; ?>
app/design/frontend/default/blank/template/catalog/navigation/left.phtml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if (!Mage::registry('current_category')) return ?>
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_blank
23
+ * @package Mage
24
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ ?>
28
+ <?php
29
+ /**
30
+ * Category left navigation
31
+ *
32
+ * @see Mage_Catalog_Block_Navigation
33
+ */
34
+ ?>
35
+ <?php $_categories=$this->getCurrentChildCategories() ?>
36
+ <?php if($_categories->count()): ?>
37
+ <div class="block block-layered-nav">
38
+ <div class="block-title">
39
+ <h2><?php echo $this->__('Browse By') ?></h2>
40
+ </div>
41
+ <div class="block-content">
42
+ <dl>
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
+ </div>
57
+ </div>
58
+ <?php endif; ?>
app/design/frontend/default/blank/template/catalog/navigation/top.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_blank
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
28
+ /**
29
+ * Top menu for store
30
+ *
31
+ * @see Mage_Catalog_Block_Navigation
32
+ */
33
+ ?>
34
+ <?php //if(count($this->getStoreCategories())>1): ?>
35
+ <ul id="nav">
36
+ <?php foreach ($this->getStoreCategories() as $_category): ?>
37
+ <?php echo $this->drawItem($_category) ?>
38
+ <?php endforeach ?>
39
+ </ul>
40
+ <?php //endif; ?>
app/design/frontend/default/blank/template/catalog/product/compare/list.phtml ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title title-buttons">
28
+ <h2><?php echo $this->__('Compare Products') ?></h2>
29
+ <a href="#" onclick="window.print(); return false;"><?php echo $this->__('Print This Page') ?></a>
30
+ </div>
31
+ <?php $_total=$this->getItems()->getSize() ?>
32
+ <?php if($_total): ?>
33
+ <table class="data-table" id="product_comparison">
34
+ <?php if ($_total>2): ?>
35
+ <tbody>
36
+ <tr>
37
+ <?php $_i=0 ?>
38
+ <?php foreach($this->getItems() as $_item): ?>
39
+ <?php if($_i++%10==0): ?>
40
+ <th>&nbsp;</th>
41
+ <?php endif; ?>
42
+ <td class="a-center"><a href="#" onclick="setLocation('<?php echo $this->helper('catalog/product_compare')->getRemoveUrl($_item) ?>');window.opener.location.reload();"><img src="<?php echo $this->getSkinUrl('images/list_remove_btn.gif') ?>" alt="<?php echo $this->__('Remove Product') ?>" title="<?php echo $this->__('Remove Product') ?>" /></a></td>
43
+ <?php endforeach; ?>
44
+ </tr>
45
+ </tbody>
46
+ <?php endif ?>
47
+ <tbody>
48
+ <tr>
49
+ <?php $_i=0 ?>
50
+ <?php foreach($this->getItems() as $_item): ?>
51
+ <?php if($_i++%10==0): ?>
52
+ <th class="label">&nbsp;</th>
53
+ <?php endif; ?>
54
+ <td>
55
+ <a class="product-image" href="#" onclick="setPLocation('<?php echo $_item->getProductUrl() ?>', true)" title="<?php echo $this->htmlEscape($_item->getName()) ?>"><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()) ?>" /></a>
56
+ <h3 class="product-name"><a href="#" onclick="setPLocation('<?php echo $_item->getProductUrl() ?>', true)" title="<?php echo $this->htmlEscape($_item->getName()) ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></h3>
57
+ <?php echo $this->getReviewsSummaryHtml($_item, 'short') ?>
58
+ <?php echo $this->getPriceHtml($_item, true) ?>
59
+ <?php if($_item->isSaleable()): ?>
60
+ <button class="button" onclick="setPLocation('<?php echo $this->helper('catalog/product_compare')->getAddToCartUrl($_item) ?>', true)"><span><?php echo $this->__('Add to Cart') ?></span></button>
61
+ <?php else: ?>
62
+ <p class="availability"><span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
63
+ <?php endif; ?>
64
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
65
+ <p><a href="#" onclick="setPLocation('<?php echo $this->helper('catalog/product_compare')->getAddToWishlistUrl($_item) ?>', true)"><?php echo $this->__('Add to My Wishlist') ?></a></p>
66
+ <?php endif; ?>
67
+ </td>
68
+ <?php endforeach; ?>
69
+ </tr>
70
+ </tbody>
71
+ <tbody>
72
+ <?php foreach ($this->getAttributes() as $_attribute): ?>
73
+ <tr>
74
+ <?php $_i=0 ?>
75
+ <?php foreach($this->getItems() as $_item): ?>
76
+ <?php if($_i++%10==0): ?>
77
+ <th class="label"><?php echo $this->__($_attribute->getFrontendLabel()) ?></th>
78
+ <?php endif; ?>
79
+ <td>
80
+ <?php switch ($_attribute->getAttributeCode()) {
81
+ case "price": ?>
82
+ <?php echo $this->getPriceHtml($_item, true) ?>
83
+ <?php break;
84
+ case "small_image": ?>
85
+ <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()) ?>" />
86
+ <?php break;
87
+ default: ?>
88
+ <?php echo nl2br($this->getProductAttributeValue($_item, $_attribute)) ?>
89
+ <?php break;
90
+ } ?>
91
+ </td>
92
+ <?php endforeach; ?>
93
+ </tr>
94
+ <?php endforeach; ?>
95
+ </tbody>
96
+ <tbody>
97
+ <tr>
98
+ <?php $_i=0 ?>
99
+ <?php foreach($this->getItems() as $_item): ?>
100
+ <?php if($_i++%10==0): ?>
101
+ <th class="label">&nbsp;</th>
102
+ <?php endif; ?>
103
+ <td class="data">
104
+ <?php echo $this->getPriceHtml($_item) ?>
105
+ <?php if($_item->isSaleable()): ?>
106
+ <button type="button" class="button" onclick="setPLocation('<?php echo $this->helper('catalog/product_compare')->getAddToCartUrl($_item) ?>', true)"><span><?php echo $this->__('Add to Cart') ?></span></button>
107
+ <?php else: ?>
108
+ <p class="availability"><span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
109
+ <?php endif; ?>
110
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
111
+ <p><a href="#" onclick="setPLocation('<?php echo $this->helper('catalog/product_compare')->getAddToWishlistUrl($_item) ?>', true)"><?php echo $this->__('Add to Wishlist') ?></a></p>
112
+ <?php endif; ?>
113
+ </td>
114
+ <?php endforeach; ?>
115
+ </tr>
116
+ </tbody>
117
+ </table>
118
+ <div class="buttons-set">
119
+ <button type="button" class="button" onclick="window.close();"><span><?php echo $this->__('Close Window') ?></span></button>
120
+ </div>
121
+ <script type="text/javascript">decorateTable('product_comparison');</script>
122
+ <?php else: ?>
123
+ <script type="text/javascript">window.close();</script>
124
+ <?php endif; ?>
app/design/frontend/default/blank/template/catalog/product/compare/sidebar.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_blank
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
+ <div class="block block-compare">
28
+ <div class="block-title">
29
+ <?php if($this->helper('catalog/product_compare')->getItemCount()>0): ?>
30
+ <h2><?php echo $this->__('Compare Products - %d Items', $this->helper('catalog/product_compare')->getItemCount()) ?></h2>
31
+ <?php else: ?>
32
+ <h2><?php echo $this->__('Compare Products') ?></h2>
33
+ <?php endif; ?>
34
+ </div>
35
+ <div class="block-content">
36
+ <?php if($this->helper('catalog/product_compare')->getItemCount()>0): ?>
37
+ <ol id="compare-items">
38
+ <?php foreach($this->helper('catalog/product_compare')->getItemCollection() as $_index=>$_item): ?>
39
+ <li>
40
+ <input type="hidden" class="compare-item-id" value="<?php echo $_item->getId() ?>" />
41
+ <a href="<?php echo $this->helper('catalog/product_compare')->getRemoveUrl($_item) ?>"><img src="<?php echo $this->getSkinUrl('images/list_remove_btn.gif') ?>" alt="<?php echo $this->__('Remove This Item') ?>" title="<?php echo $this->__('Remove This Item') ?>" class="v-middle" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the compare products?') ?>');" /></a>
42
+ <a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a>
43
+ </li>
44
+ <?php endforeach; ?>
45
+ </ol>
46
+ <script type="text/javascript">decorateList('compare-items')</script>
47
+ <div class="actions">
48
+ <a href="<?php echo $this->helper('catalog/product_compare')->getClearListUrl() ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove all item from compare products?') ?>');"><?php echo $this->__('Clear All') ?></a>
49
+ <button class="button" onclick="popWin('<?php echo $this->helper('catalog/product_compare')->getListUrl() ?>','compare','top:50,left:50,width=800,height=600,resizable=yes,scrollbars=yes')"><span><?php echo $this->__('Compare Items') ?></span></button>
50
+ </div>
51
+ <?php else: ?>
52
+ <p><?php echo $this->__('You have no items to compare.') ?></p>
53
+ <?php endif; ?>
54
+ </div>
55
+ </div>
app/design/frontend/default/blank/template/catalog/product/gallery.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_blank
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 $_width=$this->getImageWidth() ?>
28
+ <div class="product-image-popup" style="width:<?php echo $_width; ?>px;">
29
+ <p class="a-right"><a href="#" onclick="window.close(); return false;"><?php echo $this->__('Close Window') ?></a></p>
30
+ <?php if($this->getPreviusImageUrl() || $this->getNextImageUrl()): ?>
31
+ <div class="nav">
32
+ <?php if($_prevUrl = $this->getPreviusImageUrl()): ?>
33
+ <a href="<?php echo $_prevUrl ?>">&laquo; <?php echo $this->__('Prev') ?></a>
34
+ <?php endif; ?>
35
+ <?php if($_nextUrl = $this->getNextImageUrl()): ?>
36
+ <a href="<?php echo $_nextUrl ?>"><?php echo $this->__('Next') ?> &raquo;</a>
37
+ <?php endif; ?>
38
+ </div>
39
+ <?php endif; ?>
40
+ <?php if($_imageTitle = $this->htmlEscape($this->getCurrentImage()->getLabel())): ?>
41
+ <h2 class="image-label"><?php echo $_imageTitle ?></h2>
42
+ <?php endif; ?>
43
+ <img<?php if($_width): ?> width="<?php echo $_width ?>"<?php endif; ?> src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $this->getImageFile()); ?>" alt="<?php echo $this->htmlEscape($this->getCurrentImage()->getLabel()) ?>" title="<?php echo $this->htmlEscape($this->getCurrentImage()->getLabel()) ?>" id="product-gallery-image" class="image" />
44
+ <?php if($this->getPreviusImageUrl() || $this->getNextImageUrl()): ?>
45
+ <div class="nav">
46
+ <?php if($_prevUrl = $this->getPreviusImageUrl()): ?>
47
+ <a href="<?php echo $_prevUrl ?>">&laquo; <?php echo $this->__('Prev') ?></a>
48
+ <?php endif; ?>
49
+ <?php if($_nextUrl = $this->getNextImageUrl()): ?>
50
+ <a href="<?php echo $_nextUrl ?>"><?php echo $this->__('Next') ?> &raquo;</a>
51
+ <?php endif; ?>
52
+ </div>
53
+ <?php endif; ?>
54
+ <p class="a-right"><a href="#" onclick="window.close(); return false;"><?php echo $this->__('Close Window') ?></a></p>
55
+ </div>
56
+ <script type="text/javascript">
57
+ //<![CDATA[
58
+ Event.observe(window, 'load', function(){
59
+ var demensions = $('product-gallery-image').getDimensions();
60
+ window.resizeTo(demensions.width+90, demensions.height+210);
61
+ });
62
+ //]]>
63
+ </script>
app/design/frontend/default/blank/template/catalog/product/list.phtml ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
28
+ /**
29
+ * Product list template
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List
32
+ */
33
+ ?>
34
+ <?php $_productCollection=$this->getLoadedProductCollection() ?>
35
+ <?php if(!$_productCollection->count()): ?>
36
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
37
+ <?php else: ?>
38
+ <div class="category-products">
39
+ <?php echo $this->getToolbarHtml() ?>
40
+
41
+ <?php // List mode ?>
42
+ <?php if($this->getMode()!='grid'): ?>
43
+ <?php $_iterator = 0; ?>
44
+ <ol class="products-list" id="products-list">
45
+ <?php foreach ($_productCollection as $_product): ?>
46
+ <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
47
+ <?php // Product Image ?>
48
+ <a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>">
49
+ <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135, 135); ?>" width="135" height="135" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" /></a>
50
+
51
+ <?php // Product description ?>
52
+ <div class="product-shop">
53
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName())?></a></h3>
54
+ <?php if($_product->getRatingSummary()): ?>
55
+ <?php echo $this->getReviewsSummaryHtml($_product) ?>
56
+ <?php endif; ?>
57
+ <?php echo $this->getPriceHtml($_product, true) ?>
58
+ <?php if($_product->isSaleable()): ?>
59
+ <p><button class="button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><?php echo $this->__('Add to Cart') ?></span></button></p>
60
+ <?php else: ?>
61
+ <p class="availability"><span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
62
+ <?php endif; ?>
63
+ <div class="desc std">
64
+ <?php echo nl2br($_product->getShortDescription()) ?>
65
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->__('Learn More') ?></a>
66
+ </div>
67
+ <ul class="add-to-links">
68
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
69
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>"><?php echo $this->__('Add to Wishlist') ?></a></li>
70
+ <?php endif; ?>
71
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
72
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>"><?php echo $this->__('Add to Compare') ?></a></li>
73
+ <?php endif; ?>
74
+ </ul>
75
+ </div>
76
+ </li>
77
+ <?php endforeach; ?>
78
+ </ol>
79
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
80
+
81
+ <?php else: ?>
82
+
83
+ <?php // Grid Mode ?>
84
+
85
+ <?php $_collectionSize = $_productCollection->count() ?>
86
+ <table class="products-grid" id="products-grid-table">
87
+ <?php $i=0; foreach ($_productCollection as $_product): ?>
88
+ <?php if ($i++%3==0): ?>
89
+ <tr>
90
+ <?php endif ?>
91
+ <td>
92
+ <a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>">
93
+ <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135, 135); ?>" width="135" height="135" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" /></a>
94
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></h3>
95
+ <?php if($_product->getRatingSummary()): ?>
96
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
97
+ <?php endif; ?>
98
+ <?php echo $this->getPriceHtml($_product, true) ?>
99
+ <?php if($_product->isSaleable()): ?>
100
+ <button class="button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><?php echo $this->__('Add to Cart') ?></span></button>
101
+ <?php else: ?>
102
+ <p class="availability"><span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
103
+ <?php endif; ?>
104
+ <ul class="add-to-links">
105
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
106
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>"><?php echo $this->__('Add to Wishlist') ?></a></li>
107
+ <?php endif; ?>
108
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
109
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>"><?php echo $this->__('Add to Compare') ?></a></li>
110
+ <?php endif; ?>
111
+ </ul>
112
+ </td>
113
+ <?php if ($i%3==0 && $i!=$_collectionSize): ?>
114
+ </tr>
115
+ <?php endif ?>
116
+ <?php endforeach ?>
117
+ <?php for($i;$i%3!=0;$i++): ?>
118
+ <td class="empty">&nbsp;</td>
119
+ <?php endfor ?>
120
+ <?php if ($i%3==0): ?>
121
+ </tr>
122
+ <?php endif ?>
123
+ </table>
124
+ <script type="text/javascript">decorateTable('products-grid-table')</script>
125
+ <?php endif; ?>
126
+ <?php echo $this->getToolbarHtml() ?>
127
+ </div>
128
+ <?php endif; ?>
app/design/frontend/default/blank/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_blank
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 if($this->getItems()->getSize()): ?>
28
+ <div class="block block-related">
29
+ <div class="block-title">
30
+ <h2><?php echo $this->__('Related Products') ?></h2>
31
+ </div>
32
+ <div class="block-content">
33
+ <p><?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 id="block-related">
35
+ <?php foreach($this->getItems() as $_item): ?>
36
+ <li<?php if($_item->isComposite() || !$_item->isSaleable()): ?> class="super-products"<?php endif; ?>>
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="item">
43
+ <a href="<?php echo $_item->getProductUrl() ?>" 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()) ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
44
+ <div class="product-details">
45
+ <h3 class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></h3>
46
+ <?php echo $this->getPriceHtml($_item, true) ?>
47
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
48
+ <p><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>"><?php echo $this->__('Add to Wishlist') ?></a></p>
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
+ </div>
58
+ <script type="text/javascript">
59
+ //<![CDATA[
60
+ $$('.related-checkbox').each(function(elem){
61
+ Event.observe(elem, 'click', addRelatedToProduct)
62
+ });
63
+
64
+ var relatedProductsCheckFlag = false;
65
+ function selectAllRelated(txt){
66
+ if (relatedProductsCheckFlag == false) {
67
+ $$('.related-checkbox').each(function(elem){
68
+ elem.checked = true;
69
+ });
70
+ relatedProductsCheckFlag = true;
71
+ txt.innerHTML="<?php echo $this->__('unselect all') ?>";
72
+ } else {
73
+ $$('.related-checkbox').each(function(elem){
74
+ elem.checked = false;
75
+ });
76
+ relatedProductsCheckFlag = false;
77
+ txt.innerHTML="<?php echo $this->__('select all') ?>";
78
+ }
79
+ addRelatedToProduct();
80
+ }
81
+
82
+ function addRelatedToProduct(){
83
+ var checkboxes = $$('.related-checkbox');
84
+ var values = [];
85
+ for(var i=0;i<checkboxes.length;i++){
86
+ if(checkboxes[i].checked) values.push(checkboxes[i].value);
87
+ }
88
+ if($('related-products-field')){
89
+ $('related-products-field').value = values.join(',');
90
+ }
91
+ }
92
+ //]]>
93
+ </script>
94
+ <?php endif ?>
app/design/frontend/default/blank/template/catalog/product/list/toolbar.phtml ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
28
+ /**
29
+ * Product list toolbar
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List_Toolbar
32
+ */
33
+ ?>
34
+ <?php if($this->getCollection()->getSize()): ?>
35
+ <div class="pager">
36
+ <p class="amount">
37
+ <?php if($this->getLastPageNum()>1): ?>
38
+ <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
39
+ <?php else: ?>
40
+ <?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?>
41
+ <?php endif; ?>
42
+ </p>
43
+
44
+ <fieldset class="limiter">
45
+ <label><?php echo $this->__('Show') ?></label>
46
+ <select onchange="setLocation(this.value)">
47
+ <?php foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
48
+ <option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
49
+ <?php echo $_limit ?>
50
+ </option>
51
+ <?php endforeach; ?>
52
+ </select> <?php echo $this->__('per page') ?>
53
+ </fieldset>
54
+
55
+ <?php if($this->getLastPageNum()>1): ?>
56
+ <div class="pages">
57
+ <strong><?php echo $this->__('Page:') ?></strong>
58
+ <ol>
59
+ <?php if (!$this->isFirstPage()): ?>
60
+ <li><a href="<?php echo $this->getPreviousPageUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo $this->__('Previous') ?>" class="v-middle" /></a></li>
61
+ <?php endif ?>
62
+ <?php foreach ($this->getPages() as $_page): ?>
63
+ <?php if ($this->isPageCurrent($_page)): ?>
64
+ <li><span class="current"><?php echo $_page ?></span></li>
65
+ <?php else: ?>
66
+ <li><a href="<?php echo $this->getPageUrl($_page) ?>"><?php echo $_page ?></a></li>
67
+ <?php endif ?>
68
+ <?php endforeach;; ?>
69
+ <?php if (!$this->isLastPage()): ?>
70
+ <li><a href="<?php echo $this->getNextPageUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_right.gif') ?>" alt="<?php echo $this->__('Next') ?>" class="v-middle" /></a></li>
71
+ <?php endif ?>
72
+ </ol>
73
+ </div>
74
+ <?php endif; ?>
75
+ </div>
76
+
77
+ <?php if( $this->isExpanded() ): ?>
78
+ <div class="sorter">
79
+ <?php if( $this->isEnabledViewSwitcher() ): ?>
80
+ <p class="view-mode">
81
+ <?php $_modes = $this->getModes(); ?>
82
+ <?php if($_modes && count($_modes)>1): ?>
83
+ <?php echo $this->__('View as') ?>:
84
+ <?php foreach ($this->getModes() as $_code=>$_label): ?>
85
+ <?php if($this->isModeActive($_code)): ?>
86
+ <strong><?php echo $_label ?></strong>&nbsp;
87
+ <?php else: ?>
88
+ <a href="<?php echo $this->getModeUrl($_code) ?>"><?php echo $_label ?></a>&nbsp;
89
+ <?php endif; ?>
90
+ <?php endforeach; ?>
91
+ <?php endif; ?>
92
+ </p>
93
+ <?php endif; ?>
94
+
95
+ <fieldset class="sort-by">
96
+ <label><?php echo $this->__('Sort by') ?></label>
97
+ <select onchange="setLocation(this.value)">
98
+ <?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
99
+ <option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>
100
+ <?php echo $_order ?>
101
+ </option>
102
+ <?php endforeach; ?>
103
+ </select>
104
+ <?php if($this->getCurrentDirection() == 'desc'): ?>
105
+ <a href="<?php echo $this->getOrderUrl(null, 'asc') ?>"><img src="<?php echo $this->getSkinUrl('images/sort_desc_arrow.gif') ?>" alt="<?php echo $this->__('Set Ascending Direction') ?>" class="v-middle" /></a>
106
+ <?php else: ?>
107
+ <a href="<?php echo $this->getOrderUrl(null, 'desc') ?>"><img src="<?php echo $this->getSkinUrl('images/sort_asc_arrow.gif') ?>" alt="<?php echo $this->__('Set Descending Direction') ?>" class="v-middle" /></a>
108
+ <?php endif; ?>
109
+ </fieldset>
110
+ </div>
111
+ <?php endif; ?>
112
+ <?php endif ?>
app/design/frontend/default/blank/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_blank
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 if(count($this->getItemCollection()->getItems())): ?>
28
+ <div class="up-sell">
29
+ <h3><?php echo $this->__('You may also be interested in the following product(s)') ?></h3>
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() ?>" 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()) ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>" /></a>
39
+ <h4 class="product-name"><a href="<?php echo $_link->getProductUrl() ?>"><?php echo $this->htmlEscape($_link->getName()) ?></a></h4>
40
+ <?php echo $this->getPriceHtml($_link, true) ?>
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/blank/template/catalog/product/new.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 default_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 if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="page-title">
29
+ <h2><?php echo $this->__('New Products') ?></h2>
30
+ </div>
31
+ <table class="products-grid" id="new-products-list-table">
32
+ <tr>
33
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
34
+ <?php if ($i>5): continue; endif; ?>
35
+ <td>
36
+ <a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><img class="product-image" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(80, 77) ?>" width="80" height="77" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" /></a>
37
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>)"><?php echo $this->htmlEscape($_product->getName()) ?></a></h3>
38
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
39
+ <?php echo $this->getPriceHtml($_product, true, '-new') ?>
40
+ <?php if($_product->isSaleable()): ?>
41
+ <button class="button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><?php echo $this->__('Add to Cart') ?></span></button>
42
+ <?php else: ?>
43
+ <p class="availability"><span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
44
+ <?php endif; ?>
45
+ <ul class="add-to-links">
46
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
47
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>"><?php echo $this->__('Add to Wishlist') ?></a></li>
48
+ <?php endif; ?>
49
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
50
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>"><?php echo $this->__('Add to Compare') ?></a></li>
51
+ <?php endif; ?>
52
+ </ul>
53
+ </td>
54
+ <?php $i++; endforeach; ?>
55
+ <?php for($i;$i%5!=0;$i++): ?>
56
+ <td class="empty">&nbsp;</td>
57
+ <?php endfor; ?>
58
+ </tr>
59
+ </table>
60
+ <?php endif; ?>
app/design/frontend/default/blank/template/catalog/product/price.phtml ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+
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
+
36
+ <?php $_product = $this->getProduct() ?>
37
+ <?php $_id = $_product->getId() ?>
38
+
39
+ <?php $simplePricesTax = ($this->helper('tax')->displayPriceIncludingTax() || $this->helper('tax')->displayBothPrices()); ?>
40
+
41
+ <?php $_minimalPriceValue = $_product->getMinimalPrice() ?>
42
+ <?php $_minimalPrice = $this->helper('tax')->getPrice($_product, $_minimalPriceValue, $simplePricesTax) ?>
43
+
44
+ <?php if (!$_product->isGrouped()): ?>
45
+
46
+ <div class="price-box">
47
+ <?php $_price = $this->helper('tax')->getPrice($_product, $_product->getPrice()) ?>
48
+ <?php $_regularPrice = $this->helper('tax')->getPrice($_product, $_product->getPrice(), $simplePricesTax) ?>
49
+ <?php $_finalPrice = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice()) ?>
50
+ <?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(), true) ?>
51
+
52
+ <?php if ($_finalPrice == $_price): ?>
53
+
54
+ <?php if ($this->helper('tax')->displayBothPrices() && $_finalPriceInclTax != $_finalPrice): ?>
55
+ <span class="price-excluding-tax">
56
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
57
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price,true,false) ?></span>
58
+ </span>
59
+ <span class="price-including-tax">
60
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
61
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax,true,false) ?></span>
62
+ </span>
63
+ <?php else: ?>
64
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_price,true,true) ?></span>
65
+ <?php endif; ?>
66
+
67
+ <?php else: /* if ($_finalPrice == $_price): */ ?>
68
+ <p class="old-price">
69
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
70
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_regularPrice,true,false) ?></span>
71
+ </p>
72
+
73
+ <?php if ($this->helper('tax')->displayBothPrices() && $_finalPriceInclTax != $_finalPrice): ?>
74
+ <p class="special-price">
75
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
76
+ <span class="price-excluding-tax">
77
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
78
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice,true,false) ?></span>
79
+ </span>
80
+ <span class="price-including-tax">
81
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
82
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPriceInclTax,true,false) ?></span>
83
+ </span>
84
+ </p>
85
+ <?php else: ?>
86
+ <p class="special-price">
87
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
88
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_finalPrice,true,false) ?></span>
89
+ </p>
90
+ <?php endif; ?>
91
+
92
+ <?php endif; /* if ($_finalPrice == $_price): */ ?>
93
+
94
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_product->getFinalPrice()): ?>
95
+ <a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
96
+ <span class="label"><?php echo $this->__('As low as:') ?></span>
97
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_minimalPrice,true,false) ?></span>
98
+ </a>
99
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
100
+ </div>
101
+
102
+ <?php else: /* if (!$_product->isGrouped()): */ ?>
103
+ <?php
104
+ $_exclTax = $this->helper('tax')->getPrice($_product, $_minimalPriceValue, $includingTax = null);
105
+ $_inclTax = $this->helper('tax')->getPrice($_product, $_minimalPriceValue, $includingTax = true);
106
+ ?>
107
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue): ?>
108
+ <div class="price-box">
109
+ <span class="label"><?php echo $this->__('Starting at:') ?></span>
110
+ <?php if ($this->helper('tax')->displayBothPrices() && ($_exclTax !== $_inclTax)): ?>
111
+ <span class="price-excluding-tax">
112
+ <span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:') ?></span>
113
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_exclTax, true, false) ?></span>
114
+ </span>
115
+ <span class="price-including-tax">
116
+ <span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:') ?></span>
117
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_inclTax, true, false) ?></span>
118
+ </span>
119
+ <?php else: ?>
120
+ <?php
121
+ $_showPrice = $_inclTax;
122
+ if (!$this->helper('tax')->displayPriceIncludingTax()) {
123
+ $_showPrice = $_exclTax;
124
+ }
125
+ ?>
126
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"><?php echo Mage::helper('core')->currency($_showPrice, true, false) ?></span>
127
+ <?php endif; ?>
128
+ </div>
129
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
130
+ <?php endif; /* if (!$_product->isGrouped()): */ ?>
app/design/frontend/default/blank/template/catalog/product/view.phtml ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ /**
28
+ * Product view template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View
31
+ * @see Mage_Review_Block_Product_View
32
+ */
33
+ ?>
34
+ <?php
35
+ $_helper = $this->helper('catalog/output');
36
+ $_product = $this->getProduct()
37
+ ?>
38
+ <script type="text/javascript">
39
+ var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
40
+ </script>
41
+ <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
42
+ <div class="product-view">
43
+ <div class="product-essential">
44
+ <form action="<?php echo $this->getAddToCartUrl($_product) ?>" method="post" id="product_addtocart_form">
45
+ <fieldset class="no-display">
46
+ <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
47
+ <input type="hidden" name="related_product" id="related-products-field" value="" />
48
+ </fieldset>
49
+
50
+ <div class="product-img-box">
51
+ <?php echo $this->getChildHtml('media') ?>
52
+ </div>
53
+
54
+ <div class="product-shop">
55
+ <div class="product-name">
56
+ <h2><?php echo $_helper->productAttribute($_product, $this->htmlEscape($_product->getName()), 'name') ?></h2>
57
+ </div>
58
+
59
+ <?php if ($this->canEmailToFriend()): ?>
60
+ <a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a>
61
+ <?php endif; ?>
62
+
63
+ <?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
64
+ <?php echo $this->getChildHtml('alert_urls') ?>
65
+ <?php echo $this->getChildHtml('product_type_data') ?>
66
+
67
+ <?php if (!$this->hasOptions()):?>
68
+ <?php echo $this->getChildHtml('tierprices') ?>
69
+ <div class="add-to-box">
70
+ <?php if($_product->isSaleable()): ?>
71
+ <?php echo $this->getChildHtml('addtocart') ?>
72
+ <?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
73
+ <span class="or"><?php echo $this->__('OR') ?></span>
74
+ <?php endif; ?>
75
+ <?php endif; ?>
76
+ <?php echo $this->getChildHtml('addto') ?>
77
+ </div>
78
+ <?php else:?>
79
+ <?php echo $this->getChildHtml('addto') ?>
80
+ <?php endif; ?>
81
+
82
+ <?php if ($_product->getShortDescription()):?>
83
+ <div class="short-description std">
84
+ <h3><?php echo $this->__('Quick Overview') ?></h3>
85
+ <?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?>
86
+ </div>
87
+ <?php endif;?>
88
+
89
+ <?php echo $this->getChildHtml('other');?>
90
+
91
+ <?php if ($_product->isSaleable() && $this->hasOptions()):?>
92
+ <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
93
+ <?php endif;?>
94
+
95
+ </div>
96
+ <div class="clearer"></div>
97
+ <?php if ($_product->isSaleable() && $this->hasOptions()):?>
98
+ <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
99
+ <?php endif;?>
100
+ </form>
101
+ <script type="text/javascript">
102
+ //<![CDATA[
103
+ var productAddToCartForm = new VarienForm('product_addtocart_form');
104
+ productAddToCartForm.submit = function(){
105
+ if (this.validator.validate()) {
106
+ this.form.submit();
107
+ }
108
+ }.bind(productAddToCartForm);
109
+ //]]>
110
+ </script>
111
+ </div>
112
+
113
+ <div class="product-collateral">
114
+ <?php if ($_description = $this->getChildHtml('description')):?>
115
+ <div class="description">
116
+ <h3><?php echo $this->__('Product Description') ?></h3>
117
+ <?php echo $_description ?>
118
+ </div>
119
+ <?php endif;?>
120
+ <?php if ($_additional = $this->getChildHtml('additional')):?>
121
+ <div class="additional">
122
+ <h3><?php echo $this->__('Additional Information') ?></h3>
123
+ <?php echo $_additional ?>
124
+ </div>
125
+ <?php endif;?>
126
+ <?php echo $this->getChildHtml('upsell_products') ?>
127
+ <?php echo $this->getChildHtml('product_additional_data') ?>
128
+ </div>
129
+ </div>
app/design/frontend/default/blank/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_blank
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 foreach ($this->getChildHtmlList() as $_html): ?>
28
+ <?php echo $_html ?>
29
+ <?php endforeach; ?>
app/design/frontend/default/blank/template/catalog/product/view/addto.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_blank
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
+
28
+ <?php $_product = $this->getProduct() ?>
29
+ <ul class="add-to-links">
30
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
31
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>"><?php echo $this->__('Add to Wishlist') ?></a></li>
32
+ <?php endif; ?>
33
+ <?php if($_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product) ): ?>
34
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>"><?php echo $this->__('Add to Compare') ?></a></li>
35
+ <?php endif; ?>
36
+ </ul>
app/design/frontend/default/blank/template/catalog/product/view/addtocart.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_blank
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
+
28
+ <?php $_product = $this->getProduct() ?>
29
+
30
+ <?php if($_product->isSaleable()): ?>
31
+ <fieldset class="add-to-cart">
32
+ <legend><?php echo $this->__('Add Items to Cart') ?></legend>
33
+ <?php if(!$_product->isGrouped()): ?>
34
+ <label for="qty"><?php echo $this->__('Qty') ?>:</label>
35
+ <input type="text" class="input-text qty" name="qty" id="qty" maxlength="12" value="<?php echo $this->getMinimalQty($_product) ?>" />
36
+ <?php endif; ?>
37
+ <button class="button" onclick="productAddToCartForm.submit()"><span><?php echo $this->__('Add to Cart') ?></span></button>
38
+ </fieldset>
39
+ <?php endif; ?>
app/design/frontend/default/blank/template/catalog/product/view/attributes.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_blank
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
+ /**
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
+ <table class="data-table" id="product-attribute-specs-table">
39
+ <col width="30%" />
40
+ <col width="70%" />
41
+ <?php foreach ($_additional as $_data): ?>
42
+ <tr>
43
+ <th class="label"><?php echo $this->__($_data['label']) ?></th>
44
+ <td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
45
+ </tr>
46
+ <?php endforeach; ?>
47
+ </table>
48
+ <script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
49
+ <?php endif;?>
app/design/frontend/default/blank/template/catalog/product/view/description.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_blank
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
+ /**
28
+ * Product description template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View_Description
31
+ */
32
+ ?>
33
+ <div class="std">
34
+ <?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), nl2br($this->getProduct()->getDescription()), 'description') ?>
35
+ </div>
app/design/frontend/default/blank/template/catalog/product/view/media.phtml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ /**
28
+ * Product media data template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View_Media
31
+ */
32
+ ?>
33
+ <?php
34
+ $_product = $this->getProduct();
35
+ $_helper = $this->helper('catalog/output');
36
+ ?>
37
+ <?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
38
+ <p class="product-image product-image-zoom">
39
+ <?php
40
+ $_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($_product->getName()).'" title="'.$this->htmlEscape($_product->getName()).'" />';
41
+ echo $_helper->productAttribute($_product, $_img, 'image');
42
+ ?>
43
+ </p>
44
+ <p class="zoom-notice" id="track_hint"><?php echo $this->__('Double click on above image to view full picture') ?></p>
45
+ <div class="zoom">
46
+ <img id="zoom_out" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_out.gif') ?>" alt="<?php echo $this->__('Zoom Out') ?>" title="<?php echo $this->__('Zoom Out') ?>" class="btn-zoom-out" />
47
+ <div id="track">
48
+ <div id="handle"></div>
49
+ </div>
50
+ <img id="zoom_in" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="<?php echo $this->__('Zoom In') ?>" title="<?php echo $this->__('Zoom In') ?>" class="btn-zoom-in" />
51
+ </div>
52
+ <script type="text/javascript">
53
+ //<![CDATA[
54
+ Event.observe(window, 'load', function() {
55
+ product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');
56
+ });
57
+ //]]>
58
+ </script>
59
+ <?php else: ?>
60
+ <p class="product-image">
61
+ <?php
62
+ $_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($_product->getName()).'" title="'.$this->htmlEscape($_product->getName()).'" />';
63
+ echo $_helper->productAttribute($_product, $_img, 'image');
64
+ ?>
65
+ </p>
66
+ <?php endif; ?>
67
+ <?php if (count($this->getGalleryImages()) > 0): ?>
68
+ <div class="more-views">
69
+ <h3><?php echo $this->__('More Views') ?></h3>
70
+ <ul>
71
+ <?php foreach ($this->getGalleryImages() as $_image): ?>
72
+ <li>
73
+ <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=50,top=50,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(48, 48); ?>" width="48" height="48" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
74
+ </li>
75
+ <?php endforeach; ?>
76
+ </ul>
77
+ </div>
78
+ <?php endif; ?>
app/design/frontend/default/blank/template/catalog/product/view/options.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_blank
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
+
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.getElementsBySelector('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
+ this.productForm.action = '<?php echo $this->getUrl('*/product/upload') ?>option_id/'+element.readAttribute('id').sub('option_', '');
46
+ this.productForm.target = 'upload_target';
47
+ this.productForm.submit();
48
+ this.productForm.target = '';
49
+ this.productForm.action = this.formAction;
50
+ },
51
+ removeRequire : function(skipElementId){
52
+ for(var i=0; i<this.formElements.length; i++){
53
+ if (this.formElements[i].readAttribute('id') != 'option_'+skipElementId+'_file' && this.formElements[i].type != 'button') {
54
+ this.formElements[i].disabled='disabled';
55
+ }
56
+ }
57
+ },
58
+ addRequire : function(skipElementId){
59
+ for(var i=0; i<this.formElements.length; i++){
60
+ if (this.formElements[i].readAttribute('name') != 'options_'+skipElementId+'_file' && this.formElements[i].type != 'button') {
61
+ this.formElements[i].disabled='';
62
+ }
63
+ }
64
+ },
65
+ uploadCallback : function(data){
66
+ this.addRequire(data.optionId);
67
+ $('upload_target').remove();
68
+
69
+ if (data.error) {
70
+
71
+ } else {
72
+ $('option_'+data.optionId+'_uploaded_file').value = data.fileName;
73
+ $('option_'+data.optionId+'_file').value = '';
74
+ $('option_'+data.optionId+'_file').hide();
75
+ $('option_'+data.optionId+'').hide();
76
+ template = '<div id="option_'+data.optionId+'_file_box"><a href="#"><img src="var/options/'+data.fileName+'"><\/a><a href="#" onclick="optionFileUpload.removeFile('+data.optionId+')">Remove file<\/a>';
77
+
78
+ Element.insert($('option_'+data.optionId+'_uploaded_file'), {after: template});
79
+ }
80
+ },
81
+ removeFile : function(optionId)
82
+ {
83
+ $('option_'+optionId+'_uploaded_file').value= '';
84
+ $('option_'+optionId+'_file').show();
85
+ $('option_'+optionId+'').show();
86
+
87
+ $('option_'+optionId+'_file_box').remove();
88
+ }
89
+ }
90
+ var optionTextCounter = {
91
+ count : function(field,cntfield,maxlimit){
92
+ if (field.value.length > maxlimit){
93
+ field.value = field.value.substring(0, maxlimit);
94
+ } else {
95
+ cntfield.innerHTML = maxlimit - field.value.length;
96
+ }
97
+ }
98
+ }
99
+
100
+ Product.Options = Class.create();
101
+ Product.Options.prototype = {
102
+ initialize : function(config){
103
+ this.config = config;
104
+ this.reloadPrice();
105
+ },
106
+ reloadPrice : function(){
107
+ price = new Number();
108
+ config = this.config;
109
+ $$('.product-custom-option').each(function(element){
110
+ var optionId = 0;
111
+ element.name.sub(/[0-9]+/, function(match){
112
+ optionId = match[0];
113
+ });
114
+ if (this.config[optionId]) {
115
+ if (element.type == 'checkbox' || element.type == 'radio') {
116
+ if (element.checked) {
117
+ if (config[optionId][element.getValue()]) {
118
+ price += parseFloat(config[optionId][element.getValue()]);
119
+ }
120
+ }
121
+ } else if(element.type == 'select-one' || element.type == 'select-multiple') {
122
+ if (element.options) {
123
+ $A(element.options).each(function(selectOption){
124
+ if (selectOption.selected) {
125
+ if (this.config[optionId][selectOption.value]) {
126
+ price += parseFloat(this.config[optionId][selectOption.value]);
127
+ }
128
+ }
129
+ });
130
+ }
131
+ } else {
132
+ if (element.getValue().strip() != '') {
133
+ price += parseFloat(this.config[optionId]);
134
+ }
135
+ }
136
+ }
137
+ });
138
+ try {
139
+ optionsPrice.changePrice('options', price);
140
+ optionsPrice.reload();
141
+ } catch (e) {
142
+
143
+ }
144
+ }
145
+ }
146
+ function validateOptionsCallback(elmId, result){
147
+ var container = $(elmId).up('ul.options-list');
148
+ if (result == 'failed') {
149
+ container.removeClassName('validation-passed');
150
+ container.addClassName('validation-failed');
151
+ } else {
152
+ container.removeClassName('validation-failed');
153
+ container.addClassName('validation-passed');
154
+ }
155
+ }
156
+ var opConfig = new Product.Options(<?php echo $this->getJsonConfig() ?>);
157
+ //]]>
158
+ </script>
159
+ <dl>
160
+ <?php foreach($_options as $_option): ?>
161
+ <?php echo $this->getOptionHtml($_option) ?>
162
+ <?php endforeach; ?>
163
+ </dl>
164
+ <?php endif; ?>
app/design/frontend/default/blank/template/catalog/product/view/options/type/date.phtml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_option = $this->getOption() ?>
28
+ <dt><label><?php echo $this->htmlEscape($_option->getTitle()) ?><?php if ($_option->getIsRequire()): ?><span class="required">&nbsp;*</span><?php endif; ?></label></dt>
29
+ <?php if ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_DATE_TIME
30
+ || $_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_DATE): ?>
31
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>><?php echo $this->__('Date') ?>&nbsp;<?php echo $this->getCalendarHtml() ?></dd>
32
+ <?php endif; ?>
33
+ <?php if ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_DATE_TIME
34
+ || $_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_TIME): ?>
35
+ <dd <?php if ($_option->decoratedIsLast){?> class="last"<?php }?>><?php echo $this->__('Time') ?> <?php echo $this->getTimeHtml() ?>
36
+ <?php //echo $this->__('Time') ?> <!--<input type="text" class="input-text<?php echo $_option->getIsRequire() ? ' required-entry' : '' ?>" name="options[<?php echo $_option->getId() ?>]" value="" />--></dd>
37
+ <?php endif; ?>
app/design/frontend/default/blank/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_blank
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 $_option = $this->getOption() ?>
28
+ <dt>
29
+ <label><?php echo $this->htmlEscape($_option->getTitle()) ?></label>
30
+ </dt>
app/design/frontend/default/blank/template/catalog/product/view/options/type/file.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_blank
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 $_option = $this->getOption() ?>
28
+ <dt><label><?php echo $this->htmlEscape($_option->getTitle()) ?><?php if ($_option->getIsRequire()): ?><span class="required">&nbsp;*</span><?php endif; ?></label>
29
+ (
30
+ <?php if ($_option->getPriceType() == 'fixed'): ?>
31
+ <?php echo $this->helper('core')->currency($_option->getPrice()) ?>
32
+ <?php else: ?>
33
+ <?php echo '%' . number_format($_option->getPrice(), 0, null, '') ?>
34
+ <?php endif; ?>
35
+ )</dt>
36
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>><input type="file" id="option_<?php echo $_option->getId() ?>_file" name="option_file" />
37
+ <input type="button" id="option_<?php echo $_option->getId() ?>" name="upload" value="Upload" onclick="optionFileUpload.upload(this)" />
38
+ <input type="hidden" id="option_<?php echo $_option->getId() ?>_uploaded_file" name="options[<?php echo $_option->getId() ?>][file]" value="" />
39
+ </dd>
app/design/frontend/default/blank/template/catalog/product/view/options/type/select.phtml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 /* @var $this Mage_Catalog_Block_Product_View_Options_Type_Select */ ?>
28
+ <?php $_option = $this->getOption() ?>
29
+ <dt><label><?php echo $this->htmlEscape($_option->getTitle()) ?><?php if ($_option->getIsRequire()): ?><span class="required">&nbsp;*</span><?php endif; ?></label></dt>
30
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
31
+ <?php echo $this->getValuesHtml() ?>
32
+ <?php if ($_option->getIsRequire()): ?>
33
+ <?php if ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_RADIO || $_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_CHECKBOX): ?>
34
+ <span id="options-<?php echo $_option->getId() ?>-container"></span>
35
+ <?php endif; ?>
36
+ <?php endif;?>
37
+ </dd>
app/design/frontend/default/blank/template/catalog/product/view/options/type/text.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_blank
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 $_option = $this->getOption() ?>
28
+ <dt><label><?php echo $this->htmlEscape($_option->getTitle()) ?><?php if ($_option->getIsRequire()): ?><span class="required">&nbsp;*</span><?php endif; ?></label>
29
+ <?php echo $this->getFormatedPrice() ?></dt>
30
+ <dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
31
+ <?php if ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_FIELD): ?>
32
+ <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="" />
33
+ <?php elseif ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_AREA): ?>
34
+ <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"></textarea>
35
+ <?php endif; ?>
36
+ <?php if ($_option->getMaxCharacters()): ?>
37
+ <p><?php echo Mage::helper('catalog')->__('Maximum number of characters')?>: <strong><?php echo $_option->getMaxCharacters() ?></strong></p>
38
+ <?php endif; ?>
39
+ </dd>
app/design/frontend/default/blank/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_blank
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
+ <fieldset 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
+ </fieldset>
33
+ <script type="text/javascript">decorateGeneric($$('#product-options-wrapper dl'), ['last']);</script>
app/design/frontend/default/blank/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_blank
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
+ <div class="product-options-bottom">
28
+ <?php echo $this->getChildHtml('', true, true);?>
29
+ </div>
app/design/frontend/default/blank/template/catalog/product/view/price.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_blank
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
+ <div class="price-box" id="product_price">
28
+ <p class="old-price"><?php echo $this->__('Old Price:') ?> <?php echo $this->getPrice() ?></p>
29
+ <p class="special-price"><?php echo $this->getPrice() ?></p>
30
+ </div>
app/design/frontend/default/blank/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_blank
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 $_product = $this->getProduct() ?>
28
+ <?php echo $this->getPriceHtml($_product, false, '_clone') ?>
app/design/frontend/default/blank/template/catalog/product/view/tierprices.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_blank
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
+
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">
37
+ <?php foreach ($_tierPrices as $_price): ?>
38
+ <?php if ($this->helper('tax')->displayBothPrices() && $_price['formated_price'] != $_price['formated_price_incl_tax']): ?>
39
+ <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']) ?>
40
+ <?php else: ?>
41
+ <li><?php echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price']) ?>
42
+ <?php endif; ?>
43
+ <?php if(($_product->getPrice() == $_product->getFinalPrice() && $_product->getPrice() > $_price['price'])
44
+ || ($_product->getPrice() != $_product->getFinalPrice() && $_product->getFinalPrice() > $_price['price'])): ?>
45
+ <?php echo $this->__('and') ?> <strong class="benefit"><?php echo $this->__('save')?> <?php echo $_price['savePercent']?>%
46
+ <?php endif ?></strong>
47
+ </li>
48
+ <?php endforeach ?>
49
+ </ul>
50
+ <?php endif;?>
app/design/frontend/default/blank/template/catalog/product/view/type/configurable.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_blank
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
+ /**
28
+ * Super product options
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View_Super_Config
31
+ */
32
+ ?>
33
+ <?php $_product = $this->getProduct() ?>
34
+ <?php if($_product->isSaleable()): ?>
35
+ <p class="availability"><?php echo $this->__('Availability') ?>: <span class="in-stock"><?php echo $this->__('In stock') ?></span></p>
36
+ <?php else: ?>
37
+ <p class="availability"><?php echo $this->__('Availability') ?>: <span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
38
+ <?php endif; ?>
39
+ <?php echo $this->getPriceHtml($_product) ?>
app/design/frontend/default/blank/template/catalog/product/view/type/grouped.phtml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ /**
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 $_product = $this->getProduct() ?>
35
+ <?php $_associatedProducts = $this->getAssociatedProducts() ?>
36
+ <?php if($_product->isSaleable() && count($_associatedProducts)): ?>
37
+ <p class="availability"><?php echo $this->__('Availability') ?>: <span class="in-stock"><?php echo $this->__('In stock') ?></span></p>
38
+ <?php else: ?>
39
+ <p class="availability"><?php echo $this->__('Availability') ?>: <span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
40
+ <?php endif; ?>
41
+ <table class="data-table grouped-items" id="super-product-table">
42
+ <col />
43
+ <col />
44
+ <col width="1" />
45
+ <thead>
46
+ <tr>
47
+ <th><?php echo $this->__('Product Name') ?></th>
48
+ <th class="a-right"><?php echo $this->__('Price') ?></th>
49
+ <?php if ($_product->isSaleable()): ?>
50
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
51
+ <?php endif; ?>
52
+ </tr>
53
+ </thead>
54
+ <tbody>
55
+ <?php if (count($_associatedProducts)): ?>
56
+ <?php foreach ($_associatedProducts as $_item): ?>
57
+ <tr>
58
+ <td><?php echo $this->htmlEscape($_item->getName()) ?></td>
59
+ <td class="a-right">
60
+ <?php echo $this->getPriceHtml($_item, true) ?>
61
+ </td>
62
+ <?php if ($_product->isSaleable()): ?>
63
+ <td class="a-center">
64
+ <?php if ($_item->isSaleable()) : ?>
65
+ <input name="super_group[<?php echo $_item->getId() ?>]" value="<?php echo $_item->getQty()*1 ?>" type="text" class="input-text qty" />
66
+ <?php else: ?>
67
+ <p class="availability"><span class="out-of-stock"><?php echo $this->__('Out of stock.') ?></span></p>
68
+ <?php endif; ?>
69
+ </td>
70
+ <?php endif; ?>
71
+ </tr>
72
+ <?php endforeach; ?>
73
+ <?php else: ?>
74
+ <tr>
75
+ <td colspan="<?php if ($_product->isSaleable()): ?>4<?php else : ?>3<?php endif; ?>"><?php echo $this->__('No options of this product are available.') ?></td>
76
+ </tr>
77
+ <?php endif; ?>
78
+ </tbody>
79
+ </table>
80
+ <script type="text/javascript">decorateTable('super-product-table')</script>
app/design/frontend/default/blank/template/catalog/product/view/type/options/configurable.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_blank
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
+
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><?php echo $_attribute->getLabel() ?><span class="required">&nbsp;*</span></label></dt>
36
+ <dd<?php if ($_attribute->decoratedIsLast){?> class="last"<?php }?>>
37
+ <select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?>" class="required-entry super-attribute-select">
38
+ <option><?php echo $this->__('Choose an Option...') ?></option>
39
+ </select>
40
+ </dd>
41
+ <?php endforeach; ?>
42
+ </dl>
43
+ <script type="text/javascript">
44
+ var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);
45
+ </script>
46
+ <?php endif;?>
app/design/frontend/default/blank/template/catalog/product/view/type/simple.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_blank
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
+ /**
28
+ * Simple product deatle template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View_Type_Simple
31
+ */
32
+ ?>
33
+ <?php $_product = $this->getProduct() ?>
34
+
35
+ <?php if($_product->isSaleable()): ?>
36
+ <p class="availability"><?php echo $this->__('Availability') ?>: <span class="in-stock"><?php echo $this->__('In stock') ?></span></p>
37
+ <?php else: ?>
38
+ <p class="availability"><?php echo $this->__('Availability') ?>: <span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
39
+ <?php endif; ?>
40
+ <?php echo $this->getPriceHtml($_product) ?>
app/design/frontend/default/blank/template/catalog/product/view/type/virtual.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_blank
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
+ /**
28
+ * Simple product deatle template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View_Type_Simple
31
+ */
32
+ ?>
33
+ <?php $_product = $this->getProduct() ?>
34
+
35
+ <?php if($_product->isSaleable()): ?>
36
+ <p class="availability"><?php echo $this->__('Availability') ?>: <span class="in-stock"><?php echo $this->__('In stock') ?></span></p>
37
+ <?php else: ?>
38
+ <p class="availability"><?php echo $this->__('Availability') ?>: <span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
39
+ <?php endif; ?>
40
+ <?php echo $this->getPriceHtml($_product) ?>
app/design/frontend/default/blank/template/catalog/seo/sitemap.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_blank
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
28
+ /**
29
+ * @see Mage_Catalog_Block_Seo_Sitemap_
30
+ */
31
+ ?>
32
+ <?php $_items = $this->getCollection(); ?>
33
+ <?php if($_items->getSize()): ?>
34
+ <ul>
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
+ <?php endif ?>
app/design/frontend/default/blank/template/catalog/seo/sitemap/container.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->getTitle() ?></h2>
29
+ </div>
30
+ <?php echo $this->getChildHtml('links') ?>
31
+ <?php echo $this->getChildHtml('pager_top') ?>
32
+ <?php echo $this->getChildHtml('sitemap') ?>
33
+ <?php echo $this->getChildHtml('pager_bottom') ?>
app/design/frontend/default/blank/template/catalogsearch/advanced/form.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_blank
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
28
+ /**
29
+ * Catalog advanced search form
30
+ *
31
+ * @see Mage_CatalogSearch_Block_Advanced_Form
32
+ */
33
+ ?>
34
+ <div class="page-title">
35
+ <h2><?php echo $this->__('Catalog Advanced Search') ?></h2>
36
+ </div>
37
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
38
+ <form action="<?php echo $this->getSearchPostUrl() ?>" method="get" id="form-validate">
39
+ <fieldset class="group-select">
40
+ <h3 class="legend"><?php echo $this->__('Search Settings') ?></h3>
41
+ <ul 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><br />
46
+ <?php switch($this->getAttributeInputType($_attribute)):
47
+ case 'number': ?>
48
+ <div class="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
+ -
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="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
+ -
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
+
60
+ (<?php echo $this->getCurrency($_attribute); ?>)
61
+ </div>
62
+ <?php break;
63
+ case 'select': ?>
64
+ <?php echo $this->getAttributeSelectElement($_attribute) ?>
65
+ <?php break;
66
+ case 'yesno': ?>
67
+ <?php echo $this->getAttributeYesNoElement($_attribute) ?>
68
+ <?php break;
69
+ case 'date': ?>
70
+ <?php echo $this->getDateInput($_attribute, 'from') ?>
71
+ -
72
+ <?php echo $this->getDateInput($_attribute, 'to') ?>
73
+ <?php break;
74
+ default: ?>
75
+ <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) ?>" />
76
+ <?php endswitch; ?>
77
+ </li>
78
+ <?php endforeach; ?>
79
+ </ul>
80
+ <script type="text/javascript">decorateList('advanced-search-list')</script>
81
+ <p class="required">* <?php echo $this->__('Required Fields') ?></p>
82
+ <div class="buttons-set">
83
+ <button type="submit" class="button"><span><?php echo $this->__('Search') ?></span></button>
84
+ </div>
85
+ </fieldset>
86
+ </form>
87
+ <script type="text/javascript">
88
+ //<![CDATA[
89
+ var dataForm = new VarienForm('form-validate', true);
90
+ //]]>
91
+ </script>
app/design/frontend/default/blank/template/catalogsearch/advanced/result.phtml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Catalog Advanced Search') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <?php if($this->getResultCount()): ?>
32
+ <p>
33
+ <?php echo $this->helper('catalogsearch')
34
+ ->__('<strong>%d item(s)</strong> were found using the following search criteria', $this->getResultCount()); ?>
35
+ </p>
36
+ <?php else: ?>
37
+ <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>
38
+ <?php endif; ?>
39
+
40
+ <?php $searchCriterias=$this->getSearchCriterias(); ?>
41
+ <div class="search-summary">
42
+ <?php foreach (array('left', 'right') as $side): ?>
43
+ <?php if(@$searchCriterias[$side]): ?>
44
+ <ul>
45
+ <?php foreach($searchCriterias[$side] as $criteria): ?>
46
+ <li><strong><?php echo $this->htmlEscape($this->helper('catalogsearch')->__($criteria['name'])); ?>:</strong> <?php echo $this->htmlEscape($criteria['value']); ?></li>
47
+ <?php endforeach; ?>
48
+ </ul>
49
+ <?php endif; ?>
50
+ <?php endforeach; ?>
51
+ </div>
52
+ <?php if($this->getResultCount()): ?>
53
+ <p class="note-msg">
54
+ <?php echo $this->helper('catalogsearch')->__("Don't see what you're looking for?"); ?>
55
+ <a href="<?php echo $this->getFormUrl(); ?>"><?php echo $this->helper('catalogsearch')->__('Modify your search'); ?></a>
56
+ </p>
57
+ <?php endif; ?>
58
+ <?php if($this->getResultCount()): ?>
59
+ <?php echo $this->getProductListHtml() ?>
60
+ <?php endif; ?>
61
+ <?php $this->getSearchCriterias(); ?>
app/design/frontend/default/blank/template/catalogsearch/form.mini.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_blank
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
+ <form id="search_mini_form" action="<?php echo $this->helper('catalogSearch')->getResultUrl() ?>" method="get">
28
+ <fieldset class="form-search">
29
+ <legend><?php echo $this->__('Search Site') ?></legend>
30
+ <label for="search"><?php echo $this->__('Search:') ?></label>
31
+ <input id="search" type="text" class="input-text" name="<?php echo $this->helper('catalogSearch')->getQueryParamName() ?>" value="<?php echo $this->helper('catalogSearch')->getEscapedQueryText() ?>" />
32
+ <button type="submit" class="button"><span><?php echo $this->__('Search') ?></span></button>
33
+ <div id="search_autocomplete" class="search-autocomplete"></div>
34
+ <script type="text/javascript">
35
+ //<![CDATA[
36
+ var searchForm = new Varien.searchForm('search_mini_form', 'search', '<?php echo $this->__('Search entire store here...') ?>');
37
+ searchForm.initAutocomplete('<?php echo $this->helper('catalogSearch')->getSuggestUrl() ?>', 'search_autocomplete');
38
+ //]]>
39
+ </script>
40
+ </fieldset>
41
+ </form>
app/design/frontend/default/blank/template/catalogsearch/result.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_blank
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 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
+ <h2><?php echo ($this->getHeaderText() || $this->getHeaderText() === false) ? $this->getHeaderText() : $this->__("Search results for '%s'", $this->helper('catalogSearch')->getEscapedQueryText()) ?></h2>
34
+ </div>
35
+ <?php echo $this->getProductListHtml() ?>
36
+ <?php else: ?>
37
+ <div class="page-title">
38
+ <h2><?php echo ($this->getHeaderText() || $this->getHeaderText() === false) ? $this->getHeaderText() : $this->__("Search results for '%s'", $this->helper('catalogSearch')->getEscapedQueryText()) ?></h2>
39
+ </div>
40
+ <p class="note-msg">
41
+ <?php echo ($this->getNoResultText()) ? $this->getNoResultText() : $this->__('Your search returns no results.') ?>
42
+ </p>
43
+ <?php endif; ?>
app/design/frontend/default/blank/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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Popular Search Terms') ?></h2>
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/blank/template/checkout/cart.phtml ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
28
+ /**
29
+ * Shopping cart template
30
+ *
31
+ * @see Mage_Checkout_Block_Cart
32
+ */
33
+ ?>
34
+ <div class="cart">
35
+ <div class="page-title title-buttons">
36
+ <h2><?php echo $this->__('Shopping Cart') ?></h2>
37
+ <?php if(!$this->hasError()): ?>
38
+ <ul class="checkout-types">
39
+ <?php echo $this->getChildHtml('top_methods') ?>
40
+ </ul>
41
+ <?php endif; ?>
42
+ </div>
43
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
44
+ <form action="<?php echo $this->getUrl('checkout/cart/updatePost') ?>" method="post">
45
+ <fieldset>
46
+ <table id="shopping-cart-table" class="data-table cart-table">
47
+ <col width="40" />
48
+ <col width="75" />
49
+ <col />
50
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
51
+ <col width="1" />
52
+ <?php endif ?>
53
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
54
+ <col width="80" />
55
+ <?php endif; ?>
56
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
57
+ <col width="80" />
58
+ <?php endif; ?>
59
+ <col width="1" />
60
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
61
+ <col width="80" />
62
+ <?php endif; ?>
63
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
64
+ <col width="80" />
65
+ <?php endif; ?>
66
+
67
+ <?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
68
+ <thead>
69
+ <tr>
70
+ <th rowspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Remove') ?></th>
71
+ <th rowspan="<?php echo $mergedCells; ?>">&nbsp;</th>
72
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
73
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
74
+ <th rowspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Move to Wishlist') ?></th>
75
+ <?php endif ?>
76
+ <th class="a-center" colspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Unit Price') ?></th>
77
+ <th rowspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
78
+ <th class="a-center" colspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Subtotal') ?></th>
79
+ </tr>
80
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
81
+ <tr>
82
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
83
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
84
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
85
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
86
+ </tr>
87
+ <?php endif; ?>
88
+ </thead>
89
+ <tfoot>
90
+ <tr>
91
+ <td colspan="50" class="a-right">
92
+ <?php if($this->getContinueShoppingUrl()): ?>
93
+ <button type="button" class="button" onclick="setLocation('<?php echo $this->getContinueShoppingUrl() ?>')"><span><?php echo $this->__('Continue Shopping') ?></span></button>
94
+ <?php endif; ?>
95
+ <button type="submit" class="button"><span><?php echo $this->__('Update Shopping Cart') ?></span></button>
96
+ </td>
97
+ </tr>
98
+ </tfoot>
99
+ <tbody>
100
+ <?php foreach($this->getItems() as $_item): ?>
101
+ <?php echo $this->getItemHtml($_item) ?>
102
+ <?php endforeach ?>
103
+ </tbody>
104
+ </table>
105
+ <script type="text/javascript">decorateTable('shopping-cart-table')</script>
106
+ </fieldset>
107
+ </form>
108
+ <div class="col2-set cart-collaterals">
109
+ <div class="col-1">
110
+ <?php echo $this->getChildHtml('crosssell') ?>
111
+ </div>
112
+ <div class="col-2">
113
+ <?php echo $this->getChildHtml('coupon') ?>
114
+ <?php if (!$this->getIsVirtual()): echo $this->getChildHtml('shipping'); endif; ?>
115
+ </div>
116
+ </div>
117
+ <div class="totals">
118
+ <?php echo $this->getChildHtml('totals'); ?>
119
+ <?php if(!$this->hasError()): ?>
120
+ <ul class="checkout-types">
121
+ <?php echo $this->getChildHtml('methods') ?>
122
+ </ul>
123
+ <?php endif; ?>
124
+ </div>
125
+ </div>
app/design/frontend/default/blank/template/checkout/cart/coupon.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_blank
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
+ <div class="discount">
28
+ <h3><?php echo $this->__('Discount Codes') ?></h3>
29
+ <form id="discount-coupon-form" action="<?php echo $this->getUrl('checkout/cart/couponPost') ?>" method="post">
30
+ <fieldset>
31
+ <label for="coupon_code"><?php echo $this->__('Enter your coupon code if you have one.') ?></label><br />
32
+ <input type="hidden" name="remove" id="remove-coupone" value="0" />
33
+ <?php if(!strlen($this->getCouponCode())): ?>
34
+ <input class="input-text" id="coupon_code" name="coupon_code" value="<?php echo $this->htmlEscape($this->getCouponCode()) ?>" />
35
+ <button class="button" onclick="discountForm.submit(false)" type="button" value="<?php echo $this->__('Apply Coupon') ?>"><span><?php echo $this->__('Apply Coupon') ?></span></button>
36
+ <?php else: ?>
37
+ <input class="input-text" id="coupon_code" name="coupon_code" value="<?php echo $this->htmlEscape($this->getCouponCode()) ?>" />
38
+ <button type="button" class="button" onclick="discountForm.submit(false)" value="<?php echo $this->__('Apply Coupon') ?>"><span><?php echo $this->__('Apply Coupon') ?></span></button>
39
+ <button type="button" class="button" onclick="discountForm.submit(true)" value="<?php echo $this->__('Cancel Coupon') ?>"><span><?php echo $this->__('Cancel Coupon') ?></span></button>
40
+ <?php endif;?>
41
+ </fieldset>
42
+ </form>
43
+ <script type="text/javascript">
44
+ //<![CDATA[
45
+ var discountForm = new VarienForm('discount-coupon-form');
46
+ discountForm.submit = function (isRemove) {
47
+ if (isRemove) {
48
+ $('coupon_code').removeClassName('required-entry');
49
+ $('remove-coupone').value = "1";
50
+ } else {
51
+ $('coupon_code').addClassName('required-entry');
52
+ $('remove-coupone').value = "0";
53
+ }
54
+ return VarienForm.prototype.submit.bind(discountForm)();
55
+ }
56
+ //]]>
57
+ </script>
58
+ </div>
app/design/frontend/default/blank/template/checkout/cart/crosssell.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_blank
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
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
+ <h3><?php echo $this->__('Based on your selection, you may be interested in the following items:') ?></h3>
37
+ <ul>
38
+ <?php foreach ($this->getItems() as $_item): ?>
39
+ <li>
40
+ <a class="product-image" href="<?php echo $_item->getProductUrl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(75); ?>" width="75" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
41
+ <div class="product-shop">
42
+ <h4 class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></h4>
43
+ <?php echo $this->getPriceHtml($_item, true) ?>
44
+ <p><button class="button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_item) ?>')" type="button"><span><?php echo $this->__('Add to Cart') ?></span></button></p>
45
+ <ul class="add-to-links">
46
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
47
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>"><?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 ?>"><?php echo $this->__('Add to Compare') ?></a></li>
51
+ <?php endif; ?>
52
+ </ul>
53
+ </div>
54
+ </li>
55
+ <?php endforeach; ?>
56
+ </ul>
57
+ </div>
58
+ <?php endif; ?>
app/design/frontend/default/blank/template/checkout/cart/item/default.phtml ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_item = $this->getItem()?>
28
+ <tr>
29
+ <td class="a-center"><a href="<?php echo $this->getDeleteUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/btn_trash.gif') ?>" width="16" height="16" alt="<?php echo $this->__('Remove item')?>" title="<?php echo $this->__('Remove item')?>" /></a></td>
30
+ <td><a href="<?php echo $this->getProductUrl() ?>" class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" width="75" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" /></a></td>
31
+ <td>
32
+ <h3 class="product-name"><a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->getProductName() ?></a></h3>
33
+ <?php if ($_options = $this->getOptionList()):?>
34
+ <dl class="item-options">
35
+ <?php foreach ($_options as $_option) : ?>
36
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option['value']) ?>
37
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
38
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
39
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
40
+ <div class="truncated_full_value">
41
+ <dl class="item-options">
42
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
43
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
44
+ </dl>
45
+ </div>
46
+ <?php endif; ?>
47
+ </dd>
48
+ <?php endforeach; ?>
49
+ </dl>
50
+ <?php endif;?>
51
+ <?php if ($messages = $this->getMessages()): ?>
52
+ <?php foreach ($messages as $message): ?>
53
+ <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $message['text'] ?></p>
54
+ <?php endforeach; ?>
55
+ <?php endif; ?>
56
+ </td>
57
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
58
+ <td class="a-center">
59
+ <input type="checkbox" value="1" name="cart[<?php echo $_item->getId() ?>][wishlist]" class="checkbox" />
60
+ </td>
61
+ <?php endif ?>
62
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
63
+ <td class="a-right">
64
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
65
+ </td>
66
+ <?php endif; ?>
67
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
68
+ <td>
69
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
70
+ </td>
71
+ <?php endif; ?>
72
+ <td class="a-center">
73
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" class="input-text qty" maxlength="8" />
74
+ </td>
75
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
76
+ <td class="a-right">
77
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
78
+ </td>
79
+ <?php endif; ?>
80
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
81
+ <td>
82
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
83
+ </td>
84
+ <?php endif; ?>
85
+ </tr>
app/design/frontend/default/blank/template/checkout/cart/noItems.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Shopping Cart is Empty') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <p><?php echo $this->__('You have no items in your shopping cart.') ?></p>
32
+ <p><?php echo $this->__('Please <a href="%s">continue shopping</a>.', $this->getContinueShoppingUrl()) ?></p>
app/design/frontend/default/blank/template/checkout/cart/render/default.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_blank
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 $_item = $this->getItem() ?>
28
+ <tr>
29
+ <td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>"><img src="<?php echo $this->getSkinUrl('images/btn_trash.gif') ?>" width="16" height="16" alt="<?php echo $this->__('Remove item')?>" title="<?php echo $this->__('Remove item')?>" /></a></td>
30
+ <td><a href="<?php echo $this->getItemUrl($_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)) ?>" title="<?php echo $this->htmlEscape($this->getItemName($_item)) ?>" /></a></td>
31
+ <td>
32
+ <h3 class="product-name"><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $this->getItemName($_item) ?></a></h3>
33
+ <?php echo $this->getItemDescription($_item) ?>
34
+ <?php if($_item->getMessage()): ?>
35
+ <p class="item-msg <?php if($_item->getHasError()): ?>error<?php else: ?>notice<?php endif; ?>">* <?php echo $_item->getMessage() ?></p>
36
+ <?php endif; ?>
37
+ </td>
38
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
39
+ <td class="a-center">
40
+ <input type="checkbox" value="1" name="cart[<?php echo $_item->getId() ?>][wishlist]" class="checkbox" />
41
+ </td>
42
+ <?php endif ?>
43
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
44
+ <td class="a-right">
45
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
46
+ </td>
47
+ <?php endif; ?>
48
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
49
+ <td class="a-right">
50
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
51
+ </td>
52
+ <?php endif; ?>
53
+ <td class="a-center">
54
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getItemQty($_item) ?>" size="4" class="input-text qty" maxlength="8" />
55
+ </td>
56
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
57
+ <td class="a-right">
58
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
59
+ </td>
60
+ <?php endif; ?>
61
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
62
+ <td class="a-right">
63
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
64
+ </td>
65
+ <?php endif; ?>
66
+ </tr>
app/design/frontend/default/blank/template/checkout/cart/render/simple.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_blank
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 $_item = $this->getItem() ?>
28
+ <tr>
29
+ <td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>"><img src="<?php echo $this->getSkinUrl('images/btn_trash.gif') ?>" width="16" height="16" alt="<?php echo $this->__('Remove item')?>" title="<?php echo $this->__('Remove item')?>" /></a></td>
30
+ <td><a href="<?php echo $this->getItemUrl($_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)) ?>" title="<?php echo $this->htmlEscape($this->getItemName($_item)) ?>" /></a></td>
31
+ <td>
32
+ <h3 class="product-name"><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $this->getItemName($_item) ?></a></h3>
33
+ <?php echo $this->getItemDescription($_item) ?>
34
+ <?php if($_item->getMessage()): ?>
35
+ <p class="item-msg <?php if($_item->getHasError()): ?>error<?php else: ?>notice<?php endif; ?>">* <?php echo $_item->getMessage() ?></p>
36
+ <?php endif; ?>
37
+ </td>
38
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
39
+ <td class="a-center">
40
+ <input type="checkbox" value="1" name="cart[<?php echo $_item->getId() ?>][wishlist]" class="checkbox" />
41
+ </td>
42
+ <?php endif ?>
43
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
44
+ <td class="a-right">
45
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
46
+ </td>
47
+ <?php endif; ?>
48
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
49
+ <td class="a-right">
50
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
51
+ </td>
52
+ <?php endif; ?>
53
+ <td class="a-center">
54
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getItemQty($_item) ?>" size="4" class="input-text qty" maxlength="8" />
55
+ </td>
56
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
57
+ <td class="a-right">
58
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
59
+ </td>
60
+ <?php endif; ?>
61
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
62
+ <td class="a-right">
63
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
64
+ </td>
65
+ <?php endif; ?>
66
+ </tr>
app/design/frontend/default/blank/template/checkout/cart/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_blank
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
28
+ /**
29
+ * @see Mage_Checkout_Block_Cart_Shipping
30
+ */
31
+ ?>
32
+ <div class="shipping">
33
+ <h3><?php echo $this->__('Estimate Shipping and Tax') ?></h3>
34
+ <form action="<?php echo $this->getUrl('checkout/cart/estimatePost') ?>" method="post" id="shipping-zip-form">
35
+ <fieldset>
36
+ <p><?php echo $this->__('Enter your destination to get a shipping estimate.') ?></p>
37
+ <ul class="form-list">
38
+ <li>
39
+ <label for="country"><?php echo $this->__('Country') ?></label><br />
40
+ <?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
41
+ </li>
42
+ <?php //if($this->getStateActive()): ?>
43
+ <li>
44
+ <label for="region_id"><?php echo $this->__('State/Province') ?><?php if ($this->isStateProvinceRequired()):?> <span class="required">*</span><?php endif;?></label><br />
45
+ <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" style="display:none;"<?php echo ($this->isStateProvinceRequired() ? ' class="validate-select"' : '') ?>>
46
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
47
+ </select>
48
+ <script type="text/javascript">
49
+ //<![CDATA[
50
+ $('region_id').setAttribute('defaultValue', "<?php echo $this->getEstimateRegionId() ?>");
51
+ //]]>
52
+ </script>
53
+ <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;" />
54
+ </li>
55
+ <?php //endif; ?>
56
+ <?php if($this->getCityActive()): ?>
57
+ <li>
58
+ <label for="city"><?php echo $this->__('City') ?><?php if ($this->isCityRequired()):?> <span class="required">*</span><?php endif;?></label><br />
59
+ <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()) ?>" />
60
+ </li>
61
+ <?php endif; ?>
62
+ <li>
63
+ <label for="postcode"><?php echo $this->__('Zip/Postal Code') ?><?php if ($this->isZipCodeRequired()):?> <span class="required">*</span><?php endif;?></label><br />
64
+ <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()) ?>" />
65
+ </li>
66
+ </ul>
67
+ <div class="buttons-set">
68
+ <button type="button" onclick="coShippingMethodForm.submit()" class="button"><span><?php echo $this->__('Get a Quote') ?></span></button>
69
+ </div>
70
+ </fieldset>
71
+ </form>
72
+ <script type="text/javascript">
73
+ //<![CDATA[
74
+ new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
75
+ //]]>
76
+ </script>
77
+
78
+ <?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
79
+ <form id="co-shipping-method-form" action="<?php echo $this->getUrl('checkout/cart/estimateUpdatePost') ?>">
80
+ <fieldset>
81
+ <dl class="sp-methods">
82
+ <?php foreach ($_shippingRateGroups as $code => $_rates): ?>
83
+ <dt><?php echo $this->getCarrierName($code) ?></dt>
84
+ <dd>
85
+ <ul>
86
+ <?php foreach ($_rates as $_rate): ?>
87
+ <li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
88
+ <?php if ($_rate->getErrorMessage()): ?>
89
+ <?php echo $_rate->getErrorMessage() ?>
90
+ <?php else: ?>
91
+ <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" />
92
+ <label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
93
+ <?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
94
+ <?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
95
+ <?php echo $_excl; ?>
96
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
97
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
98
+ <?php endif; ?>
99
+ </label>
100
+ <?php endif ?>
101
+ </li>
102
+ <?php endforeach; ?>
103
+ </ul>
104
+ </dd>
105
+ <?php endforeach; ?>
106
+ </dl>
107
+ <div class="buttons-set">
108
+ <button type="submit" class="button" name="do" value="<?php echo $this->__('Update Total') ?>"><span><?php echo $this->__('Update Total') ?></span></button>
109
+ </div>
110
+ </fieldset>
111
+ </form>
112
+ <?php endif; ?>
113
+ <script type="text/javascript">
114
+ //<![CDATA[
115
+ var coShippingMethodForm = new VarienForm('shipping-zip-form');
116
+ Validation.addAllThese(
117
+ [
118
+ ['validate-postcode', '<?php echo $this->__('Please enter a valid zip code. For example 90602 or 90602-1234.') ?>', function(v) {
119
+ var element = $('postcode');
120
+ if (element && ('' != element.value)) {
121
+ if (!element.value.match(/(^[A-z0-9]{2,10}([\s]{0,2}|[\-]{0,2})[A-z0-9]{2,10}$)/ )) {
122
+ return false;
123
+ }
124
+ }
125
+ return true;
126
+ }]
127
+ ]
128
+ );
129
+ //]]>
130
+ </script>
131
+ </div>
app/design/frontend/default/blank/template/checkout/cart/sidebar.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_blank
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
+ /**
28
+ * Shoping cart sidebar
29
+ *
30
+ * @see Mage_Checkout_Block_Cart_Sidebar
31
+ */
32
+ ?>
33
+ <div class="block block-cart">
34
+ <?php $_cartQty = $this->getSummaryCount() ?>
35
+ <div class="block-title">
36
+ <h2><?php echo $this->__('My Cart') ?></h2>
37
+ </div>
38
+ <div class="block-content">
39
+ <?php if ($_cartQty>0): ?>
40
+ <?php if ($_cartQty==1): ?>
41
+ <p class="amount"><?php echo $this->__('There is <a href="%s">1 item</a> in your cart.', $this->getUrl('checkout/cart')) ?></p>
42
+ <?php else: ?>
43
+ <p class="amount"><?php echo $this->__('There are <a href="%s">%s items</a> in your cart.', $this->getUrl('checkout/cart'), $_cartQty) ?></p>
44
+ <?php endif ?>
45
+ <p class="subtotal">
46
+ <span class="label"><?php echo $this->__('Cart Subtotal:') ?></span> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
47
+ <?php if ($_subtotalInclTax = $this->getSubtotalInclTax()): ?>
48
+ <br />(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax) ?> <?php echo Mage::helper('tax')->getIncExcText(true) ?>)
49
+ <?php endif; ?>
50
+ </p>
51
+ <?php endif ?>
52
+ <?php if($_cartQty && $this->isPossibleOnepageCheckout()): ?>
53
+ <div class="actions">
54
+ <button class="button" type="button" onclick="setLocation('<?php echo $this->getCheckoutUrl() ?>')"><span><?php echo $this->__('Checkout') ?></span></button>
55
+ </div>
56
+ <?php endif ?>
57
+ <?php $_items = $this->getRecentItems() ?>
58
+ <?php if(count($_items)): ?>
59
+ <h3><?php echo $this->__('Recently added item(s)') ?></h3>
60
+ <ol id="cart-sidebar" class="mini-products-list">
61
+ <?php foreach($_items as $_item): ?>
62
+ <?php echo $this->getItemHtml($_item) ?>
63
+ <?php endforeach; ?>
64
+ </ol>
65
+ <script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script>
66
+ <?php else: ?>
67
+ <p><?php echo $this->__('You have no items in your shopping cart.') ?></p>
68
+ <?php endif ?>
69
+ </div>
70
+ </div>
app/design/frontend/default/blank/template/checkout/cart/sidebar/default.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_blank
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 $_item = $this->getItem() ?>
28
+ <li>
29
+ <a href="<?php echo $this->getProductUrl()?>" 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()) ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" /></a>
30
+ <div class="product-details">
31
+ <a href="<?php echo $this->getDeleteUrl() ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the shopping cart?') ?>');" class="btn-remove"><img src="<?php echo $this->getSkinUrl('images/list_remove_btn.gif') ?>" alt="<?php echo $this->__('Remove Product') ?>" title="<?php echo $this->__('Remove Product') ?>" /></a>
32
+ <h4><a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->getProductName() ?></a></h4>
33
+ <strong><?php echo $this->getQty() ?></strong> x
34
+
35
+ <?php $_excl = $_item->getCalculationPrice() ? $_item->getCalculationPrice() : $_item->getPrice(); ?>
36
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
37
+ <?php if ($this->helper('tax')->displayCartPriceInclTax()): $_excl = $_incl; endif; ?>
38
+
39
+ <?php echo $this->helper('checkout')->formatPrice($_excl); ?>
40
+ <?php if ($this->helper('tax')->displayCartBothPrices() && $_incl != $_excl): ?>
41
+ <br />(<?php echo $this->helper('checkout')->formatPrice($_incl); ?> <?php echo Mage::helper('tax')->__('Incl. Tax') ?>)
42
+ <?php endif; ?>
43
+ <?php if ($_options = $this->getOptionList()):?>
44
+ <div class="truncated">
45
+ <div class="truncated_full_value">
46
+ <dl class="item-options">
47
+ <?php foreach ($_options as $_option) : ?>
48
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
49
+ <dd>
50
+ <?php if (is_array($_option['value'])): ?>
51
+ <?php echo nl2br(implode("\n", $_option['value'])) ?>
52
+ <?php else: ?>
53
+ <?php echo $_option['value'] ?>
54
+ <?php endif; ?>
55
+ </dd>
56
+ <?php endforeach; ?>
57
+ </dl>
58
+ </div>
59
+ <a href="#" onclick="return false;" class="details"><?php echo $this->__('Details') ?></a>
60
+ </div>
61
+ <?php endif; ?>
62
+ </div>
63
+ </li>
app/design/frontend/default/blank/template/checkout/cart/totals.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_blank
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
28
+ /**
29
+ * Shopping cart totals template
30
+ *
31
+ * @see Mage_Checkout_Block_Cart
32
+ */
33
+ ?>
34
+ <table id="shopping-cart-totals-table">
35
+ <col />
36
+ <col width="1" />
37
+ <tfoot>
38
+ <?php echo $this->renderTotals('footer'); ?>
39
+ </tfoot>
40
+ <tbody>
41
+ <?php echo $this->renderTotals(); ?>
42
+ </tbody>
43
+ </table>
app/design/frontend/default/blank/template/checkout/links.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ ?>
app/design/frontend/default/blank/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_blank
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
+ <div class="page-title title-buttons">
28
+ <h2><?php echo $this->__('Change Billing Address') ?></h2>
29
+ <button type="button" class="button" onclick="setLocation('<?php echo $this->getAddNewUrl() ?>')"><span><?php echo $this->__('Add New Address') ?></span></button>
30
+ </div>
31
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
32
+ <div class="multiple-checkout">
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) ?>"><?php echo $this->__('Select Address') ?></a>
40
+ </p>
41
+ <address>
42
+ <?php echo $_address->format('html') ?>
43
+ <?php if($this->isAddressDefaultBilling($_address)): ?>
44
+ <br /><strong><?php echo $this->__('Default Billing') ?></strong>
45
+ <?php endif; ?>
46
+ <?php if($this->isAddressDefaultShipping($_address)): ?>
47
+ <br /><strong><?php echo $this->__('Default Shipping') ?></strong>
48
+ <?php endif; ?>
49
+ </address>
50
+ </div>
51
+ <?php if($_index && $_index%3==0): ?></div><?php endif; ?>
52
+ <?php $_index++ ?>
53
+ <?php endforeach; ?>
54
+ <?php if(!$_index || $_index%3!=0): ?></div><?php endif; ?>
55
+ </div>
56
+ <div class="buttons-set">
57
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to Billing Information') ?></a>
58
+ </div>
app/design/frontend/default/blank/template/checkout/multishipping/addresses.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_blank
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
28
+ /**
29
+ * Ship to multiple address template
30
+ *
31
+ * @see Mage_Checkout_Block_Multishipping_Addresses
32
+ */
33
+ ?>
34
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post">
35
+ <div class="page-title title-buttons">
36
+ <h2><?php echo $this->__('Ship to Multiple Addresses') ?></h2>
37
+ <button type="submit" class="button" onclick="$('add_new_address_flag').value=1"><span><?php echo $this->__('Enter a New Address') ?></span></button>
38
+ </div>
39
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
40
+ <fieldset class="multiple-checkout">
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
+ <h3><?php echo $this->__('Please select shipping address for applicable items') ?></h3>
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><?php echo $this->__('Remove') ?></th>
55
+ </tr>
56
+ </thead>
57
+ <tfoot>
58
+ <tr>
59
+ <td colspan="100" class="a-right"><button type="submit" class="button" onclick="$('can_continue_flag').value=0"><span><?php echo $this->__('Update Qty &amp; Addresses') ?></span></button></td>
60
+ </tr>
61
+ </tfoot>
62
+ <tbody>
63
+ <?php foreach ($this->getItems() as $_index => $_item): ?>
64
+ <tr>
65
+ <td><?php echo $this->getItemHtml($_item->getQuoteItem())?></td>
66
+ <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>
67
+ <td><?php if ($_item->getProduct()->getIsVirtual()): echo $this->__('Shipping selection is not applicable'); else: echo $this->getAddressesHtmlSelect($_item, $_index); endif; ?></td>
68
+ <td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>"><img src="<?php echo $this->getSkinUrl('images/btn_trash.gif') ?>" width="16" height="16" alt="<?php echo $this->__('Remove Item') ?>" title="<?php echo $this->__('Remove Item') ?>" /></a></td>
69
+ </tr>
70
+ <?php endforeach; ?>
71
+ </tbody>
72
+ </table>
73
+ <script type="text/javascript">decorateTable('multiship-addresses-table')</script>
74
+ <div class="buttons-set">
75
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to Shopping Cart') ?></a>
76
+ <button type="submit" class="button<?php if ($this->isContinueDisabled()):?> disabled<?php endif; ?>" onclick="$('can_continue_flag').value=1"<?php if ($this->isContinueDisabled()):?> disabled="disabled"<?php endif; ?>><span><?php echo $this->__('Continue to Shipping Information') ?></span></button>
77
+ </div>
78
+ </fieldset>
79
+ </form>
app/design/frontend/default/blank/template/checkout/multishipping/agreements.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_blank
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
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" class="checkbox" />
46
+ <label for="agreement-<?php echo $_a->getId()?>"><?php echo $_a->getCheckboxText()?></label>
47
+ </p>
48
+ </li>
49
+ <?php endforeach ?>
50
+ </ol>
app/design/frontend/default/blank/template/checkout/multishipping/billing.phtml ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
28
+ /**
29
+ * Multishipping checkout billing information
30
+ *
31
+ * @see Mage_Checkout_Block_Multishipping_Billing
32
+ */
33
+ ?>
34
+ <div class="page-title">
35
+ <h2><?php echo $this->__('Billing Information') ?></h2>
36
+ </div>
37
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
38
+ <script src="<?php echo Mage::getBaseUrl('js') ?>varien/payment.js" type="text/javascript"></script>
39
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="multishipping-billing-form">
40
+ <fieldset class="col2-set multiple-checkout">
41
+ <div class="col-1 narrow">
42
+ <h3><?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="<?php echo $this->getSelectAddressUrl() ?>"><?php echo $this->__('Edit') ?></a></h3>
43
+ <?php $_address=$this->getAddress() ?>
44
+ <address><?php echo $_address->format('html') ?></address>
45
+ </div>
46
+ <div class="col-2 wide">
47
+ <h3><?php echo $this->__('Payment Method') ?></h3>
48
+ <div class="tool-tip" id="payment-tool-tip" style="display:none;">
49
+ <div class="btn-close"><a href="#" id="payment-tool-tip-close"><img src="<?php echo $this->getSkinUrl('images/btn_window_close.gif') ?>" alt="<?php echo $this->__('Close') ?>" title="<?php echo $this->__('Close') ?>" /></a></div>
50
+ <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>
51
+ </div>
52
+ <!-- Payment methods forms list -->
53
+ <dl class="sp-methods">
54
+ <?php
55
+ $_methods = $this->getMethods();
56
+ $_methodsCount = count($_methods);
57
+ ?>
58
+ <?php foreach ($_methods as $_method): $_code = $_method->getCode() ?>
59
+ <dt>
60
+ <?php if ($_methodsCount > 1): ?>
61
+ <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" />
62
+ <?php else :?>
63
+ <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>
64
+ <?php endif;?>
65
+ <label for="p_method_<?php echo $_code ?>"><?php echo $_method->getTitle() ?></label>
66
+ </dt>
67
+ <?php if($html = $this->getChildHtml('payment.method.'.$_code)) : ?>
68
+ <dd>
69
+ <?php echo $html; ?>
70
+ </dd>
71
+ <?php endif; ?>
72
+ <?php endforeach; ?>
73
+ </dl>
74
+ <?php echo $this->getChildHtml('checkout_billing_items') ?>
75
+ </div>
76
+ </fieldset>
77
+ <div class="buttons-set">
78
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to Shipping Information') ?></a>
79
+ <button class="button" type="submit"><span><?php echo $this->__('Continue to Review Your Order') ?></span></button>
80
+ </div>
81
+ </form>
82
+ <script type="text/javascript">
83
+ //<![CDATA[
84
+ var payment = new paymentForm('multishipping-billing-form');
85
+ function toggleToolTip(event){
86
+ if($('payment-tool-tip')){
87
+ /*$('payment-tool-tip').setStyle({
88
+ top: (Event.pointerY(event)-510)+'px',
89
+ left: (Event.pointerX(event)-800)+'px'
90
+ })*/
91
+ $('payment-tool-tip').toggle();
92
+ }
93
+ Event.stop(event);
94
+ }
95
+ if($('payment-tool-tip-close')){
96
+ Event.observe($('payment-tool-tip-close'), 'click', toggleToolTip);
97
+ }
98
+ $$('.cvv-what-is-this').each(function(element){
99
+ Event.observe(element, 'click', toggleToolTip);
100
+ });
101
+ //]]>
102
+ </script>
app/design/frontend/default/blank/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_blank
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 if ($this->getQuote()->hasVirtualItems()): ?>
28
+ <h3><?php echo $this->__('Other items in your order') ?></h3>
29
+ <div class="col2-set">
30
+ <div class="col-1 narrow"></div>
31
+ <div class="col-2 wide">
32
+ <h4><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getVirtualProductEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h4>
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/blank/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_blank
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
+ <h4 class="product-name"><a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->getProductName() ?></a></h4>
28
+ <?php if ($_options = $this->getOptionList()):?>
29
+ <dl class="item-options">
30
+ <?php foreach ($_options as $_option) : ?>
31
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option['value']) ?>
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/blank/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_blank
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
+ <li><a href="<?php echo $this->getCheckoutUrl()?>"><?php echo Mage::helper('checkout')->__('Checkout with Multiple Addresses');?></a></li>
app/design/frontend/default/blank/template/checkout/multishipping/overview.phtml ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Review Order') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" onsubmit="return showLoader();">
32
+ <fieldset class="multiple-checkout">
33
+ <div class="col2-set">
34
+ <h3><?php echo $this->__('Billing Information') ?></h3>
35
+ <div class="col-1">
36
+ <?php $_address=$this->getBillingAddress() ?>
37
+ <h4><?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditBillingAddressUrl($_address) ?>"><?php echo $this->__('Edit') ?></a></h4>
38
+ <address>
39
+ <?php echo $_address->format('html') ?>
40
+ </address>
41
+ </div>
42
+ <div class="col-2">
43
+ <h4><?php echo $this->__('Payment Method') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditBillingUrl() ?>"><?php echo $this->__('Edit') ?></a></h4>
44
+ <input type="hidden" name="payment[cc_number]" value="<?php echo $this->htmlEscape($this->getPayment()->getCcNumber())?>" />
45
+ <input type="hidden" name="payment[cc_cid]" value="<?php echo $this->htmlEscape($this->getPayment()->getCcCid())?>" />
46
+ <?php echo $this->getPaymentHtml() ?>
47
+ </div>
48
+ </div>
49
+ <h3><?php echo $this->__('Shipping Information') ?></h3>
50
+ <?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
51
+ <?php foreach ($this->getShippingAddresses() as $_index => $_address): ?>
52
+ <div class="col2-set">
53
+ <h4><?php echo $this->__('Address %s of %s', ($_index+1), $this->getShippingAddressCount()) ?></h4>
54
+ <div class="col-1 narrow">
55
+ <h5><?php echo $this->__('Shipping to') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditShippingAddressUrl($_address) ?>"><?php echo $this->__('Edit') ?></a></h5>
56
+ <address>
57
+ <?php echo $_address->format('html') ?>
58
+ </address>
59
+ <h5><?php echo $this->__('Shipping Method') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditShippingUrl() ?>"><?php echo $this->__('Edit') ?></a></h5>
60
+ <?php if($_rate=$this->getShippingAddressRate($_address)): ?>
61
+ <p>
62
+ <?php echo $_rate->getCarrierTitle() ?> (<?php echo $_rate->getMethodTitle() ?>)
63
+ <?php $_excl = $this->getShippingPriceExclTax($_address); ?>
64
+ <?php $_incl = $this->getShippingPriceInclTax($_address); ?>
65
+
66
+ <?php echo $_excl; ?>
67
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
68
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
69
+ <?php endif; ?>
70
+ </p>
71
+ <?php endif; ?>
72
+ </div>
73
+ <div class="col-2 wide">
74
+ <h5><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getAddressesEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h5>
75
+ <table class="data-table" id="overview-table-<?php echo $_address->getId() ?>">
76
+ <col />
77
+ <col width="1" />
78
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
79
+ <col width="1" />
80
+ <?php endif; ?>
81
+ <col width="1" />
82
+ <col width="1" />
83
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
84
+ <col width="1" />
85
+ <?php endif; ?>
86
+ <thead>
87
+ <tr>
88
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
89
+ <th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Price') ?></th>
90
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Qty') ?></th>
91
+ <th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
92
+ </tr>
93
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
94
+ <tr>
95
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
96
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
97
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
98
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
99
+ </tr>
100
+ <?php endif; ?>
101
+ </thead>
102
+ <tfoot>
103
+ <?php echo $this->renderTotals($this->getShippingAddressTotals($_address)); ?>
104
+ </tfoot>
105
+ <tbody>
106
+ <?php foreach ($this->getShippingAddressItems($_address) as $_item): ?>
107
+ <tr>
108
+ <td><?php echo $this->getItemHtml($_item->getQuoteItem()) ?></td>
109
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
110
+ <td class="a-right">
111
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
112
+ </td>
113
+ <?php endif; ?>
114
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
115
+ <td>
116
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)) ?>
117
+ </td>
118
+ <?php endif; ?>
119
+ <td class="a-center"><?php echo $_item->getQty()*1 ?></td>
120
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
121
+ <td class="a-right">
122
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
123
+ </td>
124
+ <?php endif; ?>
125
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
126
+ <td>
127
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)) ?>
128
+ </td>
129
+ <?php endif; ?>
130
+ </tr>
131
+ <?php endforeach; ?>
132
+ </tbody>
133
+ </table>
134
+ <script type="text/javascript">decorateTable('overview-table-<?php echo $_address->getId() ?>')</script>
135
+ </div>
136
+ </div>
137
+ <?php if($this->getShippingAddressCount()!=$_index+1): ?>
138
+ <?php endif; ?>
139
+ <?php endforeach; ?>
140
+
141
+ <?php if ($this->getQuote()->hasVirtualItems()): ?>
142
+ <h3><?php echo $this->__('Other items in your order') ?></h3>
143
+ <div class="col2-set">
144
+ <div class="col-1 narrow"></div>
145
+ <div class="col-2 wide">
146
+ <h4><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getVirtualProductEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h4>
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
+ <tr>
181
+ <td><?php echo $this->getItemHtml($_item) ?></td>
182
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
183
+ <td class="a-right">
184
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
185
+ </td>
186
+ <?php endif; ?>
187
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
188
+ <td>
189
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)) ?>
190
+ </td>
191
+ <?php endif; ?>
192
+ <td><?php echo $_item->getQty()*1 ?></td>
193
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
194
+ <td class="a-right">
195
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
196
+ </td>
197
+ <?php endif; ?>
198
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
199
+ <td>
200
+ <?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)) ?>
201
+ </td>
202
+ <?php endif; ?>
203
+ </tr>
204
+ <?php endforeach; ?>
205
+ </tbody>
206
+ </table>
207
+ <script type="text/javascript">decorateTable('virtual-overview-table')</script>
208
+ </div>
209
+ </div>
210
+ <?php endif; ?>
211
+
212
+ <?php echo $this->getChildHtml('agreements') ?>
213
+
214
+ <p class="grand-total"><big><?php echo $this->__('Grand Total:') ?></big> <?php echo $this->helper('checkout')->formatPrice($this->getTotal()) ?></p>
215
+ <div class="buttons-set" id="review-buttons-container">
216
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to Billing Information') ?></a>
217
+ <button type="submit" class="button" id="review-button"><span><?php echo $this->__('Place Order') ?></span></button>
218
+ <span id="review-please-wait" class="please-wait" style="display:none;">
219
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
220
+ </span>
221
+ </div>
222
+ </fieldset>
223
+ </form>
224
+ <script type="text/javascript">
225
+ //<![CDATA[
226
+ var submitted = false;
227
+
228
+ function showLoader()
229
+ {
230
+ if (submitted) {
231
+ return false;
232
+ }
233
+ if ($('checkout-agreements')) {
234
+ var checkboxes = $$('#checkout-agreements input');
235
+ for (var i=0, l=checkboxes.length; i<l; i++) {
236
+ if (!checkboxes[i].checked) {
237
+ alert("<?php echo $this->__('Please agree to all Terms and Conditions before placing the orders.')?>");
238
+ return false;
239
+ }
240
+ }
241
+ }
242
+
243
+ submitted = true;
244
+ var step='review';
245
+ Element.show(step+'-please-wait');
246
+ $(step+'-buttons-container').setStyle({opacity:.5});
247
+ $(step+'-buttons-container').descendants().each(function(s) {
248
+ s.disabled = true;
249
+ });
250
+ return true;
251
+ }
252
+ //]]>
253
+ </script>
app/design/frontend/default/blank/template/checkout/multishipping/shipping.phtml ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
28
+ /**
29
+ * Multishipping checkout shipping template
30
+ *
31
+ * @see Mage_Checkout_Block_Multishipping_Shipping
32
+ */
33
+ ?>
34
+ <div class="page-title">
35
+ <h2><?php echo $this->__('Select Shipping Method') ?></h2>
36
+ </div>
37
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
38
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="shipping_method_form">
39
+ <fieldset class="multiple-checkout">
40
+ <?php foreach ($this->getAddresses() as $_index => $_address): ?>
41
+ <h3><?php echo $this->__('Address %s of %s', ($_index+1), $this->getAddressCount()) ?></h3>
42
+ <div class="col2-set">
43
+ <div class="col-1 narrow">
44
+ <h4><?php echo $this->__('Shipping to') ?> <span class="separator">|</span> <a href="<?php echo $this->getAddressEditUrl($_address) ?>"><?php echo $this->__('Edit') ?></a></h4>
45
+ <address><?php echo $_address->format('html') ?></address>
46
+ <h4><?php echo $this->__('Shipping Method') ?></h4>
47
+ <?php if (!($_shippingRateGroups = $this->getShippingRates($_address))): ?>
48
+ <p><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></p>
49
+ <?php else: ?>
50
+ <dl class="sp-methods">
51
+ <?php foreach ($_shippingRateGroups as $code => $_rates): ?>
52
+ <dt><?php echo $this->getCarrierName($code) ?></dt>
53
+ <dd>
54
+ <ul>
55
+ <?php foreach ($_rates as $_rate): ?>
56
+ <li>
57
+ <?php if ($_rate->getErrorMessage()): ?>
58
+ <strong><?php echo $_rate->getCarrierTitle() ?>: <?php echo $_rate->getErrorMessage() ?></strong>
59
+ <?php else: ?>
60
+ <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" />
61
+ <label for="s_method_<?php echo $_address->getId() ?>_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
62
+ <?php $_excl = $this->getShippingPrice($_address, $_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
63
+ <?php $_incl = $this->getShippingPrice($_address, $_rate->getPrice(), true); ?>
64
+ <?php echo $_excl; ?>
65
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
66
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
67
+ <?php endif; ?>
68
+ </label>
69
+ <?php endif ?>
70
+ </li>
71
+ <?php endforeach; ?>
72
+ </ul>
73
+ </dd>
74
+ <?php endforeach; ?>
75
+ </dl>
76
+ <?php endif; ?>
77
+ </div>
78
+ <div class="col-2 wide">
79
+ <?php echo $this->helper('giftmessage/message')->getInline('multishipping_adress_checkbox', $_address); ?>
80
+ <h4><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getItemsEditUrl($_address) ?>"><?php echo $this->__('Edit Items') ?></a></h4>
81
+ <table class="data-table" id="shipping-table-<?php echo $_address->getId() ?>">
82
+ <col />
83
+ <col width="1" />
84
+ <thead>
85
+ <tr>
86
+ <th><?php echo $this->__('Product Name') ?></th>
87
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
88
+ </tr>
89
+ </thead>
90
+ <tbody>
91
+ <?php foreach ($this->getAddressItems($_address) as $_item): ?>
92
+ <tr>
93
+ <td>
94
+ <?php echo $this->getItemHtml($_item->getQuoteItem()) ?>
95
+ </td>
96
+ <td class="a-center"><?php echo $_item->getQty() ?></td>
97
+ </tr>
98
+ <?php endforeach; ?>
99
+ </tbody>
100
+ </table>
101
+ <script type="text/javascript">decorateTable('shipping-table-<?php echo $_address->getId() ?>')</script>
102
+ <?php echo $this->helper('giftmessage/message')->getInline('multishipping_adress', $_address); ?>
103
+ </div>
104
+ </div>
105
+ <?php endforeach; ?>
106
+ <?php echo $this->getChildHtml('checkout_billing_items') ?>
107
+ <div class="buttons-set">
108
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to Select Addresses') ?></a>
109
+ <button class="button" type="submit"><span><?php echo $this->__('Continue to Billing Information') ?></span></button>
110
+ </div>
111
+ </fieldset>
112
+ </form>
app/design/frontend/default/blank/template/checkout/multishipping/state.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_blank
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
28
+ /**
29
+ * Mustishipping state
30
+ *
31
+ * @see Mage_Checkout_Block_Multishipping_State
32
+ */
33
+ ?>
34
+ <ul class="checkout-progress">
35
+ <?php foreach ($this->getSteps() as $_step): ?>
36
+ <li<?php if($_step->getIsActive()): ?> class="active"<?php endif; ?>><?php echo $_step->getLabel() ?></li>
37
+ <?php endforeach; ?>
38
+ </ul>
app/design/frontend/default/blank/template/checkout/multishipping/success.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Order Success') ?></h2>
29
+ </div>
30
+ <p><strong><?php echo $this->__('Thank you for your purchase!') ?></strong></p>
31
+ <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>
32
+ <?php if($_orderIds = $this->getOrderIds()): ?>
33
+ <?php $flag = false ?>
34
+ <?php echo $this->__('Your order number is ') ?>
35
+ <?php foreach ($_orderIds as $orderId=>$incrementId): ?>
36
+ <?php if ($flag): ?>
37
+ <?php echo ', ' ?>
38
+ <?php endif; ?>
39
+ <?php $flag = true ?>
40
+ <a href="<?php echo $this->getViewOrderUrl($orderId) ?>"><?php echo $incrementId ?></a>
41
+ <?php endforeach; ?>
42
+ <?php endif; ?>
43
+ <div class="buttons-set">
44
+ <button class="button" onclick="setLocation('<?php echo $this->getContinueUrl() ?>')"><span><?php echo $this->__('Continue Shopping') ?></span></button>
45
+ </div>
app/design/frontend/default/blank/template/checkout/onepage.phtml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Checkout') ?></h2>
29
+ </div>
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
+ <h3><?php echo $_stepInfo['label'] ?></h3>
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
+ </li>
46
+ <?php endforeach ?>
47
+ </ol>
48
+ <script type="text/javascript">
49
+ //<![CDATA[
50
+ var accordion = new Accordion('checkoutSteps', '.step-title', true);
51
+ <?php if($this->getActiveStep()): ?>
52
+ accordion.openSection('opc-<?php echo $this->getActiveStep() ?>');
53
+ <?php endif ?>
54
+ var checkout = new Checkout(accordion,{
55
+ progress: '<?php echo $this->getUrl('checkout/onepage/progress') ?>',
56
+ review: '<?php echo $this->getUrl('checkout/onepage/review') ?>',
57
+ saveMethod: '<?php echo $this->getUrl('checkout/onepage/saveMethod') ?>',
58
+ failure: '<?php echo $this->getUrl('checkout/cart') ?>'}
59
+ );
60
+ //]]>
61
+ </script>
app/design/frontend/default/blank/template/checkout/onepage/agreements.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_blank
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
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" class="checkbox" />
47
+ <label for="agreement-<?php echo $_a->getId()?>"><?php echo $_a->getCheckboxText()?></label>
48
+ </p>
49
+ </li>
50
+ <?php endforeach ?>
51
+ </ol>
52
+ </form>
app/design/frontend/default/blank/template/checkout/onepage/billing.phtml ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <form id="co-billing-form" action="">
28
+ <fieldset class="group-select">
29
+ <ul>
30
+ <?php if ($this->customerHasAddresses()): ?>
31
+ <li>
32
+ <label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label><br />
33
+ <?php echo $this->getAddressesHtmlSelect('billing') ?>
34
+ </li>
35
+ <?php endif; ?>
36
+ <li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
37
+ <fieldset>
38
+ <legend><?php echo $this->__('New Address') ?></legend>
39
+ <input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
40
+ <ul>
41
+ <li><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())
42
+ ->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
43
+ <li>
44
+ <div class="input-box">
45
+ <label for="billing:company"><?php echo $this->__('Company') ?></label><br />
46
+ <input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" /></div>
47
+ <?php if(!$this->isCustomerLoggedIn()): ?>
48
+ <div class="input-box">
49
+ <label for="billing:email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
50
+ <input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" /></div>
51
+ <?php endif ?>
52
+ </li>
53
+ <li><label for="billing:street1"><?php echo $this->__('Address') ?> <span class="required">*</span></label><br />
54
+ <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="input-text required-entry" /></li>
55
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
56
+ <li><input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" /></li>
57
+ <?php endfor ?>
58
+ <li>
59
+ <div class="input-box">
60
+ <label for="billing:city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
61
+ <input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="input-text required-entry" id="billing:city" /></div>
62
+ <div class="input-box">
63
+ <label for="billing:region_id"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
64
+ <select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
65
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
66
+ </select>
67
+ <script type="text/javascript">
68
+ $('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
69
+ </script>
70
+ <input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
71
+ </div>
72
+ </li>
73
+ <li>
74
+ <div class="input-box">
75
+ <label for="billing:postcode"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
76
+ <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="input-text validate-zip-international required-entry" /></div>
77
+ <div class="input-box">
78
+ <label for="billing:country_id"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
79
+ <?php echo $this->getCountryHtmlSelect('billing') ?></div></li>
80
+ <li>
81
+ <div class="input-box">
82
+ <label for="billing:telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
83
+ <input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="billing:telephone" /></div>
84
+ <div class="input-box">
85
+ <label for="billing:fax"><?php echo $this->__('Fax') ?></label><br />
86
+ <input type="text" name="billing[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="billing:fax" /></div></li>
87
+ <?php if(!$this->isCustomerLoggedIn()): ?>
88
+
89
+ <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
90
+ <?php if ($_dob->isEnabled()): ?>
91
+ <li>
92
+ <?php echo $_dob->setDate($this->getQuote()->getCustomerDob())
93
+ ->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
94
+ </li>
95
+ <?php endif; ?>
96
+
97
+ <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
98
+ <?php if ($_taxvat->isEnabled()): ?>
99
+ <li>
100
+ <?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())
101
+ ->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
102
+ </li>
103
+ <?php endif ?>
104
+
105
+ <li id="register-customer-password">
106
+ <div class="input-box">
107
+ <label for="billing:customer_password"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br />
108
+ <input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" /></div>
109
+ <div class="input-box">
110
+ <label for="billing:confirm_password"><?php echo $this->__('Confirm Password') ?> <span class="required">*</span></label><br />
111
+ <input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="input-text required-entry validate-password" />
112
+ </div>
113
+ </li>
114
+ <?php endif; ?>
115
+ <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
116
+ <li><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="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></li>
117
+ <?php else:?>
118
+ <li><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
119
+ <?php endif; ?>
120
+ </ul>
121
+ </fieldset>
122
+ </li>
123
+ <?php if ($this->canShip()): ?>
124
+ <li>
125
+ <input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1"<?php if ($this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> onclick="$('shipping:same_as_billing').checked = true;" class="radio" /><label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label>
126
+ <input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0"<?php if (!$this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> onclick="$('shipping:same_as_billing').checked = false;" class="radio" /><label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
127
+ </li>
128
+ <?php endif; ?>
129
+ </ul>
130
+ <?php if (!$this->canShip()): ?>
131
+ <input type="hidden" name="billing[use_for_shipping]" value="1" />
132
+ <?php endif; ?>
133
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
134
+ <div class="buttons-set" id="billing-buttons-container">
135
+ <button type="button" class="button" onclick="billing.save()"><span><?php echo $this->__('Continue') ?></span></button>
136
+ <span id="billing-please-wait" class="please-wait" style="display:none;">
137
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
138
+ </span>
139
+ </div>
140
+ </fieldset>
141
+ </form>
142
+ <script type="text/javascript">
143
+ //<![CDATA[
144
+ var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
145
+ var billingForm = new VarienForm('co-billing-form');
146
+
147
+ //billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
148
+ $('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
149
+
150
+ var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', countryRegions);
151
+ //]]>
152
+ </script>
app/design/frontend/default/blank/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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('An error occurred in the process of payment') ?></h2>
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->__('Please <a href="%s">continue shopping</a>.', $this->getContinueShoppingUrl()) ?></p>
app/design/frontend/default/blank/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_blank
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 if ($this->isPossibleOnepageCheckout()):?>
28
+ <li>
29
+ <button type="button" class="button<?php if ($this->isDisabled()):?> disabled<?php endif; ?>"<?php if ($this->isDisabled()):?> disabled="disabled"<?php endif; ?> onclick="window.location='<?php echo $this->getCheckoutUrl() ?>';"><span><?php echo $this->__('Proceed to Checkout') ?></span></button>
30
+ </li>
31
+ <?php endif?>
app/design/frontend/default/blank/template/checkout/onepage/login.phtml ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="col2-set">
28
+ <div class="col-1">
29
+ <h4><?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; ?></h4>
30
+
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>
45
+ <input type="radio" name="checkout_method" id="login:guest" value="guest"<?php if($this->getQuote()->getCheckoutMethod()=='guest'): ?> checked="checked"<?php endif; ?> class="radio" />
46
+ <label for="login:guest"><?php echo $this->__('Checkout as Guest') ?></label>
47
+ </li>
48
+ <?php endif; ?>
49
+ <li>
50
+ <input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()=='register' || !$this->getQuote()->isAllowedGuestCheckout()): ?> checked="checked"<?php endif ?> class="radio" />
51
+ <label for="login:register"><?php echo $this->__('Register') ?></label>
52
+ </li>
53
+ </ul>
54
+ <p><strong><?php echo $this->__('Register and save time!') ?></strong><br />
55
+ <?php echo $this->__('Register with us for future convenience:') ?></p>
56
+ <ul>
57
+ <li><?php echo $this->__('Fast and easy check out') ?></li>
58
+ <li><?php echo $this->__('Easy access to your order history and status') ?></li>
59
+ </ul>
60
+ <?php else: ?>
61
+ <input type="hidden" name="checkout_method" id="login:register" value="register" checked="checked" />
62
+ <?php endif; ?>
63
+ <div class="buttons-set">
64
+ <button class="button" onclick="checkout.setMethod();"><span><?php echo ($this->getQuote()->isAllowedGuestCheckout() ? $this->__('Continue') : $this->__('Register')) ?></span></button>
65
+ </div>
66
+ </div>
67
+ <div class="col-2">
68
+ <h4><?php echo $this->__('Login') ?></h4>
69
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
70
+ <form id="login-form" action="<?php echo $this->getPostAction() ?>" method="post">
71
+ <fieldset>
72
+ <p><strong><?php echo $this->__('Already registered?') ?></strong><br />
73
+ <?php echo $this->__('Please log in below:') ?></p>
74
+ <ul class="form-list">
75
+ <li>
76
+ <div class="input-box">
77
+ <label for="login-email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
78
+ <input type="text" class="input-text required-entry validate-email" id="login-email" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" />
79
+ </div>
80
+ </li>
81
+ <li>
82
+ <div class="input-box">
83
+ <label for="login-password"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br />
84
+ <input type="password" class="input-text required-entry" id="login-password" name="login[password]" />
85
+ </div>
86
+ </li>
87
+ </ul>
88
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
89
+ <div class="buttons-set">
90
+ <a href="<?php echo $this->getUrl('customer/account/forgotpassword') ?>"><?php echo $this->__('Forgot your password?') ?></a>
91
+ <button type="submit" class="button" onclick="loginForm.submit()"><span><?php echo $this->__('Login') ?></span></button>
92
+ </div>
93
+ </fieldset>
94
+ </form>
95
+ </div>
96
+ <script type="text/javascript">
97
+ //<![CDATA[
98
+ var loginForm = new VarienForm('login-form', true);
99
+ $('login-email').observe('keypress', bindLoginPost);
100
+ $('login-password').observe('keypress', bindLoginPost);
101
+ function bindLoginPost(evt){
102
+ if (evt.keyCode == Event.KEY_RETURN) {
103
+ loginForm.submit();
104
+ }
105
+ }
106
+ //]]>
107
+ </script>
108
+ </div>
app/design/frontend/default/blank/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_blank
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
+ <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"><img src="<?php echo $this->getSkinUrl('images/btn_window_close.gif') ?>" alt="<?php echo $this->__('Close') ?>" title="<?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
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
42
+ <div class="buttons-set" id="payment-buttons-container">
43
+ <a href="#" onclick="checkout.back(); return false;" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
44
+ <button type="button" class="button" onclick="payment.save()"><span><?php echo $this->__('Continue') ?></span></button>
45
+ <span id="payment-please-wait" class="please-wait" style="display:none;">
46
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="" 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)-550)+'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/blank/template/checkout/onepage/payment/methods.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_blank
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
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 $_method->getTitle() ?></label>
43
+ </dt>
44
+ <?php if($html = $this->getChildHtml('payment.method.'.$_code)) : ?>
45
+ <dd>
46
+ <?php echo $html; ?>
47
+ </dd>
48
+ <?php endif; ?>
49
+ <?php endforeach; ?>
50
+ </dl>
51
+ <script type="text/javascript">payment.init();</script>
app/design/frontend/default/blank/template/checkout/onepage/progress.phtml ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="block block-progress">
28
+ <div class="block-title">
29
+ <h2><?php echo $this->__('Your Checkout Progress') ?></h2>
30
+ </div>
31
+ <div class="block-content">
32
+ <dl>
33
+ <?php if ($this->getCheckout()->getStepData('billing', 'is_show')): ?>
34
+ <?php if($this->getCheckout()->getStepData('billing', 'complete')): ?>
35
+ <dt class="complete">
36
+ <?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="#billing" onclick="checkout.accordion.openSection('opc-billing'); return false;"><?php echo $this->__('Edit') ?></a>
37
+ </dt>
38
+ <dd class="complete">
39
+ <address><?php echo $this->getBilling()->format('html') ?></address>
40
+ </dd>
41
+ <?php else: ?>
42
+ <dt>
43
+ <?php echo $this->__('Billing Address') ?>
44
+ </dt>
45
+ <?php endif; ?>
46
+ <?php endif; ?>
47
+
48
+ <?php if ($this->getCheckout()->getStepData('shipping', 'is_show')): ?>
49
+ <?php if($this->getCheckout()->getStepData('shipping', 'complete')): ?>
50
+ <dt class="complete">
51
+ <?php echo $this->__('Shipping Address') ?> <span class="separator">|</span> <a href="#payment" onclick="checkout.accordion.openSection('opc-shipping');return false;"><?php echo $this->__('Edit') ?></a>
52
+ </dt>
53
+ <dd class="complete">
54
+ <address><?php echo $this->getShipping()->format('html') ?></address>
55
+ </dd>
56
+ <?php else: ?>
57
+ <dt>
58
+ <?php echo $this->__('Shipping Address') ?>
59
+ </dt>
60
+ <?php endif; ?>
61
+ <?php endif; ?>
62
+
63
+ <?php if ($this->getCheckout()->getStepData('shipping_method', 'is_show')): ?>
64
+ <?php if($this->getCheckout()->getStepData('shipping_method', 'complete')): ?>
65
+ <dt class="complete">
66
+ <?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->__('Edit') ?></a>
67
+ </dt>
68
+ <dd class="complete">
69
+ <?php if ($this->getShippingMethod()): ?>
70
+ <?php echo $this->getShippingDescription() ?>
71
+
72
+ <?php $_excl = $this->getShippingPriceExclTax(); ?>
73
+ <?php $_incl = $this->getShippingPriceInclTax(); ?>
74
+ <?php if ($this->helper('tax')->displayShippingPriceIncludingTax()): ?>
75
+ <?php echo $_incl; ?>
76
+ <?php else: ?>
77
+ <?php echo $_excl; ?>
78
+ <?php endif; ?>
79
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
80
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
81
+ <?php endif; ?>
82
+
83
+ <?php else: ?>
84
+ <?php echo $this->__('Shipping method has not been selected yet') ?>
85
+ <?php endif; ?>
86
+ </dd>
87
+ <?php else: ?>
88
+ <dt>
89
+ <?php echo $this->__('Shipping Method') ?>
90
+ </dt>
91
+ <?php endif; ?>
92
+ <?php endif; ?>
93
+
94
+ <?php if ($this->getCheckout()->getStepData('payment', 'is_show')): ?>
95
+ <?php if($this->getCheckout()->getStepData('payment', 'complete')): ?>
96
+ <dt class="complete">
97
+ <?php echo $this->__('Payment Method') ?> <span class="separator">|</span> <a href="#payment" onclick="checkout.accordion.openSection('opc-payment'); return false;"><?php echo $this->__('Edit') ?></a>
98
+ </dt>
99
+ <dd class="complete">
100
+ <?php echo $this->getPaymentHtml() ?>
101
+ </dd>
102
+ <?php else: ?>
103
+ <dt>
104
+ <?php echo $this->__('Payment Method') ?>
105
+ </dt>
106
+ <?php endif; ?>
107
+ <?php endif; ?>
108
+ </dl>
109
+ </div>
110
+ </div>
app/design/frontend/default/blank/template/checkout/onepage/review.phtml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="order-review" id="checkout-review-load">
28
+ <?php echo $this->getChildHtml('info') ?>
29
+ </div>
30
+ <?php echo $this->getChildHtml('agreements') ?>
31
+ <div class="buttons-set" id="review-buttons-container">
32
+ <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>
33
+ <button type="submit" class="button" onclick="review.save();"><span><?php echo $this->__('Place Order') ?></span></button>
34
+ <span id="review-please-wait" class="please-wait" style="display:none;">
35
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
36
+ </span>
37
+ </div>
38
+ <script type="text/javascript">
39
+ //<![CDATA[
40
+ var review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
41
+ //]]>
42
+ </script>
app/design/frontend/default/blank/template/checkout/onepage/review/info.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_blank
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
+ <table class="data-table" id="checkout-review-table">
28
+ <?php if ($this->helper('tax')->displayCartBothPrices()): $colspan = $rowspan = 2; else: $colspan = $rowspan = 1; endif; ?>
29
+ <col />
30
+ <col width="1" />
31
+ <col width="1" />
32
+ <col width="1" />
33
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
34
+ <col width="1" />
35
+ <col width="1" />
36
+ <?php endif; ?>
37
+ <thead>
38
+ <tr>
39
+ <th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product Name') ?></th>
40
+ <th colspan="<?php echo $colspan ?>" width="10%" class="a-center"><?php echo $this->__('Price') ?></th>
41
+ <th rowspan="<?php echo $rowspan ?>" width="5%"><?php echo $this->__('Qty') ?></th>
42
+ <th colspan="<?php echo $colspan ?>" width="10%" class="a-center"><?php echo $this->__('Subtotal') ?></th>
43
+ </tr>
44
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
45
+ <tr>
46
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
47
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
48
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
49
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
50
+ </tr>
51
+ <?php endif; ?>
52
+ </thead>
53
+ <?php echo $this->getChildHtml('totals'); ?>
54
+ <tbody>
55
+ <?php foreach($this->getItems() as $_item): ?>
56
+ <?php echo $this->getItemHtml($_item)?>
57
+ <?php endforeach ?>
58
+ </tbody>
59
+ </table>
60
+ <script type="text/javascript">
61
+ //<![CDATA[
62
+ decorateTable('checkout-review-table');
63
+ truncateOptions();
64
+ //]]>
65
+ </script>
app/design/frontend/default/blank/template/checkout/onepage/review/item.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_blank
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 $_item = $this->getItem()?>
28
+ <tr>
29
+ <td><h4 class="product-name"><?php echo $this->htmlEscape($this->getProductName()) ?></h4>
30
+ <?php if ($_options = $this->getOptionList()):?>
31
+ <dl class="item-options">
32
+ <?php foreach ($_options as $_option) : ?>
33
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option['value']) ?>
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
+ </td>
49
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
50
+ <td class="a-right"><?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?></td>
51
+ <?php endif; ?>
52
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
53
+ <td><?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?></td>
54
+ <?php endif; ?>
55
+ <td class="a-center"><?php echo $_item->getQty() ?></td>
56
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
57
+ <td class="a-right"><?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?></td>
58
+ <?php endif; ?>
59
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
60
+ <td><?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?></td>
61
+ <?php endif; ?>
62
+ </tr>
app/design/frontend/default/blank/template/checkout/onepage/review/totals.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_blank
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 if ($this->getTotals()): ?>
28
+ <tfoot>
29
+ <?php $_colspan = $this->helper('tax')->displayCartBothPrices() ? 5 : 3; ?>
30
+ <?php echo $this->renderTotals(null, $_colspan); ?>
31
+ <?php echo $this->renderTotals('footer', $_colspan); ?>
32
+ </tfoot>
33
+ <?php endif; ?>
app/design/frontend/default/blank/template/checkout/onepage/shipping.phtml ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <form action="" id="co-shipping-form">
28
+ <fieldset class="group-select">
29
+ <ul>
30
+ <?php if ($this->customerHasAddresses()): ?>
31
+ <li>
32
+ <label for="shipping-address-select"><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></label><br />
33
+ <?php echo $this->getAddressesHtmlSelect('shipping') ?>
34
+ </li>
35
+ <?php endif ?>
36
+ <li id="shipping-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif ?>>
37
+ <fieldset>
38
+ <input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
39
+ <ul>
40
+ <li><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())
41
+ ->setFieldIdFormat('shipping:%s')->setFieldNameFormat('shipping[%s]')->setFieldParams('onchange="shipping.setSameAsBilling(false)"')->toHtml() ?></li>
42
+ <li><div class="input-box">
43
+ <label for="shipping:company"><?php echo $this->__('Company') ?></label><br />
44
+ <input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" onchange="shipping.setSameAsBilling(false);" /></div>
45
+ <?php if(false): ?>
46
+ <div class="input-box">
47
+ <label for="shipping:email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
48
+ <input type="text" name="shipping[email]" id="shipping:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" /></div>
49
+ <?php endif ?>
50
+ </li>
51
+ <li><label for="shipping:street1"><?php echo $this->__('Address') ?> <span class="required">*</span></label><br />
52
+ <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="input-text required-entry" onchange="shipping.setSameAsBilling(false);" /></li>
53
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
54
+ <li><input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="shipping[street][]" id="shipping:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" onchange="shipping.setSameAsBilling(false);" /></li>
55
+ <?php endfor ?>
56
+ <li><div class="input-box">
57
+ <label for="shipping:city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
58
+ <input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="input-text required-entry" id="shipping:city" onchange="shipping.setSameAsBilling(false);" /></div>
59
+ <div class="input-box">
60
+ <label for="shipping:region"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
61
+ <select id="shipping:region_id" name="shipping[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
62
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
63
+ </select>
64
+ <script type="text/javascript">
65
+ $('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
66
+ </script>
67
+ <input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" /></div></li>
68
+ <li><div class="input-box">
69
+ <label for="shipping:postcode"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
70
+ <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="input-text validate-zip-international required-entry" onchange="shipping.setSameAsBilling(false);" /></div>
71
+ <div class="input-box">
72
+ <label for="shipping:country_id"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
73
+ <?php echo $this->getCountryHtmlSelect('shipping') ?>
74
+ </div></li>
75
+ <li><div class="input-box">
76
+ <label for="shipping:telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
77
+ <input type="text" name="shipping[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" /></div>
78
+ <div class="input-box">
79
+ <label for="shipping:fax"><?php echo $this->__('Fax') ?></label><br />
80
+ <input type="text" name="shipping[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" /></div></li>
81
+ <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
82
+ <li><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" /> <label for="shipping:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
83
+ <?php else:?>
84
+ <li class="no-display"><input type="hidden" name="shipping[save_in_address_book]" value="1" /></li>
85
+ <?php endif;?>
86
+ <li><input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getAddress()->getSameAsBilling()): ?> checked="checked"<?php endif; ?> onclick="shipping.setSameAsBilling(this.checked)" class="checkbox" /> <label for="shipping:same_as_billing"><?php echo $this->__('Use Billing Address') ?></label></li>
87
+ </ul>
88
+ </fieldset>
89
+ </li>
90
+ </ul>
91
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
92
+ <div class="buttons-set" id="shipping-buttons-container">
93
+ <a href="#" onclick="checkout.back(); return false;" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
94
+ <button type="button" class="button" onclick="shipping.save()"><span><?php echo $this->__('Continue') ?></span></button>
95
+ <span id="shipping-please-wait" class="please-wait" style="display:none;">
96
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
97
+ </span>
98
+ </div>
99
+ </fieldset>
100
+ </form>
101
+ <script type="text/javascript">
102
+ //<![CDATA[
103
+ var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveShipping') ?>',
104
+ '<?php echo $this->getUrl('checkout/onepage/shippingMethod') ?>');
105
+ var shippingForm = new VarienForm('co-shipping-form');
106
+ shippingForm.extraChildParams = ' onchange="shipping.setSameAsBilling(false);"';
107
+ //shippingForm.setElementsRelation('shipping:country_id', 'shipping:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
108
+ $('shipping-address-select') && shipping.newAddress(!$('shipping-address-select').value);
109
+
110
+ var shippingRegionUpdater = new RegionUpdater('shipping:country_id', 'shipping:region', 'shipping:region_id', countryRegions);
111
+ //]]>
112
+ </script>
app/design/frontend/default/blank/template/checkout/onepage/shipping_method.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_blank
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
+ <form id="co-shipping-method-form" action="">
28
+ <fieldset>
29
+ <div id="checkout-shipping-method-load">
30
+ <?php echo $this->getChildHtml('available') ?>
31
+ </div>
32
+ <script type="text/javascript">
33
+ //<![CDATA[
34
+ var shippingMethod = new ShippingMethod('co-shipping-method-form', "<?php echo $this->getUrl('checkout/onepage/saveShippingMethod') ?>");
35
+ //]]>
36
+ </script>
37
+ <div id="onepage-checkout-shipping-method-additional-load">
38
+ <?php echo $this->getChildHtml('additional') ?>
39
+ </div>
40
+ <div class="buttons-set" id="shipping-method-buttons-container">
41
+ <a href="#" onclick="checkout.back(); return false;" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
42
+ <button type="button" class="button" onclick="shippingMethod.save()"><span><?php echo $this->__('Continue') ?></span></button>
43
+ <span id="shipping-method-please-wait" class="please-wait" style="display:none;">
44
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
45
+ </span>
46
+ </div>
47
+ </fieldset>
48
+ </form>
app/design/frontend/default/blank/template/checkout/onepage/shipping_method/additional.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_blank
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 echo $this->helper('giftmessage/message')->getInline('onepage_checkout', $this->getQuote(), $this->getDontDisplayContainer()) ?>
app/design/frontend/default/blank/template/checkout/onepage/shipping_method/available.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_blank
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 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 foreach ($_shippingRateGroups as $code => $_rates): ?>
32
+ <dt><?php echo $this->getCarrierName($code) ?></dt>
33
+ <dd>
34
+ <ul>
35
+ <?php foreach ($_rates as $_rate): ?>
36
+ <li>
37
+ <?php if ($_rate->getErrorMessage()): ?>
38
+ <ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
39
+ <?php else: ?>
40
+ <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" />
41
+ <label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
42
+ <?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
43
+ <?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
44
+ <?php echo $_excl; ?>
45
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
46
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
47
+ <?php endif; ?>
48
+ </label>
49
+ <?php endif ?>
50
+ </li>
51
+ <?php endforeach; ?>
52
+ </ul>
53
+ </dd>
54
+ <?php endforeach; ?>
55
+ </dl>
56
+ <?php endif; ?>
app/design/frontend/default/blank/template/checkout/success.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Your order has been received') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <h3><?php echo $this->__('Thank you for your purchase!') ?></h3>
32
+ <?php if ($this->canPrint()) :?>
33
+ <p><?php echo $this->__('Your order # is: <a href="%s">%s</a>', $this->getViewOrderUrl(), $this->getOrderId()) ?>.</p>
34
+ <?php else :?>
35
+ <p><?php echo $this->__('Your order # is: %s', $this->getOrderId()) ?>.</p>
36
+ <?php endif;?>
37
+ <p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p>
38
+ <?php if ($this->canPrint()) :?>
39
+ <p><?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?></p>
40
+ <?php endif;?>
41
+ <div class="buttons-set">
42
+ <button type="button" class="button" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><?php echo $this->__('Continue Shopping') ?></span></button>
43
+ </div>
app/design/frontend/default/blank/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_blank
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
+ <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/blank/template/checkout/total/tax.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_blank
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 global $taxIter; $taxIter++; ?>
28
+ <?php if ($this->helper('tax')->displayFullSummary()): ?>
29
+ <?php $isTop = 1; ?>
30
+ <?php foreach ($this->getTotal()->getFullInfo() as $info): ?>
31
+ <?php $percent = $info['percent']; ?>
32
+ <?php $amount = $info['amount']; ?>
33
+ <?php $rates = $info['rates']; ?>
34
+ <?php $isFirst = 1; ?>
35
+
36
+ <?php foreach ($rates as $rate): ?>
37
+ <tr class="tax-details-<?php echo $taxIter; ?> tax-details<?php if ($isTop): echo ' tax-details-first'; endif; ?>" style="display:none;">
38
+ <td class="a-right" style="<?php echo $this->getTotal()->getStyle() ?>" colspan="<?php echo $this->getColspan(); ?>">
39
+ <?php echo $rate['title']; ?> - <?php echo $rate['percent']; ?>%<br />
40
+ </td>
41
+ <?php if ($isFirst): ?>
42
+ <td rowspan="<?php echo count($rates); ?>" class="a-right" style="<?php echo $this->getTotal()->getStyle() ?>">
43
+ <?php echo $this->helper('checkout')->formatPrice($amount); ?>
44
+ </td>
45
+ <?php endif; ?>
46
+ </tr>
47
+ <?php $isFirst = 0; ?>
48
+ <?php $isTop = 0; ?>
49
+ <?php endforeach; ?>
50
+ <?php endforeach; ?>
51
+ <?php endif;?>
52
+ <tr<?php if ($this->helper('tax')->displayFullSummary()): ?> class="tax-total" onclick="expandDetails(this, '.tax-details-<?php echo $taxIter;?>')"<?php endif; ?>>
53
+ <td class="a-right" colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotal()->getStyle() ?>">
54
+ <?php if ($this->helper('tax')->displayFullSummary()): ?>
55
+ <div class="tax-collapse"><?php echo $this->getTotal()->getTitle() ?></div>
56
+ <?php else: ?>
57
+ <?php echo $this->getTotal()->getTitle() ?>
58
+ <?php endif;?>
59
+ </td>
60
+ <td class="a-right" style="<?php echo $this->getTotal()->getStyle() ?>">
61
+ <strong><?php echo $this->helper('checkout')->formatPrice($this->getTotal()->getValue()) ?></strong>
62
+ </td>
63
+ </tr>
app/design/frontend/default/blank/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_blank
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 echo $pageData->getPageContent(); ?>
app/design/frontend/default/blank/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_blank
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
+ There was no Home CMS page configured or found.
app/design/frontend/default/blank/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_blank
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
+ There was no 404 CMS page configured or found.
app/design/frontend/default/blank/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_blank
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 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/blank/template/contacts/form.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_blank
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
+ <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
28
+ <div class="page-title">
29
+ <h2><?php echo Mage::helper('contacts')->__('Contact Us') ?></h2>
30
+ </div>
31
+ <form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
32
+ <fieldset class="group-select">
33
+ <h3 class="legend"><?php echo Mage::helper('contacts')->__('Contact Information') ?></h3>
34
+ <ul>
35
+ <li>
36
+ <div class="input-box">
37
+ <label for="name"><?php echo Mage::helper('contacts')->__('Name') ?> <span class="required">*</span></label><br />
38
+ <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" />
39
+ </div>
40
+
41
+ <div class="input-box">
42
+ <label for="email"><?php echo Mage::helper('contacts')->__('Email') ?> <span class="required">*</span></label><br />
43
+ <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" />
44
+ </div>
45
+ </li>
46
+ <li>
47
+ <div class="input-box">
48
+ <label for="telephone"><?php echo Mage::helper('contacts')->__('Telephone') ?></label><br />
49
+ <input name="telephone" id="telephone" title="<?php echo Mage::helper('contacts')->__('Telephone') ?>" value="" class="input-text" type="text" />
50
+ </div>
51
+ </li>
52
+ <li>
53
+ <label for="comment"><?php echo Mage::helper('contacts')->__('Comment') ?></label><br />
54
+ <textarea name="comment" id="comment" title="<?php echo Mage::helper('contacts')->__('Comment') ?>" class="input-text" style="height:150px;" cols="5" rows="3"></textarea>
55
+ </li>
56
+ </ul>
57
+ </fieldset>
58
+ <p class="required"><?php echo Mage::helper('contacts')->__('* Required Fields') ?></p>
59
+ <div class="buttons-set">
60
+ <button type="submit" class="button"><span><?php echo Mage::helper('contacts')->__('Submit') ?></span></button>
61
+ </div>
62
+ </form>
63
+ <script type="text/javascript">
64
+ //<![CDATA[
65
+ var contactForm = new VarienForm('contactForm', true);
66
+ //]]>
67
+ </script>
app/design/frontend/default/blank/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_blank
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 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/blank/template/customer/account/dashboard.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('My Dashboard') ?></h2>
29
+ </div>
30
+ <div class="dashboard">
31
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
32
+ <?php echo $this->getChildHtml('hello') ?>
33
+ <?php echo $this->getChildHtml('top') ?>
34
+ <h3><?php echo $this->__('Account Information') ?></h3>
35
+ <?php echo $this->getChildHtml('info') ?>
36
+ <?php echo $this->getChildHtml('address') ?>
37
+ <?php echo $this->getChildHtml('info1') ?>
38
+ <?php echo $this->getChildHtml('info2') ?>
39
+ </div>
app/design/frontend/default/blank/template/customer/account/dashboard/address.phtml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="col2-set">
28
+ <h4><?php echo $this->__('Address Book') ?></h4>
29
+ <a href="<?php echo $this->getAddressBookUrl() ?>"><?php echo $this->__('Manage Addresses') ?></a>
30
+ <div class="col-1">
31
+ <h5><?php echo $this->__('Primary Billing Address') ?></h5>
32
+ <address>
33
+ <?php echo $this->getPrimaryBillingAddressHtml() ?><br />
34
+ <a href="<?php echo $this->getPrimaryBillingAddressEditUrl() ?>"><?php echo $this->__('Edit Address') ?></a>
35
+ </address>
36
+ </div>
37
+ <div class="col-2">
38
+ <h5><?php echo $this->__('Primary Shipping Address') ?></h5>
39
+ <address>
40
+ <?php echo $this->getPrimaryShippingAddressHtml() ?><br />
41
+ <a href="<?php echo $this->getPrimaryShippingAddressEditUrl() ?>"><?php echo $this->__('Edit Address') ?></a>
42
+ </address>
43
+ </div>
44
+ </div>
app/design/frontend/default/blank/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_blank
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
+ <div class="welcome-msg">
28
+ <h3><?php echo $this->__('Hello, %s!', $this->htmlEscape($this->getCustomerName())) ?></h3>
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/blank/template/customer/account/dashboard/info.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_blank
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
+ <div class="col2-set">
28
+ <div class="col-1">
29
+ <h4><?php echo $this->__('Contact Information') ?></h4>
30
+ <a href="<?php echo $this->getUrl('customer/account/edit') ?>"><?php echo $this->__('Edit') ?></a>
31
+ <p>
32
+ <?php echo $this->htmlEscape($this->getCustomer()->getName()) ?><br />
33
+ <?php echo $this->htmlEscape($this->getCustomer()->getEmail()) ?><br />
34
+ <a href="<?php echo $this->getChangePasswordUrl() ?>"><?php echo $this->__('Change Password') ?></a>
35
+ </p>
36
+ </div>
37
+ <?php if( $this->isNewsletterEnabled() ): ?>
38
+ <div class="col-2">
39
+ <h4><?php echo $this->__('Newsletters') ?></h4>
40
+ <a href="<?php echo $this->getUrl('newsletter/manage') ?>"><?php echo $this->__('Edit') ?></a>
41
+ <p>
42
+ <?php if( $this->getIsSubscribed() ): ?>
43
+ <?php echo $this->__("You are currently subscribed to 'General Subscription'.") ?>
44
+ <?php else: ?>
45
+ <?php echo $this->__('You are currently not subscribed to any newsletter.') ?>
46
+ <?php endif; ?>
47
+ </p>
48
+ </div>
49
+ <?php endif; ?>
50
+ </div>
app/design/frontend/default/blank/template/customer/account/dashboard/newsletter.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_blank
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
+ <div class="col-2">
28
+ <h4><?php echo $this->__('Newsletters') ?></h4>
29
+ <a href="<?php echo $this->getUrl('newsletter/manage') ?>"><?php echo $this->__('Edit Newsletters') ?></a>
30
+ <p><?php echo $this->__('You are currently subscribed to our newsletter.') ?></p>
31
+ </div>
app/design/frontend/default/blank/template/customer/account/dashboard/sidebar.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ ?>
app/design/frontend/default/blank/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_blank
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
+ <div class="buttons-set">
28
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
29
+ </div>
app/design/frontend/default/blank/template/customer/account/navigation.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_blank
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
+ <div class="block block-account">
28
+ <div class="block-title">
29
+ <h2><?php echo $this->__('My Account'); ?></h2>
30
+ </div>
31
+ <div class="block-content">
32
+ <ul>
33
+ <?php $_links = $this->getLinks(); ?>
34
+ <?php $_index = 1; ?>
35
+ <?php $_count = count($_links); ?>
36
+ <?php foreach ($_links as $_link): ?>
37
+ <?php $_last = ($_index++ >= $_count); ?>
38
+ <?php if ($this->isActive($_link)): ?>
39
+ <li class="current<?php echo ($_last ? ' last' : '') ?>"><span><?php echo $_link->getLabel() ?></span></li>
40
+ <?php else: ?>
41
+ <li<?php echo ($_last ? ' class="last"' : '') ?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a></li>
42
+ <?php endif; ?>
43
+ <?php endforeach; ?>
44
+ </ul>
45
+ </div>
46
+ </div>
app/design/frontend/default/blank/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_blank
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
+ <div class="page-title">
28
+ <h2>Address Book</h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <table width="100%">
32
+ <tr>
33
+ <td style="width:50%;"><h3>Primary</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 primary 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
+ <a href="<?php echo $this->getUrl('customer/account/') ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
85
+ <button type="button" onclick="window.location='<?php echo $this->getUrl('customer/address/form') ?>';" class="button"><span><?php echo $this->__('New Address') ?></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/blank/template/customer/address/book.phtml ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
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
+ <h2><?php echo $this->__('Address Book') ?></h2>
35
+ <button type="button" class="button" onclick="window.location='<?php echo $this->getAddAddressUrl() ?>';"><span><?php echo $this->__('Add New Address') ?></span></button>
36
+ </div>
37
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
38
+ <div class="col2-set">
39
+ <div class="col-1">
40
+ <h3><?php echo $this->__('Default Addresses') ?></h3>
41
+ <ol>
42
+ <?php if($_pAddsses = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?>
43
+ <li>
44
+ <h4><?php echo $this->__('Default Billing Address') ?></h4>
45
+ <address>
46
+ <?php echo $this->getAddressHtml(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?><br />
47
+ <a href="<?php echo $this->getAddressEditUrl(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>"><?php echo $this->__('Change Billing Address') ?></a></address>
48
+ </li>
49
+ <?php elseif($_pAddsses = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping()): ?>
50
+ <li>
51
+ <h4><?php echo $this->__('Default Billing Address') ?></h4>
52
+ <address>
53
+ <?php echo $this->getAddressHtml(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?><br />
54
+ <a href="<?php echo $this->getAddressEditUrl(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>"><?php echo $this->__('Change Billing Address') ?></a>
55
+ </address>
56
+ </li>
57
+ <?php else: ?>
58
+ <li>
59
+ <h4><?php echo $this->__('Default Billing Address') ?></h4>
60
+ <?php echo $this->__('You have no default billing address in your address book.') ?></li>
61
+ <?php endif ?>
62
+ <?php if($_pAddsses = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping()): ?>
63
+ <li>
64
+ <h4><?php echo $this->__('Default Shipping Address') ?></h4>
65
+ <address>
66
+ <?php echo $this->getAddressHtml(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?><br />
67
+ <a href="<?php echo $this->getAddressEditUrl(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>"><?php echo $this->__('Change Shipping Address') ?></a>
68
+ </address>
69
+ </li>
70
+ <?php elseif($_pAddsses = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?>
71
+ <li>
72
+ <h4><?php echo $this->__('Default Shipping Address') ?></h4>
73
+ <address>
74
+ <?php echo $this->getAddressHtml(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?><br />
75
+ <a href="<?php echo $this->getAddressEditUrl(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>"><?php echo $this->__('Change Shipping Address') ?></a>
76
+ </address>
77
+ </li>
78
+ <?php else: ?>
79
+ <li>
80
+ <h4><?php echo $this->__('Default Shipping Address') ?></h4><?php echo $this->__('You have no default shipping address in your address book.') ?>
81
+ </li>
82
+ <?php endif ?>
83
+ </ol>
84
+ </div>
85
+ <div class="col-2">
86
+ <h3><?php echo $this->__('Additional Address Entries') ?></h3>
87
+ <ol>
88
+ <?php if($_pAddsses = $this->getAdditionalAddresses()): ?>
89
+ <?php foreach($_pAddsses as $_address): ?>
90
+ <li>
91
+ <address>
92
+ <?php echo $this->getAddressHtml($_address) ?><br />
93
+ <a href="<?php echo $this->getUrl('customer/address/edit', array('id'=>$_address->getId())) ?>"><?php echo $this->__('Edit Address') ?></a>
94
+ <span class="separator">|</span>
95
+ <a href="#" onclick="return deleteAddress('<?php echo $_address->getId() ?>');"><?php echo $this->__('Delete Address') ?></a>
96
+ </address>
97
+ </li>
98
+ <?php endforeach; ?>
99
+ <?php else: ?>
100
+ <li><?php echo $this->__('You have no additional address entries in your address book.') ?></li>
101
+ <?php endif ?>
102
+ </ol>
103
+ </div>
104
+ </div>
105
+ <div class="buttons-set">
106
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
107
+ </div>
108
+ <script type="text/javascript">
109
+ //<![CDATA[
110
+ function deleteAddress(addressId) {
111
+ if(confirm('<?php echo $this->__('Are you sure you want to delete this address?') ?>')) {
112
+ window.location='<?php echo $this->getDeleteUrl() ?>id/'+addressId;
113
+ }
114
+ return false;
115
+ }
116
+ //]]>
117
+ </script>
app/design/frontend/default/blank/template/customer/address/edit.phtml ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
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
+ <h2><?php echo $this->getTitle() ?></h2>
37
+ </div>
38
+ <?php endif; ?>
39
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
40
+ <form action="<?php echo $this->getSaveUrl() ?>" method="post" id="form-validate">
41
+ <fieldset class="group-select">
42
+ <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
43
+ <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
44
+ <h3 class="legend"><?php echo $this->__('Contact Information') ?></h3>
45
+ <ul>
46
+ <li>
47
+ <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getCustomer())->toHtml() ?>
48
+ </li>
49
+ <li>
50
+ <label for="company"><?php echo $this->__('Company') ?></label><br />
51
+ <input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" class="input-text" />
52
+ </li>
53
+ <li>
54
+ <div class="input-box">
55
+ <label for="telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
56
+ <input type="text" name="telephone" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="telephone" />
57
+ </div>
58
+ <div class="input-box">
59
+ <label for="fax"><?php echo $this->__('Fax') ?></label><br />
60
+ <input type="text" name="fax" id="fax" title="<?php echo $this->__('Fax') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" class="input-text" />
61
+ </div>
62
+ </li>
63
+ </ul>
64
+ </fieldset>
65
+ <fieldset class="group-select">
66
+ <h3 class="legend"><?php echo $this->__('Address') ?></h3>
67
+ <ul>
68
+ <li>
69
+ <label for="street_1"><?php echo $this->__('Street Address') ?> <span class="required">*</span></label><br />
70
+ <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text required-entry" />
71
+ </li>
72
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
73
+ <li>
74
+ <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address '.$_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
75
+ </li>
76
+ <?php endfor ?>
77
+ <li>
78
+ <div class="input-box">
79
+ <label for="city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
80
+ <input type="text" name="city" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text required-entry" id="city" />
81
+ </div>
82
+ <div class="input-box">
83
+ <label for="region_id"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
84
+ <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
85
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
86
+ </select>
87
+ <script type="text/javascript">
88
+ $('region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
89
+ </script>
90
+ <input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
91
+ </div>
92
+ </li>
93
+ <li>
94
+ <div class="input-box">
95
+ <label for="zip"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
96
+ <input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international required-entry" />
97
+ </div>
98
+ <div class="input-box">
99
+ <label for="country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
100
+ <?php echo $this->getCountryHtmlSelect() ?>
101
+ </div>
102
+ </li>
103
+ <li>
104
+ <?php if($this->isDefaultBilling()): ?>
105
+ <strong><?php echo $this->__('Default Billing Address') ?></strong>
106
+ <?php elseif($this->canSetAsDefaultBilling()): ?>
107
+ <input type="checkbox" id="primary_billing" name="default_billing" value="1" class="checkbox" />
108
+ <label for="primary_billing"><?php echo $this->__('Use as my default billing address') ?></label>
109
+ <?php else: ?>
110
+ <input type="hidden" name="default_billing" value="1" />
111
+ <?php endif; ?>
112
+ </li>
113
+ <li>
114
+ <?php if($this->isDefaultShipping()): ?>
115
+ <strong><?php echo $this->__('Default Shipping Address') ?></strong>
116
+ <?php elseif($this->canSetAsDefaultShipping()): ?>
117
+ <input type="checkbox" id="primary_shipping" name="default_shipping" value="1" class="checkbox" />
118
+ <label for="primary_shipping"><?php echo $this->__('Use as my default shipping address') ?></label>
119
+ <?php else: ?>
120
+ <input type="hidden" name="default_shipping" value="1" />
121
+ <?php endif; ?>
122
+ </li>
123
+ </ul>
124
+ </fieldset>
125
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
126
+ <div class="buttons-set">
127
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
128
+ <button type="submit" class="button"><span><?php echo $this->__('Save Address') ?></span></button>
129
+ </div>
130
+ </form>
131
+ <script type="text/javascript">
132
+ var dataForm = new VarienForm('form-validate', true);
133
+ new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
134
+ </script>
app/design/frontend/default/blank/template/customer/balance.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_blank
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 echo $this->getMessagesBlock()->getGroupedHtml() ?>
28
+ <?php echo $this->__('Your account balance is: %s', $customer->getStoreBalance()) ?>
29
+ <div class="buttons-set">
30
+ <a href="<?php echo $this->getUrl('customer/account') ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
31
+ </div>
app/design/frontend/default/blank/template/customer/form/address.phtml ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <script type="text/javascript">countryRegions = <?php echo $this->helper('directory')->getRegionJson() ?></script>
28
+
29
+ <div class="page-title">
30
+ <h2><?php if($data->getAddressId()): ?><?php echo $this->__('Edit Address Entry') ?><?php else: ?><?php echo $this->__('New Address Entry') ?><?php endif ?></h2>
31
+ </div>
32
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
33
+ <form action="<?php echo $action ?>" method="post" id="form-validate">
34
+ <fieldset class="group-select">
35
+ <input type="hidden" name="address_id" value="<?php echo $data->getAddressId() ?>" />
36
+ <input type="hidden" name="customer_id" id="address_id" value="<?php echo $data->getCustomerId() ?>" />
37
+ <h3 class="legend"><?php echo $this->__('Personal Information') ?></h3>
38
+ <ul>
39
+ <li>
40
+ <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($data)->toHtml() ?>
41
+ </li>
42
+ <li>
43
+ <div class="input-box">
44
+ <label for="company"><?php echo $this->__('Company') ?></label><br />
45
+ <input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->htmlEscape($data->getCompany()) ?>" class="input-text" />
46
+ </div>
47
+ </li>
48
+ </ul>
49
+ </fieldset>
50
+ <fieldset class="group-select">
51
+ <h3 class="legend"><?php echo $this->__('Address') ?></h3>
52
+ <ul>
53
+ <li>
54
+ <label for="street_1"><?php echo $this->__('Street Address') ?> <span class="required">*</span></label><br />
55
+ <input type="text" name="street[]" value="<?php echo $this->htmlEscape($data->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text required-entry" />
56
+ </li>
57
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
58
+ <li>
59
+ <input type="text" name="street[]" value="<?php echo $this->htmlEscape($data->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address '.$_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
60
+ </li>
61
+ <?php endfor ?>
62
+ <li>
63
+ <div class="input-box">
64
+ <label for="city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
65
+ <input type="text" name="city" value="<?php echo $this->htmlEscape($data->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text required-entry" id="city" />
66
+ </div>
67
+ <div class="input-box">
68
+ <label for="region_id"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
69
+ <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
70
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
71
+ </select>
72
+ <script type="text/javascript">
73
+ $('region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
74
+ </script>
75
+ <input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text required-entry" style="display:none;" />
76
+ </div>
77
+ </li>
78
+ <li>
79
+ <div class="input-box">
80
+ <label for="zip"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
81
+ <input type="text" name="postcode" value="<?php echo $this->htmlEscape($data->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international required-entry" />
82
+ </div>
83
+ <div class="input-box">
84
+ <label for="country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
85
+ <select name="country_id" id="country" title="<?php echo $this->__('Country') ?>" class="validate-select">
86
+ <?php echo $countries->toHtmlOptions($data->getCountryId()) ?>
87
+ </select>
88
+ </div>
89
+ </li>
90
+ <li>
91
+ <div class="input-box">
92
+ <label for="telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
93
+ <input type="text" name="telephone" value="<?php echo $this->htmlEscape($data->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text" id="telephone" /></div>
94
+ <div class="input-box">
95
+ <label for="fax"><?php echo $this->__('Fax') ?></label><br />
96
+ <input type="text" name="fax" value="<?php echo $this->htmlEscape($data->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="fax" />
97
+ </div>
98
+ </li>
99
+ <?php foreach ($primaryTypes as $code=>$type): ?>
100
+ <li>
101
+ <?php if ($address->isPrimary($type['address_type_id'])): ?>
102
+ <?php echo $this->__("This is My Primary %s Address", ucfirst($type['name'])) ?>
103
+ <?php else: ?>
104
+ <input type="checkbox" id="primary_<?php echo $code ?>" name="primary_types[]" value="<?php echo $type['address_type_id'] ?>" class="checkbox" />
105
+ <label for="primary_<?php echo $code ?>"><?php echo $this->__("Use as My Primary %s Address", ucfirst($type['name'])) ?></label>
106
+ <?php endif ?>
107
+ </li>
108
+ <?php endforeach ?>
109
+ </ul>
110
+ </fieldset>
111
+ <div class="buttons-set">
112
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
113
+ <a href="<?php echo $this->getUrl('customer/address/') ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
114
+ <button class="button" type="submit"><span><?php echo $this->__('Save Address') ?></span></button>
115
+ </div>
116
+ </form>
117
+ <script type="text/javascript">
118
+ //<![CDATA[
119
+ var dataForm = new VarienForm('form-validate', true);
120
+ //dataForm.setElementsRelation('country', 'state', '<?php echo $this->getUrl('directory/json/childRegion') ?>');
121
+ new RegionUpdater('country', 'region', 'region_id', countryRegions);
122
+ //]]>
123
+ </script>
app/design/frontend/default/blank/template/customer/form/changepassword.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_blank
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 echo $this->getMessagesBlock()->getGroupedHtml() ?>
28
+ <form action="<?php echo $action ?>" method="post" id="form-validate">
29
+ <fieldset class="group-select">
30
+ <legend><?php echo $this->__('Change Account Password') ?></legend>
31
+ <ul>
32
+ <li>
33
+ <div class="input-box">
34
+ <label for="current_password"><?php echo $this->__('Current Password') ?> <span class="required">*</span></label><br />
35
+ <input type="password" class="input-text required-entry" name="current_password" id="current_password" />
36
+ </div>
37
+ </li>
38
+ <li>
39
+ <div class="input-box">
40
+ <label for="password"><?php echo $this->__('New Password') ?> <span class="required">*</span></label><br />
41
+ <input type="password" class="input-text required-entry validate-password" name="password" id="password" />
42
+ </div>
43
+ <div class="input-box">
44
+ <label for="confirmation"><?php echo $this->__('Confirm New Password') ?> <span class="required">*</span></label><br />
45
+ <input type="password" class="input-text required-entry validate-cpassword" name="confirmation" id="confirmation" />
46
+ </div>
47
+ </li>
48
+ </ul>
49
+ </fieldset>
50
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
51
+ <div class="buttons-set">
52
+ <a href="<?php echo $this->getUrl('customer/account') ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
53
+ <button type="submit" class="button"><span><?php echo $this->__('Save Password') ?></span></button>
54
+ </div>
55
+ </form>
56
+ <script type="text/javascript">
57
+ //<![CDATA[
58
+ var dataForm = new VarienForm('form-validate');
59
+ //]]>
60
+ </script>
app/design/frontend/default/blank/template/customer/form/confirmation.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_blank
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
+ <div class="page-title">
28
+ <h3><?php echo $this->__('Send confirmation link') ?></h3>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <form action="" method="post" id="form-validate">
32
+ <fieldset>
33
+ <legend><?php echo $this->__('Retrieve your confirmation link here') ?></legend>
34
+ <p><?php echo $this->__('Please enter your email below and we\'ll send you confirmation link for it.') ?></p>
35
+ <ul class="form-list">
36
+ <li>
37
+ <div class="input-box"><label for="email_address"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
38
+ <input type="text" name="email" id="email_address" class="input-text required-entry validate-email" value="<?php echo $this->htmlEscape($this->getEmail()) ?>" /></div></li>
39
+ </ul>
40
+ <div class="buttons-set">
41
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
42
+ <a href="<?php echo $this->helper('customer')->getLoginUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to Login') ?></a>
43
+ <button type="submit" class="button right"><span><?php echo $this->__('Submit') ?></span></button>
44
+ </div>
45
+ </fieldset>
46
+ </form>
47
+ <script type="text/javascript">
48
+ //<![CDATA[
49
+ var dataForm = new VarienForm('form-validate', true);
50
+ //]]>
51
+ </script>
app/design/frontend/default/blank/template/customer/form/edit.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Edit Account Information') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <form action="<?php echo $this->getUrl('customer/account/editPost') ?>" method="post" id="form-validate">
32
+ <fieldset class="group-select">
33
+ <h3 class="legend"><?php echo $this->__('Account Information') ?></h3>
34
+ <ul>
35
+ <li>
36
+ <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getCustomer())->toHtml() ?>
37
+ </li>
38
+ <li>
39
+ <div class="input-box">
40
+ <label for="email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
41
+ <input type="text" name="email" id="email" value="<?php echo $this->htmlEscape($this->getCustomer()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text required-entry validate-email" />
42
+ </div>
43
+ </li>
44
+ <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
45
+ <?php if ($_dob->isEnabled()): ?>
46
+ <li><?php echo $_dob->setDate($this->getCustomer()->getDob())->toHtml() ?></li>
47
+ <?php endif ?>
48
+ <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
49
+ <?php if ($_taxvat->isEnabled()): ?>
50
+ <li><?php echo $_taxvat->setTaxvat($this->getCustomer()->getTaxvat())->toHtml() ?></li>
51
+ <?php endif ?>
52
+ </ul>
53
+ </fieldset>
54
+ <p><input type="checkbox" name="change_password" id="change_password" value="1" onclick="setPasswordForm(this.checked)" title="<?php echo $this->__('Change Password') ?>"<?php if($this->getCustomer()->getChangePassword()==1): ?> checked="checked"<?php endif; ?> class="checkbox" /> <label for="change_password"><?php echo $this->__('Change Password') ?></label></p>
55
+ <fieldset class="group-select" style="display:none;">
56
+ <h3><?php echo $this->__('Change Password') ?></h3>
57
+ <ul>
58
+ <li>
59
+ <div class="input-box">
60
+ <label for="current_password"><?php echo $this->__('Current Password') ?></label><br />
61
+ <input type="password" class="input-text" name="current_password" id="current_password" />
62
+ </div>
63
+ </li>
64
+ <li>
65
+ <div class="input-box">
66
+ <label for="password"><?php echo $this->__('New Password') ?></label><br />
67
+ <input type="password" class="input-text validate-password" name="password" id="password" />
68
+ </div>
69
+ <div class="input-box">
70
+ <label for="confirmation"><?php echo $this->__('Confirm New Password') ?></label><br />
71
+ <input type="password" class="input-text validate-cpassword" name="confirmation" id="confirmation" />
72
+ </div>
73
+ </li>
74
+ </ul>
75
+ </fieldset>
76
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
77
+ <div class="buttons-set">
78
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
79
+ <button type="submit" class="button"><span><?php echo $this->__('Save') ?></span></button>
80
+ </div>
81
+ </form>
82
+ <script type="text/javascript">
83
+ //<![CDATA[
84
+ var dataForm = new VarienForm('form-validate', true);
85
+ function setPasswordForm(arg){
86
+ if(arg){
87
+ $('current_password').up(3).show();
88
+ $('current_password').addClassName('required-entry');
89
+ $('password').addClassName('required-entry');
90
+ $('confirmation').addClassName('required-entry');
91
+
92
+ }else{
93
+ $('current_password').up(3).hide();
94
+ $('current_password').removeClassName('required-entry');
95
+ $('password').removeClassName('required-entry');
96
+ $('confirmation').removeClassName('required-entry');
97
+ }
98
+ }
99
+ <?php if($this->getCustomer()->getChangePassword()): ?>
100
+ setPasswordForm(true);
101
+ <?php endif; ?>
102
+ //]]>
103
+ </script>
app/design/frontend/default/blank/template/customer/form/forgotpassword.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Forgot Your Password?') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <form action="<?php echo $this->getUrl('*/*/forgotpasswordpost') ?>" method="post" id="form-validate">
32
+ <fieldset>
33
+ <legend><?php echo $this->__('Retrieve your password here') ?></legend>
34
+ <p><?php echo $this->__('Please enter your email below and we\'ll send you a new password.') ?></p>
35
+ <ul class="form-list">
36
+ <li>
37
+ <div class="input-box">
38
+ <label for="email_address"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
39
+ <input type="text" name="email" alt="email" id="email_address" class="input-text required-entry validate-email" value="<?php echo $this->htmlEscape($this->getEmailValue()) ?>" />
40
+ </div>
41
+ </li>
42
+ </ul>
43
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
44
+ <div class="buttons-set">
45
+ <a href="<?php echo $this->helper('customer')->getLoginUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to Login') ?></a>
46
+ <button type="submit" class="button"><span><?php echo $this->__('Submit') ?></span></button>
47
+ </div>
48
+ </fieldset>
49
+ </form>
50
+ <script type="text/javascript">
51
+ //<![CDATA[
52
+ var dataForm = new VarienForm('form-validate', true);
53
+ //]]>
54
+ </script>
app/design/frontend/default/blank/template/customer/form/login.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_blank
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
28
+ /**
29
+ * Customer login form template
30
+ *
31
+ * @see Mage_Customer_Block_Form_Login
32
+ */
33
+ ?>
34
+ <div class="page-title">
35
+ <h2><?php echo $this->__('Login or Create an Account') ?></h2>
36
+ </div>
37
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
38
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">
39
+ <fieldset class="col2-set login-page">
40
+ <legend>Login or Create an Account</legend>
41
+ <div class="col-1 new-users">
42
+ <div class="content">
43
+ <h3><?php echo $this->__('New Customers') ?></h3>
44
+ <p><?php echo $this->__('By creating an account with our store, you will be able to move through the checkout process faster, store multiple shipping addresses, view and track your orders in your account and more.') ?></p>
45
+ </div>
46
+ <div class="buttons-set">
47
+ <button type="button" class="button" onclick="window.location='<?php echo $this->getCreateAccountUrl() ?>';"><span><?php echo $this->__('Create an Account') ?></span></button>
48
+ </div>
49
+ </div>
50
+ <div class="col-2 registered-users">
51
+ <div class="content">
52
+ <h3><?php echo $this->__('Registered Customers') ?></h3>
53
+ <p><?php echo $this->__('If you have an account with us, please log in.') ?></p>
54
+ <ul class="form-list">
55
+ <li>
56
+ <label for="email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
57
+ <input name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" id="email" type="text" class="input-text required-entry" title="<?php echo $this->__('Email Address') ?>" />
58
+ </li>
59
+ <li>
60
+ <label for="pass"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br />
61
+ <input name="login[password]" type="password" class="input-text required-entry validate-password" id="pass" title="<?php echo $this->__('Password') ?>" />
62
+ </li>
63
+ </ul>
64
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
65
+ </div>
66
+ <div class="buttons-set">
67
+ <a href="<?php echo $this->getForgotPasswordUrl() ?>" class="f-left"><?php echo $this->__('Forgot Your Password?') ?></a>
68
+ <button class="button" type="submit" name="send" id="send2"><span><?php echo $this->__('Login') ?></span></button>
69
+ </div>
70
+ </div>
71
+ </fieldset>
72
+ </form>
73
+ <script type="text/javascript">
74
+ //<![CDATA[
75
+ var dataForm = new VarienForm('login-form', true);
76
+ //]]>
77
+ </script>
app/design/frontend/default/blank/template/customer/form/mini.login.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_blank
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
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post">
28
+ <fieldset>
29
+ <p><label><?php echo $this->__('Email') ?>:</label> <input name="login[username]" class="input-text" /></p>
30
+ <p><label><?php echo $this->__('Password') ?>:</label> <input name="login[password]" class="input-text" /></p>
31
+ <p><input type="submit" value="<?php echo $this->__('Login') ?>" /></p>
32
+ </fieldset>
33
+ </form>
app/design/frontend/default/blank/template/customer/form/newsletter.phtml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Newsletter Subscription') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <form action="<?php echo $this->getAction() ?>" method="post" id="form-validate">
32
+ <p><input type="checkbox" name="is_subscribed" id="subscription" value="1" title="<?php echo $this->__('General Subscription') ?>"<?php if($this->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox" /> <label for="subscription"><?php echo $this->__('General Subscription') ?></label></p>
33
+ <div class="buttons-set">
34
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
35
+ <button type="submit" class="button"><span><?php echo $this->__('Save') ?></span></button>
36
+ </div>
37
+ </form>
38
+ <script type="text/javascript">
39
+ //<![CDATA[
40
+ var dataForm = new VarienForm('form-validate', true);
41
+ //]]>
42
+ </script>
app/design/frontend/default/blank/template/customer/form/register.phtml ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
28
+ /**
29
+ * Create account form template
30
+ *
31
+ * @see Mage_Customer_Block_Form_Register
32
+ */
33
+ ?>
34
+ <div class="page-title">
35
+ <h2><?php echo $this->__('Create an Account') ?></h2>
36
+ </div>
37
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
38
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate">
39
+ <fieldset class="group-select">
40
+ <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
41
+ <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
42
+ <h3 class="legend"><?php echo $this->__('Personal Information') ?></h3>
43
+ <ul>
44
+ <li>
45
+ <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->toHtml() ?>
46
+ </li>
47
+ <li>
48
+ <div class="input-box">
49
+ <label for="email_address"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
50
+ <input type="text" name="email" id="email_address" value="<?php echo $this->htmlEscape($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
51
+ </div>
52
+ </li>
53
+ <?php if ($this->isNewsletterEnabled()): ?>
54
+ <li>
55
+ <input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" id="is_subscribed"<?php if($this->getFormData()->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox" />
56
+ <label for="is_subscribed"><?php echo $this->__('Sign Up for Newsletter') ?></label>
57
+ </li>
58
+ <?php endif ?>
59
+ <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
60
+ <?php if ($_dob->isEnabled()): ?>
61
+ <li><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></li>
62
+ <?php endif ?>
63
+ <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
64
+ <?php if ($_taxvat->isEnabled()): ?>
65
+ <li><?php echo $_taxvat->setTaxvat($this->getFormData()->getTaxvat())->toHtml() ?></li>
66
+ <?php endif ?>
67
+ </ul>
68
+ </fieldset>
69
+ <?php if($this->getShowAddressFields()): ?>
70
+ <fieldset class="group-select">
71
+ <input type="hidden" name="create_address" value="1" />
72
+ <h3 class="legend"><?php echo $this->__('Address Information') ?></h3>
73
+ <ul>
74
+ <li>
75
+ <div class="input-box">
76
+ <label for="company"><?php echo $this->__('Company') ?></label><br />
77
+ <input type="text" name="company" id="company" value="<?php echo $this->htmlEscape($this->getFormData()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" />
78
+ </div>
79
+ <div class="input-box">
80
+ <label for="telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
81
+ <input type="text" name="telephone" id="telephone" value="<?php echo $this->htmlEscape($this->getFormData()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" />
82
+ </div>
83
+ </li>
84
+ <li>
85
+ <label for="street_1"><?php echo $this->__('Street Address') ?> <span class="required">*</span></label><br />
86
+ <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getFormData()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text required-entry" />
87
+ </li>
88
+ <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
89
+ <li>
90
+ <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getFormData()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address '.$_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
91
+ <?php endfor ?>
92
+ </li>
93
+ <li>
94
+ <div class="input-box">
95
+ <label for="city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
96
+ <input type="text" name="city" value="<?php echo $this->htmlEscape($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text required-entry" id="city" />
97
+ </div>
98
+ <div class="input-box">
99
+ <label for="region_id"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
100
+ <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
101
+ <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
102
+ </select>
103
+ <script type="text/javascript">
104
+ $('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
105
+ </script>
106
+ <input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
107
+ </div>
108
+ </li>
109
+ <li>
110
+ <div class="input-box">
111
+ <label for="zip"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
112
+ <input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getFormData()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international required-entry" />
113
+ </div>
114
+ <div class="input-box">
115
+ <label for="country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
116
+ <?php echo $this->getCountryHtmlSelect() ?>
117
+ </div>
118
+ </li>
119
+ </ul>
120
+ <input type="hidden" name="default_billing" value="1" />
121
+ <input type="hidden" name="default_shipping" value="1" />
122
+ </fieldset>
123
+ <?php endif; ?>
124
+ <fieldset class="group-select">
125
+ <h3 class="legend"><?php echo $this->__('Login Information') ?></h3>
126
+ <ul>
127
+ <li>
128
+ <div class="input-box">
129
+ <label for="password"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br />
130
+ <input type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
131
+ </div>
132
+ <div class="input-box">
133
+ <label for="confirmation"><?php echo $this->__('Confirm Password') ?> <span class="required">*</span></label><br />
134
+ <input type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="input-text required-entry validate-cpassword" />
135
+ </div>
136
+ </li>
137
+ </ul>
138
+ </fieldset>
139
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
140
+ <div class="buttons-set">
141
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
142
+ <button class="button" type="submit"><span><?php echo $this->__('Submit') ?></span></button>
143
+ </div>
144
+ </form>
145
+ <script type="text/javascript">
146
+ //<![CDATA[
147
+ var dataForm = new VarienForm('form-validate', true);
148
+ <?php if($this->getShowAddressFields()): ?>
149
+ new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
150
+ <?php endif; ?>
151
+ //]]>
152
+ </script>
app/design/frontend/default/blank/template/customer/logout.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__("You're now Logged Out") ?></h2>
29
+ </div>
30
+ <p><?php echo $this->__('You have been successfully logged out and will be redirected to our homepage in 5 seconds.') ?></p>
31
+ <script type="text/javascript">
32
+ //<![CDATA[
33
+ setTimeout(function(){ location.href = '<?php echo $this->getUrl() ?>'},5000);
34
+ //]]>
35
+ </script>
app/design/frontend/default/blank/template/customer/order/view.phtml ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Order #%s (%s)', $order->getOrderId(), $order->getStatus()) ?></h2>
29
+ </div>
30
+ <div class="col2-set">
31
+ <div class="col-1">
32
+ <h3><?php echo $this->__('Billing Information') ?></h3>
33
+ <address>
34
+ <?php echo $order->getAddressByType('billing')->format('html') ?>
35
+ </address>
36
+ </div>
37
+ <div class="col-2">
38
+ <h3><?php echo $this->__('Payment Method') ?></h3>
39
+ <?php echo $this->getChildHtml('payment') ?>
40
+ </div>
41
+ </div>
42
+ <div class="col2-set">
43
+ <div class="col-1">
44
+ <h3><?php echo $this->__('Shipping Information') ?></h3>
45
+ <address>
46
+ <?php echo $order->getAddressByType('shipping')->format('html') ?>
47
+ </address>
48
+ </div>
49
+ <div class="col-2">
50
+ <h3><?php echo $this->__('Shipping Method') ?></h3>
51
+ <?php echo $order->getShippingDescription() ?>
52
+ </div>
53
+ </div>
54
+ <?php $_items = $order->getEntitiesByType('item') ?>
55
+ <table class="data-table" id="my-orders-table">
56
+ <thead>
57
+ <tr>
58
+ <th><?php echo $this->__('Items Order') ?></th>
59
+ <th><?php echo $this->__('Qty') ?></th>
60
+ <th><?php echo $this->__('Price') ?></th>
61
+ <th><?php echo $this->__('Ext. Price') ?></th>
62
+ </tr>
63
+ </thead>
64
+ <tfoot>
65
+ <tr>
66
+ <td colspan="4">
67
+ <?php echo $this->__('Grand Total: %s', $order->getGrandTotal()) ?>
68
+ </td>
69
+ </tr>
70
+ </tfoot>
71
+ <tbody>
72
+ <?php foreach($_items as $_item): ?>
73
+ <tr>
74
+ <td><?php echo $this->htmlEscape($_item->getName()) ?></td>
75
+ <td><?php echo $_item->getQty() ?></td>
76
+ <td><?php echo $_item->getPrice() ?></td>
77
+ <td><?php echo $_item->getRowTotal() ?></td>
78
+ </tr>
79
+ <?php endforeach ?>
80
+ </tbody>
81
+ </table>
82
+ <script type="text/javascript">decorateTable('my-orders-table')</script>
83
+ <div class="buttons-set">
84
+ <a href="<?php echo $this->getUrl('customer/order/history') ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
85
+ </div>
app/design/frontend/default/blank/template/customer/orders.phtml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('My Orders') ?></h2>
29
+ </div>
30
+ <?php if($orders->getSize()): ?>
31
+ <table class="data-table" id="my-orders-table" >
32
+ <thead>
33
+ <tr>
34
+ <th><?php echo $this->__('Order #') ?></th>
35
+ <th><?php echo $this->__('Date') ?></th>
36
+ <!--<th class="a-center">Shipped To</th>-->
37
+ <th><?php echo $this->__('Total') ?></th>
38
+ <th><?php echo $this->__('Status') ?></th>
39
+ <th><?php echo $this->__('Details') ?></th>
40
+ </tr>
41
+ </thead>
42
+ <tbody>
43
+ <?php foreach ($orders as $order): ?>
44
+ <tr>
45
+ <td><?php echo $order->getRealOrderId() ?>&nbsp;</td>
46
+ <td><?php echo date("D, j M, Y", strtotime($order->getCreatedAt())) ?>&nbsp;</td>
47
+ <!--<td class="a-center">{$page.orders[io].customer}</td>-->
48
+ <td><?php echo $order->getGrandTotal() ?>&nbsp;</td>
49
+ <td><?php echo $order->getStatus() ?>&nbsp;</td>
50
+ <td><a href="<?php echo $this->getUrl('customer/order/view', array('order'=>$order->getOrderId())) ?>"><?php echo $this->__('View Order') ?></a>&nbsp;</td>
51
+ </tr>
52
+ <?php endforeach ?>
53
+ </tbody>
54
+ </table>
55
+ <script type="text/javascript">decorateTable('my-orders-table')</script>
56
+ <?php else: ?>
57
+ <p><?php echo $this->__('You have placed no orders yet.') ?></p>
58
+ <?php endif ?>
59
+ <div class="buttons-set">
60
+ <a href="<?php echo $this->getUrl('customer/account') ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
61
+ </div>
app/design/frontend/default/blank/template/customer/widget/dob.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_blank
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
+ /**
28
+ USAGE:
29
+
30
+ Simple:
31
+
32
+ <?php echo $this->getLayout()->createBlock('customer/widget_dob')
33
+ ->setDate($this->getCustomer()->getDob())
34
+ ->toHtml() ?>
35
+
36
+ For checkout/onepage/billing.phtml:
37
+
38
+ <?php echo $this->getLayout()->createBlock('customer/widget_dob')
39
+ ->setDate($this->getCustomer()->getDob())
40
+ ->setFieldIdFormat('billing:%s')
41
+ ->setFieldNameFormat('billing[%s]')
42
+ ->toHtml() ?>
43
+
44
+ NOTE: Regarding styles - if we leave it this way, we'll move it to boxes.css
45
+ Alternatively we could calculate widths automatically using block input parameters.
46
+ */
47
+ ?>
48
+ <div class="customer-dob">
49
+ <label for="<?php echo $this->getFieldId('day')?>">
50
+ <?php echo $this->__('Date of Birth') ?>
51
+ <?php if ($this->isRequired()):?><span class="required">*</span><?php endif; ?>
52
+ </label>
53
+
54
+ <div class="input-box dob-day">
55
+ <input type="text" id="<?php echo $this->getFieldId('day')?>" name="<?php echo $this->getFieldName('day')?>" value="<?php echo $this->getDay() ?>" title="<?php echo $this->__('Day') ?>" class="input-text validate-custom" <?php echo $this->getFieldParams() ?> />
56
+ <label for="<?php echo $this->getFieldId('day')?>"><?php echo $this->__('DD') ?></label>
57
+ </div>
58
+
59
+ <div class="input-box dob-month">
60
+ <input type="text" id="<?php echo $this->getFieldId('month')?>" name="<?php echo $this->getFieldName('month')?>" value="<?php echo $this->getMonth() ?>" title="<?php echo $this->__('Month') ?>" class="input-text validate-custom" <?php echo $this->getFieldParams() ?> />
61
+ <label for="<?php echo $this->getFieldId('month')?>"><?php echo $this->__('MM') ?></label>
62
+ </div>
63
+
64
+ <div class="input-box dob-year">
65
+ <input type="text" id="<?php echo $this->getFieldId('year')?>" name="<?php echo $this->getFieldName('year')?>" value="<?php echo $this->getYear() ?>" title="<?php echo $this->__('Year') ?>" class="input-text validate-custom" <?php echo $this->getFieldParams() ?> />
66
+ <label for="<?php echo $this->getFieldId('year')?>"><?php echo $this->__('YYYY') ?></label>
67
+ </div>
68
+
69
+ <div class="dob-full" style="display:none;">
70
+ <input type="hidden" id="<?php echo $this->getFieldId('dob')?>" name="<?php echo $this->getFieldName('dob')?>" />
71
+ </div>
72
+
73
+ <div class="validation-advice" style="opacity: 0.999999; display:none;"></div>
74
+ </div>
75
+ <script type="text/javascript">
76
+ //<![CDATA[
77
+ var customer_dob = new Varien.DOB('.customer-dob', <?php echo $this->isRequired() ? 'true' : 'false' ?>);
78
+ //]]>
79
+ </script>
app/design/frontend/default/blank/template/customer/widget/name.phtml ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ /**
28
+ USAGE:
29
+
30
+ Simple:
31
+
32
+ <?php echo $this->getLayout()->createBlock('customer/widget_name')
33
+ ->setObject($this->getAddress())
34
+ ->toHtml() ?>
35
+
36
+ For checkout/onepage/shipping.phtml:
37
+
38
+ <?php echo $this->getLayout()->createBlock('customer/widget_name')
39
+ ->setObject($this->getAddress())
40
+ ->setFieldIdFormat('shipping:%s')
41
+ ->setFieldNameFormat('shipping[%s]')
42
+ ->setFieldParams('onchange="shipping.setSameAsBilling(false);"')
43
+ ->toHtml() ?>
44
+ */
45
+ ?>
46
+
47
+ <div class="<?php echo $this->getContainerClassName()?>">
48
+ <?php if ($this->showPrefix()): ?>
49
+ <div class="input-box name-prefix">
50
+ <label for="<?php echo $this->getFieldId('prefix')?>">
51
+ <?php echo $this->__('Prefix') ?>
52
+ <?php if ($this->isPrefixRequired()):?><span class="required">*</span><?php endif; ?>
53
+ </label>
54
+ <br />
55
+ <?php if ($this->getPrefixOptions()===false): ?>
56
+ <input type="text" id="<?php echo $this->getFieldId('prefix')?>" name="<?php echo $this->getFieldName('prefix')?>" value="<?php echo $this->htmlEscape($this->getObject()->getPrefix()) ?>" title="<?php echo $this->__('Prefix') ?>" class="input-text <?php if ($this->isPrefixRequired()):?> required-entry<?php endif; ?>" <?php echo $this->getFieldParams() ?> />
57
+ <?php else: ?>
58
+ <select id="<?php echo $this->getFieldId('prefix')?>" name="<?php echo $this->getFieldName('prefix')?>" title="<?php echo $this->__('Prefix') ?>"<?php if ($this->isPrefixRequired()):?> class="required-entry"<?php endif; ?> <?php echo $this->getFieldParams() ?> />
59
+ <?php foreach ($this->getPrefixOptions() as $_option): ?>
60
+ <option value="<?php echo $_option?>"<?php if ($this->getObject()->getPrefix()==$_option):?> selected="selected"<?php endif; ?>><?php echo $this->__($_option)?></option>
61
+ <?php endforeach ?>
62
+ </select>
63
+ <?php endif; ?>
64
+ </div>
65
+ <?php endif; ?>
66
+
67
+ <div class="input-box name-firstname">
68
+ <label for="<?php echo $this->getFieldId('firstname')?>">
69
+ <?php echo $this->__('First Name') ?>
70
+ <span class="required">*</span>
71
+ </label>
72
+ <br />
73
+ <input type="text" id="<?php echo $this->getFieldId('firstname')?>" name="<?php echo $this->getFieldName('firstname')?>" value="<?php echo $this->htmlEscape($this->getObject()->getFirstname()) ?>" title="<?php echo $this->__('First Name') ?>" class="input-text required-entry" <?php echo $this->getFieldParams() ?> />
74
+ </div>
75
+
76
+ <?php if ($this->showMiddlename()): ?>
77
+ <div class="input-box name-middlename">
78
+ <label for="<?php echo $this->getFieldId('middlename')?>">
79
+ <?php echo $this->__('M.I.') ?>
80
+ </label>
81
+ <br />
82
+ <input type="text" id="<?php echo $this->getFieldId('middlename')?>" name="<?php echo $this->getFieldName('middlename')?>" value="<?php echo $this->htmlEscape($this->getObject()->getMiddlename()) ?>" title="<?php echo $this->__('M.I.') ?>" class="input-text" <?php echo $this->getFieldParams() ?> />
83
+ </div>
84
+ <?php endif; ?>
85
+
86
+ <div class="input-box name-lastname">
87
+ <label for="<?php echo $this->getFieldId('lastname')?>">
88
+ <?php echo $this->__('Last Name') ?>
89
+ <span class="required">*</span>
90
+ </label>
91
+ <br />
92
+ <input type="text" id="<?php echo $this->getFieldId('lastname')?>" name="<?php echo $this->getFieldName('lastname')?>" value="<?php echo $this->htmlEscape($this->getObject()->getLastname()) ?>" title="<?php echo $this->__('Last Name') ?>" class="input-text required-entry" <?php echo $this->getFieldParams() ?> />
93
+ </div>
94
+
95
+ <?php if ($this->showSuffix()): ?>
96
+ <div class="input-box name-suffix">
97
+ <label for="<?php echo $this->getFieldId('suffix')?>">
98
+ <?php echo $this->__('Suffix') ?>
99
+ <?php if ($this->isSuffixRequired()):?><span class="required">*</span><?php endif; ?>
100
+ </label>
101
+ <br />
102
+ <?php if ($this->getSuffixOptions()===false): ?>
103
+ <input type="text" id="<?php echo $this->getFieldId('suffix')?>" name="<?php echo $this->getFieldName('suffix')?>" value="<?php echo $this->htmlEscape($this->getObject()->getSuffix()) ?>" title="<?php echo $this->__('Suffix') ?>" class="input-text<?php if ($this->isSuffixRequired()):?> required-entry<?php endif; ?>" <?php echo $this->getFieldParams() ?> />
104
+ <?php else: ?>
105
+ <select id="<?php echo $this->getFieldId('suffix')?>" name="<?php echo $this->getFieldName('suffix')?>" title="<?php echo $this->__('Suffix') ?>"<?php if ($this->isSuffixRequired()):?> class="required-entry"<?php endif; ?> <?php echo $this->getFieldParams() ?> />
106
+ <?php foreach ($this->getSuffixOptions() as $_option): ?>
107
+ <option value="<?php echo $_option?>"<?php if ($this->getObject()->getSuffix()==$_option):?> selected="selected"<?php endif; ?>><?php echo $this->__($_option)?></option>
108
+ <?php endforeach ?>
109
+ </select>
110
+ <?php endif; ?>
111
+ </div>
112
+ <?php endif; ?>
113
+ </div>
app/design/frontend/default/blank/template/customer/widget/taxvat.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_blank
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
+ <div class="input-box taxvat">
28
+ <label for="<?php echo $this->getFieldId('taxvat')?>">
29
+ <?php echo $this->__('Tax/VAT number') ?>
30
+ <?php if ($this->isRequired()):?><span class="required">*</span><?php endif ?>
31
+ </label>
32
+ <input type="text" id="<?php echo $this->getFieldId('taxvat')?>" name="<?php echo $this->getFieldName('taxvat')?>" value="<?php echo $this->htmlEscape($this->getTaxvat()) ?>" class="input-text<?php if ($this->isRequired()):?> required-entry<?php endif; ?>" <?php echo $this->getFieldParams() ?> />
33
+ </div>
app/design/frontend/default/blank/template/customer/wishlist.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Wishlist') ?></h2>
29
+ </div>
30
+ <?php if($wishlist->getSize()): ?>
31
+ <form action="<?php echo $this->getUrl('customer/wishlist/updatePost') ?>" method="post">
32
+ <table class="data-table">
33
+ <col />
34
+ <col width="60" />
35
+ <col width="60" />
36
+ <col width="60" />
37
+ <thead>
38
+ <tr>
39
+ <th><?php echo $this->__('Product') ?></th>
40
+ <th><?php echo $this->__('Status') ?></th>
41
+ <th><?php echo $this->__('To Cart') ?></th>
42
+ <th><?php echo $this->__('Remove') ?></th>
43
+ </tr>
44
+ </thead>
45
+ <?php foreach($wishlist as $item): ?>
46
+ <tr>
47
+ <td>
48
+ <input type="hidden" value="1" name="wishlist[<?php echo $item->getItemId() ?>]" />
49
+ <a href="<?php echo $this->getUrl('catalog/product/view/id/'.$item->getProduct()->getId()) ?>"><?php echo $this->htmlEscape($item->getProduct()->getName()) ?></a>
50
+ </td>
51
+ <td><?php echo $item->getStatus() ?></td>
52
+ <td><input type="checkbox" value="1" name="to_cart[<?php echo $item->getItemId() ?>]" class="checkbox" /></td>
53
+ <td><input type="checkbox" value="1" name="remove[<?php echo $item->getItemId() ?>]" class="checkbox" /></td>
54
+ </tr>
55
+ <?php endforeach ?>
56
+ </table>
57
+ <div class="buttons-set">
58
+ <a href="<?php echo Mage::getBaseUrl() ?>">&laquo; <?php echo $this->__('Continue Shopping') ?></a>
59
+ <input type="submit" value="<?php echo $this->__('Update') ?>" class="input-button" name="do" />
60
+ </div>
61
+ </form>
62
+ <?php else: ?>
63
+ <p><?php echo $this->__('You have placed no products yet.') ?></p>
64
+ <div class="buttons-set">
65
+ <a href="<?php echo $this->getUrl('customer/account') ?>" class="back-link">&laquo; <?php echo $this->__('Back - link to the previously viewed page') ?></a>
66
+ </div>
67
+ <?php endif ?>
app/design/frontend/default/blank/template/directory/currency.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_blank
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
28
+ /**
29
+ * Currency switcher
30
+ *
31
+ * @see Mage_Directory_Block_Currency
32
+ */
33
+ ?>
34
+ <?php if($this->getCurrencyCount()>1): ?>
35
+ <div class="block block-currency">
36
+ <div class="block-title">
37
+ <h2><?php echo $this->__('Select Your Currency') ?></h2>
38
+ </div>
39
+ <div class="block-content">
40
+ <select name="currency" onchange="changeCurrency(this)">
41
+ <?php foreach ($this->getCurrencies() as $_code => $_name): ?>
42
+ <option value="<?php echo $_code ?>"<?php if($_code==$this->getCurrentCurrencyCode()): ?> selected="selected"<?php endif; ?>>
43
+ <?php echo $_name ?> - <?php echo $_code ?>
44
+ </option>
45
+ <?php endforeach; ?>
46
+ </select>
47
+ </div>
48
+ </div>
49
+ <script type="text/javascript">
50
+ //<![CDATA[
51
+ function changeCurrency(sObject){
52
+ if(sObject.value){
53
+ setLocation('<?php echo $this->helper('directory/url')->getSwitchCurrencyUrl() ?>currency/'+sObject.value);
54
+ }
55
+ }
56
+ //]]>
57
+ </script>
58
+ <?php endif; ?>
app/design/frontend/default/blank/template/directory/currency/switch.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Currency') ?></h2>
29
+ </div>
30
+ <p><?php echo $this->__('Your current currency is: %s', $currency->getCode()) ?></p>
31
+ <p><a href="<?php echo Mage::getBaseUrl() ?>"><?php echo $this->__('Continue &raquo;') ?></a></p>
app/design/frontend/default/blank/template/email/order/creditmemo/items.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_blank
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 $_creditmemo = $this->getCreditmemo() ?>
28
+ <?php $_order = $this->getOrder() ?>
29
+ <?php if ($_creditmemo && $_order): ?>
30
+ <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7; background:#f8f7f5;">
31
+ <thead>
32
+ <tr>
33
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Item') ?></th>
34
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Sku') ?></th>
35
+ <th align="center" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Qty') ?></th>
36
+ <th align="right" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Subtotal') ?></th>
37
+ </tr>
38
+ </thead>
39
+
40
+ <?php $i=0; foreach ($_creditmemo->getAllItems() as $_item): ?>
41
+ <?php if($_item->getOrderItem()->getParentItem()) continue; else $i++; ?>
42
+ <tbody<?php echo $i%2 ? ' bgcolor="#eeeded"' : '' ?>>
43
+ <?php echo $this->getItemHtml($_item) ?>
44
+ </tbody>
45
+ <?php endforeach; ?>
46
+
47
+ <tfoot>
48
+ <tr>
49
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Subtotal') ?></td>
50
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_creditmemo->getSubtotal()) ?></td>
51
+ </tr>
52
+ <?php if ($_creditmemo->getDiscountAmount() > 0): ?>
53
+ <tr>
54
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Discount%s', $_order->getCouponCode() ? ' ('.$_order->getCouponCode().')' : '') ?></td>
55
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice(0.00 - $_creditmemo->getDiscountAmount()) ?></td>
56
+ </tr>
57
+ <?php endif; ?>
58
+ <?php if ($_creditmemo->getShippingAmount()): ?>
59
+ <tr>
60
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Shipping & Handling') ?></td>
61
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_creditmemo->getShippingAmount()) ?></td>
62
+ </tr>
63
+ <?php endif; ?>
64
+ <?php if (($_creditmemo->getTaxAmount() > 0)||(Mage::helper('tax')->displayZeroTax())): ?>
65
+ <tr>
66
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Tax') ?></td>
67
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_creditmemo->getTaxAmount()) ?></td>
68
+ </tr>
69
+ <?php endif; ?>
70
+ <?php if ((float) $_creditmemo->getAdjustmentPositive()): ?>
71
+ <tr>
72
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Adjustment Refund') ?></td>
73
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_creditmemo->getAdjustmentPositive()) ?></td>
74
+ </tr>
75
+ <?php endif; ?>
76
+
77
+ <?php if ((float) $_creditmemo->getAdjustmentNegative()): ?>
78
+ <tr>
79
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Adjustment Fee') ?></td>
80
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_creditmemo->getAdjustmentNegative()) ?></td>
81
+ </tr>
82
+ <?php endif; ?>
83
+ <tr bgcolor="#DEE5E8">
84
+ <td colspan="3" align="right" style="padding:3px 9px"><strong><big><?php echo $this->__('Grand Total') ?></big></strong></td>
85
+ <td align="right" style="padding:6px 9px"><strong><big><?php echo $_order->formatPrice($_creditmemo->getGrandTotal()) ?></big></strong></td>
86
+ </tr>
87
+ </tfoot>
88
+ </table>
89
+ <?php endif; ?>
app/design/frontend/default/blank/template/email/order/invoice/items.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_blank
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 $_invoice = $this->getInvoice() ?>
28
+ <?php $_order = $this->getOrder() ?>
29
+ <?php if ($_invoice && $_order): ?>
30
+ <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7; background:#f8f7f5;">
31
+ <thead>
32
+ <tr>
33
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Item') ?></th>
34
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Sku') ?></th>
35
+ <th align="center" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Qty') ?></th>
36
+ <th align="right" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Subtotal') ?></th>
37
+ </tr>
38
+ </thead>
39
+
40
+ <?php $i=0; foreach ($_invoice->getAllItems() as $_item): ?>
41
+ <?php if($_item->getOrderItem()->getParentItem()) continue; else $i++; ?>
42
+ <tbody<?php echo $i%2 ? ' bgcolor="#eeeded"' : '' ?>>
43
+ <?php echo $this->getItemHtml($_item) ?>
44
+ </tbody>
45
+ <?php endforeach; ?>
46
+
47
+ <tfoot>
48
+ <tr>
49
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Subtotal') ?></td>
50
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_invoice->getSubtotal()) ?></td>
51
+ </tr>
52
+ <?php if ($_invoice->getDiscountAmount() > 0): ?>
53
+ <tr>
54
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Discount%s', $_order->getCouponCode() ? ' ('.$_order->getCouponCode().')' : '') ?></td>
55
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice(0.00 - $_invoice->getDiscountAmount()) ?></td>
56
+ </tr>
57
+ <?php endif; ?>
58
+ <?php if ($_invoice->getShippingAmount()): ?>
59
+ <tr>
60
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Shipping & Handling') ?></td>
61
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_invoice->getShippingAmount()) ?></td>
62
+ </tr>
63
+ <?php endif; ?>
64
+ <?php if (($_invoice->getTaxAmount() > 0)||(Mage::helper('tax')->displayZeroTax())): ?>
65
+ <tr>
66
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Tax') ?></td>
67
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_invoice->getTaxAmount()) ?></td>
68
+ </tr>
69
+ <?php endif; ?>
70
+ <tr bgcolor="#DEE5E8">
71
+ <td colspan="3" align="right" style="padding:3px 9px"><strong><big><?php echo $this->__('Grand Total') ?></big></strong></td>
72
+ <td align="right" style="padding:6px 9px"><strong><big><?php echo $_order->formatPrice($_invoice->getGrandTotal()) ?></big></strong></td>
73
+ </tr>
74
+ </tfoot>
75
+ </table>
76
+ <?php endif; ?>
app/design/frontend/default/blank/template/email/order/items.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_blank
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 $_order = $this->getOrder() ?>
28
+ <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7; background:#f8f7f5;">
29
+ <thead>
30
+ <tr>
31
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Item') ?></th>
32
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Sku') ?></th>
33
+ <th align="center" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Qty') ?></th>
34
+ <th align="right" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Subtotal') ?></th>
35
+ </tr>
36
+ </thead>
37
+
38
+ <?php $i=0; foreach ($_order->getAllItems() as $_item): ?>
39
+ <?php if($_item->getParentItem()) continue; else $i++; ?>
40
+ <tbody<?php echo $i%2 ? ' bgcolor="#eeeded"' : '' ?>>
41
+ <?php echo $this->getItemHtml($_item) ?>
42
+ </tbody>
43
+ <?php endforeach; ?>
44
+
45
+ <tfoot>
46
+ <?php if($_order->getGiftMessageId() && $_giftMessage = $this->helper('giftmessage/message')->getGiftMessage($_order->getGiftMessageId())): ?>
47
+ <tr>
48
+ <td colspan="4" align="left" style="padding:3px 9px">
49
+ <strong><?php echo $this->__('Gift Message') ?></strong>
50
+ <br /><?php echo $this->__('From:'); ?> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?>
51
+ <br /><?php echo $this->__('To:'); ?> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?>
52
+ <br /><?php echo $this->__('Message:'); ?><br /> <?php echo $this->htmlEscape($_giftMessage->getMessage()) ?>
53
+ </td>
54
+ </tr>
55
+ <?php endif; ?>
56
+ <tr>
57
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Subtotal') ?></td>
58
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_order->getSubtotal()) ?></td>
59
+ </tr>
60
+ <?php if ($_order->getDiscountAmount() > 0): ?>
61
+ <tr>
62
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Discount '.($_order->getCouponCode()?'('.$_order->getCouponCode().')':'')) ?></td>
63
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice(0.00 - $_order->getDiscountAmount()) ?></td>
64
+ </tr>
65
+ <?php endif; ?>
66
+ <?php if ($_order->getShippingAmount() || $_order->getShippingDescription()): ?>
67
+ <tr>
68
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Shipping & Handling') ?></td>
69
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_order->getShippingAmount()) ?></td>
70
+ </tr>
71
+ <?php endif; ?>
72
+ <?php if (($_order->getTaxAmount() > 0)||(Mage::helper('tax')->displayZeroTax())): ?>
73
+ <tr>
74
+ <td colspan="3" align="right" style="padding:3px 9px"><?php echo $this->__('Tax') ?></td>
75
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_order->getTaxAmount()) ?></td>
76
+ </tr>
77
+ <?php endif; ?>
78
+ <tr bgcolor="#DEE5E8">
79
+ <td colspan="3" align="right" style="padding:3px 9px"><strong><big><?php echo $this->__('Grand Total') ?></big></strong></td>
80
+ <td align="right" style="padding:6px 9px"><strong><big><?php echo $_order->formatPrice($_order->getGrandTotal()) ?></big></strong></td>
81
+ </tr>
82
+ </tfoot>
83
+
84
+ </table>
app/design/frontend/default/blank/template/email/order/items/creditmemo/default.phtml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_item = $this->getItem() ?>
28
+ <tr>
29
+ <td align="left" valign="top" style="padding:3px 9px">
30
+ <strong><?php echo $this->htmlEscape($_item->getName()) ?></strong>
31
+ <?php if ($this->getItemOptions()): ?>
32
+ <dl style="margin:0; padding:0;">
33
+ <?php foreach ($this->getItemOptions() as $option): ?>
34
+ <dt><strong><em><?php echo $option['label'] ?></em></strong></dt>
35
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
36
+ <?php endforeach; ?>
37
+ </dl>
38
+ <?php endif; ?>
39
+ <?php echo $_item->getDescription() ?>
40
+ </td>
41
+ <td align="left" valign="top" style="padding:3px 9px"><?php echo $this->getSku($_item) ?></td>
42
+ <td align="center" valign="top" style="padding:3px 9px"><?php echo $_item->getQty()*1 ?></td>
43
+ <td align="right" valign="top" style="padding:3px 9px">
44
+ <?php if ($this->helper('tax')->displayCartPriceInclTax($_item->getOrder()->getStore())): ?>
45
+ <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxAmount()) ?>
46
+ <?php elseif ($this->helper('tax')->displayCartPriceExclTax($_item->getOrder()->getStore())): ?>
47
+ <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal()) ?>
48
+ <?php else: ?>
49
+ <?php echo Mage::helper('tax')->__('Excl. Tax'); ?>: <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal()) ?><br />
50
+ <?php echo Mage::helper('tax')->__('Incl. Tax'); ?>: <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxAmount()) ?>
51
+ <?php endif; ?>
52
+ </td>
53
+ </tr>
app/design/frontend/default/blank/template/email/order/items/invoice/default.phtml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_item = $this->getItem() ?>
28
+ <tr>
29
+ <td align="left" valign="top" style="padding:3px 9px">
30
+ <strong><?php echo $this->htmlEscape($_item->getName()) ?></strong>
31
+ <?php if ($this->getItemOptions()): ?>
32
+ <dl style="margin:0; padding:0;">
33
+ <?php foreach ($this->getItemOptions() as $option): ?>
34
+ <dt><strong><em><?php echo $option['label'] ?></em></strong></dt>
35
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
36
+ <?php endforeach; ?>
37
+ </dl>
38
+ <?php endif; ?>
39
+ <?php echo $_item->getDescription() ?>
40
+ </td>
41
+ <td align="left" valign="top" style="padding:3px 9px"><?php echo $this->getSku($_item) ?></td>
42
+ <td align="center" valign="top" style="padding:3px 9px"><?php echo $_item->getQty()*1 ?></td>
43
+ <td align="right" valign="top" style="padding:3px 9px">
44
+ <?php if ($this->helper('tax')->displayCartPriceInclTax($_item->getOrder()->getStore())): ?>
45
+ <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxAmount()) ?>
46
+ <?php elseif ($this->helper('tax')->displayCartPriceExclTax($_item->getOrder()->getStore())): ?>
47
+ <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal()) ?>
48
+ <?php else: ?>
49
+ <?php echo Mage::helper('tax')->__('Excl. Tax'); ?>: <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal()) ?><br />
50
+ <?php echo Mage::helper('tax')->__('Incl. Tax'); ?>: <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxAmount()) ?>
51
+ <?php endif; ?>
52
+ </td>
53
+ </tr>
app/design/frontend/default/blank/template/email/order/items/order/default.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_blank
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 $_item = $this->getItem() ?>
28
+ <tr>
29
+ <td align="left" valign="top" style="padding:3px 9px">
30
+ <strong><?php echo $this->htmlEscape($_item->getName()) ?></strong>
31
+ <?php if ($this->getItemOptions()): ?>
32
+ <dl style="margin:0; padding:0;">
33
+ <?php foreach ($this->getItemOptions() as $option): ?>
34
+ <dt><strong><em><?php echo $option['label'] ?></em></strong></dt>
35
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
36
+ <?php endforeach; ?>
37
+ </dl>
38
+ <?php endif; ?>
39
+ <?php echo $_item->getDescription() ?>
40
+ <?php if ($_item->getGiftMessageId() && $_giftMessage = $this->helper('giftmessage/message')->getGiftMessage($_item->getGiftMessageId())): ?>
41
+ <br/><strong><?php echo $this->__('Gift Message') ?></strong>
42
+ <br/><?php echo $this->__('From:'); ?> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?>
43
+ <br/><?php echo $this->__('To:'); ?> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?>
44
+ <br/><?php echo $this->__('Message:'); ?><br/> <?php echo $this->htmlEscape($_giftMessage->getMessage()) ?>
45
+ <?php endif; ?>
46
+ </td>
47
+ <td align="left" valign="top" style="padding:3px 9px"><?php echo $this->getSku($_item) ?></td>
48
+ <td align="center" valign="top" style="padding:3px 9px"><?php echo $_item->getQtyOrdered()*1 ?></td>
49
+ <td align="right" valign="top" style="padding:3px 9px">
50
+ <?php if ($this->helper('tax')->displayCartPriceInclTax($_item->getOrder()->getStore())): ?>
51
+ <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxBeforeDiscount()) ?>
52
+ <?php elseif ($this->helper('tax')->displayCartPriceExclTax($_item->getOrder()->getStore())): ?>
53
+ <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal()) ?>
54
+ <?php else: ?>
55
+ <?php echo Mage::helper('tax')->__('Excl. Tax'); ?>: <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal()) ?><br />
56
+ <?php echo Mage::helper('tax')->__('Incl. Tax'); ?>: <?php echo $_item->getOrder()->formatPrice($_item->getRowTotal() + $_item->getTaxBeforeDiscount()) ?>
57
+ <?php endif; ?>
58
+ </td>
59
+ </tr>
app/design/frontend/default/blank/template/email/order/items/shipment/default.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_blank
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 $_item = $this->getItem() ?>
28
+ <tr>
29
+ <td align="left" valign="top" style="padding:3px 9px">
30
+ <strong><?php echo $this->htmlEscape($_item->getName()) ?></strong>
31
+ <?php if ($this->getItemOptions()): ?>
32
+ <dl style="margin:0; padding:0;">
33
+ <?php foreach ($this->getItemOptions() as $option): ?>
34
+ <dt><strong><em><?php echo $option['label'] ?></em></strong></dt>
35
+ <dd style="margin:0; padding:0 0 0 9px;"><?php echo $option['value'] ?></dd>
36
+ <?php endforeach; ?>
37
+ </dl>
38
+ <?php endif; ?>
39
+ <?php echo $_item->getDescription() ?>
40
+ </td>
41
+ <td align="left" valign="top" style="padding:3px 9px"><?php echo $this->getSku($_item) ?></td>
42
+ <td align="center" valign="top" style="padding:3px 9px"><?php echo $_item->getQty()*1 ?></td>
43
+ </tr>
app/design/frontend/default/blank/template/email/order/shipment/items.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_blank
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 $_shipment = $this->getShipment() ?>
28
+ <?php $_order = $this->getOrder() ?>
29
+ <?php if ($_shipment && $_order): ?>
30
+ <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7; background:#f8f7f5;">
31
+ <thead>
32
+ <tr>
33
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Item') ?></th>
34
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Sku') ?></th>
35
+ <th align="center" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Qty') ?></th>
36
+ </tr>
37
+ </thead>
38
+
39
+ <?php $i=0; foreach ($_shipment->getAllItems() as $_item): ?>
40
+ <?php if($_item->getOrderItem()->getParentItem()) continue; else $i++; ?>
41
+ <tbody<?php echo $i%2 ? ' bgcolor="#eeeded"' : '' ?>>
42
+ <?php echo $this->getItemHtml($_item) ?>
43
+ </tbody>
44
+ <?php endforeach; ?>
45
+
46
+ </table>
47
+ <?php endif; ?>
app/design/frontend/default/blank/template/email/order/shipment/track.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_blank
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 $_shipment=$this->getShipment() ?>
28
+ <?php $_order=$this->getOrder() ?>
29
+ <?php if ($_shipment && $_order && $_shipment->getAllTracks()): ?>
30
+ <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7; background:#f8f7f5;">
31
+ <thead>
32
+ <tr>
33
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Shipped By') ?></th>
34
+ <th align="center" bgcolor="#d9e5ee" style="padding:3px 9px"><?php echo $this->__('Tracking Number') ?></th>
35
+ </tr>
36
+ </thead>
37
+ <tbody>
38
+ <?php $i=0; foreach ($_shipment->getAllTracks() as $_item): $i++ ?>
39
+ <tr <?php echo $i%2?'bgcolor="#eeeded"':'' ?>>
40
+ <td align="left" valign="top" style="padding:3px 9px"><?php echo $_item->getTitle() ?></td>
41
+ <td align="center" valign="top" style="padding:3px 9px"><?php echo $_item->getNumber() ?></td>
42
+ </tr>
43
+ <?php endforeach ?>
44
+ </tbody>
45
+ </table>
46
+ <?php endif; ?>
app/design/frontend/default/blank/template/email/productalert/price.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 default_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 if ($_products = $this->getProducts()): ?>
28
+ <p><?php echo $this->__('You are receiving this notification because you subscribed to receive alerts when the prices for the following products changed:') ?></p>
29
+ <table>
30
+ <?php foreach ($_products as $_product): ?>
31
+ <tr>
32
+ <td><a href="<?php echo $_product->getProductUrl() ?>"><img src="<?php echo $_product->getThumbnailUrl() ?>" border="0" align="left" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" height="75" width="75" /></a></td>
33
+ <td>
34
+ <div><a href="<?php echo $_product->getProductUrl() ?>"><b><?php echo $this->htmlEscape($_product->getName()) ?></b></a></div>
35
+ <?php if ($shortDescription = $_product->getShortDescription()): ?>
36
+ <p><small><?php echo $shortDescription ?></small></p>
37
+ <?php endif; ?>
38
+ <p><b><?php echo $this->__('Price:') ?></b> <?php echo Mage::helper('core')->currency($_product->getPrice()) ?>
39
+ <?php if ($_product->getPrice() != $_product->getFinalPrice()): ?>
40
+ <br /><b><?php echo $this->__('Special price:') ?></b> <font color="red"><?php echo Mage::helper('core')->currency($_product->getFinalPrice()) ?></font>
41
+ <?php endif; ?></p>
42
+ <p><small><a href="<?php echo $this->getProductUnsubscribeUrl($_product->getId()) ?>"><?php echo $this->__('Click here not to receive alerts for this product') ?></a></small></p>
43
+ </td>
44
+ </tr>
45
+ <?php endforeach; ?>
46
+ </table>
47
+ <p><a href="<?php echo $this->getUnsubscribeUrl() ?>"><?php echo $this->__('Unsubscribe from all price alerts') ?></a></p>
48
+ <?php endif; ?>
app/design/frontend/default/blank/template/email/productalert/stock.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 default_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 if ($_products = $this->getProducts()): ?>
28
+ <p><?php echo $this->__('You are receiving this notification because you subscribed to receive alerts when the following products are back in stock:') ?></p>
29
+ <table>
30
+ <?php foreach ($_products as $_product): ?>
31
+ <tr>
32
+ <td width="80"><a href="<?php echo $_product->getProductUrl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(75, 75) ?>" border="0" align="left" height="75" width="75" alt="" /></a></td>
33
+ <td>
34
+ <div><a href="<?php echo $_product->getProductUrl() ?>"><b><?php echo $this->htmlEscape($_product->getName()) ?></b></a></div>
35
+ <?php if ($shortDescription = $_product->getShortDescription()): ?>
36
+ <p><small><?php echo $shortDescription ?></small></p>
37
+ <?php endif; ?>
38
+ <p><b><?php echo $this->__('Price:') ?></b> <?php echo Mage::helper('core')->currency($_product->getPrice()) ?>
39
+ <?php if ($_product->getPrice() != $_product->getFinalPrice()): ?>
40
+ <br /><b><?php echo $this->__('Special price:') ?></b> <font color="red"><?php echo Mage::helper('core')->currency($_product->getFinalPrice()) ?></font>
41
+ <?php endif; ?></p>
42
+ <p><small><a href="<?php echo $this->getProductUnsubscribeUrl($_product->getId()) ?>"><?php echo $this->__('Click here not to receive alerts for this product') ?></a></small></p>
43
+ </td>
44
+ </tr>
45
+ <?php endforeach; ?>
46
+ </table>
47
+ <p><a href="<?php echo $this->getUnsubscribeUrl() ?>"><?php echo $this->__('Unsubscribe from all stock alerts') ?></a></p>
48
+ <?php endif; ?>
app/design/frontend/default/blank/template/giftmessage/form.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_blank
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
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/giftmessage.js') ?>"></script>
28
+ <?php if(!$this->getSaveMode()): ?>
29
+ <div class="page-title">
30
+ <h2><?php echo $this->__('Gift Message') ?></h2>
31
+ </div>
32
+ <form action="<?php echo $this->getSaveUrl() ?>" id="message-form" method="post">
33
+ <ul class="form-list">
34
+ <li>
35
+ <div class="input-box">
36
+ <label for="sender"><?php echo $this->__('From') ?> <span class="required">*</span></label><br />
37
+ <input type="text" name="sender" value="<?php echo $this->getEscaped($this->getMessage()->getSender()) ?>" title="<?php echo $this->__('From') ?>" class="input-text required-entry" />
38
+ </div>
39
+ </li>
40
+ <li>
41
+ <div class="input-box">
42
+ <label for="recipient"><?php echo $this->__('To') ?> <span class="required">*</span></label><br />
43
+ <input type="text" name="recipient" value="<?php echo $this->getEscaped($this->getMessage()->getRecipient()) ?>" title="<?php echo $this->__('To') ?>" class="input-text required-entry" />
44
+ </div>
45
+ </li>
46
+ <li>
47
+ <div class="input-box">
48
+ <label for="email_address"><?php echo $this->__('Message') ?> <span class="required">*</span></label><br />
49
+ <textarea name="messagetext" title="<?php echo $this->__('Message') ?>" class="input-text required-entry" cols="60" rows="5"><?php echo $this->getEscaped($this->getMessage()->getMessage()) ?></textarea>
50
+ </div>
51
+ </li>
52
+ </ul>
53
+ <div class="buttons-set">
54
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
55
+ <button class="button" type="submit" name="send"><span><?php echo $this->__('Save') ?></span></button> &nbsp;
56
+ <button class="button listen-cancel" type="button"><span><?php echo $this->__('Cancel') ?></span></button>
57
+ <?php if($this->getMessage()->getGiftMessageId()): ?>
58
+ <button class="button listen-remove" type="button"><span><?php echo $this->__('Remove') ?></span></button>
59
+ <?php endif; ?>
60
+ </div>
61
+ </form>
62
+ <?php elseif($this->getSaveMode()=='save'): ?>
63
+ <h2><?php echo $this->__('Your gift message has been successfully saved') ?></h2>
64
+ <p><button class="button" type="button" onclick="giftMessageWindowObject.close()"><span><?php echo $this->__('Close') ?></span></button></p>
65
+ <?php else: ?>
66
+ <h2><?php echo $this->__('Your gift message has been successfully removed') ?></h2>
67
+ <p><button class="button" type="button" onclick="giftMessageWindowObject.close()"><span><?php echo $this->__('Close') ?></span></button></p>
68
+ <?php endif; ?>
69
+ <script type="text/javascript">
70
+ //<![CDATA[
71
+ <?php if(!$this->getSaveMode()): ?>
72
+ var giftMessageWindowObject = new GiftMessageWindow('<?php echo $this->getUniqueId() ?>','message-form', '<?php echo $this->getRemoveUrl() ?>');
73
+ giftMessageWindowObject.confirmMessage = '<?php echo $this->getEscapedForJs($this->__('Are you sure?')) ?>';
74
+ <?php else: ?>
75
+ var giftMessageWindowObject = new GiftMessageWindow('<?php echo $this->getUniqueId() ?>', null, '<?php echo $this->getRemoveUrl() ?>');
76
+ Event.observe(window, 'load', function(evt) {
77
+ giftMessageWindowObject.updateParent('<?php echo $this->getEditUrl() ?>', '<?php echo $this->getButtonUrl() ?>');
78
+ });
79
+ <?php endif; ?>
80
+ //]]>
81
+ </script>
app/design/frontend/default/blank/template/giftmessage/helper.phtml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 if(!$this->getScriptIncluded() && $this->getCanDisplayContainer()): ?>
28
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/giftmessage.js') ?>"></script>
29
+ <?php $this->setScriptIncluded(true); ?>
30
+ <?php endif; ?>
31
+ <?php if($this->getCanDisplayContainer()): ?>
32
+ <div id="<?php echo $this->getId() ?>">
33
+ <?php endif; ?>
34
+ <?php switch ($this->getType()): ?>
35
+ <?php case 'item': ?>
36
+ <button class="button listen-for-click" type="button"><span>
37
+ <?php if($this->hasGiftMessage()): ?>
38
+ <?php echo $this->__('Edit') ?>
39
+ <?php else: ?>
40
+ <?php echo $this->__('Add') ?>
41
+ <?php endif; ?>
42
+ </span></button>
43
+ <?php break; ?>
44
+ <?php case 'main': ?>
45
+ <a href="#" class="listen-for-click">
46
+ <?php if($this->hasGiftMessage()): ?>
47
+ <?php echo $this->__('Edit Gift Message') ?>
48
+ <?php else: ?>
49
+ <?php echo $this->__('Add Gift Message') ?>
50
+ <?php endif; ?>
51
+ </a>
52
+ <?php break; ?>
53
+ <?php case 'address': ?>
54
+ <a href="#" class="listen-for-click">
55
+ <?php if($this->hasGiftMessage()): ?>
56
+ <?php echo $this->__('Edit Gift Message') ?>
57
+ <?php else: ?>
58
+ <?php echo $this->__('Add Gift Message') ?>
59
+ <?php endif; ?>
60
+ </a>
61
+ <?php break; ?>
62
+ <?php case 'address_item': ?>
63
+ <button class="button listen-for-click" type="button"><span>
64
+ <?php if($this->hasGiftMessage()): ?>
65
+ <?php echo $this->__('Edit') ?>
66
+ <?php else: ?>
67
+ <?php echo $this->__('Add') ?>
68
+ <?php endif; ?>
69
+ </span></button>
70
+ <?php break; ?>
71
+ <?php endswitch ?>
72
+ <?php if($this->getCanDisplayContainer()): ?>
73
+ </div>
74
+ <script type="text/javascript">
75
+ //<![CDATA[
76
+ var <?php echo $this->getJsObjectName() ?> = new GiftMessage('<?php echo $this->getId() ?>');
77
+ <?php echo $this->getJsObjectName() ?>.url = '<?php echo $this->getEditUrl() ?>';
78
+ //]]>
79
+ </script>
80
+ <?php endif; ?>
app/design/frontend/default/blank/template/giftmessage/inline.phtml ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 if(!$this->getDontDisplayContainer()): ?>
28
+ <script type="text/javascript">
29
+ //<![CDATA[
30
+ if(!window.toogleVisibilityOnObjects) {
31
+ var toogleVisibilityOnObjects = function(source, objects) {
32
+ if($(source) && $(source).checked) {
33
+ objects.each(function(item){
34
+ $(item).show();
35
+ $(item).getElementsByClassName('input-text').each(function(item) {
36
+ item.removeClassName('validation-passed');
37
+ });
38
+ });
39
+
40
+
41
+ } else {
42
+ objects.each(function(item){
43
+ $(item).hide();
44
+ $(item).getElementsBySelector('.input-text').each(function(sitem) {
45
+ sitem.addClassName('validation-passed');
46
+ });
47
+
48
+ $(item).getElementsBySelector('.giftmessage-area').each(function(sitem) {
49
+ sitem.value = '';
50
+ });
51
+ });
52
+
53
+ }
54
+
55
+ }
56
+ }
57
+ if(!window.toogleRequired) {
58
+ var toogleRequired = function (source, objects)
59
+ {
60
+ if(!$(source).value.blank()) {
61
+ objects.each(function(item) {
62
+ $(item).addClassName('required-entry');
63
+ });
64
+ } else {
65
+ objects.each(function(item) {
66
+ if(shippingMethod && shippingMethod.validator) {
67
+ shippingMethod.validator.reset(item);
68
+ }
69
+ $(item).removeClassName('required-entry');
70
+ });
71
+
72
+ }
73
+ }
74
+ }
75
+ if(window.shipping) {
76
+
77
+ shipping.onSave = function(evt){
78
+ new Ajax.Updater('onepage-checkout-shipping-method-additional-load', '<?php echo $this->getAdditionalUrl(); ?>', {onSuccess: function() {
79
+ this.nextStep(evt);
80
+ }.bind(this), evalScripts:true});
81
+ }.bindAsEventListener(shipping);
82
+
83
+ billing.onSave = function(evt){
84
+ new Ajax.Updater('onepage-checkout-shipping-method-additional-load', '<?php echo $this->getAdditionalUrl(); ?>', {onSuccess: function() {
85
+ this.nextStep(evt);
86
+ }.bind(this), evalScripts:true});
87
+ }.bindAsEventListener(billing);
88
+
89
+ }
90
+ //]]>
91
+ </script>
92
+ <?php endif ?>
93
+ <?php switch ($this->getType()): ?>
94
+ <?php case 'onepage_checkout': ?>
95
+ <div class="add-gift-message">
96
+ <h4><?php echo $this->__('Do you have any gift items in your order?'); ?></h4>
97
+ <p>
98
+ <input type="checkbox" name="allow_gift_messages" id="allow_gift_messages" value="1" onclick="toogleVisibilityOnObjects(this, ['allow-gift-message-container']);"<?php if($this->getItemsHasMesssages() || $this->getEntityHasMessage()): ?> checked="checked"<?php endif; ?> class="checkbox" />
99
+ <label for="allow_gift_messages"><?php echo $this->__('Check this checkbox if you want to add gift messages.') ?></label>
100
+ </p>
101
+ </div>
102
+ <div class="gift-message-form" id="allow-gift-message-container">
103
+ <div class="inner-box">
104
+ <?php if (Mage::helper('giftmessage/message')->isMessagesAvailable('quote', $this->getEntity())): ?>
105
+ <h4><?php echo $this->__('Enter a gift message for entire order.'); ?></h4>
106
+ <p><?php echo $this->__('You can leave a box blank if you don\'t wish to add a gift message for whole order.') ?></p>
107
+ <fieldset class="group-select">
108
+ <input type="hidden" name="giftmessage[<?php echo $this->getEntity()->getId() ?>][type]" value="quote" />
109
+ <ul>
110
+ <li>
111
+ <div class="input-box">
112
+ <label for="gift-message-whole-from"><?php echo $this->__('From') ?></label><br />
113
+ <input type="text" name="giftmessage[<?php echo $this->getEntity()->getId() ?>][from]" id="gift-message-whole-from" title="<?php echo $this->__('From') ?>" value="<?php echo $this->getEscaped($this->getMessage()->getSender(), $this->getDefaultFrom()) ?>" class="input-text validation-passed" />
114
+ </div>
115
+ <div class="input-box">
116
+ <label for="gift-message-whole-to"><?php echo $this->__('To') ?></label><br />
117
+ <input type="text" name="giftmessage[<?php echo $this->getEntity()->getId() ?>][to]" id="gift-message-whole-to" title="<?php echo $this->__('To') ?>" value="<?php echo $this->getEscaped($this->getMessage()->getRecipient(), $this->getDefaultTo()) ?>" class="input-text validation-passed" />
118
+ </div>
119
+ </li>
120
+ <li>
121
+ <label for="gift-message-whole-message"><?php echo $this->__('Message') ?></label><br />
122
+ <textarea id="gift-message-whole-message" onchange="toogleRequired('gift-message-whole-message', ['gift-message-whole-from','gift-message-whole-to'])" class="input-text validation-passed giftmessage-area" name="giftmessage[<?php echo $this->getEntity()->getId() ?>][message]" title="<?php echo $this->__('Message') ?>" rows="5" cols="10"><?php echo $this->getEscaped($this->getMessage()->getMessage()) ?></textarea>
123
+ </li>
124
+ </ul>
125
+ <script type="text/javascript">
126
+ //<![CDATA[
127
+ toogleRequired('gift-message-whole-message', ['gift-message-whole-from','gift-message-whole-to']);
128
+ //]]>
129
+ </script>
130
+ </fieldset>
131
+ <?php endif; ?>
132
+ <?php if($this->isItemsAvailable()): ?>
133
+ <h4><?php echo $this->__('Enter a gift message for each item in your order.'); ?></h4>
134
+ <p><?php echo $this->__('You can leave a box blank if you don\'t wish to add a gift message for the item.') ?></p>
135
+ <ol>
136
+ <?php foreach($this->getItems() as $_index=>$_item): ?>
137
+ <?php $_product=$_item->getProduct() ?>
138
+ <li class="gift-item">
139
+ <p class="number"><?php echo $this->__('Item %d of %d', $_index+1, $this->countItems()) ?></p>
140
+ <div class="product-img-box">
141
+ <p class="product-image">
142
+ <img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($_product->getName()) ?>"title="<?php echo $this->htmlEscape($_product->getName()) ?>" />
143
+ </p>
144
+ <h5 class="product-name"><?php echo $this->htmlEscape($_product->getName()) ?></h5>
145
+ </div>
146
+ <fieldset class="group-select">
147
+ <input type="hidden" name="giftmessage[<?php echo $_item->getId() ?>][type]" value="quote_item" />
148
+ <ul>
149
+ <li>
150
+ <div class="input-box">
151
+ <label for="gift-message-<?php echo $_item->getId() ?>-from"><?php echo $this->__('From') ?></label><br />
152
+ <input type="text" name="giftmessage[<?php echo $_item->getId() ?>][from]" id="gift-message-<?php echo $_item->getId() ?>-from" title="<?php echo $this->__('From') ?>" value="<?php echo $this->getEscaped($this->getMessage($_item)->getSender(), $this->getDefaultFrom()) ?>" class="input-text validation-passed" />
153
+ </div>
154
+ <div class="input-box">
155
+ <label for="gift-message-<?php echo $_item->getId() ?>-to"><?php echo $this->__('To') ?></label><br />
156
+ <input type="text" name="giftmessage[<?php echo $_item->getId() ?>][to]" id="gift-message-<?php echo $_item->getId() ?>-to" title="<?php echo $this->__('To') ?>" value="<?php echo $this->getEscaped($this->getMessage($_item)->getRecipient(), $this->getDefaultTo()) ?>" class="input-text validation-passed" />
157
+ </div>
158
+ </li>
159
+ <li>
160
+ <label for="gift-message-<?php echo $_item->getId() ?>-message"><?php echo $this->__('Message') ?></label>
161
+ <br />
162
+ <textarea id="gift-message-<?php echo $_item->getId() ?>-message" onchange="toogleRequired('gift-message-<?php echo $_item->getId() ?>-message', ['gift-message-<?php echo $_item->getId() ?>-from','gift-message-<?php echo $_item->getId() ?>-to'])" class="input-text validation-passed giftmessage-area" name="giftmessage[<?php echo $_item->getId() ?>][message]" title="<?php echo $this->__('Message') ?>" rows="5" cols="40"><?php echo $this->getEscaped($this->getMessage($_item)->getMessage()) ?></textarea>
163
+ </li>
164
+ </ul>
165
+ <script type="text/javascript">
166
+ //<![CDATA[
167
+ toogleRequired('gift-message-<?php echo $_item->getId() ?>-message', ['gift-message-<?php echo $_item->getId() ?>-from','gift-message-<?php echo $_item->getId() ?>-to']);
168
+ //]]>
169
+ </script>
170
+ </fieldset>
171
+ </li>
172
+ <?php endforeach; ?>
173
+ </ol>
174
+ <?php endif; ?>
175
+ </div>
176
+ </div>
177
+ <script type="text/javascript">
178
+ //<![CDATA[
179
+ toogleVisibilityOnObjects('allow_gift_messages', ['allow-gift-message-container']);
180
+ //]]>
181
+ </script>
182
+ <?php break; ?>
183
+ <?php case 'multishipping_adress_checkbox': ?>
184
+
185
+ <?php break; ?>
186
+ <?php case 'multishipping_adress': ?>
187
+ <div class="add-gift-message">
188
+ <h4><?php echo $this->__('Gift Messages'); ?></h4>
189
+ <p>
190
+ <input type="checkbox" name="allow_gift_messages_<?php echo $this->getEntity()->getId() ?>" id="allow_gift_messages_<?php echo $this->getEntity()->getId() ?>" value="1" onclick="toogleVisibilityOnObjects(this, ['allow-gift-message-container-<?php echo $this->getEntity()->getId() ?>']);"<?php if($this->getItemsHasMesssages() || $this->getEntityHasMessage()): ?> checked="checked"<?php endif ?> class="checkbox" />
191
+ <label for="allow_gift_messages_<?php echo $this->getEntity()->getId() ?>"><?php echo $this->__('Check this checkbox if you want to add gift messages to your items.') ?></label>
192
+ </p>
193
+ </div>
194
+ <div class="gift-message-form" id="allow-gift-message-container-<?php echo $this->getEntity()->getId() ?>">
195
+ <div class="inner-box">
196
+ <?php if (Mage::helper('giftmessage/message')->isMessagesAvailable('quote', $this->getEntity())): ?>
197
+ <h5><?php echo $this->__('Enter a gift message for this address.'); ?></h5>
198
+ <p><?php echo $this->__('You can leave a box blank if you don\'t wish to add a gift message for this address.') ?></p>
199
+ <fieldset class="group-select">
200
+ <input type="hidden" name="giftmessage[<?php echo $this->getEntity()->getId() ?>][type]" value="quote_address" />
201
+ <ul>
202
+ <li>
203
+ <div class="input-box">
204
+ <label for="gift-message-<?php echo $this->getEntity()->getId() ?>-from"><?php echo $this->__('From') ?></label><br />
205
+ <input type="text" name="giftmessage[<?php echo $this->getEntity()->getId() ?>][from]" id="gift-message-<?php echo $this->getEntity()->getId() ?>-from" title="<?php echo $this->__('From') ?>" value="<?php echo $this->getEscaped($this->getMessage()->getSender(), $this->getDefaultFrom()) ?>" class="input-text validation-passed" />
206
+ </div>
207
+ <div class="input-box">
208
+ <label for="gift-message-<?php echo $this->getEntity()->getId() ?>-to"><?php echo $this->__('To') ?></label><br />
209
+ <input type="text" name="giftmessage[<?php echo $this->getEntity()->getId() ?>][to]" id="gift-message-<?php echo $this->getEntity()->getId() ?>-to" title="<?php echo $this->__('To') ?>" value="<?php echo $this->getEscaped($this->getMessage()->getRecipient(), $this->getDefaultTo()) ?>" class="input-text validation-passed" />
210
+ </div>
211
+ </li>
212
+ <li>
213
+ <label for="gift-message-<?php echo $this->getEntity()->getId() ?>-message"><?php echo $this->__('Message') ?></label>
214
+ <br />
215
+ <textarea id="gift-message-<?php echo $this->getEntity()->getId() ?>-message" onchange="toogleRequired('gift-message-<?php echo $this->getEntity()->getId() ?>-message', ['gift-message-<?php echo $this->getEntity()->getId() ?>-from','gift-message-<?php echo $this->getEntity()->getId() ?>-to'])" class="input-text validation-passed giftmessage-area" name="giftmessage[<?php echo $this->getEntity()->getId() ?>][message]" title="<?php echo $this->__('Message') ?>" rows="5" cols="40"><?php echo $this->getEscaped($this->getMessage()->getMessage()) ?></textarea>
216
+ </li>
217
+ </ul>
218
+ <script type="text/javascript">
219
+ //<![CDATA[
220
+ var shippingMethod = new VarienForm('shipping_method_form');
221
+ toogleRequired('gift-message-<?php echo $this->getEntity()->getId() ?>-message', ['gift-message-<?php echo $this->getEntity()->getId() ?>-from','gift-message-<?php echo $this->getEntity()->getId() ?>-to']);
222
+ //]]>
223
+ </script>
224
+ </fieldset>
225
+ <?php endif; ?>
226
+ <?php if($this->isItemsAvailable()): ?>
227
+ <h5><?php echo $this->__('Enter a gift message for each item in your order.'); ?></h5>
228
+ <p><?php echo $this->__('You can leave a box blank if you don\'t wish to add a gift message for the item.') ?></p>
229
+ <ol>
230
+ <?php foreach($this->getItems() as $_index=>$_item): ?>
231
+ <?php $_product=$_item->getProduct() ?>
232
+ <li class="gift-item">
233
+ <p class="number"><?php echo $this->__('Item %d of %d', $_index+1, $this->countItems()) ?></p>
234
+ <div class="product-img-box">
235
+ <p class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" /></p>
236
+ <h6 class="product-name"><?php echo $this->htmlEscape($_product->getName()) ?></h6>
237
+ </div>
238
+ <fieldset class="group-select">
239
+ <input type="hidden" name="giftmessage[<?php echo $_item->getId() ?>][type]" value="quote_address_item" />
240
+ <input type="hidden" name="giftmessage[<?php echo $_item->getId() ?>][address]" value="<?php echo $this->getEntity()->getId()?>" />
241
+ <ul>
242
+ <li>
243
+ <div class="input-box">
244
+ <label for="gift-message-<?php echo $_item->getId() ?>-from"><?php echo $this->__('From') ?></label><br />
245
+ <input type="text" name="giftmessage[<?php echo $_item->getId() ?>][from]" id="gift-message-<?php echo $_item->getId() ?>-from" title="<?php echo $this->__('From') ?>" value="<?php echo $this->getEscaped($this->getMessage($_item)->getSender(), $this->getDefaultFrom()) ?>" class="input-text validation-passed" />
246
+ </div>
247
+ <div class="input-box">
248
+ <label for="gift-message-<?php echo $_item->getId() ?>-to"><?php echo $this->__('To') ?></label><br />
249
+ <input type="text" name="giftmessage[<?php echo $_item->getId() ?>][to]" id="gift-message-<?php echo $_item->getId() ?>-to" title="<?php echo $this->__('To') ?>" value="<?php echo $this->getEscaped($this->getMessage($_item)->getRecipient(), $this->getDefaultTo()) ?>" class="input-text validation-passed" />
250
+ </div>
251
+ </li>
252
+ <li>
253
+ <label for="gift-message-<?php echo $_item->getId() ?>-message"><?php echo $this->__('Message') ?></label><br />
254
+ <textarea id="gift-message-<?php echo $_item->getId() ?>-message" onchange="toogleRequired('gift-message-<?php echo $_item->getId() ?>-message', ['gift-message-<?php echo $_item->getId() ?>-from','gift-message-<?php echo $_item->getId() ?>-to'])" class="input-text validation-passed giftmessage-area" name="giftmessage[<?php echo $_item->getId() ?>][message]" title="<?php echo $this->__('Message') ?>" rows="5" cols="10"><?php echo $this->getEscaped($this->getMessage($_item)->getMessage()) ?></textarea>
255
+ </li>
256
+ </ul>
257
+ <script type="text/javascript">
258
+ //<![CDATA[
259
+ toogleRequired('gift-message-<?php echo $_item->getId() ?>-message', ['gift-message-<?php echo $_item->getId() ?>-from','gift-message-<?php echo $_item->getId() ?>-to']);
260
+ //]]>
261
+ </script>
262
+ </fieldset>
263
+ </li>
264
+ <?php endforeach; ?>
265
+ </ol>
266
+ <?php endif; ?>
267
+ </div>
268
+ </div>
269
+ <script type="text/javascript">
270
+ //<![CDATA[
271
+ toogleVisibilityOnObjects('allow_gift_messages_<?php echo $this->getEntity()->getId() ?>', ['allow-gift-message-container-<?php echo $this->getEntity()->getId() ?>']);
272
+ //]]>
273
+ </script>
274
+ <?php break; ?>
275
+ <?php endswitch ?>
app/design/frontend/default/blank/template/googlecheckout/form.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_blank
22
+ * @package Mage_GoogleCheckout
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 $_code=$this->getMethodCode() ?>
28
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
29
+ <li><?php echo $this->__('You will be redirected to Google Checkout website when you place an order.') ?></li>
30
+ </ul>
app/design/frontend/default/blank/template/googlecheckout/link.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_blank
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
+ <li>
28
+ <form method="post" action="<?php echo $this->getCheckoutUrl();?>"<?php if($this->getIsActiveAanalytics()):?> onsubmit="setUrchinInputCode(pageTracker)"<?php endif;?>>
29
+ <fieldset>
30
+ <input type="hidden" name="analyticsdata" value="" />
31
+ <input type="image" src="<?php echo $this->htmlEscape($this->getImageUrl())?>" alt="<?php echo Mage::helper('googlecheckout')->__('Fast checkout through Google');?>" />
32
+ </fieldset>
33
+ </form>
34
+ </li>
app/design/frontend/default/blank/template/newsletter/subscribe.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_blank
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
+ <div class="block block-subscribe">
28
+ <div class="block-title">
29
+ <h2><?php echo $this->__('Newsletter') ?><a name="newsletter-box"></a></h2>
30
+ </div>
31
+ <form action="<?php echo $this->getUrl('newsletter/subscriber/new') ?>" method="post" id="newsletter-validate-detail">
32
+ <fieldset class="block-content">
33
+ <legend><?php echo $this->__('Newsletter') ?></legend>
34
+ <?php /*
35
+ <?php if( $message = $this->getErrorMessage() ): ?>
36
+ <p class="error"><?php echo $message ?></p>
37
+ <?php endif; ?>
38
+ <?php if( $message = $this->getSuccessMessage() ): ?>
39
+ <p class="success"><?php echo $message ?></p>
40
+ <?php endif; ?>
41
+ */ ?>
42
+ <label for="newsletter"><?php echo $this->__('Sign up for our newsletter:') ?></label>
43
+ <input name="email" type="text" id="newsletter" class="input-text required-entry validate-email" />
44
+ <button type="submit" class="button"><span><?php echo $this->__('Subscribe') ?></span></button>
45
+ </fieldset>
46
+ </form>
47
+ <script type="text/javascript">
48
+ //<![CDATA[
49
+ var newsletterSubscriberFormDetail = new VarienForm('newsletter-validate-detail');
50
+ //]]>
51
+ </script>
52
+ </div>
app/design/frontend/default/blank/template/page/1column.phtml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
28
+ /**
29
+ * Template for Mage_Page_Block_Html
30
+ */
31
+ ?>
32
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
34
+ <head>
35
+ <?php echo $this->getChildHtml('head') ?>
36
+ </head>
37
+ <body<?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?>>
38
+ <div class="wrapper">
39
+ <div class="page">
40
+ <div class="header-container"><?php echo $this->getChildHtml('header') ?></div>
41
+ <div class="main col1-layout">
42
+ <div class="col-main">
43
+ <?php echo $this->getChildHtml('breadcrumbs') ?>
44
+ <?php echo $this->getChildHtml('content') ?>
45
+ </div>
46
+ </div>
47
+ <div class="footer"><?php echo $this->getChildHtml('footer') ?></div>
48
+ <?php echo $this->getChildHtml('before_body_end') ?>
49
+ </div>
50
+ </div>
51
+ <?php echo $this->getAbsoluteFooter() ?>
52
+ </body>
53
+ </html>
app/design/frontend/default/blank/template/page/2columns-left.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_blank
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
28
+ /**
29
+ * Template for Mage_Page_Block_Html
30
+ */
31
+ ?>
32
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
34
+ <head>
35
+ <?php echo $this->getChildHtml('head') ?>
36
+ </head>
37
+ <body<?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?>>
38
+ <div class="wrapper">
39
+ <div class="page">
40
+ <div class="header-container"><?php echo $this->getChildHtml('header') ?></div>
41
+ <div class="main col2-left-layout">
42
+ <?php echo $this->getChildHtml('breadcrumbs') ?>
43
+ <div class="col-left sidebar"><?php echo $this->getChildHtml('left') ?></div>
44
+ <div class="col-main">
45
+ <?php echo $this->getChildHtml('global_messages') ?>
46
+ <?php echo $this->getChildHtml('content') ?>
47
+ </div>
48
+ </div>
49
+ <div class="footer"><?php echo $this->getChildHtml('footer') ?></div>
50
+ <?php echo $this->getChildHtml('before_body_end') ?>
51
+ </div>
52
+ </div>
53
+ <?php echo $this->getAbsoluteFooter() ?>
54
+ </body>
55
+ </html>
app/design/frontend/default/blank/template/page/2columns-right.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_blank
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
28
+ /**
29
+ * Template for Mage_Page_Block_Html
30
+ */
31
+ ?>
32
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
34
+ <head>
35
+ <?php echo $this->getChildHtml('head') ?>
36
+ </head>
37
+ <body<?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?>>
38
+ <div class="wrapper">
39
+ <div class="page">
40
+ <div class="header-container"><?php echo $this->getChildHtml('header') ?></div>
41
+ <div class="main col2-right-layout">
42
+ <?php echo $this->getChildHtml('breadcrumbs') ?>
43
+ <div class="col-right sidebar"><?php echo $this->getChildHtml('right') ?></div>
44
+ <div class="col-main">
45
+ <?php echo $this->getChildHtml('global_messages') ?>
46
+ <?php echo $this->getChildHtml('content') ?>
47
+ </div>
48
+ </div>
49
+ <div class="footer"><?php echo $this->getChildHtml('footer') ?></div>
50
+ <?php echo $this->getChildHtml('before_body_end') ?>
51
+ </div>
52
+ </div>
53
+ <?php echo $this->getAbsoluteFooter() ?>
54
+ </body>
55
+ </html>
app/design/frontend/default/blank/template/page/3columns.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_blank
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
28
+ /**
29
+ * Template for Mage_Page_Block_Html
30
+ */
31
+ ?>
32
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
34
+ <head>
35
+ <?php echo $this->getChildHtml('head') ?>
36
+ </head>
37
+ <body<?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?>>
38
+ <div class="wrapper">
39
+ <div class="page">
40
+ <div class="header-container"><?php echo $this->getChildHtml('header') ?></div>
41
+ <div class="main col3-layout">
42
+ <?php echo $this->getChildHtml('breadcrumbs') ?>
43
+ <div class="col-left sidebar"><?php echo $this->getChildHtml('left') ?></div>
44
+ <div class="col-right sidebar"><?php echo $this->getChildHtml('right') ?></div>
45
+ <div class="col-main">
46
+ <?php echo $this->getChildHtml('global_messages') ?>
47
+ <?php echo $this->getChildHtml('content') ?>
48
+ </div>
49
+ </div>
50
+ <div class="footer"><?php echo $this->getChildHtml('footer') ?></div>
51
+ <?php echo $this->getChildHtml('before_body_end') ?>
52
+ </div>
53
+ </div>
54
+ <?php echo $this->getAbsoluteFooter() ?>
55
+ </body>
56
+ </html>
app/design/frontend/default/blank/template/page/html/breadcrumbs.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_blank
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 if($crumbs && is_array($crumbs)): ?>
28
+ <div class="breadcrumbs">
29
+ <strong><?php echo $this->__("You're currently on:") ?></strong>
30
+ <ul>
31
+ <?php foreach($crumbs as $_crumbName=>$_crumbInfo): ?>
32
+ <li class="<?php echo $_crumbName ?>">
33
+ <?php if($_crumbInfo['link']): ?>
34
+ <a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $_crumbInfo['title'] ?>"><?php echo $_crumbInfo['label'] ?></a>
35
+ <?php elseif($_crumbInfo['last']): ?>
36
+ <strong><?php echo $_crumbInfo['label'] ?></strong>
37
+ <?php else: ?>
38
+ <?php echo $_crumbInfo['label'] ?>
39
+ <?php endif; ?>
40
+ <?php if(!$_crumbInfo['last']): ?>
41
+ <span>/ </span>
42
+ <?php endif; ?>
43
+ </li>
44
+ <?php endforeach; ?>
45
+ </ul>
46
+ </div>
47
+ <?php endif; ?>
app/design/frontend/default/blank/template/page/html/footer.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_blank
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 echo $this->getChildHtml() ?>
28
+ <p><?php echo $this->__('Help Us to Keep Magento Healthy') ?> - <a href="http://www.magentocommerce.com/bug-tracking" onclick="this.target='_blank'"><strong><?php echo $this->__('Report All Bugs') ?></strong></a> <?php echo $this->__('(ver. %s)', Mage::getVersion()) ?></p>
29
+ <address><?php echo $this->getCopyright() ?></address>
app/design/frontend/default/blank/template/page/html/head.phtml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <title><?php echo $this->getTitle() ?></title>
28
+ <meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>" />
29
+ <meta name="description" content="<?php echo htmlspecialchars($this->getDescription()) ?>" />
30
+ <meta name="keywords" content="<?php echo htmlspecialchars($this->getKeywords()) ?>" />
31
+ <meta name="robots" content="<?php echo htmlspecialchars($this->getRobots()) ?>" />
32
+ <link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico') ?>" type="image/x-icon" />
33
+ <link rel="shortcut icon" href="<?php echo $this->getSkinUrl('favicon.ico') ?>" type="image/x-icon" />
34
+ <script type="text/javascript">
35
+ //<![CDATA[
36
+ var BLANK_URL = '<?php echo $this->helper('core/js')->getJsUrl('blank.html') ?>';
37
+ var BLANK_IMG = '<?php echo $this->helper('core/js')->getJsUrl('spacer.gif') ?>';
38
+ //]]>
39
+ </script>
40
+ <?php echo $this->getCssJsHtml() ?>
41
+ <?php echo $this->getChildHtml() ?>
42
+ <?php echo $this->helper('core/js')->getTranslatorScript() ?>
app/design/frontend/default/blank/template/page/html/header.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_blank
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
+ <div class="header">
28
+ <h1 id="logo" class="logo" title="<?php echo $this->getLogoAlt() ?>" style="background-image:url(<?php echo $this->getLogoSrc() ?>);"><a href="<?php echo $this->getUrl('') ?>"><?php echo $this->getLogoAlt() ?></a></h1>
29
+ <p class="welcome-msg"><?php echo $this->getWelcome()?></p>
30
+ <?php echo $this->getChildHtml('topLinks') ?>
31
+ <?php echo $this->getChildHtml('topSearch') ?>
32
+ <?php echo $this->getChildHtml('store_language') ?>
33
+ </div>
34
+ <?php echo $this->getChildHtml('topMenu') ?>
app/design/frontend/default/blank/template/page/html/pager.phtml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
28
+ /**
29
+ * Pager template
30
+ *
31
+ * @see Mage_Page_Block_Html_Pager
32
+ */
33
+ ?>
34
+ <?php if($this->getCollection()->getSize()): ?>
35
+ <div class="pager">
36
+ <p class="amount">
37
+ <?php if($this->getLastPageNum()>1): ?>
38
+ <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
39
+ <?php else: ?>
40
+ <?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?>
41
+ <?php endif; ?>
42
+ </p>
43
+
44
+ <?php if($this->getShowPerPage()): ?>
45
+ <fieldset class="limiter">
46
+ <label><?php echo $this->__('Show') ?></label>
47
+ <select onchange="setLocation(this.value)">
48
+ <?php foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
49
+ <option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
50
+ <?php echo $_limit ?>
51
+ </option>
52
+ <?php endforeach; ?>
53
+ </select> <?php echo $this->__('per page') ?>
54
+ </fieldset>
55
+ <?php endif ?>
56
+
57
+ <?php if($this->getLastPageNum()>1): ?>
58
+ <div class="pages">
59
+ <strong><?php echo $this->__('Page:') ?></strong>
60
+ <ol>
61
+ <?php if (!$this->isFirstPage()): ?>
62
+ <li><a href="<?php echo $this->getPreviousPageUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo $this->__('Previous Page') ?>" class="v-middle" /></a></li>
63
+ <?php endif ?>
64
+ <?php foreach ($this->getPages() as $_page): ?>
65
+ <?php if ($this->isPageCurrent($_page)): ?>
66
+ <li><span class="current"><?php echo $_page ?></span></li>
67
+ <?php else: ?>
68
+ <li><a href="<?php echo $this->getPageUrl($_page) ?>"><?php echo $_page ?></a></li>
69
+ <?php endif ?>
70
+ <?php endforeach;; ?>
71
+ <?php if (!$this->isLastPage()): ?>
72
+ <li><a href="<?php echo $this->getNextPageUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_right.gif') ?>" alt="<?php echo $this->__('Next Page') ?>" class="v-middle" /></a></li>
73
+ <?php endif ?>
74
+ </ol>
75
+ </div>
76
+ <?php endif; ?>
77
+ </div>
78
+ <?php endif ?>
app/design/frontend/default/blank/template/page/html/top.links.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_blank
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 if($toplinks && is_array($toplinks)): ?>
28
+ <ul class="links">
29
+ <?php echo $this->getChildHtml() ?>
30
+ <?php foreach($toplinks as $_toplink): ?>
31
+ <li<?php if($_toplink['first']||$_toplink['last']): ?> class="<?php if($_toplink['first']): ?>first <?php endif; ?><?php if($_toplink['last']): ?>last <?php endif; ?>"<?php endif; ?> <?php echo $_toplink['liParams'] ?>><?php echo $_toplink['beforeText'] ?><a <?php echo $_toplink['aParams'] ?>><?php echo $_toplink['innerText'] ?></a><?php echo $_toplink['afterText'] ?></li>
32
+ <?php endforeach; ?>
33
+ </ul>
34
+ <?php endif; ?>
app/design/frontend/default/blank/template/page/html/wrapper.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_blank
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
28
+ /**
29
+ * This template is for generic wrapper purposes, including ajax.updater loaded blocks
30
+ *
31
+ * Usage in layout xml files:
32
+ * <block type="core/template" template="page/html/wrapper.phtml">
33
+ * <action method="setId"><id>some-custom-identificator</id></action>
34
+ *
35
+ * <!-- optional -->
36
+ * <action method="setTag"><tag>span</tag></action> <!-- div is used if not specified -->
37
+ * <action method="setParams"><params>class="custom-class"</params></action>
38
+ *
39
+ * <!-- insert wrapped blocks here -->
40
+ * </block>
41
+ */
42
+ ?>
43
+ <?php $_tag = $this->hasTag() ? $this->getTag() : "div" ?>
44
+ <<?php echo $_tag?> id="<?php echo $this->getId()?>" <?php echo $this->getParams()?>>
45
+ <?php echo $this->getChildHtml()?>
46
+ </<?php echo $_tag?>>
app/design/frontend/default/blank/template/page/popup.phtml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
28
+ /**
29
+ * Template for Mage_Page_Block_Html
30
+ */
31
+ ?>
32
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
34
+ <head>
35
+ <?php echo $this->getChildHtml('head') ?>
36
+ </head>
37
+ <body class="page-popup<?php echo $this->getBodyClass()?$this->getBodyClass() : ''?>">
38
+ <div>
39
+ <?php echo $this->getChildHtml('content') ?>
40
+ <?php echo $this->getChildHtml('before_body_end') ?>
41
+ </div>
42
+ <?php echo $this->getAbsoluteFooter() ?>
43
+ </body>
44
+ </html>
app/design/frontend/default/blank/template/page/print.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_blank
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
28
+ /**
29
+ * Template for Mage_Page_Block_Html
30
+ */
31
+ ?>
32
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
34
+ <head>
35
+ <?php echo $this->getChildHtml('head') ?>
36
+ </head>
37
+ <body class="page-print<?php echo $this->getBodyClass()?$this->getBodyClass():'' ?>">
38
+ <div>
39
+ <div class="print-head">
40
+ <h1 class="logo"><img src="<?php echo $this->getPrintLogoUrl() ? $this->getPrintLogoUrl() : $this->getSkinUrl('images/logo_print.gif') ?>" alt="" /></h1>
41
+ <?php if ($this->getPrintLogoText()):?>
42
+ <address><?php echo nl2br($this->htmlEscape($this->getPrintLogoText())) ?></address>
43
+ <?php endif;?>
44
+ </div>
45
+ <?php echo $this->getChildHtml('content') ?>
46
+ <div class="buttons-set">
47
+ <button onclick="window.close();" class="button"><span><?php echo $this->__('Close Window') ?></span></button>
48
+ </div>
49
+ <?php echo $this->getAbsoluteFooter() ?>
50
+ </div>
51
+ </body>
52
+ </html>
app/design/frontend/default/blank/template/page/redirect.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_blank
22
+ * @package Mage_Page
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Redirecting...') ?></h2>
29
+ </div>
30
+ <?php if($this->getMessage()): ?>
31
+ <p><?php echo $this->getMessage() ?></p>
32
+ <?php endif; ?>
33
+ <?php echo $this->getRedirectOutput() ?>
34
+ <?php if(!$this->isHtmlFormRedirect()): ?>
35
+ <p><?php echo $this->__('Click <a href="%s">here</a> if nothing has happened', $this->getTargetURL()) ?></p>
36
+ <?php endif; ?>
app/design/frontend/default/blank/template/page/switch/flags.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_blank
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 if(count($this->getStores())>1): ?>
28
+ <div class="language-switcher">
29
+ <label for="select-language"><?php echo $this->__('Your Language') ?>: </label>
30
+ <select id="select-language" class="flag" onchange="window.location.href=this.value">
31
+ <?php foreach ($this->getStores() as $_lang): ?>
32
+ <?php $_selected = ($_lang->getId() == $this->getCurrentStoreId()) ? 'selected="selected"' : '' ?>
33
+ <option style="background-image:url('<?php echo $this->getSkinUrl('images/flag_'.$_lang->getCode().'.gif') ?>');" value="<?php echo $_lang->getCurrentUrl() ?>" <?php echo $_selected ?>>
34
+ <?php echo $this->htmlEscape($_lang->getName()) ?></option>
35
+ <?php endforeach; ?>
36
+ </select>
37
+ </div>
38
+ <?php endif; ?>
app/design/frontend/default/blank/template/page/switch/languages.phtml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
28
+ /**
29
+ * Language switcher template
30
+ *
31
+ * @see Mage_Page_Block_Switch
32
+ */
33
+ ?>
34
+ <?php if(count($this->getStores())>1): ?>
35
+ <fieldset class="form-language">
36
+ <label for="select-language"><?php echo $this->__('Your Language') ?>: </label>
37
+ <select id="select-language" onchange="window.location.href=this.value">
38
+ <?php foreach ($this->getStores() as $_lang): ?>
39
+ <?php $_selected = ($_lang->getId()==$this->getCurrentStoreId()) ? ' selected="selected"' : '' ?>
40
+ <option value="<?php echo $_lang->getCurrentUrl() ?>"<?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getName()) ?></option>
41
+ <?php endforeach; ?>
42
+ </select>
43
+ </fieldset>
44
+ <?php endif; ?>
app/design/frontend/default/blank/template/page/switch/stores.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_blank
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
28
+ /**
29
+ * Store switcher template
30
+ *
31
+ * @see Mage_Core_Block_Store_Switcher
32
+ */
33
+ ?>
34
+ <?php if(count($this->getGroups())>1): ?>
35
+ <fieldset class="store-switcher">
36
+ <label for="select-store"><?php echo $this->__('Select Store') ?>: </label>
37
+ <select id="select-store" onchange="location.href=this.value">
38
+ <?php /*foreach ($this->getStores() as $_store): ?>
39
+ <option value="<?php echo $_store->getUrl('') ?>"<?php if($_store->getId()==$this->getCurrentStoreId()): ?> selected="selected"<?php endif; ?>><?php echo $_store->getName() ?></option>
40
+ <?php endforeach;*/ ?>
41
+ <?php foreach ($this->getGroups() as $_group): ?>
42
+ <?php $_selected = ($_group->getId()==$this->getCurrentGroupId()) ? ' selected="selected"' : '' ?>
43
+ <option value="<?php echo $_group->getHomeUrl() ?>"<?php echo $_selected ?>><?php echo $this->htmlEscape($_group->getName()) ?></option>
44
+ <?php endforeach; ?>
45
+ </select>
46
+ </fieldset>
47
+ <?php endif; ?>
app/design/frontend/default/blank/template/page/template/container.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_blank
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
28
+ /**
29
+ * @see Mage_Page_Block_Template_Container
30
+ */
31
+ ?>
32
+ <div class="page-title">
33
+ <h2><?php echo $this->getTitle() ?></h2>
34
+ </div>
35
+ <?php echo $this->getChildHtml() ?>
app/design/frontend/default/blank/template/page/template/links.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_blank
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
28
+ /**
29
+ * @see Mage_Page_Block_Template_Links
30
+ */
31
+ ?>
32
+ <?php $_links = $this->getLinks(); ?>
33
+ <?php if(count($_links)>0): ?>
34
+ <ul class="links"<?php if($this->getName()): ?>):?> id="<?php echo $this->getName() ?>"<?php endif;?>>
35
+ <?php foreach($_links as $_link): ?>
36
+ <li<?php if($_link->getIsFirst()): ?> class="first"<?php elseif($_link->getIsLast()): ?> class="last"<?php endif; ?><?php echo $_link->getLiParams() ?>><?php echo $_link->getBeforeText() ?><a href="<?php echo $_link->getUrl() ?>" title="<?php echo $_link->getTitle() ?>" <?php echo $_link->getAParams() ?>><?php echo $_link->getLabel() ?></a><?php echo $_link->getAfterText() ?></li>
37
+ <?php endforeach; ?>
38
+ </ul>
39
+ <?php endif; ?>
app/design/frontend/default/blank/template/payment/form/cc.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_blank
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 $_code=$this->getMethodCode() ?>
28
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
29
+ <!--li>
30
+ <div class="input-box">
31
+ <label for="<?php echo $_code ?>_cc_owner"><?php echo $this->__('Name on Card') ?> <span class="required">*</span></label><br />
32
+ <input type="text" title="<?php echo $this->__('Name on Card') ?>" class="input-text required-entry" id="<?php echo $_code ?>_cc_owner" name="payment[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>" />
33
+ </div>
34
+ </li-->
35
+ <li>
36
+ <div class="input-box">
37
+ <label for="<?php echo $_code ?>_cc_type"><?php echo $this->__('Credit Card Type') ?> <span class="required">*</span></label><br />
38
+ <select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
39
+ <option value=""><?php echo $this->__('--Please Select--')?></option>
40
+ <?php $_ccType = $this->getInfoData('cc_type') ?>
41
+ <?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
42
+ <option value="<?php echo $_typeCode ?>"<?php if($_typeCode==$_ccType): ?> selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
43
+ <?php endforeach ?>
44
+ </select>
45
+ </div>
46
+ </li>
47
+ <li>
48
+ <div class="input-box">
49
+ <label for="<?php echo $_code ?>_cc_number"><?php echo $this->__('Credit Card Number') ?> <span class="required">*</span></label><br />
50
+ <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="" />
51
+ </div>
52
+ </li>
53
+ <li>
54
+ <div class="input-box">
55
+ <label for="<?php echo $_code ?>_expiration"><?php echo $this->__('Expiration Date') ?> <span class="required">*</span></label><br />
56
+ <div class="v-fix">
57
+ <select id="<?php echo $_code ?>_expiration" name="payment[cc_exp_month]" class="month required-entry">
58
+ <?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
59
+ <?php foreach ($this->getCcMonths() as $k=>$v): ?>
60
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
61
+ <?php endforeach ?>
62
+ </select>
63
+ </div>
64
+ <div class="v-fix">
65
+ <?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
66
+ <select id="<?php echo $_code ?>_expiration_yr" name="payment[cc_exp_year]" class="year required-entry">
67
+ <?php foreach ($this->getCcYears() as $k=>$v): ?>
68
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
69
+ <?php endforeach ?>
70
+ </select>
71
+ </div>
72
+ </div>
73
+ </li>
74
+ <?php if($this->hasVerification()): ?>
75
+ <li>
76
+ <div class="input-box">
77
+ <label for="<?php echo $_code ?>_cc_cid"><?php echo $this->__('Card Verification Number') ?> <span class="required">*</span></label><br />
78
+ <div class="v-fix"><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="" /></div>
79
+ <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
80
+ </div>
81
+ </li>
82
+ <?php endif; ?>
83
+ </ul>
app/design/frontend/default/blank/template/payment/form/ccsave.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_blank
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 $_code=$this->getMethodCode() ?>
28
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
29
+ <li>
30
+ <div class="input-box">
31
+ <label for="<?php echo $_code ?>_cc_owner"><?php echo $this->__('Name on Card') ?> <span class="required">*</span></label><br />
32
+ <input type="text" title="<?php echo $this->__('Name on Card') ?>" class="input-text required-entry" id="<?php echo $_code ?>_cc_owner" name="payment[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>" />
33
+ </div>
34
+ </li>
35
+ <li>
36
+ <div class="input-box">
37
+ <label for="<?php echo $_code ?>_cc_type"><?php echo $this->__('Credit Card Type') ?> <span class="required">*</span></label><br />
38
+ <select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
39
+ <option value="">--Please Select--</option>
40
+ <?php $_ccType = $this->getInfoData('cc_type') ?>
41
+ <?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
42
+ <option value="<?php echo $_typeCode ?>"<?php if($_typeCode==$_ccType): ?> selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
43
+ <?php endforeach ?>
44
+ </select>
45
+ </div>
46
+ </li>
47
+ <li>
48
+ <div class="input-box">
49
+ <label for="<?php echo $_code ?>_cc_number"><?php echo $this->__('Credit Card Number') ?> <span class="required">*</span></label><br />
50
+ <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="" />
51
+ </div>
52
+ </li>
53
+ <li>
54
+ <div class="input-box">
55
+ <label for="<?php echo $_code ?>_expiration"><?php echo $this->__('Expiration Date') ?> <span class="required">*</span></label><br />
56
+ <div class="v-fix">
57
+ <select id="<?php echo $_code ?>_expiration" name="payment[cc_exp_month]" class="month required-entry">
58
+ <?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
59
+ <?php foreach ($this->getCcMonths() as $k=>$v): ?>
60
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
61
+ <?php endforeach ?>
62
+ </select>
63
+ </div>
64
+ <div class="v-fix">
65
+ <?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
66
+ <select id="<?php echo $_code ?>_expiration_yr" name="payment[cc_exp_year]" class="year required-entry">
67
+ <?php foreach ($this->getCcYears() as $k=>$v): ?>
68
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
69
+ <?php endforeach ?>
70
+ </select>
71
+ </div>
72
+ </div>
73
+ </li>
74
+ <?php if($this->hasVerification()): ?>
75
+ <li>
76
+ <div class="input-box">
77
+ <label for="<?php echo $_code ?>_cc_cid"><?php echo $this->__('Card Verification Number') ?> <span class="required">*</span></label><br />
78
+ <div class="v-fix"><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="" /></div>
79
+ <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
80
+ </div>
81
+ </li>
82
+ <?php endif; ?>
83
+ </ul>
app/design/frontend/default/blank/template/payment/form/checkmo.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_blank
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 if ($this->getMethod()->getMailingAddress() || $this->getMethod()->getPayableTo()): ?>
28
+ <ul class="form-list" id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none;">
29
+ <li>
30
+ <div class="input-box">
31
+ <?php if ($this->getMethod()->getPayableTo()): ?>
32
+ <?php echo $this->__('<label>Make Check payable to</label>: %s', $this->getMethod()->getPayableTo()) ?><br />
33
+ <?php endif; ?>
34
+ <?php if ($this->getMethod()->getMailingAddress()): ?>
35
+ <label><?php echo Mage::helper('payment')->__('Send Check to:') ?></label>
36
+ <div class="checkmo-mailing-address">
37
+ <?php echo nl2br($this->getMethod()->getMailingAddress()) ?>
38
+ </div>
39
+ <?php endif; ?>
40
+ </div>
41
+ </li>
42
+ </ul>
43
+ <?php endif; ?>
app/design/frontend/default/blank/template/payment/form/purchaseorder.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_blank
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
+ <ul class="form-list" id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none;">
28
+ <li>
29
+ <div class="input-box">
30
+ <label for="po_number"><?php echo $this->__('Purchase Order Number') ?> <span class="required">*</span></label><br />
31
+ <input type="text" id="po_number" name="payment[po_number]" title="<?php echo $this->__("Purchase Order Number") ?>" class="input-text required-entry" value="<?php echo $this->htmlEscape($this->getInfoData('po_number')) ?>" />
32
+ </div>
33
+ </li>
34
+ </ul>
app/design/frontend/default/blank/template/payment/info/cc.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_blank
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 if($_info = $this->getInfo()): ?>
28
+ <!--<?php echo $this->__('Name on the Card: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?><br />-->
29
+ <?php echo $this->__('Credit Card Type: %s', $this->htmlEscape($this->getCcTypeName())) ?><br />
30
+ <?php echo $this->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?><br />
31
+ <?php echo $this->__('Expiration Date: %s/%s', $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>
32
+ <?php else: ?>
33
+
34
+ <?php endif; ?>
app/design/frontend/default/blank/template/payment/info/ccsave.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_blank
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 echo $this->__('Name on the Card: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?><br />
28
+ <?php echo $this->__('Credit Card Type: %s', $this->htmlEscape($this->getCcTypeName())) ?><br />
29
+ <?php echo $this->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?><br />
30
+ <?php echo $this->__('Expiration Date: %s/%s', $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>
app/design/frontend/default/blank/template/payment/info/checkmo.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_blank
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
+ <p><?php echo $this->getMethod()->getTitle() ?>
28
+ <?php if($this->getInfo()->getAdditionalData()): ?>
29
+ <?php if($this->getPayableTo()): ?><br /><?php echo $this->__('Make Check payable to: %s', $this->htmlEscape($this->getPayableTo())) ?><?php endif; ?>
30
+ <?php if($this->getMailingAddress()): ?>
31
+ <br /><?php echo Mage::helper('payment')->__('Send Check to:') ?>
32
+ <br />
33
+ <span class="checkmo-mailing-address">
34
+ <?php echo nl2br($this->htmlEscape($this->getMailingAddress())) ?>
35
+ </span>
36
+ <?php endif; ?>
37
+ <?php endif; ?>
38
+ </p>
app/design/frontend/default/blank/template/payment/info/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_blank
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
+ <p><?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?></p>
app/design/frontend/default/blank/template/payment/info/purchaseorder.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_blank
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
+ <p><?php echo $this->getMethod()->getTitle() ?></p>
28
+ <p><strong><?php echo $this->__('Purchase Order Number') ?>:</strong> <span class="nobr"><?php echo $this->htmlEscape($this->getInfo()->getPoNumber()) ?></span></p>
app/design/frontend/default/blank/template/paypal/express/form.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_blank
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 $_code=$this->getMethodCode() ?>
28
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
29
+ <li><?php echo $this->__('Your billing address will be ignored and you will be redirected to PayPal website') ?></li>
30
+ </ul>
app/design/frontend/default/blank/template/paypal/express/info.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_blank
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
+ <p><?php echo $this->getMethod()->getTitle() ?><br />
28
+ <strong><?php echo $this->__('PayPal Email') ?>:</strong> <span class="nobr"><?php echo $this->getEmail() ?></span></p>
app/design/frontend/default/blank/template/paypal/express/review.phtml ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Review Order') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <div class="block">
32
+ <h3><?php echo $this->__('Shipping Information') ?></h3>
33
+ <div class="col2-set">
34
+ <div class="col-1">
35
+ <h4><?php echo $this->__('Shipping Address') ?><span class="separator"> | </span><a href="<?php echo $this->getUrl('paypal/express/edit') ?>"><?php echo $this->__('Change Shipping Address') ?></a></h4>
36
+ <address>
37
+ <?php echo $this->getShippingAddress()->getFormated(true) ?>
38
+ </address>
39
+ </div>
40
+ <div class="col-2">
41
+ <h4><?php echo $this->__('Shipping Method') ?></h4>
42
+ <?php if ($this->isVirtual()): ?>
43
+ <strong><?php echo $this->__('No shipping method required.') ?></strong>
44
+ <?php else: ?>
45
+ <?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
46
+ <p><strong><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></strong></p>
47
+ <?php else: ?>
48
+
49
+ <form method="post" action="<?php echo $this->getUrl('paypal/express/saveShippingMethod') ?>">
50
+ <select name="shipping_method" id="shipping_method" style="width:250px;" onchange="saveShippingMethod(this.value)">
51
+ <?php if(!$this->getAddressShippingMethod()): ?>
52
+ <option value=""><?php echo $this->__('Please select a shipping method...') ?></option>
53
+ <?php endif ?>
54
+ <?php foreach ($_shippingRateGroups as $code => $_rates): ?>
55
+ <optgroup label="<?php echo $this->getCarrierName($code) ?>" style="font-style:normal;">
56
+ <?php foreach ($_rates as $_rate): ?>
57
+ <?php if ($_rate->getErrorMessage()): ?>
58
+ <option value="">
59
+ <?php echo $_rate->getErrorMessage() ?>
60
+ </option>
61
+ <?php else: ?>
62
+ <option value="<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()): ?> selected="selected"<?php endif ?> style="margin-left:16px;">
63
+ <?php echo $_rate->getMethodTitle() ?> -
64
+
65
+ <?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
66
+ <?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
67
+
68
+ <?php echo $_excl; ?>
69
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
70
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
71
+ <?php endif; ?>
72
+ </option>
73
+ <?php endif ?>
74
+ <?php endforeach; ?>
75
+ </optgroup>
76
+ <?php endforeach; ?>
77
+ </select>
78
+ <p class="actions">
79
+ <button id="update_shipping_method" class="button" type="submit"><span><?php echo $this->__('Update Shipping Method') ?></span></button>
80
+ </p>
81
+ </form>
82
+
83
+ <?php endif; ?>
84
+ <?php endif; ?>
85
+
86
+ </div>
87
+ </div>
88
+ </div>
89
+
90
+ <div class="block">
91
+ <h3><?php echo $this->__('Billing Information') ?></h3>
92
+ <h4><?php echo $this->__('Payment Method') ?><span class="separator"> | </span><a href="<?php echo $this->getUrl('paypal/express/edit') ?>"><?php echo $this->__('Change Payment Method') ?></a></h4>
93
+ <p><?php echo $this->__('PayPal Account') ?><br />
94
+ <?php echo $this->getBillingAddress()->getEmail() ?></p>
95
+ </div>
96
+
97
+ <h3><?php echo $this->__('Items in Your Shopping Cart') ?><span class="separator"> | </span><a href="<?php echo $this->getUrl('checkout/cart') ?>"><?php echo $this->__('Edit Shopping Cart') ?></a></h3>
98
+
99
+ <div id='details-reload'>
100
+ <?php echo $this->getChildHtml('details') ?>
101
+ </div>
102
+ <script type="text/javascript">decorateTable('details-table')</script>
103
+
104
+ <br />
105
+
106
+ <form method="post" action="<?php echo $this->getUrl('paypal/express/saveOrder') ?>">
107
+ <p>
108
+ <span id="review-please-wait" class="please-wait" style="display:none;">
109
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
110
+ </span>
111
+ <span id="review-buttons-container">
112
+ <button type="button" class="button" id="review-button" onclick="return saveOrder();"><span><?php echo $this->__('Place an Order') ?></span></button>
113
+ </span>
114
+ </p>
115
+ </form>
116
+ <script type="text/javascript">
117
+ //<![CDATA[
118
+ if ($('update_shipping_method')) {
119
+ $('update_shipping_method') && $('update_shipping_method').hide();
120
+ }
121
+ var submitted = false;
122
+
123
+ function saveShippingMethod(value)
124
+ {
125
+ new Ajax.Updater('details-reload', '<?php echo $this->getUrl('paypal/express/saveShippingMethod') ?>', {
126
+ parameters: { ajax:true, shipping_method:value },
127
+ onComplete: function(){decorateTable('details-table')}
128
+ });
129
+ }
130
+
131
+ function saveOrder()
132
+ {
133
+ if (submitted) {
134
+ return false;
135
+ }
136
+ if ($('shipping_method') && $('shipping_method').value=='') {
137
+ alert('Please select a valid shipping method before submitting the order.');
138
+ return false;
139
+ }
140
+ submitted = true;
141
+ showLoader();
142
+ return true;
143
+ }
144
+
145
+ function showLoader()
146
+ {
147
+ Element.show('review-please-wait');
148
+ Element.setStyle('review-buttons-container', {opacity:.5});
149
+ }
150
+ //]]>
151
+ </script>
app/design/frontend/default/blank/template/paypal/express/review/details.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_blank
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
+ <table id="details-table" class="data-table">
28
+ <col />
29
+ <col width="70" />
30
+ <col width="30" />
31
+ <col width="70" />
32
+ <thead>
33
+ <tr>
34
+ <th><?php echo $this->__('Product Name') ?></th>
35
+ <th><?php echo $this->__('Price') ?></th>
36
+ <th><?php echo $this->__('Qty') ?></th>
37
+ <th><?php echo $this->__('Subtotal') ?></th>
38
+ </tr>
39
+ </thead>
40
+ <tbody>
41
+ <?php foreach ($this->getItems() as $_item): ?>
42
+ <?php if ($_item->getParentItem()) continue ?>
43
+ <tr>
44
+ <td>
45
+ <<?php echo $_item->getProduct()->getName() ?>
46
+ <?php echo $_item->getProduct()->getDescription() ?>
47
+ </td>
48
+ <td><?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()); ?></td>
49
+ <td><?php echo $_item->getQty() ?></td>
50
+ <td><?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()); ?></td>
51
+ </tr>
52
+ <?php endforeach; ?>
53
+ </tbody>
54
+ <tfoot>
55
+ <?php foreach ($this->getTotals() as $_total): ?>
56
+ <tr>
57
+ <td colspan="3"><?php echo $_total->getTitle() ?></td>
58
+ <td><?php echo $this->helper('checkout')->formatPrice($_total->getValue()) ?></td>
59
+ </tr>
60
+ <?php endforeach; ?>
61
+ </tfoot>
62
+ </table>
app/design/frontend/default/blank/template/paypal/link.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_blank
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
+ <li>
28
+ <a href="<?php echo $this->getCheckoutUrl()?>"><img src="<?php echo $this->getImageUrl()?>" alt="<?php echo Mage::helper('paypal')->__('Paypal Checkout');?>" title="<?php echo Mage::helper('paypal')->__('Paypal Checkout');?>" /></a>
29
+ </li>
app/design/frontend/default/blank/template/paypal/standard/form.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_blank
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 $_code=$this->getMethodCode() ?>
28
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
29
+ <li><?php echo $this->__('You will be redirected to PayPal website when you place an order.') ?></li>
30
+ </ul>
app/design/frontend/default/blank/template/paypaluk/direct/form.phtml ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+
28
+ <?php $_code=$this->getMethodCode() ?>
29
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
30
+ <!--li>
31
+ <div class="input-box">
32
+ <label for="<?php echo $_code ?>_cc_owner"><?php echo $this->__('Name on Card') ?> <span class="required">*</span></label><br />
33
+ <input type="text" title="<?php echo $this->__('Name on Card') ?>" class="input-text required-entry" id="<?php echo $_code ?>_cc_owner" name="payment[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>" />
34
+ </div>
35
+ </li-->
36
+ <li>
37
+ <div class="input-box">
38
+ <label for="<?php echo $_code ?>_cc_type"><?php echo $this->__('Credit Card Type') ?> <span class="required">*</span></label><br />
39
+ <select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
40
+ <?php $_ccType = $this->getInfoData('cc_type') ?>
41
+ <?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
42
+ <option value="<?php echo $_typeCode ?>"<?php if($_typeCode==$_ccType): ?> selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
43
+ <?php endforeach ?>
44
+ </select>
45
+ </div>
46
+ </li>
47
+ <li>
48
+ <div class="input-box">
49
+ <label for="<?php echo $_code ?>_cc_number"><?php echo $this->__('Credit Card Number') ?> <span class="required">*</span></label><br />
50
+ <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="" />
51
+ </div>
52
+ </li>
53
+ <li>
54
+ <div class="input-box">
55
+ <label for="<?php echo $_code ?>_expiration"><?php echo $this->__('Expiration Date') ?> <span class="required">*</span></label><br />
56
+ <div class="v-fix">
57
+ <select id="<?php echo $_code ?>_expiration" name="payment[cc_exp_month]" class="month required-entry">
58
+ <?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
59
+ <?php foreach ($this->getCcMonths() as $k=>$v): ?>
60
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
61
+ <?php endforeach ?>
62
+ </select>
63
+ </div>
64
+ <div class="v-fix">
65
+ <?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
66
+ <select id="<?php echo $_code ?>_expiration_yr" name="payment[cc_exp_year]" class="year required-entry">
67
+ <?php foreach ($this->getCcYears() as $k=>$v): ?>
68
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
69
+ <?php endforeach ?>
70
+ </select>
71
+ </div>
72
+ </div>
73
+ </li>
74
+ <?php if ($this->hasSsCardType()): ?>
75
+ <li id="<?php echo $_code ?>_cc_type_ss_div">
76
+ <div class="input-box">
77
+ <label for="<?php echo $_code ?>_issue"><?php echo $this->__('Switch/Solo Only') ?> <span class="required">*</span></label><br />
78
+ <ul>
79
+ <li>
80
+ <label for="<?php echo $_code ?>_cc_issue"><?php echo $this->__('Issue Number') ?>:</label>
81
+ <input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text cvv validate-cc-ukss" id="<?php echo $_code ?>_cc_issue" name="payment[cc_ss_issue]" value="" />
82
+ </li>
83
+ <li>
84
+ <label for="<?php echo $_code ?>_start_month"><?php echo $this->__('Start Date') ?>:</label>
85
+ <div class="v-fix">
86
+ <select id="<?php echo $_code ?>_start_month" name="payment[cc_ss_start_month]" class="month validate-cc-ukss">
87
+ <?php $_ccStartMonth = $this->getInfoData('cc_ss_start_month') ?>
88
+ <?php foreach ($this->getCcMonths() as $k=>$v): ?>
89
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
90
+ <?php endforeach ?>
91
+ </select>
92
+ </div>
93
+ <div class="v-fix">
94
+ <select id="<?php echo $_code ?>_start_year" name="payment[cc_ss_start_year]" class="year validate-cc-ukss">
95
+ <?php $_ccStartYear = $this->getInfoData('cc_ss_start_year') ?>
96
+ <?php foreach ($this->getSsStartYears() as $k=>$v): ?>
97
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
98
+ <?php endforeach ?>
99
+ </select>
100
+ </div>
101
+ </li>
102
+ <li class="adv-container"></li>
103
+ </ul>
104
+ </div>
105
+ <script type="text/javascript">
106
+ var SSChecked<?php echo $_code ?> = function() {
107
+ var elm = $('<?php echo $_code ?>_cc_type');
108
+ if (elm.value=='SS') {
109
+ $('<?php echo $_code ?>_cc_type_ss_div').show();
110
+ } else {
111
+ $('<?php echo $_code ?>_cc_type_ss_div').hide();
112
+ }
113
+ };
114
+ Event.observe($('<?php echo $_code ?>_cc_type'), 'change', SSChecked<?php echo $_code ?>);
115
+ SSChecked<?php echo $_code ?>();
116
+ </script>
117
+ </li>
118
+ <?php endif; ?>
119
+ <?php if($this->hasVerification()): ?>
120
+ <li>
121
+ <div class="input-box">
122
+ <label for="<?php echo $_code ?>_cc_cid"><?php echo $this->__('Card Verification Number') ?> <span class="required">*</span></label><br />
123
+ <div class="v-fix">
124
+ <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="" />
125
+ </div>
126
+ <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
127
+ </div>
128
+ </li>
129
+ <?php endif; ?>
130
+ </ul>
131
+ <script type="text/javascript">
132
+ //<![CDATA[
133
+ Validation.addAllThese([
134
+ ['validate-cc-ukss', 'Please enter issue number or start date for switch/solo card type.', function(v,elm) {
135
+ var endposition;
136
+
137
+ if (elm.id.match(/(.)+_cc_issue$/)) {
138
+ endposition = elm.id.indexOf('_cc_issue');
139
+ } else if (elm.id.match(/(.)+_start_month$/)) {
140
+ endposition = elm.id.indexOf('_start_month');
141
+ } else {
142
+ endposition = elm.id.indexOf('_start_year');
143
+ }
144
+
145
+ var prefix = elm.id.substr(0,endposition);
146
+
147
+ var ccTypeContainer = $(prefix + '_cc_type');
148
+
149
+ if (!ccTypeContainer) {
150
+ return true;
151
+ }
152
+ var ccType = ccTypeContainer.value;
153
+
154
+ if(ccType!='SS'){
155
+ return true;
156
+ }
157
+
158
+ $(prefix + '_cc_issue').advaiceContainer
159
+ = $(prefix + '_start_month').advaiceContainer
160
+ = $(prefix + '_start_year').advaiceContainer
161
+ = $(prefix + '_cc_type_ss_div').down('ul li.adv-container');
162
+
163
+ var ccIssue = $(prefix + '_cc_issue').value;
164
+ var ccSMonth = $(prefix + '_start_month').value;
165
+ var ccSYear = $(prefix + '_start_year').value;
166
+
167
+ if((!ccIssue && !ccSMonth && !ccSYear) ||
168
+ (!ccIssue && !ccSMonth && ccSYear) ||
169
+ (!ccIssue && ccSMonth && !ccSYear)
170
+ ){
171
+ return false;
172
+ }
173
+
174
+ return true;
175
+
176
+ }]
177
+ ]);
178
+ //]]>
179
+ </script>
app/design/frontend/default/blank/template/paypaluk/direct/info.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_blank
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 if($_info = $this->getInfo()): ?>
28
+ <!--<?php echo $this->__('Name on the Card: %s', $this->getInfo()->getCcOwner()) ?><br />-->
29
+ <?php echo $this->__('Credit Card Type: %s', $this->getCcTypeName()) ?><br />
30
+ <?php echo $this->__('Credit Card Number: xxxx-%s', $this->getInfo()->getCcLast4()) ?><br />
31
+ <?php echo $this->__('Expiration Date: %s/%s', $this->getCcExpMonth(), $this->getInfo()->getCcExpYear()) ?><br />
32
+ <?php if($this->getInfo()->getCcSsIssue()): ?>
33
+ <?php echo $this->__("Switch/Solo card issue number: %s", $this->getInfo()->getCcSsIssue()) ?><br />
34
+ <?php endif; ?>
35
+ <?php if($this->getInfo()->getCcSsStartYear()): ?>
36
+ <?php echo $this->__('Switch/Solo card start Date: %s/%s', $this->getCcStartMonth(), $this->getInfo()->getCcSsStartYear()) ?>
37
+ <?php endif; ?>
38
+ <?php endif; ?>
app/design/frontend/default/blank/template/paypaluk/express/form.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_blank
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 $_code=$this->getMethodCode() ?>
28
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
29
+ <li><?php echo $this->__('Your billing address will be ignored and you will be redirected to PayPal UK website') ?></li>
30
+ </ul>
app/design/frontend/default/blank/template/paypaluk/express/info.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_blank
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
+ <p><?php echo $this->getMethod()->getTitle() ?><br />
28
+ <strong><?php echo $this->__('PayPal Email') ?>:</strong> <span class="nobr"><?php echo $this->getEmail() ?></span></p>
app/design/frontend/default/blank/template/paypaluk/express/review.phtml ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Review Order') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <div class="block">
32
+ <h3><?php echo $this->__('Shipping Information') ?></h3>
33
+ <div class="col2-set">
34
+ <div class="col-1">
35
+ <h4><?php echo $this->__('Shipping Address') ?><span class="separator"> | </span><a href="<?php echo $this->getUrl('paypaluk/express/edit') ?>"><?php echo $this->__('Change Shipping Address') ?></a></h4>
36
+ <address>
37
+ <?php echo $this->getShippingAddress()->getFormated(true) ?>
38
+ </address>
39
+ </div>
40
+ <div class="col-2">
41
+ <h4><?php echo $this->__('Shipping Method') ?></h4>
42
+ <?php if ($this->isVirtual()): ?>
43
+ <strong><?php echo $this->__('No shipping method required.') ?></strong>
44
+ <?php else: ?>
45
+ <?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
46
+ <strong><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></strong>
47
+ <?php else: ?>
48
+
49
+ <form method="post" action="<?php echo $this->getUrl('paypaluk/express/saveShippingMethod') ?>">
50
+ <select name="shipping_method" id="shipping_method" style="width:250px;" onchange="saveShippingMethod(this.value)">
51
+ <?php if(!$this->getAddressShippingMethod()): ?>
52
+ <option value=""><?php echo $this->__('Please select a shipping method...') ?></option>
53
+ <?php endif ?>
54
+ <?php foreach ($_shippingRateGroups as $code => $_rates): ?>
55
+ <optgroup label="<?php echo $this->getCarrierName($code) ?>" style="font-style:normal;">
56
+ <?php foreach ($_rates as $_rate): ?>
57
+ <?php if ($_rate->getErrorMessage()): ?>
58
+ <option value="">
59
+ <?php echo $_rate->getErrorMessage() ?>
60
+ </option>
61
+ <?php else: ?>
62
+ <option value="<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()): ?> selected="selected"<?php endif ?> style="margin-left:16px;">
63
+ <?php echo $_rate->getMethodTitle() ?> -
64
+
65
+ <?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
66
+ <?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
67
+
68
+ <?php echo $_excl; ?>
69
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
70
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
71
+ <?php endif; ?>
72
+ </option>
73
+ <?php endif ?>
74
+ <?php endforeach; ?>
75
+ </optgroup>
76
+ <?php endforeach; ?>
77
+ </select>
78
+
79
+ <p class="actions"><button id="update_shipping_method" class="button" type="submit"><span><?php echo $this->__('Update Shipping Method') ?></span></button></p>
80
+ </form>
81
+
82
+ <?php endif; ?>
83
+ <?php endif; ?>
84
+
85
+ </div>
86
+ </div>
87
+ </div>
88
+
89
+ <div class="block">
90
+ <h3><?php echo $this->__('Billing Information') ?></h3>
91
+ <h4><?php echo $this->__('Payment Method') ?><span class="separator"> | </span><a href="<?php echo $this->getUrl('paypaluk/express/edit') ?>"><?php echo $this->__('Change Payment Method') ?></a></h4>
92
+ <p><?php echo $this->__('PayPal Uk Account') ?></p>
93
+ <?php echo $this->getBillingAddress()->getEmail() ?>
94
+ </div>
95
+
96
+ <h3><?php echo $this->__('Items in Your Shopping Cart') ?><span class="separator"> | </span><a href="<?php echo $this->getUrl('checkout/cart') ?>"><?php echo $this->__('Edit Shopping Cart') ?></a></h3>
97
+
98
+
99
+ <div id='details-reload'>
100
+ <?php echo $this->getChildHtml('details') ?>
101
+ </div>
102
+ <script type="text/javascript">decorateTable('details-table')</script>
103
+ <form method="post" action="<?php echo $this->getUrl('paypaluk/express/saveOrder') ?>">
104
+ <div class="buttons-set" id="review-buttons-container">
105
+ <span id="review-please-wait" class="please-wait" style="display:none;">
106
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
107
+ </span>
108
+ <button type="button" class="button" id="review-button" onclick="return saveOrder();"><span><?php echo $this->__('Place an Order') ?></span></button>
109
+ </div>
110
+ </form>
111
+ <script type="text/javascript">
112
+ //<![CDATA[
113
+ if ($('update_shipping_method')) {
114
+ $('update_shipping_method') && $('update_shipping_method').hide();
115
+ }
116
+ var submitted = false;
117
+
118
+ function saveShippingMethod(value)
119
+ {
120
+ new Ajax.Updater('details-reload', '<?php echo $this->getUrl('paypaluk/express/saveShippingMethod') ?>', {
121
+ parameters: { ajax:true, shipping_method:value },
122
+ onComplete: function(){decorateTable('details-table')}
123
+ });
124
+ }
125
+
126
+ function saveOrder()
127
+ {
128
+ if (submitted) {
129
+ return false;
130
+ }
131
+ if ($('shipping_method') && $('shipping_method').value=='') {
132
+ alert('Please select a valid shipping method before submitting the order.');
133
+ return false;
134
+ }
135
+ submitted = true;
136
+ showLoader();
137
+ return true;
138
+ }
139
+
140
+
141
+ function showLoader()
142
+ {
143
+ Element.show('review-please-wait');
144
+ Element.setStyle('review-buttons-container', {opacity:.5});
145
+ }
146
+ //]]>
147
+ </script>
app/design/frontend/default/blank/template/paypaluk/express/review/details.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_blank
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
+ <table id="details-table" class="data-table">
28
+ <col />
29
+ <col width="70" />
30
+ <col width="30" />
31
+ <col width="70" />
32
+ <thead>
33
+ <tr>
34
+ <th><?php echo $this->__('Product Name') ?></th>
35
+ <th><?php echo $this->__('Price') ?></th>
36
+ <th><?php echo $this->__('Qty') ?></th>
37
+ <th><?php echo $this->__('Subtotal') ?></th>
38
+ </tr>
39
+ </thead>
40
+ <tbody>
41
+ <?php foreach ($this->getItems() as $_item): ?>
42
+ <?php if ($_item->getParentItem()) continue ?>
43
+ <tr>
44
+ <td>
45
+ <?php echo $_item->getProduct()->getName() ?>
46
+ <?php echo $_item->getProduct()->getDescription() ?>
47
+ </td>
48
+ <td><?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()); ?></td>
49
+ <td><?php echo $_item->getQty() ?></td>
50
+ <td><?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()); ?></td>
51
+ </tr>
52
+ <?php endforeach; ?>
53
+ </tbody>
54
+ <tfoot>
55
+ <?php foreach ($this->getTotals() as $_total): ?>
56
+ <tr>
57
+ <td colspan="3"><?php echo $_total->getTitle() ?></td>
58
+ <td><?php echo $this->helper('checkout')->formatPrice($_total->getValue()) ?></td>
59
+ </tr>
60
+ <?php endforeach; ?>
61
+ </tfoot>
62
+ </table>
app/design/frontend/default/blank/template/paypaluk/link.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_blank
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
+ <li>
28
+ <a href="<?php echo $this->getCheckoutUrl()?>"><img src="<?php echo $this->getImageUrl()?>" alt="<?php echo Mage::helper('paypalUk')->__('Paypal UK Checkout');?>" title="<?php echo Mage::helper('paypalUk')->__('Paypal UK Checkout');?>" /></a>
29
+ </li>
app/design/frontend/default/blank/template/poll/active.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_blank
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 if(isset($poll)) : ?>
28
+ <script type="text/javascript">
29
+ //<![CDATA[
30
+ function validatePollAnswerIsSelected()
31
+ {
32
+ var options = $$('input.poll_vote');
33
+ for( i in options ) {
34
+ if( options[i].checked == true ) {
35
+ return true;
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ //]]>
41
+ </script>
42
+ <div class="block block-poll">
43
+ <div class="block-title">
44
+ <h2><?php echo $this->__('Community Poll') ?></h2>
45
+ </div>
46
+ <form id="pollForm" action="<?php echo $action ?>" method="post" onsubmit="return validatePollAnswerIsSelected();">
47
+ <fieldset class="block-content">
48
+ <legend><?php echo $this->__('Community Poll') ?></legend>
49
+ <h3><?php echo $poll->getPollTitle(); ?></h3>
50
+ <?php if( $poll_answers ): ?>
51
+ <ol>
52
+ <?php foreach( $poll_answers as $answer ): ?>
53
+ <li>
54
+ <input type="radio" name="vote" class="radio poll_vote" id="vote_<?php echo $answer->getId() ?>" value="<?php echo $answer->getAnswerId() ?>" />
55
+ <span class="label"><label for="vote_<?php echo $answer->getId() ?>"><?php echo $answer->getAnswerTitle() ?></label></span>
56
+ </li>
57
+ <?php endforeach; ?>
58
+ </ol>
59
+ <?php endif; ?>
60
+ <div class="actions">
61
+ <button type="submit" class="button"><span><?php echo $this->__('Vote') ?></span></button>
62
+ </div>
63
+ </fieldset>
64
+ </form>
65
+ </div>
66
+ <?php endif; ?>
app/design/frontend/default/blank/template/poll/result.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_blank
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 if(isset($poll)) : ?>
28
+ <div class="block block-poll">
29
+ <div class="block-title">
30
+ <h2><?php echo $this->__('Community Poll') ?></h2>
31
+ </div>
32
+ <div class="block-content">
33
+ <h3><?php echo $poll->getPollTitle(); ?></h3>
34
+ <?php if( $poll_answers ): ?>
35
+ <ol>
36
+ <?php foreach( $poll_answers as $answer ): ?>
37
+ <li>
38
+ <span class="answer"><?php echo $answer->getAnswerTitle() ?>:</span>
39
+ <span class="votes"><?php echo $answer->getVotesCount() ?> (<?php echo $answer->getPercent() ?>%)</span>
40
+ </li>
41
+ <?php endforeach; ?>
42
+ </ol>
43
+ <?php endif; ?>
44
+ </div>
45
+ </div>
46
+ <?php endif; ?>
app/design/frontend/default/blank/template/productalert/price.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_blank
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 if ($this->isShow()): ?>
28
+ <p><a href="<?php echo $this->getUrl() ?>"><?php echo $this->__('Sign up for price alert'); ?></a></p>
29
+ <?php endif; ?>
app/design/frontend/default/blank/template/productalert/stock.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_blank
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 if ($this->isShow()): ?>
28
+ <p><a href="<?php echo $this->getUrl() ?>"><?php echo $this->__('Sign up to get notified when this product is back in stock'); ?></a></p>
29
+ <?php endif; ?>
app/design/frontend/default/blank/template/rating/detailed.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_blank
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 if(!empty($collection) && $collection->getSize()): ?>
28
+ <table class="data-table">
29
+ <col width="30%" />
30
+ <col />
31
+ <tbody>
32
+ <?php foreach ($collection as $_rating): ?>
33
+ <?php if($_rating->getSummary()): ?>
34
+ <tr>
35
+ <td class="label"><?php echo $this->__($_rating->getRatingCode()) ?></td>
36
+ <td class="value">
37
+ <div class="rating-box">
38
+ <div class="rating" style="width:<?php echo ceil($_rating->getSummary()) ?>%;"></div>
39
+ </div>
40
+ </td>
41
+ </tr>
42
+ <?php endif; ?>
43
+ <?php endforeach; ?>
44
+ </tbody>
45
+ </table>
46
+ <?php endif; ?>
app/design/frontend/default/blank/template/rating/empty.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_blank
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
+ <div class="ratings">
28
+ <p><a href="#review-form"><?php echo $this->__('Be the first to review this product') ?></a></p>
29
+ </div>
app/design/frontend/default/blank/template/reports/home_product_compared.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_blank
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 if ($_products = $this->getRecentlyComparedProducts()): ?>
28
+ <div class="page-title">
29
+ <h2><?php echo $this->__('Your Recently Compared') ?></h2>
30
+ </div>
31
+ <table class="products-grid" id="recently-compared-list-table">
32
+ <tr>
33
+ <?php $i=0; foreach ($_products as $_product): ?>
34
+ <?php if ($i>5): continue; endif; ?>
35
+ <td>
36
+ <a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><img class="product-image" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(80, 77) ?>" width="80" height="77" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" /></a>
37
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>)"><?php echo $this->htmlEscape($_product->getName()) ?></a></h3>
38
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
39
+ <?php echo $this->getPriceHtml($_product, true, '-home-compared') ?>
40
+ <?php if($_product->isSaleable()): ?>
41
+ <button class="button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><?php echo $this->__('Add to Cart') ?></span></button>
42
+ <?php else: ?>
43
+ <p class="availability"><span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
44
+ <?php endif; ?>
45
+ <ul class="add-to-links">
46
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
47
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>"><?php echo $this->__('Add to Wishlist') ?></a></li>
48
+ <?php endif; ?>
49
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
50
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>"><?php echo $this->__('Add to Compare') ?></a></li>
51
+ <?php endif; ?>
52
+ </ul>
53
+ </td>
54
+ <?php $i++; endforeach; ?>
55
+ <?php for($i;$i%5!=0;$i++): ?>
56
+ <td class="empty">&nbsp;</td>
57
+ <?php endfor; ?>
58
+ </tr>
59
+ </table>
60
+ <?php endif; ?>
app/design/frontend/default/blank/template/reports/home_product_viewed.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_blank
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
28
+ /**
29
+ * @see Mage_Reports_Block_Product_Viewed
30
+ */
31
+ ?>
32
+ <?php if ($_products = $this->getRecentlyViewedProducts()): ?>
33
+ <div class="page-title">
34
+ <h2><?php echo $this->__('Your Recently Viewed') ?></h2>
35
+ </div>
36
+ <table class="products-grid" id="recently-viewed-list-table">
37
+ <tr>
38
+ <?php $i=0; foreach ($_products as $_product): ?>
39
+ <?php if ($i>5): continue; endif; ?>
40
+ <td>
41
+ <a class="product-image" href="<?php echo $_product->getProductUrl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(80, 77) ?>" width="80" height="77" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" /></a>
42
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></h3>
43
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
44
+ <?php echo $this->getPriceHtml($_product, true, '-home-viewed') ?>
45
+ <?php if($_product->isSaleable()): ?>
46
+ <button type="button" class="button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><?php echo $this->__('Add to Cart') ?></span></button>
47
+ <?php else: ?>
48
+ <p class="availability"><span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
49
+ <?php endif; ?>
50
+ <ul class="add-to-links">
51
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
52
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>"><?php echo $this->__('Add to Wishlist') ?></a></li>
53
+ <?php endif; ?>
54
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
55
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>"><?php echo $this->__('Add to Compare') ?></a></li>
56
+ <?php endif; ?>
57
+ </ul>
58
+ </td>
59
+ <?php $i++; endforeach; ?>
60
+ <?php for($i;$i%5!=0;$i++): ?>
61
+ <td class="empty">&nbsp;</td>
62
+ <?php endfor; ?>
63
+ </tr>
64
+ </table>
65
+ <?php endif; ?>
app/design/frontend/default/blank/template/reports/product_compared.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_blank
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 if ($_products = $this->getRecentlyComparedProducts()): ?>
28
+ <div class="block block-recent">
29
+ <div class="block-title">
30
+ <h2><?php echo $this->__('Recently Compared Products') ?></h2>
31
+ </div>
32
+ <div class="block-content">
33
+ <ol id="recently-compared-items">
34
+ <?php foreach ($_products as $_item): ?>
35
+ <li><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></li>
36
+ <?php endforeach; ?>
37
+ </ol>
38
+ <script type="text/javascript">decorateList('recently-compared-items');</script>
39
+ </div>
40
+ </div>
41
+ <?php endif; ?>
app/design/frontend/default/blank/template/reports/product_viewed.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_blank
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 if ($_products = $this->getRecentlyViewedProducts()): ?>
28
+ <div class="block block-recent">
29
+ <div class="block-title">
30
+ <h2><?php echo $this->__('Recently Viewed Products') ?></h2>
31
+ </div>
32
+ <div class="block-content">
33
+ <ol id="recently-viewed-items">
34
+ <?php foreach ($_products as $_item): ?>
35
+ <li><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></li>
36
+ <?php endforeach; ?>
37
+ </ol>
38
+ <script type="text/javascript">decorateList('recently-viewed-items');</script>
39
+ </div>
40
+ </div>
41
+ <?php endif; ?>
app/design/frontend/default/blank/template/review/customer/list.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_blank
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 echo $this->getMessagesBlock()->getGroupedHtml() ?>
28
+ <div class="page-title">
29
+ <h2><?php echo $this->__('My Product Reviews') ?></h2>
30
+ </div>
31
+ <?php if( $this->getCollection() && $this->count()): ?>
32
+ <?php echo $this->getToolbarHtml() ?>
33
+ <table class="data-table" id="my-reviews-table">
34
+ <col width="60" />
35
+ <col width="200" />
36
+ <col width="80" />
37
+ <col />
38
+ <col width="100" />
39
+ <tbody>
40
+ <?php foreach ($this->getCollection() as $_review): ?>
41
+ <tr>
42
+ <td><?php echo $this->dateFormat($_review->getCreatedAt()) ?></td>
43
+ <td><a href="<?php echo $this->getProductLink() ?>id/<?php echo $_review->getEntityPkValue() ?>"><?php echo $this->htmlEscape($_review->getName()) ?></a></td>
44
+ <td>
45
+ <?php if($_review->getSum()): ?>
46
+ <div class="rating-box">
47
+ <div class="rating" style="width:<?php echo ( $_review->getSum() / $_review->getCount() ) ?>%;"></div>
48
+ </div>
49
+ <?php endif; ?>
50
+ </td>
51
+ <td><?php echo $this->htmlEscape($this->helper('review')->getDetail($_review->getDetail())) ?></td>
52
+ <td><a href="<?php echo $this->getReviewLink() ?>id/<?php echo $_review->getReviewId() ?>"><?php echo $this->__('View Details') ?></a></td>
53
+ </tr>
54
+ <?php endforeach; ?>
55
+ </tbody>
56
+ </table>
57
+ <script type="text/javascript">decorateTable('my-reviews-table')</script>
58
+ <?php echo $this->getToolbarHtml() ?>
59
+ <?php else: ?>
60
+ <p><?php echo $this->__('You have submitted no reviews.') ?></p>
61
+ <?php endif; ?>
62
+ <div class="buttons-set">
63
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
64
+ </div>
app/design/frontend/default/blank/template/review/customer/recent.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_blank
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 if( $this->getCollection() && $this->count()): ?>
28
+ <div class="reviews">
29
+ <div class="title-buttons">
30
+ <h3><?php echo $this->__('My Recent Reviews') ?></h3>
31
+ <a href="<?php echo $this->getAllReviewsUrl() ?>"><?php echo $this->__('View All Reviews') ?></a>
32
+ </div>
33
+ <?php $iterator = 0 ?>
34
+ <?php foreach ($this->getCollection() as $_review): ?>
35
+ <ol id="my_recent_reviews">
36
+ <li>
37
+ <span class="number"><?php echo ++$iterator ?></span>
38
+ <h4 class="product-name"><a href="<?php echo $this->getReviewUrl($_review->getReviewId()) ?>"><?php echo $this->htmlEscape($_review->getName()) ?></a></h4>
39
+ <?php if($_review->getSum()): ?>
40
+ <p><?php echo $this->__('Rating:') ?></p>
41
+ <div class="rating-box">
42
+ <div class="rating" style="width:<?php echo ( $_review->getSum() / $_review->getCount() ) ?>%;"></div>
43
+ </div>
44
+ <?php endif; ?>
45
+ </li>
46
+ </ol>
47
+ <script type="text/javascript">decorateList('my_recent_reviews');</script>
48
+ <?php endforeach; ?>
49
+ </div>
50
+ <?php endif; ?>
app/design/frontend/default/blank/template/review/customer/view.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_blank
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 if($this->getProductData()->getId()): ?>
28
+ <div class="product-review">
29
+ <div class="page-title">
30
+ <h2><?php echo $this->__('Review Details') ?></h2>
31
+ </div>
32
+ <div>
33
+ <a class="product-image" href="<?php echo $this->getProductData()->getProductUrl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProductData(), 'small_image')->resize(125, 125); ?>" alt="<?php echo $this->htmlEscape($this->getProductData()->getName()) ?>" height="125" width="125" /></a>
34
+ <?php if( $this->getRating() && $this->getRating()->getSize()): ?>
35
+ <p><?php echo $this->__('Average Customer Rating:') ?></p>
36
+ <?php echo $this->getReviewsSummaryHtml($this->getProductData()) ?>
37
+ <?php endif; ?>
38
+ </div>
39
+ <div class="product-details">
40
+ <h3 class="product-name"><?php echo $this->htmlEscape($this->getProductData()->getName()) ?></h3>
41
+ <?php if( $this->getRating() && $this->getRating()->getSize()): ?>
42
+ <strong><?php echo $this->__('Your Rating:') ?></strong>
43
+ <table class="data-table">
44
+ <?php foreach ($this->getRating() as $_rating): ?>
45
+ <?php if($_rating->getPercent()): ?>
46
+ <tr>
47
+ <td class="label"><?php echo $_rating->getRatingCode() ?></td>
48
+ <td class="value">
49
+ <div class="rating-box">
50
+ <div class="rating" style="width:<?php echo ceil($_rating->getPercent()) ?>%;"></div>
51
+ </div></td>
52
+ </tr>
53
+ <?php endif; ?>
54
+ <?php endforeach; ?>
55
+ </table>
56
+ <?php endif; ?>
57
+ <?php echo $this->__('Your Review (submitted on %s):', $this->dateFormat($this->getReviewData()->getCreatedAt())) ?>
58
+ <p><?php echo nl2br($this->htmlEscape($this->getReviewData()->getDetail())) ?></p>
59
+ </div>
60
+ <div class="buttons-set">
61
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to My Reviews') ?></a>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ <?php endif; ?>
app/design/frontend/default/blank/template/review/form.phtml ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <form action="<?php echo $this->getAction() ?>" method="post" id="review-form">
28
+ <fieldset class="add-review">
29
+ <h3><?php echo $this->__('Write Your Own Review') ?></h3>
30
+ <h4 class="product-name"><?php echo $this->__("You're reviewing:"); ?> <span><?php echo $this->htmlEscape($this->getProductInfo()->getName()) ?></span></h4>
31
+ <?php if( $this->getRatings() && $this->getRatings()->getSize()): ?>
32
+ <h5><?php echo $this->__('How do you rate this product?') ?> <span class="required">*</span></h5>
33
+ <span id="input-message-box"></span>
34
+ <table class="data-table" id="product-review-table">
35
+ <col />
36
+ <col width="1" />
37
+ <col width="1" />
38
+ <col width="1" />
39
+ <col width="1" />
40
+ <col width="1" />
41
+ <thead>
42
+ <tr>
43
+ <th>&nbsp;</th>
44
+ <th><span class="nobr"><?php echo $this->__('1 star') ?></span></th>
45
+ <th><span class="nobr"><?php echo $this->__('2 stars') ?></span></th>
46
+ <th><span class="nobr"><?php echo $this->__('3 stars') ?></span></th>
47
+ <th><span class="nobr"><?php echo $this->__('4 stars') ?></span></th>
48
+ <th><span class="nobr"><?php echo $this->__('5 stars') ?></span></th>
49
+ </tr>
50
+ </thead>
51
+ <tbody>
52
+ <?php foreach ($this->getRatings() as $_rating): ?>
53
+ <tr>
54
+ <td class="label"><?php echo $_rating->getRatingCode() ?></td>
55
+ <?php foreach ($_rating->getOptions() as $_option): ?>
56
+ <td class="value"><input type="radio" name="ratings[<?php echo $_rating->getId() ?>]" id="<?php echo $_rating->getRatingCode() ?>_<?php echo $_option->getValue() ?>" value="<?php echo $_option->getId() ?>" class="radio" /></td>
57
+ <?php endforeach; ?>
58
+ </tr>
59
+ <?php endforeach; ?>
60
+ </tbody>
61
+ </table>
62
+ <input type="hidden" name="validate_rating" class="validate-rating" value="" />
63
+ <script type="text/javascript">decorateTable('product-review-table')</script>
64
+ <?php endif; ?>
65
+ <ul class="form-list">
66
+ <li>
67
+ <label for="nickname_field"><?php echo $this->__('Nickname') ?> <span class="required">*</span></label><br />
68
+ <input type="text" name="nickname" id="nickname_field" class="input-text required-entry" value="<?php echo $this->htmlEscape($data->getNickname()) ?>" />
69
+ </li>
70
+ <li>
71
+ <label for="summary_field"><?php echo $this->__('Summary of Your Review') ?> <span class="required">*</span></label><br />
72
+ <input type="text" name="title" id="summary_field" class="input-text required-entry" value="<?php echo $this->htmlEscape($data->getTitle()) ?>" />
73
+ </li>
74
+ <li>
75
+ <label for="review_field"><?php echo $this->__('Review') ?> <span class="required">*</span></label><br />
76
+ <textarea name="detail" id="review_field" cols="5" rows="3" class="required-entry"><?php echo $this->htmlEscape($data->getDetail()) ?></textarea>
77
+ </li>
78
+ </ul>
79
+ <div class="buttons-set">
80
+ <button type="submit" class="button"><span><?php echo $this->__('Submit Review') ?></span></button>
81
+ </div>
82
+ </fieldset>
83
+ </form>
84
+ <script type="text/javascript">
85
+ //<![CDATA[
86
+ var dataForm = new VarienForm('review-form');
87
+ Validation.addAllThese(
88
+ [
89
+ ['validate-rating', '<?php echo $this->__('Please select one of each of the ratings above') ?>', function(v) {
90
+ var trs = $('product-review-table').getElementsBySelector('tr');
91
+ var inputs;
92
+ var error = 1;
93
+
94
+ for( var j=0; j < trs.length; j++ ) {
95
+ var tr = trs[j];
96
+ if( j > 0 ) {
97
+ inputs = tr.getElementsBySelector('input');
98
+
99
+ for( i in inputs ) {
100
+ if( inputs[i].checked == true ) {
101
+ error = 0;
102
+ }
103
+ }
104
+
105
+ if( error == 1 ) {
106
+ return false;
107
+ } else {
108
+ error = 1;
109
+ }
110
+ }
111
+ }
112
+ return true;
113
+ }]
114
+ ]
115
+ );
116
+ //]]>
117
+ </script>
app/design/frontend/default/blank/template/review/helper/summary.phtml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 if ($this->getReviewsCount()): ?>
28
+ <div class="ratings">
29
+ <?php if ($this->getRatingSummary()):?>
30
+ <div class="rating-box">
31
+ <div class="rating" style="width:<?php echo $this->getRatingSummary() ?>%"></div>
32
+ </div>
33
+ <?php endif;?>
34
+ <p class="rating-links">
35
+ <a href="<?php echo $this->getReviewsUrl() ?>"><?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?></a>
36
+ <span class="separator">|</span>
37
+ <a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Add Your Review') ?></a>
38
+ </p>
39
+ </div>
40
+ <?php elseif ($this->getDisplayIfEmpty()): ?>
41
+ <p><a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Be the first to review this product') ?></a></p>
42
+ <?php endif; ?>
app/design/frontend/default/blank/template/review/helper/summary_short.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_blank
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 if ($this->getReviewsCount()): ?>
28
+ <div class="ratings">
29
+ <?php if ($this->getRatingSummary()):?>
30
+ <div class="rating-box">
31
+ <div class="rating" style="width:<?php echo $this->getRatingSummary() ?>%"></div>
32
+ </div>
33
+ <span class="amount">(<?php echo $this->getReviewsCount() ?>)</span>
34
+ <?php else: ?>
35
+ <a href="<?php echo $this->getReviewsUrl() ?>"><?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?></a>
36
+ <?php endif;?>
37
+ </div>
38
+ <?php elseif ($this->getDisplayIfEmpty()): ?>
39
+ <p><a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Be the first to review this product') ?></a></p>
40
+ <?php endif; ?>
app/design/frontend/default/blank/template/review/product/view/count.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_blank
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 if (!empty($count)):?>
28
+ <a href="#customer-reviews"><span class="nobr"><?php echo $this->__('%s Review(s)', $count) ?></span></a>
29
+ <?php endif;?>
app/design/frontend/default/blank/template/review/product/view/list.phtml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+
28
+ <?php $_items = $this->getReviewsCollection()->getItems();?>
29
+ <?php if (count($_items)):?>
30
+ <div class="reviews" id="customer-reviews">
31
+ <h3><?php echo $this->__('Customer Reviews') ?></h3>
32
+ <?php echo $this->getChildHtml('toolbar') ?>
33
+ <dl>
34
+ <?php foreach ($_items as $_review):?>
35
+ <dt>
36
+ <a href="<?php echo $this->getReviewUrl($_review->getId()) ?>"><?php echo $this->htmlEscape($_review->getTitle()) ?></a> <?php echo $this->__('Review by %s', $this->htmlEscape($_review->getNickname())) ?>
37
+ </dt>
38
+ <dd>
39
+ <table class="data-table">
40
+ <col width="30%" />
41
+ <col />
42
+ <tbody>
43
+ <?php foreach ($_review->getRatingVotes() as $_vote): ?>
44
+ <tr>
45
+ <th class="label"><?php echo $_vote->getRatingCode() ?></th>
46
+ <td class="value">
47
+ <div class="rating-box">
48
+ <div class="rating" style="width:<?php echo $_vote->getPercent() ?>%;"></div>
49
+ </div>
50
+ </td>
51
+ </tr>
52
+ <?php endforeach; ?>
53
+ </tbody>
54
+ </table>
55
+ <p><?php echo nl2br($this->htmlEscape($_review->getDetail())) ?></p>
56
+ <p class="date"><?php echo $this->__('(Posted on %s)', $this->formatDate($_review->getCreatedAt()), 'long') ?></p>
57
+ </dd>
58
+ <?php endforeach; ?>
59
+ </dl>
60
+ <?php echo $this->getChildHtml('toolbar') ?>
61
+ </div>
62
+ <?php endif;?>
63
+ <?php echo $this->getChildHtml('review_form') ?>
app/design/frontend/default/blank/template/review/product/view/other.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_blank
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
+
28
+ <?php $_product = Mage::registry('product'); ?>
29
+ <div class="buttons-set">
30
+ <a href="<?php echo $_product->getProductUrl() ?>">&laquo; <?php echo $this->__('Back to Main Product Info') ?></a>
31
+ </div>
app/design/frontend/default/blank/template/review/view.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_blank
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 if($this->getProductData()->getId()): ?>
28
+ <div class="product-review">
29
+ <div class="page-title">
30
+ <h2><?php echo $this->__('Review Details') ?></h2>
31
+ </div>
32
+ <div class="product-img-box">
33
+ <a href="<?php echo $this->getProductData()->getProductUrl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProductData(), 'small_image')->resize(125, 125); ?>" height="125" width="125" alt="<?php echo $this->htmlEscape($this->getProductData()->getName()) ?>" class="product-image" /></a>
34
+ <?php if( $this->getRating() && $this->getRating()->getSize()): ?>
35
+ <p><?php echo $this->__('Average Customer Rating') ?>:</p>
36
+ <?php echo $this->getReviewsSummaryHtml($this->getProductData()) ?>
37
+ <?php endif; ?>
38
+ </div>
39
+ <div class="details">
40
+ <h3 class="product-name"><?php echo $this->htmlEscape($this->getProductData()->getName()) ?></h3>
41
+ <?php if( $this->getRating() && $this->getRating()->getSize()): ?>
42
+ <h4><?php echo $this->__('Product Rating:') ?></h4>
43
+ <dl class="ratings-list">
44
+ <?php foreach ($this->getRating() as $_rating): ?>
45
+ <?php if($_rating->getPercent()): ?>
46
+ <dt><?php echo $this->__($_rating->getRatingCode()) ?></dt>
47
+ <dd>
48
+ <div class="rating-box">
49
+ <div class="rating" style="width:<?php echo ceil($_rating->getPercent()) ?>%;"></div>
50
+ </div>
51
+ </dd>
52
+ <?php endif; ?>
53
+ <?php endforeach; ?>
54
+ </dl>
55
+ <?php endif; ?>
56
+ <p><?php echo $this->__('Product Review (submitted on %s):', $this->dateFormat($this->getReviewData()->getCreatedAt())) ?></p>
57
+ <p><?php echo nl2br($this->htmlEscape($this->getReviewData()->getDetail())) ?></p>
58
+ </div>
59
+ <div class="buttons-set">
60
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to Product Reviews') ?></a>
61
+ </div>
62
+ </div>
63
+ <?php endif; ?>
app/design/frontend/default/blank/template/rss/list.phtml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
22
+ * @package Mage_Rss
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
+ <div class="page-head">
28
+ <h2><?php echo $this->__('RSS Feeds') ?></h2>
29
+ </div>
30
+ <?php
31
+ $_categories = $this->getRssCatalogFeeds();
32
+ $_misc = $this->getRssMiscFeeds();
33
+ ?>
34
+ <?php if ($_categories || $_misc): ?>
35
+ <?php if($_misc): ?>
36
+ <table class="data-table" id="rss-table-misc">
37
+ <thead>
38
+ <tr>
39
+ <th><?php echo $this->__('Miscellaneous Feeds') ?></th>
40
+ </tr>
41
+ </thead>
42
+ <tbody>
43
+ <?php foreach ($_misc as $_feed): ?>
44
+ <tr>
45
+ <td><?php echo $_feed->getLabel() ?> <a href="<?php echo $_feed->getUrl() ?>" class="link-rss"><?php echo $this->__('Get Feed'); ?></a></td>
46
+ </tr>
47
+ <?php endforeach; ?>
48
+ </tbody>
49
+ </table>
50
+ <?php endif; ?>
51
+ <?php if ($_categories && $_misc): ?>
52
+ <br/>
53
+ <?php endif ?>
54
+ <?php if($_categories): ?>
55
+ <table class="data-table" id="rss-table-category">
56
+ <thead>
57
+ <tr>
58
+ <th><?php echo $this->__('Category Feeds') ?></th>
59
+ </tr>
60
+ </thead>
61
+ <tbody>
62
+ <?php foreach ($_categories as $_category): ?>
63
+ <tr>
64
+ <td><?php echo $_category->getLabel() ?> <a href="<?php echo $_category->getUrl() ?>" class="link-rss"><?php echo $this->__('Get Feed'); ?></a></td>
65
+ </tr>
66
+ <?php endforeach; ?>
67
+ </tbody>
68
+ </table>
69
+ <?php endif; ?>
70
+ <script type="text/javascript">
71
+ //<![CDATA[
72
+ decorateTable('rss-table-misc');
73
+ decorateTable('rss-table-category');
74
+ //]]>
75
+ </script>
76
+ <?php else: ?>
77
+ <p><?php echo $this->__('There are no Rss Feeds'); ?></p>
78
+ <?php endif; ?>
app/design/frontend/default/blank/template/rss/nofeed.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_blank
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
+ <p>There was no RSS feed enabled.</p>
app/design/frontend/default/blank/template/rss/order/details.phtml ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ store view name = $_order->getStore()->getName()
28
+ web site name = $_order->getStore()->getWebsite()->getName()
29
+ store name = $_order->getStore()->getGroup()->getName()
30
+ */
31
+ ?>
32
+ <?php $_order=$this->getOrder() ?>
33
+ <div>
34
+ <?php echo $this->__('Customer Name: %s', $_order->getCustomerFirstname()?$_order->getCustomerName():$_order->getBillingAddress()->getName()) ?><br />
35
+ <?php echo $this->__('Purchased From: %s', $_order->getStore()->getGroup()->getName()) ?><br />
36
+ </div>
37
+ <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7; background:#f8f7f5;">
38
+ <thead>
39
+ <tr>
40
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px">Item</th>
41
+ <th align="center" bgcolor="#d9e5ee" style="padding:3px 9px">Qty</th>
42
+ <th align="right" bgcolor="#d9e5ee" width="10%" style="padding:3px 9px">Subtotal</th>
43
+ </tr>
44
+ </thead>
45
+
46
+ <tbody>
47
+ <?php $i=0; foreach ($_order->getAllItems() as $_item): $i++ ?>
48
+ <tr <?php echo $i%2?'bgcolor="#eeeded"':'' ?>>
49
+ <td align="left" valign="top" style="padding:3px 9px"><strong><?php echo $this->htmlEscape($_item->getName()) ?></strong>
50
+ <?php if($_item->getGiftMessageId() && $_giftMessage = $this->helper('giftmessage/message')->getGiftMessage($_item->getGiftMessageId())): ?>
51
+ <br /><strong><?php echo $this->__('Gift Message') ?></strong>
52
+ <br /><?php echo $this->__('From:'); ?> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?>
53
+ <br /><?php echo $this->__('To:'); ?> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?>
54
+ <br /><?php echo $this->__('Message:'); ?><br /> <?php echo $this->htmlEscape($_giftMessage->getMessage()) ?>
55
+ <?php endif; ?>
56
+ </td>
57
+ <td align="center" valign="top" style="padding:3px 9px"><?php echo $_item->getQtyOrdered()*1 ?></td>
58
+ <td align="right" valign="top" style="padding:3px 9px"><?php echo $_order->formatPrice($_item->getRowTotal()) ?></td>
59
+ </tr>
60
+ <?php endforeach ?>
61
+ </tbody>
62
+
63
+ <tfoot>
64
+ <?php if($_order->getGiftMessageId() && $_giftMessage = $this->helper('giftmessage/message')->getGiftMessage($_order->getGiftMessageId())): ?>
65
+ <tr>
66
+ <td colspan="3" align="left" style="padding:3px 9px">
67
+ <strong><?php echo $this->__('Gift Message') ?></strong>
68
+ <br /><?php echo $this->__('From:'); ?> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?>
69
+ <br /><?php echo $this->__('To:'); ?> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?>
70
+ <br /><?php echo $this->__('Message:'); ?><br /> <?php echo $this->htmlEscape($_giftMessage->getMessage()) ?>
71
+ </td>
72
+ </tr>
73
+ <?php endif; ?>
74
+ <tr>
75
+ <td colspan="2" align="right" style="padding:3px 9px"><?php echo $this->__('Subtotal') ?></td>
76
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_order->getSubtotal()) ?></td>
77
+ </tr>
78
+ <?php if ($_order->getDiscountAmount() > 0): ?>
79
+ <tr>
80
+ <td colspan="2" align="right" style="padding:3px 9px"><?php echo $this->__('Discount '.($_order->getCouponCode()?'('.$_order->getCouponCode().')':'')) ?></td>
81
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice(0.00 - $_order->getDiscountAmount()) ?></td>
82
+ </tr>
83
+ <?php endif; ?>
84
+ <?php if ($_order->getShippingAmount() || $_order->getShippingDescription()): ?>
85
+ <tr>
86
+ <td colspan="2" align="right" style="padding:3px 9px"><?php echo $this->__('Shipping &amp; Handling') ?></td>
87
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_order->getShippingAmount()) ?></td>
88
+ </tr>
89
+ <?php endif; ?>
90
+ <?php if ($_order->getTaxAmount() > 0): ?>
91
+ <tr>
92
+ <td colspan="2" align="right" style="padding:3px 9px"><?php echo $this->__('Tax') ?></td>
93
+ <td align="right" style="padding:3px 9px"><?php echo $_order->formatPrice($_order->getTaxAmount()) ?></td>
94
+ </tr>
95
+ <?php endif; ?>
96
+ <tr bgcolor="#DEE5E8">
97
+ <td colspan="2" align="right" style="padding:3px 9px"><strong><big><?php echo $this->__('Grand Total') ?></big></strong></td>
98
+ <td align="right" style="padding:6px 9px"><strong><big><?php echo $_order->formatPrice($_order->getGrandTotal()) ?></big></strong></td>
99
+ </tr>
100
+ </tfoot>
101
+ </table>
app/design/frontend/default/blank/template/sales/order/creditmemo.phtml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 if($this->helper('giftmessage/message')->getIsMessagesAvailable('order', $this->getOrder())): ?>
28
+ <script type="text/javascript">
29
+ //<![CDATA[
30
+ function giftMessageToogle(giftMessageIdentifier)
31
+ {
32
+ var link = $('order-item-gift-message-link-'+giftMessageIdentifier);
33
+ var container = $('order-item-gift-message-'+giftMessageIdentifier);
34
+ var row = $('order-item-row-'+giftMessageIdentifier);
35
+
36
+
37
+ if(link.expanded) {
38
+ link.expanded = false;
39
+ link.removeClassName('expanded');
40
+ if(container.hasClassName('last')) {
41
+ row.addClassName('last');
42
+ }
43
+ container.hide();
44
+ } else {
45
+ link.expanded = true;
46
+ link.addClassName('expanded');
47
+ if(container.hasClassName('last')) {
48
+ row.removeClassName('last');
49
+ }
50
+ container.show();
51
+ }
52
+
53
+ return false;
54
+ }
55
+ //]]>
56
+ </script>
57
+ <?php endif; ?>
58
+ <?php echo $this->getChildHtml('creditmemo_items') ?>
59
+ <div class="buttons-set">
60
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to My Orders') ?></a>
61
+ </div>
app/design/frontend/default/blank/template/sales/order/creditmemo/items.phtml ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_order = $this->getOrder() ?>
28
+ <p><a href="<?php echo $this->getPrintAllCreditmemosUrl($_order) ?>" onclick="this.target='_blank'"><?php echo $this->__('Print All Refunds') ?></a></p>
29
+ <?php foreach ($_order->getCreditmemosCollection() as $_creditmemo): ?>
30
+ <div class="page-title">
31
+ <h2><?php echo $this->__('Refund #') ?><?php echo $_creditmemo->getIncrementId(); ?></h2>
32
+ <a href="<?php echo $this->getPrintCreditmemoUrl($_creditmemo) ?>" onclick="this.target='_blank'"><?php echo $this->__('Print Refund') ?></a>
33
+ </div>
34
+ <h3><?php echo $this->__('Items Refunded') ?></h3>
35
+ <table class="data-table" id="my-refund-table-<?php echo $_creditmemo->getId(); ?>">
36
+ <col />
37
+ <col width="20%" />
38
+ <col width="1" />
39
+ <col width="1" />
40
+ <col width="1" />
41
+ <col width="1" />
42
+ <col width="1" />
43
+ <thead>
44
+ <tr>
45
+ <th><?php echo $this->__('Product Name') ?></th>
46
+ <th><?php echo $this->__('SKU') ?></th>
47
+ <th class="a-right"><?php echo $this->__('Price') ?></th>
48
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
49
+ <th class="a-right"><?php echo $this->__('Subtotal') ?></th>
50
+ <th class="a-center wrap"><?php echo $this->__('Discount Amount') ?></th>
51
+ <th class="a-center wrap"><?php echo $this->__('Row Total') ?></th>
52
+ </tr>
53
+ </thead>
54
+ <tfoot>
55
+ <?php if ((float) $_creditmemo->getSubtotal()): ?>
56
+ <tr>
57
+ <td colspan="6" class="a-right"><?php echo $this->__('Subtotal') ?></td>
58
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getSubtotal()) ?></td>
59
+ </tr>
60
+ <?php endif; ?>
61
+ <?php if (($_creditmemo->getTaxAmount() > 0)||(Mage::helper('tax')->displayZeroTax())): ?>
62
+ <tr>
63
+ <td colspan="6" class="a-right"><?php echo $this->__('Tax') ?></td>
64
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getTaxAmount()) ?></td>
65
+ </tr>
66
+ <?php endif; ?>
67
+ <?php if ((float) $_creditmemo->getShippingAmount() || $_creditmemo->getShippingDescription()): ?>
68
+ <tr>
69
+ <td colspan="6" class="a-right"><?php echo $this->__('Shipping') ?></td>
70
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getShippingAmount()) ?></td>
71
+ </tr>
72
+ <?php endif; ?>
73
+ <?php if ((float) $_creditmemo->getDiscountAmount()): ?>
74
+ <tr>
75
+ <td colspan="6" class="a-right"><?php echo $this->__('Discount') ?></td>
76
+ <td class="a-right"><?php echo $_order->formatPrice(-$_creditmemo->getDiscountAmount()) ?></td>
77
+ </tr>
78
+ <?php endif; ?>
79
+ <?php if ((float) $_creditmemo->getGiftcertAmount()): ?>
80
+ <tr>
81
+ <td colspan="6" class="a-right"><?php echo $this->__('Gift Certificate') ?></td>
82
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getGiftcertAmount()) ?></td>
83
+ </tr>
84
+ <?php endif; ?>
85
+ <?php if ((float) $_creditmemo->getAdjustmentPositive()): ?>
86
+ <tr>
87
+ <td colspan="6" class="a-right"><?php echo $this->__('Adjustment Refund') ?></td>
88
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getAdjustmentPositive()) ?></td>
89
+ </tr>
90
+ <?php endif; ?>
91
+ <?php if ((float) $_creditmemo->getAdjustmentNegative()): ?>
92
+ <tr>
93
+ <td colspan="6" class="a-right"><?php echo $this->__('Adjustment Fee') ?></td>
94
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getAdjustmentNegative()) ?></td>
95
+ </tr>
96
+ <?php endif; ?>
97
+ <tr>
98
+ <td colspan="6" class="a-right"><strong><?php echo $this->__('Grand Total') ?></strong></td>
99
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getGrandTotal()) ?></strong></td>
100
+ </tr>
101
+ <?php if ($this->getCanDisplayTotalPaid()): ?>
102
+ <tr>
103
+ <td colspan="6" class="a-right"><strong><?php echo $this->__('Total Paid') ?></strong></td>
104
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getTotalPaid()) ?></strong></td>
105
+ </tr>
106
+ <?php endif; ?>
107
+ <?php if ($this->getCanDisplayTotalRefunded()): ?>
108
+ <tr>
109
+ <td colspan="6" class="a-right"><strong><?php echo $this->__('Total Refunded') ?></strong></td>
110
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getTotalRefunded()) ?></strong></td>
111
+ </tr>
112
+ <?php endif; ?>
113
+ <?php if ($this->getCanDisplayTotalDue()): ?>
114
+ <tr>
115
+ <td colspan="6" class="a-right"><strong><?php echo $this->__('Total Due') ?></strong></td>
116
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getTotalDue()) ?></strong></td>
117
+ </tr>
118
+ <?php endif; ?>
119
+ </tfoot>
120
+ <?php $_items = $_creditmemo->getAllItems(); ?>
121
+ <?php $_count = count($_items) ?>
122
+ <?php foreach ($_items as $_item): ?>
123
+ <?php if ($_item->getOrderItem()->getParentItem()) continue; ?>
124
+ <tbody>
125
+ <?php echo $this->getItemHtml($_item) ?>
126
+ </tbody>
127
+ <?php endforeach; ?>
128
+ </table>
129
+ <script type="text/javascript">decorateTable('my-refund-table-<?php echo $_creditmemo->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
130
+ <?php endforeach; ?>
app/design/frontend/default/blank/template/sales/order/creditmemo/items/renderer/default.phtml ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_item = $this->getItem() ?>
28
+ <?php $_order = $this->getItem()->getOrderItem()->getOrder() ?>
29
+ <tr class="border" id="order-item-row-<?php echo $_item->getId() ?>">
30
+ <td><h4 class="product-name"><?php echo $this->htmlEscape($_item->getName()) ?></h4>
31
+ <?php if($_options = $this->getItemOptions()): ?>
32
+ <dl class="item-options">
33
+ <?php foreach ($_options as $_option) : ?>
34
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
35
+ <?php if (!$this->getPrintStatus()): ?>
36
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option['value']) ?>
37
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
38
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
39
+ <div class="truncated_full_value">
40
+ <dl class="item-options">
41
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
42
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
43
+ </dl>
44
+ </div>
45
+ <?php endif; ?>
46
+ </dd>
47
+ <?php else: ?>
48
+ <dd><?php echo $this->htmlEscape($_option['value']) ?></dd>
49
+ <?php endif; ?>
50
+ <?php endforeach; ?>
51
+ </dl>
52
+ <?php endif; ?>
53
+ <?php echo $_item->getDescription() ?>
54
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $_item->getOrderItem()) && $_item->getGiftMessageId()): ?>
55
+ <a href="#" id="order-item-gift-message-link-<?php echo $_item->getId() ?>" class="gift-message-link" onclick="return giftMessageToogle('<?php echo $_item->getId() ?>')"><?php echo $this->__('Gift Message') ?></a>
56
+ <?php endif; ?>
57
+ </td>
58
+ <td><?php echo Mage::helper('core/string')->splitInjection($this->getSku()) ?></td>
59
+ <td class="a-right">
60
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
61
+ <span class="price-excl-tax">
62
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
63
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
64
+ <?php endif; ?>
65
+ <?php echo $_order->formatPrice($_item->getPrice()) ?>
66
+ </span>
67
+ <?php endif; ?>
68
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
69
+ <span class="price-incl-tax">
70
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
71
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
72
+ <?php endif; ?>
73
+ <?php echo $_order->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
74
+ </span>
75
+ <?php endif; ?>
76
+ </td>
77
+ <td class="a-center"><?php echo $_item->getQty()*1 ?></td>
78
+ <td class="a-right">
79
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
80
+ <span class="price-excl-tax">
81
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
82
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
83
+ <?php endif; ?>
84
+ <?php echo $_order->formatPrice($_item->getRowTotal()) ?>
85
+ </span>
86
+ <?php endif; ?>
87
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
88
+ <span class="price-incl-tax">
89
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
90
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
91
+ <?php endif; ?>
92
+ <?php echo $_order->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
93
+ </span>
94
+ <?php endif; ?>
95
+ </td>
96
+ <td class="a-right"><?php echo $_order->formatPrice(-$_item->getDiscountAmount()) ?></td>
97
+ <td class="last a-right">
98
+ <?php echo $_order->formatPrice($_item->getRowTotal()-$_item->getDiscountAmount()+$_item->getTaxAmount()) ?>
99
+ </td>
100
+ </tr>
app/design/frontend/default/blank/template/sales/order/details.phtml ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_order = $this->getOrder() ?>
28
+ <div class="page-title title-buttons">
29
+ <h2><?php echo $this->__('My Orders - Details') ?></h2>
30
+ <button class="button"><span><?php echo $this->__('Print All Invoices') ?></span></button>
31
+ </div>
32
+ <h3><?php echo $this->__('Order #%s', $_order->getRealOrderId()) ?></h3>
33
+ <?php foreach ($this->getInvoices() as $_invoice): ?>
34
+ <div class="page-title">
35
+ <h3><?php echo $this->__('Invoice #%s', $_invoice->getIncrementId()) ?></h3>
36
+ <a href="#"><?php echo $this->__('Print Invoice') ?></a>
37
+ </div>
38
+ <div class="col2-set">
39
+ <div class="col-1">
40
+ <h4><?php echo $this->__('Shipping Address') ?></h4>
41
+ <?php $_shipping = $_invoice->getShippingAddress() ?>
42
+ <address><?php echo $_shipping->getFirstname() ?> <?php echo $_shipping->getLastname() ?><br />
43
+ <?php echo $_shipping->getCompany() ?><br />
44
+ <?php echo $_shipping->getStreet() ?><br />
45
+ <?php echo $_shipping->getCity() ?>, <?php echo $_shipping->getRegion() ?> <?php echo $_shipping->getPostcode() ?><br />
46
+ <strong>T</strong> | <?php echo $_shipping->getTelephone();
47
+ if($_shipping->getFax()): ?>
48
+ <br /><strong>F</strong> | <?php echo $_shipping->getFax() ?>
49
+ <?php endif; ?>
50
+ </address>
51
+ </div>
52
+ <div class="col-2">
53
+ <h4><?php echo $this->__('Billing Address') ?></h4>
54
+ <?php $_billing = $_invoice->getbillingAddress() ?>
55
+ <address><?php echo $_billing->getFirstname() ?> <?php echo $_billing->getLastname() ?><br />
56
+ <?php echo $_billing->getCompany() ?><br />
57
+ <?php echo $_billing->getStreet() ?><br />
58
+ <?php echo $_billing->getCity() ?>, <?php echo $_billing->getRegion() ?> <?php echo $_billing->getPostcode() ?><br />
59
+ <strong>T</strong> | <?php echo $_billing->getTelephone();
60
+ if($_billing->getFax()): ?>
61
+ <br /><strong>F</strong> | <?php echo $_billing->getFax() ?>
62
+ <?php endif; ?>
63
+ </address>
64
+ </div>
65
+ </div>
66
+ <br />
67
+ <div class="col2-set">
68
+ <div class="col-1">
69
+ <h4><?php echo $this->__('Shipping Method') ?></h4>
70
+ <?php echo $_order->getShippingMethod() ?> <?php echo $_order->getShippingDescription() ?>
71
+ </div>
72
+ <div class="col-2">
73
+ <h4><?php echo $this->__('Payment Method') ?></h4>
74
+ <?php $_payment = $_order->getPayment() ?>
75
+ <?php echo $_payment->getMethod() ?>: <?php echo $_payment->getCcType() ?> xxxx<?php echo $_payment->getCcLast4() ?>
76
+ </div>
77
+ </div>
78
+ <br />
79
+ <h4><?php echo $this->__('Items Ordered') ?></h4>
80
+ <table cellspacing="0" class="data-table">
81
+ <thead>
82
+ <tr>
83
+ <th><?php echo $this->__('Product Name') ?></th>
84
+ <th class="a-right" width="15%"><?php echo $this->__('Price') ?></th>
85
+ <th class="a-center" width="10%"><?php echo $this->__('Qty Ordered') ?></th>
86
+ <th class="a-center" width="10%"><?php echo $this->__('Qty Shipped') ?></th>
87
+ <th class="a-right" width="20%"><?php echo $this->__('Subtotal') ?></th>
88
+ </tr>
89
+ </thead>
90
+ <tbody>
91
+ <?php $_items = $_invoice->getItemsCollection(); ?>
92
+ <?php $_count = $_items->count(); ?>
93
+ <?php $_index = 0; ?>
94
+ <?php foreach ($_items as $_item): ?>
95
+ <tr<?php echo ($_index++ > $_count ? ' class="last"' : '') ?>>
96
+ <td><?php echo $_item->getProductName() ?></td>
97
+ <td class="a-right"><?php echo $_order->formatPrice($_item->getPrice()*1) ?></td>
98
+ <td class="a-center"><?php echo $_item->getQty()*1 ?></td>
99
+ <td class="a-center"><?php echo $_item->getQty()*1 ?></td>
100
+ <td class="a-right"><?php echo $_order->formatPrice($_item->getRowTotal()*1) ?></td>
101
+ <?php endforeach; ?>
102
+ </tr>
103
+ </tbody>
104
+ <tfoot>
105
+ <tr>
106
+ <td colspan="4" class="a-right"><?php echo $this->__('Order Subtotal') ?></td>
107
+ <td class="a-right"><?php echo $_order->formatPrice($_invoice->getSubtotal()) ?></td>
108
+ </tr>
109
+ </tfoot>
110
+ </table>
111
+ <br />
112
+ <?php endforeach; ?>
app/design/frontend/default/blank/template/sales/order/history.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_blank
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 echo $this->getMessagesBlock()->getGroupedHtml() ?>
28
+ <?php $_orders = $this->getOrders(); ?>
29
+ <div class="page-title">
30
+ <h2><?php echo $this->__('My Orders') ?></h2>
31
+ </div>
32
+ <?php echo $this->getPagerHtml(); ?>
33
+ <?php if($_orders->getSize()): ?>
34
+ <table class="data-table" id="my-orders-table">
35
+ <col />
36
+ <col />
37
+ <col />
38
+ <col width="1" />
39
+ <col width="1" />
40
+ <col width="1" />
41
+ <thead>
42
+ <tr>
43
+ <th><?php echo $this->__('Order #') ?></th>
44
+ <th><?php echo $this->__('Date') ?></th>
45
+ <th><?php echo $this->__('Ship to') ?></th>
46
+ <th><span class="nobr"><?php echo $this->__('Order Total') ?></span></th>
47
+ <th><span class="nobr"><?php echo $this->__('Order Status') ?></span></th>
48
+ <th>&nbsp;</th>
49
+ </tr>
50
+ </thead>
51
+ <tbody>
52
+ <?php $_odd = ''; ?>
53
+ <?php foreach ($_orders as $_order): ?>
54
+ <tr>
55
+ <td><?php echo $_order->getRealOrderId() ?></td>
56
+ <td><?php echo $this->formatDate($_order->getCreatedAt()) ?></td>
57
+ <td><?php echo $_order->getShippingAddress() ? $this->htmlEscape($_order->getShippingAddress()->getName()) : '&nbsp;' ?></td>
58
+ <td><?php echo $_order->formatPrice($_order->getGrandTotal()) ?></td>
59
+ <td><em><?php echo $_order->getStatusLabel() ?></em></td>
60
+ <td class="a-center">
61
+ <span class="nobr"><a href="<?php echo $this->getViewUrl($_order) ?>"><?php echo $this->__('View Order') ?></a>
62
+ <?php /*<span class="separator">|</span><a href="<?php echo $this->getTrackUrl($_order) ?>"><?php echo $this->__('Track Order') ?></a>&nbsp;*/ ?>
63
+ <?php if ($this->helper('sales/reorder')->canReorder($_order)) : ?>
64
+ <span class="separator">|</span> <a href="<?php echo $this->getReorderUrl($_order) ?>"><?php echo $this->__('Reorder') ?></a>
65
+ <?php endif ?>
66
+ </span>
67
+ </td>
68
+ </tr>
69
+ <?php endforeach; ?>
70
+ </tbody>
71
+ </table>
72
+ <script type="text/javascript">decorateTable('my-orders-table');</script>
73
+ <?php echo $this->getPagerHtml(); ?>
74
+ <?php else: ?>
75
+ <p><?php echo $this->__('You have placed no orders.'); ?></p>
76
+ <?php endif ?>
app/design/frontend/default/blank/template/sales/order/info.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_blank
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 $_order = $this->getOrder() ?>
28
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
29
+ <div class="page-title title-buttons">
30
+ <h2><?php echo $this->__('Order #%s - %s', $_order->getRealOrderId(), $_order->getStatusLabel()) ?></h2>
31
+ <?php if($this->helper('rss/order')->isStatusNotificationAllow()): ?>
32
+ <a href="<?php echo $this->helper('rss/order')->getStatusHistoryRssUrl($_order) ?>" class="link-rss"><?php echo $this->__('Subscribe to Order Status') ?></a>
33
+ <span class="separator">|</span>
34
+ <?php endif; ?>
35
+ <?php if ($this->helper('sales/reorder')->canReorder($_order)) : ?>
36
+ <a href="<?php echo $this->getReorderUrl($_order) ?>"><?php echo $this->__('Reorder') ?></a>
37
+ <span class="separator">|</span>
38
+ <?php endif ?>
39
+ <a href="<?php echo $this->getPrintUrl($_order) ?>" onclick="this.target='_blank';"><?php echo $this->__('Print Order') ?></a>
40
+ </div>
41
+ <?php echo $this->getStatusHistoryRssUrl($_order) ?>
42
+ <dl class="order-info">
43
+ <dt><?php echo $this->__('About This Order:') ?></dt>
44
+ <dd>
45
+ <?php $_links = $this->getLinks(); ?>
46
+ <ul>
47
+ <?php foreach ($_links as $_link): ?>
48
+ <?php if($_link->getUrl()): ?>
49
+ <li><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a></li>
50
+ <?php else: ?>
51
+ <li class="current"><?php echo $_link->getLabel() ?></li>
52
+ <?php endif; ?>
53
+ <?php endforeach; ?>
54
+ </ul>
55
+ </dd>
56
+ </dl>
57
+ <p><?php echo $this->__('Order Date: %s', $this->formatDate($_order->getCreatedAt(), 'long')) ?></p>
58
+ <?php if (!$_order->getIsVirtual()): ?>
59
+ <div class="col2-set">
60
+ <div class="col-1">
61
+ <h3><?php echo $this->__('Shipping Address') ?></h3>
62
+ <address><?php echo $_order->getShippingAddress()->format('html') ?></address>
63
+ </div>
64
+ <div class="col-2">
65
+ <h3><?php echo $this->__('Shipping Method') ?><?php /* | <a href="#"><?php echo $this->__('Track Order') ?></a>*/ ?></h3>
66
+ <?php if ($_order->getShippingDescription()): ?>
67
+ <?php echo $_order->getShippingDescription() ?>
68
+ <?php else: ?>
69
+ <?php echo $this->helper('sales')->__('No shipping information available'); ?>
70
+ <?php endif; ?>
71
+ </div>
72
+ </div>
73
+ <?php endif; ?>
74
+ <div class="col2-set">
75
+ <div class="col-1">
76
+ <h3><?php echo $this->__('Billing Address') ?></h3>
77
+ <address><?php echo $_order->getBillingAddress()->format('html') ?></address>
78
+ </div>
79
+ <div class="col-2">
80
+ <h3><?php echo $this->__('Payment Method') ?></h3>
81
+ <?php echo $this->getPaymentInfoHtml() ?>
82
+ </div>
83
+ </div>
app/design/frontend/default/blank/template/sales/order/invoice.phtml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 if($this->helper('giftmessage/message')->getIsMessagesAvailable('order', $this->getOrder())): ?>
28
+ <script type="text/javascript">
29
+ //<![CDATA[
30
+ function giftMessageToogle(giftMessageIdentifier)
31
+ {
32
+ var link = $('order-item-gift-message-link-'+giftMessageIdentifier);
33
+ var container = $('order-item-gift-message-'+giftMessageIdentifier);
34
+ var row = $('order-item-row-'+giftMessageIdentifier);
35
+
36
+
37
+ if(link.expanded) {
38
+ link.expanded = false;
39
+ link.removeClassName('expanded');
40
+ if(container.hasClassName('last')) {
41
+ row.addClassName('last');
42
+ }
43
+ container.hide();
44
+ } else {
45
+ link.expanded = true;
46
+ link.addClassName('expanded');
47
+ if(container.hasClassName('last')) {
48
+ row.removeClassName('last');
49
+ }
50
+ container.show();
51
+ }
52
+
53
+ return false;
54
+ }
55
+ //]]>
56
+ </script>
57
+ <?php endif; ?>
58
+ <?php echo $this->getChildHtml('invoice_items') ?>
59
+ <div class="buttons-set">
60
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to My Orders') ?></a>
61
+ </div>
app/design/frontend/default/blank/template/sales/order/invoice/items.phtml ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_order = $this->getOrder() ?>
28
+ <p><a href="<?php echo $this->getPrintAllInvoicesUrl($_order) ?>" onclick="this.target='_blank'"><?php echo $this->__('Print All Invoices') ?></a></p>
29
+ <?php foreach ($_order->getInvoiceCollection() as $_invoice): ?>
30
+ <div class="page-title">
31
+ <h3><?php echo $this->__('Invoice #') ?><?php echo $_invoice->getIncrementId(); ?></h3>
32
+ <a href="<?php echo $this->getPrintInvoiceUrl($_invoice) ?>" onclick="this.target='_blank'"><?php echo $this->__('Print Invoice') ?></a>
33
+ </div>
34
+ <h4><?php echo $this->__('Items Invoiced') ?></h4>
35
+ <table cellspacing="0" class="data-table" id="my-invoice-table-<?php echo $_invoice->getId(); ?>">
36
+ <col />
37
+ <col width="25%" />
38
+ <col width="1" />
39
+ <col width="1" />
40
+ <col width="1" />
41
+ <thead>
42
+ <tr>
43
+ <th><?php echo $this->__('Product Name') ?></th>
44
+ <th><?php echo $this->__('SKU') ?></th>
45
+ <th class="a-right"><?php echo $this->__('Price') ?></th>
46
+ <th class="a-center"><span class="nobr"><?php echo $this->__('Qty Invoiced') ?></span></th>
47
+ <th class="a-right"><?php echo $this->__('Subtotal') ?></th>
48
+ </tr>
49
+ </thead>
50
+ <tfoot>
51
+ <tr>
52
+ <td colspan="4" class="a-right"><?php echo $this->__('Order Subtotal') ?></td>
53
+ <td class="last a-right"><?php echo $_order->formatPrice($_invoice->getSubtotal()) ?></td>
54
+ </tr>
55
+ <?php if ($_invoice->getDiscountAmount() > 0): ?>
56
+ <tr>
57
+ <td colspan="4" class="a-right"><?php echo $this->__('Discount :') ?></td>
58
+ <td class="last a-right"><?php echo $_order->formatPrice(0.00 - $_invoice->getDiscountAmount()) ?></td>
59
+ </tr>
60
+ <?php endif; ?>
61
+ <?php if (($_invoice->getTaxAmount() > 0)||(Mage::helper('tax')->displayZeroTax())): ?>
62
+ <tr>
63
+ <td colspan="4" class="a-right"><?php echo $this->__('Tax') ?></td>
64
+ <td class="last a-right"><?php echo $_order->formatPrice($_invoice->getTaxAmount()) ?></td>
65
+ </tr>
66
+ <?php endif; ?>
67
+ <?php if ($_invoice->getShippingAmount() || $_invoice->getShippingDescription()): ?>
68
+ <tr>
69
+ <td colspan="4" class="a-right"><?php echo $this->__('Shipping & Handling') ?></td>
70
+ <td class="last a-right"><?php echo $_order->formatPrice($_invoice->getShippingAmount()) ?></td>
71
+ </tr>
72
+ <?php endif; ?>
73
+ <tr>
74
+ <td colspan="4" class="a-right"><strong><?php echo $this->__('Grand Total') ?></strong></td>
75
+ <td class="last a-right"><strong><?php echo $_order->formatPrice($_invoice->getGrandTotal()) ?></strong></td>
76
+ </tr>
77
+ </tfoot>
78
+ <?php $_items = $_invoice->getAllItems(); ?>
79
+ <?php $_count = count($_items) ?>
80
+ <?php foreach ($_items as $_item): ?>
81
+ <?php if ($_item->getOrderItem()->getParentItem()) continue; ?>
82
+ <tbody>
83
+ <?php echo $this->getItemHtml($_item) ?>
84
+ </tbody>
85
+ <?php endforeach; ?>
86
+ </table>
87
+ <script type="text/javascript">decorateTable('my-invoice-table-<?php echo $_invoice->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
88
+ <?php endforeach; ?>
app/design/frontend/default/blank/template/sales/order/invoice/items/renderer/default.phtml ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_item = $this->getItem() ?>
28
+ <?php $_order = $this->getItem()->getOrderItem()->getOrder() ?>
29
+ <tr class="border" id="order-item-row-<?php echo $_item->getId() ?>">
30
+ <td><h4 class="product-name"><?php echo $this->htmlEscape($_item->getName()) ?></h4>
31
+ <?php if($_options = $this->getItemOptions()): ?>
32
+ <dl class="item-options">
33
+ <?php foreach ($_options as $_option) : ?>
34
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
35
+ <?php if (!$this->getPrintStatus()): ?>
36
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option['value']) ?>
37
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
38
+ <?php echo $_formatedOptionValue['value'] ?>
39
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
40
+ <div class="truncated_full_value">
41
+ <dl class="item-options">
42
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
43
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
44
+ </dl>
45
+ </div>
46
+ <?php endif; ?>
47
+ </dd>
48
+ <?php else: ?>
49
+ <dd><?php echo $this->htmlEscape($_option['value']) ?></dd>
50
+ <?php endif; ?>
51
+ <?php endforeach; ?>
52
+ </dl>
53
+ <?php endif; ?>
54
+ <?php echo $_item->getDescription() ?>
55
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $_item->getOrderItem()) && $_item->getGiftMessageId()): ?>
56
+ <a href="#" id="order-item-gift-message-link-<?php echo $_item->getId() ?>" class="gift-message-link" onclick="return giftMessageToogle('<?php echo $_item->getId() ?>')"><?php echo $this->__('Gift Message') ?></a>
57
+ <?php endif; ?>
58
+ </td>
59
+ <td><?php echo Mage::helper('core/string')->splitInjection($this->getSku()) ?></td>
60
+ <td class="a-right">
61
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
62
+ <span class="price-excl-tax">
63
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
64
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
65
+ <?php endif; ?>
66
+ <?php echo $_order->formatPrice($_item->getPrice()) ?>
67
+ </span>
68
+ <?php endif; ?>
69
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
70
+ <span class="price-incl-tax">
71
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
72
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
73
+ <?php endif; ?>
74
+ <?php echo $_order->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
75
+ </span>
76
+ <?php endif; ?>
77
+ </td>
78
+ <td class="a-center"><?php echo $_item->getQty()*1 ?> </td>
79
+ <td class="a-right">
80
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
81
+ <span class="price-excl-tax">
82
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
83
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
84
+ <?php endif; ?>
85
+ <?php echo $_order->formatPrice($_item->getRowTotal()) ?>
86
+ </span>
87
+ <?php endif; ?>
88
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
89
+ <span class="price-incl-tax">
90
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
91
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
92
+ <?php endif; ?>
93
+ <?php echo $_order->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
94
+ </span>
95
+ <?php endif; ?>
96
+ </td>
97
+ </tr>
app/design/frontend/default/blank/template/sales/order/items.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_blank
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 $_order = $this->getOrder() ?>
28
+ <table class="data-table" id="my-orders-table">
29
+ <col />
30
+ <col width="25%" />
31
+ <col width="1" />
32
+ <col width="1" />
33
+ <col width="1" />
34
+ <thead>
35
+ <tr>
36
+ <th><?php echo $this->__('Product Name') ?></th>
37
+ <th><?php echo $this->__('SKU') ?></th>
38
+ <th class="a-right"><?php echo $this->__('Price') ?></th>
39
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
40
+ <th class="a-right"><?php echo $this->__('Subtotal') ?></th>
41
+ </tr>
42
+ <!-- tr>
43
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
44
+ <th class="a-center"><?php echo $this->__('Excl. Tax') ?></th>
45
+ <?php endif; ?>
46
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
47
+ <th class="a-center"><?php echo $this->__('Incl. Tax') ?></th>
48
+ <?php endif; ?>
49
+ <th class="a-center" width="6%"><?php echo $this->__('Ordered') ?></th>
50
+ <?php if (!$_order->getIsVirtual()): ?><th class="a-center" width="6%"><?php echo $this->__('Shipped') ?></th><?php endif; ?>
51
+ <th class="a-center" width="6%"><?php echo $this->__('Canceled') ?></th>
52
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
53
+ <th class="a-center"><?php echo $this->__('Excl. Tax') ?></th>
54
+ <?php endif; ?>
55
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
56
+ <th class="a-center"><?php echo $this->__('Incl. Tax') ?></th>
57
+ <?php endif; ?>
58
+ </tr -->
59
+ </thead>
60
+ <?php $colspan = 4; ?>
61
+ <tfoot>
62
+ <tr>
63
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><?php echo $this->__('Order Subtotal') ?></td>
64
+ <td class="a-right"><?php echo $_order->formatPrice($_order->getSubtotal()) ?></td>
65
+ </tr>
66
+ <?php if ($_order->getDiscountAmount() > 0): ?>
67
+ <tr>
68
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><?php echo $this->__('Discount '.($_order->getCouponCode()?'('.$_order->getCouponCode().')':'')) ?></td>
69
+ <td class="a-right"><?php echo $_order->formatPrice(0.00 - $_order->getDiscountAmount()) ?></td>
70
+ </tr>
71
+ <?php endif; ?>
72
+ <?php //if ($_order->getTaxAmount() > 0): ?>
73
+ <?php if (($_order->getTaxAmount() > 0)||(Mage::helper('tax')->displayZeroTax())): ?>
74
+ <?php echo $this->getChildHtml('tax'); ?>
75
+ <?php endif; ?>
76
+ <?php if ($_order->getShippingAmount() || $_order->getShippingDescription()): ?>
77
+ <tr>
78
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><?php echo $this->__('Shipping & Handling') ?></td>
79
+ <td class="a-right"><?php echo $_order->formatPrice($_order->getShippingAmount()) ?></td>
80
+ </tr>
81
+ <?php endif; ?>
82
+ <tr>
83
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><strong><?php echo $this->__('Grand Total') ?></strong></td>
84
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_order->getGrandTotal()) ?></strong></td>
85
+ </tr>
86
+ <?php if ($_order->isCurrencyDifferent()): ?>
87
+ <tr>
88
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><strong><?php echo $this->__('Grand Total to be charged') ?></strong></td>
89
+ <td class="a-right"><strong><?php echo $_order->formatBasePrice($_order->getBaseGrandTotal()) ?></strong></td>
90
+ </tr>
91
+ <?php endif; ?>
92
+ </tfoot>
93
+ <?php $_items = $_order->getItemsCollection(); ?>
94
+ <?php $_index = 0; ?>
95
+ <?php $_count = $_items->count(); ?>
96
+ <?php foreach ($_items as $_item): ?>
97
+ <?php if ($_item->getParentItem()) continue; ?>
98
+ <tbody>
99
+ <?php echo $this->getItemHtml($_item) ?>
100
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $_item) && $_item->getGiftMessageId()): ?>
101
+ <tr class="border<?php echo ($_index++ > $_count ?' last':'') ?>" id="order-item-gift-message-<?php echo $_item->getId() ?>" style="display:none;">
102
+ <?php $_giftMessage=$this->helper('giftmessage/message')->getGiftMessageForEntity($_item); ?>
103
+ <td class="gift-message-row" colspan="7">
104
+ <a href="#" onclick="return giftMessageToogle('<?php echo $_item->getId() ?>');" class="btn-close"><img src="<?php echo $this->getSkinUrl('images/gift-message-close.gif') ?>" alt="<?php echo $this->__('Close') ?>" title="<?php echo $this->__('Close') ?>" /></a>
105
+ <dl class="gift-message">
106
+ <dt><strong><?php echo $this->__('From') ?></strong> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?></dt>
107
+ <dt><strong><?php echo $this->__('To') ?></strong> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?></dt>
108
+ <dd><?php echo $this->helper('giftmessage/message')->getEscapedGiftMessage($_item) ?></dd>
109
+ </dl>
110
+ </td>
111
+ </tr>
112
+ <?php endif ?>
113
+ </tbody>
114
+ <?php endforeach; ?>
115
+ </table>
116
+ <script type="text/javascript">decorateTable('my-orders-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
app/design/frontend/default/blank/template/sales/order/items/renderer/default.phtml ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_item = $this->getItem() ?>
28
+ <tr class="border" id="order-item-row-<?php echo $_item->getId() ?>">
29
+ <td><h4 class="product-name"><?php echo $this->htmlEscape($_item->getName()) ?></h4>
30
+ <?php if($_options = $this->getItemOptions()): ?>
31
+ <dl class="item-options">
32
+ <?php foreach ($_options as $_option) : ?>
33
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
34
+ <?php if (!$this->getPrintStatus()): ?>
35
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option['value']) ?>
36
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
37
+ <?php echo $_formatedOptionValue['value'] ?>
38
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
39
+ <div class="truncated_full_value">
40
+ <dl class="item-options">
41
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
42
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
43
+ </dl>
44
+ </div>
45
+ <?php endif; ?>
46
+ </dd>
47
+ <?php else: ?>
48
+ <dd><?php echo $this->htmlEscape($_option['value']) ?></dd>
49
+ <?php endif; ?>
50
+ <?php endforeach; ?>
51
+ </dl>
52
+ <?php endif; ?>
53
+ <?php echo $_item->getDescription() ?>
54
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $_item) && $_item->getGiftMessageId()): ?>
55
+ <a href="#" id="order-item-gift-message-link-<?php echo $_item->getId() ?>" class="gift-message-link" onclick="return giftMessageToogle('<?php echo $_item->getId() ?>')"><?php echo $this->__('Gift Message') ?></a>
56
+ <?php endif; ?>
57
+ </td>
58
+ <td><?php echo Mage::helper('core/string')->splitInjection($this->getSku()) ?></td>
59
+ <td class="a-right">
60
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
61
+ <span class="price-excl-tax">
62
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
63
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
64
+ <?php endif; ?>
65
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getPrice()) ?>
66
+ </span>
67
+ <?php endif; ?>
68
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
69
+ <span class="price-incl-tax">
70
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
71
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
72
+ <?php endif; ?>
73
+ <?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getPriceInclTax($this->getItem())); ?>
74
+ </span>
75
+ <?php endif; ?>
76
+ </td>
77
+ <td class="a-right">
78
+ <span class="nobr">
79
+ <?php if ($this->getItem()->getQtyOrdered() > 0): ?>
80
+ <?php echo $this->__('Ordered'); ?>: <strong><?php echo $this->getItem()->getQtyOrdered()*1 ?></strong><br />
81
+ <?php endif; ?>
82
+ <?php if ($this->getItem()->getQtyShipped() > 0): ?>
83
+ <?php echo $this->__('Shipped'); ?>: <strong><?php echo $this->getItem()->getQtyShipped()*1 ?></strong><br />
84
+ <?php endif; ?>
85
+ <?php if ($this->getItem()->getQtyCanceled() > 0): ?>
86
+ <?php echo $this->__('Canceled'); ?>: <strong><?php echo $this->getItem()->getQtyCanceled()*1 ?></strong><br />
87
+ <?php endif; ?>
88
+ <?php if ($this->getItem()->getQtyRefunded() > 0): ?>
89
+ <?php echo $this->__('Refunded'); ?>: <strong><?php echo $this->getItem()->getQtyRefunded()*1 ?></strong><br />
90
+ <?php endif; ?>
91
+ </span>
92
+ </td>
93
+ <td class="a-right">
94
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
95
+ <span class="price-excl-tax">
96
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
97
+ <span class="label"><?php echo $this->__('Excl. Tax'); ?>:</span>
98
+ <?php endif; ?>
99
+ <?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()) ?>
100
+ </span>
101
+ <?php endif; ?>
102
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
103
+ <span class="price-incl-tax">
104
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
105
+ <span class="label"><?php echo $this->__('Incl. Tax'); ?>:</span>
106
+ <?php endif; ?>
107
+ <?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getSubtotalInclTax($this->getItem())); ?>
108
+ </span>
109
+ <?php endif; ?>
110
+ </td>
111
+ <!--
112
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceExclTax()): ?>
113
+ <th class="a-right"><?php echo $this->getOrder()->formatPrice($this->getItem()->getRowTotal()) ?></th>
114
+ <?php endif; ?>
115
+ <?php if ($this->helper('tax')->displayCartBothPrices() || $this->helper('tax')->displayCartPriceInclTax()): ?>
116
+ <th class="a-right"><?php echo $this->getOrder()->formatPrice($this->helper('checkout')->getSubtotalInclTax($this->getItem())); ?></th>
117
+ <?php endif; ?>
118
+ -->
119
+ </tr>
app/design/frontend/default/blank/template/sales/order/print.phtml ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_order = $this->getOrder() ?>
28
+ <h2><?php echo $this->__('Order #%s', $_order->getRealOrderId()) ?></h2>
29
+ <p><?php echo $this->__('Order Date: %s', $this->formatDate($_order->getCreatedAt(), 'long')) ?></p>
30
+ <div class="col2-set">
31
+ <?php if (!$_order->getIsVirtual()): ?>
32
+ <div class="col-1">
33
+ <h3><?php echo $this->__('Shipping Address') ?></h3>
34
+ <address><?php echo $_order->getShippingAddress()->format('html') ?></address>
35
+ </div>
36
+ <div class="col-2">
37
+ <?php else: ?>
38
+ <div class="col-1">
39
+ <?php endif; ?>
40
+ <h3><?php echo $this->__('Billing Address') ?></h3>
41
+ <address><?php echo $_order->getBillingAddress()->format('html') ?></address>
42
+ </div>
43
+ <?php if (!$_order->getIsVirtual()): ?>
44
+ </div>
45
+ <div class="col2-set">
46
+ <div class="col-1">
47
+ <h3><?php echo $this->__('Shipping Method') ?></h3>
48
+ <?php echo $_order->getShippingDescription() ?>
49
+ </div>
50
+ <?php endif; ?>
51
+ <div class="col-2">
52
+ <h3><?php echo $this->__('Payment Method') ?></h3>
53
+ <?php echo $this->getPaymentInfoHtml() ?>
54
+ </div>
55
+ </div>
56
+ <h3><?php echo $this->__('Items Ordered') ?></h3>
57
+ <table class="data-table" id="my-orders-table">
58
+ <col />
59
+ <col width="25%" />
60
+ <col width="1" />
61
+ <col width="1" />
62
+ <col width="1" />
63
+ <thead>
64
+ <tr>
65
+ <th><?php echo $this->__('Product Name') ?></th>
66
+ <th><?php echo $this->__('SKU') ?></th>
67
+ <th class="a-right"><?php echo $this->__('Price') ?></th>
68
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
69
+ <th class="a-right"><?php echo $this->__('Subtotal') ?></th>
70
+ </tr>
71
+ </thead>
72
+ <?php $colspan = 4; ?>
73
+ <tfoot>
74
+ <tr>
75
+ <td colspan="<?php echo $colspan; ?> " class="a-right"><?php echo $this->__('Order Subtotal') ?></td>
76
+ <td class="a-right"><?php echo $_order->formatPrice($_order->getSubtotal()) ?></td>
77
+ </tr>
78
+ <?php if ($_order->getDiscountAmount() > 0): ?>
79
+ <tr>
80
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><?php echo $this->__('Discount :') ?></td>
81
+ <td class="a-right"><?php echo $_order->formatPrice(0.00 - $_order->getDiscountAmount()) ?></td>
82
+ </tr>
83
+ <?php endif; ?>
84
+ <?php if ($_order->getTaxAmount() > 0): ?>
85
+ <?php echo $this->getChildHtml('tax'); ?>
86
+ <?php endif; ?>
87
+ <?php if (!$_order->getIsVirtual() && ($_order->getShippingAmount()*1 || $_order->getShippingDescription())): ?>
88
+ <tr>
89
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><?php echo $this->__('Shipping & Handling') ?></td>
90
+ <td class="a-right"><?php echo $_order->formatPrice($_order->getShippingAmount()) ?></td>
91
+ </tr>
92
+ <?php endif; ?>
93
+ <tr>
94
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><strong><?php echo $this->__('Grand Total') ?></strong></td>
95
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_order->getGrandTotal()) ?></strong></td>
96
+ </tr>
97
+ </tfoot>
98
+ <?php $_items = $_order->getItemsCollection(); ?>
99
+ <?php $_count = $_items->count(); ?>
100
+ <?php foreach ($_items as $_item): ?>
101
+ <?php if ($_item->getParentItem()) continue; ?>
102
+ <tbody>
103
+ <?php echo $this->getItemHtml($_item) ?>
104
+ </tbody>
105
+ <?php endforeach; ?>
106
+ </table>
107
+ <script type="text/javascript">decorateTable('my-orders-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
108
+ <script type="text/javascript">window.print();</script>
app/design/frontend/default/blank/template/sales/order/print/creditmemo.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_blank
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 $_order = $this->getOrder() ?>
28
+ <h2><?php echo $this->__('Order #%s', $_order->getRealOrderId()) ?></h2>
29
+ <p><?php echo $this->__('Order Date: %s', $this->formatDate($_order->getCreatedAt(), 'long')) ?></p>
30
+ <?php $_creditmemo = $this->getCreditmemo() ?>
31
+ <?php if($_creditmemo): ?>
32
+ <?php $_creditmemos = array($_creditmemo); ?>
33
+ <?php else: ?>
34
+ <?php $_creditmemos = $_order->getCreditmemosCollection() ?>
35
+ <?php endif; ?>
36
+ <?php foreach ($_creditmemos as $_creditmemo): ?>
37
+ <div class="page-title">
38
+ <h2><?php echo $this->__('Refund #%s', $_creditmemo->getIncrementId()) ?></h2>
39
+ </div>
40
+ <div class="col2-set">
41
+ <div class="col-1">
42
+ <?php if (!$_order->getIsVirtual()): ?>
43
+ <h3><?php echo $this->__('Shipping Address') ?></h3>
44
+ <?php $_shipping = $_creditmemo->getShippingAddress() ?>
45
+ <address><?php echo $_shipping->format('html') ?></address>
46
+ </div>
47
+ <div class="col-2">
48
+ <?php endif; ?>
49
+ <h3><?php echo $this->__('Billing Address') ?></h3>
50
+ <?php $_billing = $_creditmemo->getbillingAddress() ?>
51
+ <address><?php echo $_order->getBillingAddress()->format('html') ?></address>
52
+ </div>
53
+ <?php if (!$_order->getIsVirtual()): ?>
54
+ </div>
55
+ <div class="col2-set">
56
+ <div class="col-1">
57
+ <h3><?php echo $this->__('Shipping Method') ?></h3>
58
+ <?php echo $_order->getShippingDescription() ?>
59
+ </div>
60
+ <?php endif; ?>
61
+ <div class="col-2">
62
+ <h3><?php echo $this->__('Payment Method') ?></h3>
63
+ <?php echo $this->getPaymentInfoHtml() ?>
64
+ </div>
65
+ </div>
66
+ <br />
67
+ <h3><?php echo $this->__('Items Refunded') ?></h3>
68
+ <table class="data-table" id="my-refund-table-<?php echo $_creditmemo->getId(); ?>">
69
+ <col />
70
+ <col width="25%" />
71
+ <col width="1" />
72
+ <col width="1" />
73
+ <col width="1" />
74
+ <col width="1" />
75
+ <col width="1" />
76
+ <thead>
77
+ <tr>
78
+ <th><?php echo $this->__('Product Name') ?></th>
79
+ <th><?php echo $this->__('SKU') ?></th>
80
+ <th class="a-right"><?php echo $this->__('Price') ?></th>
81
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
82
+ <th class="a-right"><?php echo $this->__('Subtotal') ?></th>
83
+ <th class="a-center wrap"><?php echo $this->__('Discount Amount') ?></th>
84
+ <th class="a-center wrap"><?php echo $this->__('Row Total') ?></th>
85
+ </tr>
86
+ </thead>
87
+ <tfoot>
88
+ <?php if ((float) $_creditmemo->getSubtotal()): ?>
89
+ <tr>
90
+ <td colspan="6" class="a-right"><?php echo $this->__('Subtotal') ?></td>
91
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getSubtotal()) ?></td>
92
+ </tr>
93
+ <?php endif; ?>
94
+ <?php if ((float) $_creditmemo->getTaxAmount()): ?>
95
+ <tr>
96
+ <td colspan="6" class="a-right"><?php echo $this->__('Tax') ?></td>
97
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getTaxAmount()) ?></td>
98
+ </tr>
99
+ <?php endif; ?>
100
+
101
+ <?php if ((float) $_creditmemo->getShippingAmount() || $_creditmemo->getShippingDescription()): ?>
102
+ <tr>
103
+ <td colspan="6" class="a-right"><?php echo $this->__('Shipping') ?></td>
104
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getShippingAmount()) ?></td>
105
+ </tr>
106
+ <?php endif; ?>
107
+ <?php if ((float) $_creditmemo->getDiscountAmount()): ?>
108
+ <tr>
109
+ <td colspan="6" class="a-right"><?php echo $this->__('Discount') ?></td>
110
+ <td class="a-right"><?php echo $_order->formatPrice(-$_creditmemo->getDiscountAmount()) ?></td>
111
+ </tr>
112
+ <?php endif; ?>
113
+
114
+ <?php if ((float) $_creditmemo->getGiftcertAmount()): ?>
115
+ <tr>
116
+ <td colspan="6" class="a-right"><?php echo $this->__('Gift Certificate') ?></td>
117
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getGiftcertAmount()) ?></td>
118
+ </tr>
119
+ <?php endif; ?>
120
+
121
+ <?php if ((float) $_creditmemo->getAdjustmentPositive()): ?>
122
+ <tr>
123
+ <td colspan="6" class="a-right"><?php echo $this->__('Adjustment Refund') ?></td>
124
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getAdjustmentPositive()) ?></td>
125
+ </tr>
126
+ <?php endif; ?>
127
+
128
+ <?php if ((float) $_creditmemo->getAdjustmentNegative()): ?>
129
+ <tr>
130
+ <td colspan="6" class="a-right"><?php echo $this->__('Adjustment Fee') ?></td>
131
+ <td class="a-right"><?php echo $_order->formatPrice($_creditmemo->getAdjustmentNegative()) ?></td>
132
+ </tr>
133
+ <?php endif; ?>
134
+ <tr>
135
+ <td colspan="6" class="a-right"><strong><?php echo $this->__('Grand Total') ?></strong></td>
136
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getGrandTotal()) ?></strong></td>
137
+ </tr>
138
+ <?php if ($this->getCanDisplayTotalPaid()): ?>
139
+ <tr>
140
+ <td colspan="6" class="a-right"><strong><?php echo $this->__('Total Paid') ?></strong></td>
141
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getTotalPaid()) ?></strong></td>
142
+ </tr>
143
+ <?php endif; ?>
144
+ <?php if ($this->getCanDisplayTotalRefunded()): ?>
145
+ <tr>
146
+ <td colspan="6" class="a-right"><strong><?php echo $this->__('Total Refunded') ?></strong></td>
147
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getTotalRefunded()) ?></strong></td>
148
+ </tr>
149
+ <?php endif; ?>
150
+ <?php if ($this->getCanDisplayTotalDue()): ?>
151
+ <tr>
152
+ <td colspan="6" class="a-right"><strong><?php echo $this->__('Total Due') ?></strong></td>
153
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getTotalDue()) ?></strong></td>
154
+ </tr>
155
+ <?php endif; ?>
156
+ </tfoot>
157
+ <?php $_items = $_creditmemo->getAllItems(); ?>
158
+ <?php $_count = count($_items); ?>
159
+ <?php foreach ($_items as $_item): ?>
160
+ <?php if ($_item->getOrderItem()->getParentItem()) continue; ?>
161
+ <tbody>
162
+ <?php echo $this->getItemHtml($_item) ?>
163
+ </tbody>
164
+ <?php endforeach; ?>
165
+ </table>
166
+ <script type="text/javascript">decorateTable('my-refund-table-<?php echo $_creditmemo->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
167
+ <?php endforeach; ?>
168
+ <script type="text/javascript">window.print();</script>
app/design/frontend/default/blank/template/sales/order/print/invoice.phtml ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_order = $this->getOrder() ?>
28
+ <h2><?php echo $this->__('Order #%s', $_order->getRealOrderId()) ?></h2>
29
+ <p><?php echo $this->__('Order Date: %s', $this->formatDate($_order->getCreatedAt(), 'long')) ?></p>
30
+ <?php $_invoice = $this->getInvoice() ?>
31
+ <?php if($_invoice): ?>
32
+ <?php $_invoices = array($_invoice); ?>
33
+ <?php else: ?>
34
+ <?php $_invoices = $_order->getInvoiceCollection() ?>
35
+ <?php endif; ?>
36
+ <?php foreach ($_invoices as $_invoice): ?>
37
+ <div class="page-title">
38
+ <h2><?php echo $this->__('Invoice #%s', $_invoice->getIncrementId()) ?></h2>
39
+ </div>
40
+ <div class="col2-set">
41
+ <div class="col-1">
42
+ <?php if (!$_order->getIsVirtual()): ?>
43
+ <h3><?php echo $this->__('Shipping Address') ?></h3>
44
+ <?php $_shipping = $_invoice->getShippingAddress() ?>
45
+ <address><?php echo $_shipping->format('html') ?></address>
46
+ </div>
47
+ <div class="col-2">
48
+ <?php endif; ?>
49
+ <h3><?php echo $this->__('Billing Address') ?></h3>
50
+ <?php $_billing = $_invoice->getbillingAddress() ?>
51
+ <address><?php echo $_order->getBillingAddress()->format('html') ?></address>
52
+ </div>
53
+ <?php if (!$_order->getIsVirtual()): ?>
54
+ </div>
55
+ <br />
56
+ <div class="col2-set">
57
+ <div class="col-1">
58
+ <h3><?php echo $this->__('Shipping Method') ?></h3>
59
+ <?php echo $_order->getShippingDescription() ?>
60
+ </div>
61
+ <?php endif; ?>
62
+ <div class="col-2">
63
+ <h3><?php echo $this->__('Payment Method') ?></h3>
64
+ <?php echo $this->getPaymentInfoHtml() ?>
65
+ </div>
66
+ </div>
67
+ <br />
68
+ <h3><?php echo $this->__('Items Invoiced') ?></h3>
69
+ <table class="data-table" id="my-invoice-table-<?php echo $_invoice->getId(); ?>">
70
+ <col />
71
+ <col width="25%" />
72
+ <col width="1" />
73
+ <col width="1" />
74
+ <col width="1" />
75
+ <thead>
76
+ <tr>
77
+ <th><?php echo $this->__('Product Name') ?></th>
78
+ <th><?php echo $this->__('SKU') ?></th>
79
+ <th class="a-right"><?php echo $this->__('Price') ?></th>
80
+ <th class="a-center"><span class="nobr"><?php echo $this->__('Qty Invoiced') ?></span></th>
81
+ <th class="a-right"><?php echo $this->__('Subtotal') ?></th>
82
+ </tr>
83
+ </thead>
84
+ <?php $colspan = 4; ?>
85
+ <tfoot>
86
+ <?php if($_invoice->getSubtotal() != $_invoice->getGrandTotal()): ?>
87
+ <tr>
88
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><?php echo $this->__('Order Subtotal') ?></td>
89
+ <td class="a-right"><?php echo $_order->formatPrice($_invoice->getSubtotal()) ?></td>
90
+ </tr>
91
+ <?php endif; ?>
92
+ <?php if ($_invoice->getDiscountAmount() > 0): ?>
93
+ <tr>
94
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><?php echo $this->__('Discount :') ?></td>
95
+ <td class="a-right"><?php echo $_order->formatPrice(0.00 - $_invoice->getDiscountAmount()) ?></td>
96
+ </tr>
97
+ <?php endif; ?>
98
+ <?php if ($_invoice->getTaxAmount() > 0): ?>
99
+ <tr>
100
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><?php echo $this->__('Tax') ?></td>
101
+ <td class="a-right"><?php echo $_order->formatPrice($_invoice->getTaxAmount()) ?></td>
102
+ </tr>
103
+ <?php endif; ?>
104
+ <?php if ($_invoice->getShippingAmount()*1 || $_invoice->getShippingDescription()): ?>
105
+ <tr>
106
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><?php echo $this->__('Shipping & Handling') ?></td>
107
+ <td class="a-right"><?php echo $_order->formatPrice($_invoice->getShippingAmount()) ?></td>
108
+ </tr>
109
+ <?php endif; ?>
110
+ <tr>
111
+ <td colspan="<?php echo $colspan; ?>" class="a-right"><strong><?php echo $this->__('Grand Total') ?></strong></td>
112
+ <td class="a-right"><strong><?php echo $_order->formatPrice($_invoice->getGrandTotal()) ?></strong></td>
113
+ </tr>
114
+ </tfoot>
115
+ <?php $_items = $_invoice->getItemsCollection(); ?>
116
+ <?php $_count = $_items->count(); ?>
117
+ <?php foreach ($_items as $_item): ?>
118
+ <?php if ($_item->getOrderItem()->getParentItem()) continue; ?>
119
+ <tbody>
120
+ <?php echo $this->getItemHtml($_item) ?>
121
+ </tbody>
122
+ <?php endforeach; ?>
123
+ </table>
124
+ <script type="text/javascript">decorateTable('my-invoice-table-<?php echo $_invoice->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
125
+ <?php endforeach; ?>
126
+ <script type="text/javascript">window.print();</script>
app/design/frontend/default/blank/template/sales/order/print/shipment.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_blank
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 $_order = $this->getOrder() ?>
28
+ <h2><?php echo $this->__('Order #%s', $_order->getRealOrderId()) ?></h2>
29
+ <p><?php echo $this->__('Order Date: %s', $this->formatDate($_order->getCreatedAt(), 'long')) ?></p>
30
+ <?php if (!$_order->getIsVirtual()): ?>
31
+ <?php $_shipment = $this->getShipment() ?>
32
+ <?php if($_shipment): ?>
33
+ <?php $_shipments = array($_shipment); ?>
34
+ <?php else: ?>
35
+ <?php $_shipments = $_order->getShipmentsCollection() ?>
36
+ <?php endif; ?>
37
+ <?php foreach ($_shipments as $_shipment): ?>
38
+ <div class="page-title">
39
+ <h2><?php echo $this->__('Shipment #%s', $_shipment->getIncrementId()) ?></h2>
40
+ </div>
41
+ <div class="col2-set">
42
+ <div class="col-1">
43
+ <h3><?php echo $this->__('Shipping Address') ?></h3>
44
+ <?php $_shipping = $_shipment->getShippingAddress() ?>
45
+ <address><?php echo $_shipping->format('html') ?></address>
46
+ </div>
47
+ <div class="col-2">
48
+ <h3><?php echo $this->__('Billing Address') ?></h3>
49
+ <?php $_billing = $_shipment->getbillingAddress() ?>
50
+ <address><?php echo $_order->getBillingAddress()->format('html') ?></address>
51
+ </div>
52
+ </div>
53
+ <br />
54
+ <div class="col2-set">
55
+ <div class="col-1">
56
+ <h3><?php echo $this->__('Shipping Method') ?></h3>
57
+ <?php echo $_order->getShippingDescription() ?>
58
+ </div>
59
+ <div class="col-2">
60
+ <h3><?php echo $this->__('Payment Method') ?></h3>
61
+ <?php echo $this->getPaymentInfoHtml() ?>
62
+ </div>
63
+ </div>
64
+ <br />
65
+ <h3><?php echo $this->__('Items Shipped') ?></h3>
66
+ <table class="data-table" id="my-shipment-table-<?php echo $_shipment->getId(); ?>">
67
+ <col />
68
+ <col width="35%" />
69
+ <col width="1" />
70
+ <thead>
71
+ <tr>
72
+ <th><?php echo $this->__('Product Name') ?></th>
73
+ <th><?php echo $this->__('SKU') ?></th>
74
+ <th class="a-center"><span class="nobr"><?php echo $this->__('Qty Shipped') ?></span></th>
75
+ </tr>
76
+ </thead>
77
+ <?php $_items = $_shipment->getItemsCollection(); ?>
78
+ <?php $_count = count($_items) ?>
79
+ <?php foreach ($_items as $_item): ?>
80
+ <?php if ($_item->getOrderItem()->getParentItem()) continue; ?>
81
+ <tbody>
82
+ <?php echo $this->getItemHtml($_item) ?>
83
+ </tbody>
84
+ <?php endforeach; ?>
85
+ </table>
86
+ <script type="text/javascript">decorateTable('my-shipment-table-<?php echo $_shipment->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
87
+ <?php endforeach; ?>
88
+ <?php endif; ?>
89
+ <script type="text/javascript">window.print();</script>
app/design/frontend/default/blank/template/sales/order/print/tax.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_blank
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 $_order = $this->getOrder(); ?>
28
+ <?php $_fullInfo = $_order->getFullTaxInfo(); ?>
29
+
30
+ <?php global $taxIter; $taxIter++; ?>
31
+ <?php if ($this->helper('tax')->displayFullSummary()): ?>
32
+ <?php $isTop = 1; ?>
33
+ <?php if ($_fullInfo) foreach ($_fullInfo as $info): ?>
34
+ <?php $percent = $info['percent']; ?>
35
+ <?php $amount = $info['amount']; ?>
36
+ <?php $rates = $info['rates']; ?>
37
+ <?php $isFirst = 1; ?>
38
+
39
+ <?php foreach ($rates as $rate): ?>
40
+ <tr class="tax-details-<?php echo $taxIter; ?> tax-details<?php if ($isTop): echo ' tax-details-first'; endif; ?>">
41
+ <td class="a-right" colspan="4"><?php echo $rate['title']; ?> - <?php echo $rate['percent']; ?>%</td>
42
+ <?php if ($isFirst): ?>
43
+ <td rowspan="<?php echo count($rates); ?>" class="a-right"><?php echo $_order->formatPrice($amount); ?></td>
44
+ <?php endif; ?>
45
+ </tr>
46
+ <?php $isFirst = 0; ?>
47
+ <?php $isTop = 0; ?>
48
+ <?php endforeach; ?>
49
+ <?php endforeach; ?>
50
+ <?php endif;?>
51
+ <tr class="show-details">
52
+ <td class="a-right" colspan="4">
53
+ <?php if ($this->helper('tax')->displayFullSummary()): ?>
54
+ <?php echo $this->__('Tax'); ?>
55
+ <?php else: ?>
56
+ <?php echo $this->__('Tax'); ?>
57
+ <?php endif;?>
58
+ </td>
59
+ <td class="a-right"><?php echo $_order->formatPrice($_order->getTaxAmount()) ?></td>
60
+ </tr>
app/design/frontend/default/blank/template/sales/order/recent.phtml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="recent-orders">
28
+ <?php $_orders = $this->getOrders(); ?>
29
+ <div class="title-buttons">
30
+ <h3><?php echo $this->__('Recent Orders') ?></h3>
31
+ <?php if( sizeof($_orders->getItems()) > 0 ): ?><a href="<?php echo $this->getUrl('sales/order/history') ?>"><?php echo $this->__('View All') ?></a><?php endif; ?>
32
+ </div>
33
+ <?php if( sizeof($_orders->getItems()) > 0 ): ?>
34
+ <table class="data-table" id="my-orders-table">
35
+ <col />
36
+ <col />
37
+ <col />
38
+ <col width="1" />
39
+ <col width="1" />
40
+ <col width="1" />
41
+ <thead>
42
+ <tr>
43
+ <th><?php echo $this->__('Order #') ?></th>
44
+ <th><?php echo $this->__('Date') ?></th>
45
+ <th><?php echo $this->__('Ship to') ?></th>
46
+ <th><span class="nobr"><?php echo $this->__('Order Total') ?></span></th>
47
+ <th><?php echo $this->__('Status') ?></th>
48
+ <th>&nbsp;</th>
49
+ </tr>
50
+ </thead>
51
+ <tbody>
52
+ <?php foreach ($_orders as $_order): ?>
53
+ <tr>
54
+ <td><?php echo $_order->getRealOrderId() ?></td>
55
+ <td><?php echo $this->formatDate($_order->getCreatedAt()) ?> </td>
56
+ <td><?php echo $_order->getShippingAddress() ? $this->htmlEscape($_order->getShippingAddress()->getName()) : '&nbsp;' ?></td>
57
+ <td><?php echo $_order->formatPrice($_order->getGrandTotal()) ?></td>
58
+ <td><em><?php echo $_order->getStatusLabel() ?></em></td>
59
+ <td class="a-center">
60
+ <span class="nobr">
61
+ <a href="<?php echo $this->getViewUrl($_order) ?>"><?php echo $this->__('View Order') ?></a>
62
+ <?php if ($this->helper('sales/reorder')->canReorder($_order)) : ?>
63
+ <span class="separator">|</span> <a href="<?php echo $this->getReorderUrl($_order) ?>"><?php echo $this->__('Reorder') ?></a>
64
+ <?php endif ?>
65
+ </span>
66
+ </td>
67
+ </tr>
68
+ <?php endforeach; ?>
69
+ </tbody>
70
+ </table>
71
+ <script type="text/javascript">decorateTable('my-orders-table')</script>
72
+ <?php else: ?>
73
+ <p><?php echo $this->__('You have placed no orders.'); ?></p>
74
+ <?php endif; ?>
75
+ </div>
app/design/frontend/default/blank/template/sales/order/shipment.phtml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 if($this->helper('giftmessage/message')->getIsMessagesAvailable('order', $this->getOrder())): ?>
28
+ <script type="text/javascript">
29
+ //<![CDATA[
30
+ function giftMessageToogle(giftMessageIdentifier)
31
+ {
32
+ var link = $('order-item-gift-message-link-'+giftMessageIdentifier);
33
+ var container = $('order-item-gift-message-'+giftMessageIdentifier);
34
+ var row = $('order-item-row-'+giftMessageIdentifier);
35
+
36
+
37
+ if(link.expanded) {
38
+ link.expanded = false;
39
+ link.removeClassName('expanded');
40
+ if(container.hasClassName('last')) {
41
+ row.addClassName('last');
42
+ }
43
+ container.hide();
44
+ } else {
45
+ link.expanded = true;
46
+ link.addClassName('expanded');
47
+ if(container.hasClassName('last')) {
48
+ row.removeClassName('last');
49
+ }
50
+ container.show();
51
+ }
52
+
53
+ return false;
54
+ }
55
+ //]]>
56
+ </script>
57
+ <?php endif; ?>
58
+ <?php echo $this->getChildHtml('shipment_items') ?>
59
+ <div class="buttons-set">
60
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to My Orders') ?></a>
61
+ </div>
app/design/frontend/default/blank/template/sales/order/shipment/items.phtml ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_order = $this->getOrder() ?>
28
+ <?php if ($_order->getTracksCollection()->count()) : ?>
29
+ <p class="a-right">
30
+ <a href="#" onclick="popWin('<?php echo $this->helper('shipping')->getTrackingPopUpUrlByOrderId($_order->getId()) ?>','trackorder','width=800,height=600,left=50,top=50,resizable=yes,scrollbars=yes'); return false;" title="<?php echo $this->__('Track all shipment(s)') ?>"><?php echo $this->__('Track all shipments') ?></a>
31
+ </p>
32
+ <?php endif; ?>
33
+ <p class="a-right"><a href="<?php echo $this->getPrintAllShipmentsUrl($_order) ?>" onclick="this.target='_blank'"><?php echo $this->__('Print All Shipments') ?></a></p>
34
+ <?php foreach ($_order->getShipmentsCollection() as $_shipment): ?>
35
+ <div class="page-title">
36
+ <h2><?php echo $this->__('Shipment #') ?><?php echo $_shipment->getIncrementId(); ?></h2>
37
+ <a href="<?php echo $this->getPrintShipmentUrl($_shipment) ?>" onclick="this.target='_blank'"><?php echo $this->__('Print Shipment') ?></a>
38
+ </div>
39
+ <?php $tracks = $_shipment->getTracksCollection(); ?>
40
+ <?php if ($tracks->count()): ?>
41
+ <table class="data-table">
42
+ <tr>
43
+ <td colspan="2">
44
+ <a href="#" onclick="popWin('<?php echo $this->helper('shipping')->getTrackingPopUpUrlByShipId($_shipment->getId()) ?>','trackshipment','width=800,height=600,resizable=yes,scrollbars=yes'); return false;" title="<?php echo $this->__('Track this shipment') ?>"><?php echo $this->__('Track this shipment') ?></a>
45
+ </td>
46
+ </tr>
47
+ <tr>
48
+ <td class="label"><?php echo $this->__('Tracking Number(s)') ?>:</td>
49
+ <td>&nbsp;
50
+ <?php
51
+ $i = 1;
52
+ $_size = $tracks->count();
53
+ foreach($tracks as $track): ?>
54
+ <?php if($track->isCustom()): ?>
55
+ <?php echo $track->getNumber() ?>
56
+ <?php else: ?>
57
+ <a href="#" onclick="popWin('<?php echo $this->helper('shipping')->getTrackingPopUpUrlByTrackID($track->getEntityId()) ?>','trackorder','width=800,height=600,left=50,top=50,resizable=yes,scrollbars=yes')" ><?php echo $track->getNumber() ?></a>
58
+ <?php endif; ?>
59
+ <?php if($i!=$_size): ?>, <?php endif; ?>
60
+ <?php $i++;
61
+ endforeach; ?>
62
+ </td>
63
+ </tr>
64
+ </table>
65
+ <?php endif; ?>
66
+ <h3><?php echo $this->__('Items Shipped') ?></h3>
67
+ <table class="data-table" id="my-shipment-table-<?php echo $_shipment->getId(); ?>">
68
+ <col />
69
+ <col width="35%" />
70
+ <col width="1" />
71
+ <thead>
72
+ <tr>
73
+ <th><?php echo $this->__('Product Name') ?></th>
74
+ <th><?php echo $this->__('SKU') ?></th>
75
+ <th class="a-center"><span class="nobr"><?php echo $this->__('Qty Shipped') ?></span></th>
76
+ </tr>
77
+ </thead>
78
+ <?php $_items = $_shipment->getAllItems(); ?>
79
+ <?php $_count = count($_items) ?>
80
+ <?php foreach ($_items as $_item): ?>
81
+ <?php if ($_item->getOrderItem()->getParentItem()) continue; ?>
82
+ <tbody>
83
+ <?php echo $this->getItemHtml($_item) ?>
84
+ </tbody>
85
+ <?php endforeach; ?>
86
+ </table>
87
+ <script type="text/javascript">decorateTable('my-shipment-table-<?php echo $_shipment->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
88
+ <?php endforeach; ?>
app/design/frontend/default/blank/template/sales/order/shipment/items/renderer/default.phtml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_item = $this->getItem() ?>
28
+ <?php $_order = $this->getItem()->getOrderItem()->getOrder() ?>
29
+ <tr class="border" id="order-item-row-<?php echo $_item->getId() ?>">
30
+ <td><h4 class="product-name"><?php echo $this->htmlEscape($_item->getName()) ?></h4>
31
+ <?php if($_options = $this->getItemOptions()): ?>
32
+ <dl class="item-options">
33
+ <?php foreach ($_options as $_option) : ?>
34
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
35
+ <?php if (!$this->getPrintStatus()): ?>
36
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option['value']) ?>
37
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>>
38
+ <?php echo $_formatedOptionValue['value'] ?>
39
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
40
+ <div class="truncated_full_value">
41
+ <dl class="item-options">
42
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
43
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
44
+ </dl>
45
+ </div>
46
+ <?php endif; ?>
47
+ </dd>
48
+ <?php else: ?>
49
+ <dd><?php echo $this->htmlEscape($_option['value']) ?></dd>
50
+ <?php endif; ?>
51
+ <?php endforeach; ?>
52
+ </dl>
53
+ <?php endif; ?>
54
+ <?php echo $_item->getDescription() ?>
55
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order_item', $_item->getOrderItem()) && $_item->getGiftMessageId()): ?>
56
+ <a href="#" id="order-item-gift-message-link-<?php echo $_item->getId() ?>" class="gift-message-link" onclick="return giftMessageToogle('<?php echo $_item->getId() ?>')"><?php echo $this->__('Gift Message') ?></a>
57
+ <?php endif; ?>
58
+ </td>
59
+ <td><?php echo Mage::helper('core/string')->splitInjection($this->getSku()) ?></td>
60
+ <td class="a-center"><?php echo $_item->getQty()*1 ?></td>
61
+ </tr>
app/design/frontend/default/blank/template/sales/order/tax.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_blank
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 $_order = $this->getOrder(); ?>
28
+ <?php $_fullInfo = $_order->getFullTaxInfo(); ?>
29
+
30
+ <?php global $taxIter; $taxIter++; ?>
31
+ <?php if ($this->helper('tax')->displayFullSummary()): ?>
32
+ <?php $isTop = 1; ?>
33
+ <?php if ($_fullInfo) foreach ($_fullInfo as $info): ?>
34
+ <?php $percent = $info['percent']; ?>
35
+ <?php $amount = $info['amount']; ?>
36
+ <?php $rates = $info['rates']; ?>
37
+ <?php $isFirst = 1; ?>
38
+
39
+ <?php foreach ($rates as $rate): ?>
40
+ <tr class="tax-details-<?php echo $taxIter; ?> tax-details<?php if ($isTop): echo ' tax-details-first'; endif; ?>" style="display:none;">
41
+ <td class="a-right" colspan="4">
42
+ <?php echo $rate['title']; ?> - <?php echo $rate['percent']; ?>%
43
+ </td>
44
+ <?php if ($isFirst): ?>
45
+ <td rowspan="<?php echo count($rates); ?>" class="a-right">
46
+ <?php echo $_order->formatPrice($amount); ?>
47
+ </td>
48
+ <?php endif; ?>
49
+ </tr>
50
+ <?php $isFirst = 0; ?>
51
+ <?php $isTop = 0; ?>
52
+ <?php endforeach; ?>
53
+ <?php endforeach; ?>
54
+ <?php endif;?>
55
+ <tr<?php if ($this->helper('tax')->displayFullSummary()): ?> class="tax-total" onclick="expandDetails(this, '.tax-details-<?php echo $taxIter;?>')"<?php endif; ?>>
56
+ <td class="a-right" colspan="4">
57
+ <?php if ($this->helper('tax')->displayFullSummary()): ?>
58
+ <div class="tax-collapse"><?php echo $this->__('Tax'); ?></div>
59
+ <?php else: ?>
60
+ <?php echo $this->__('Tax'); ?>
61
+ <?php endif;?>
62
+ </td>
63
+ <td class="a-right"><?php echo $_order->formatPrice($_order->getTaxAmount()) ?></td>
64
+ </tr>
app/design/frontend/default/blank/template/sales/order/trackinginfo.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_blank
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
+ <span class="field-row grid" id="shipment_tracking_info">
28
+
29
+ <?php if($this->trackingInfo): ?>
30
+
31
+ <strong><?php echo $this->trackingInfo->getCarrierTitle() ?></strong> - <?php echo $this->trackingInfo->getTracking() ?>
32
+ <div class="info">
33
+ <?php if ($this->trackingInfo->getErrorMessage()): ?>
34
+ <?php echo $this->trackingInfo->getErrorMessage() ?>
35
+ <?php else: ?>
36
+ <?php if ($this->trackingInfo->getUrl()): ?>
37
+ Please, visit for more info: <a href="<?php echo $this->trackingInfo->getUrl() ?>" target="_blank"><?php echo $this->trackingInfo->getCarrierTitle() ?></a><br />
38
+ <?php endif; ?>
39
+
40
+ <?php if ($this->trackingInfo->getStatus()): ?>
41
+ Status: <?php echo $this->trackingInfo->getStatus() ?><br />
42
+ <?php endif; ?>
43
+
44
+ <?php if ($this->trackingInfo->getDeliverydate()): ?>
45
+ Delivery Date: <?php echo $this->trackingInfo->getDeliverydate() ?><br />
46
+ <?php endif; ?>
47
+
48
+ <?php if ($this->trackingInfo->getDeliverytime()): ?>
49
+ Delivery Time: <?php echo $this->trackingInfo->getDeliverytime() ?><br />
50
+ <?php endif; ?>
51
+
52
+ <?php if ($this->trackingInfo->getDeliverylocation()): ?>
53
+ Delivery Location: <?php echo $this->trackingInfo->getDeliverylocation() ?><br />
54
+ <?php endif; ?>
55
+
56
+ <?php if ($this->trackingInfo->getSignedby()): ?>
57
+ Signed by: <?php echo $this->trackingInfo->getSignedby() ?><br />
58
+ <?php endif; ?>
59
+
60
+ <?php if ($this->trackingInfo->getTrackSummary()): ?>
61
+ Tracking summary: <?php echo $this->trackingInfo->getTrackSummary() ?><br />
62
+ <?php endif; ?>
63
+
64
+ <?php endif; ?>
65
+ </div>
66
+ <?php endif; ?>
67
+
68
+ </span>
app/design/frontend/default/blank/template/sales/order/view.phtml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 if ($this->helper('giftmessage/message')->getIsMessagesAvailable('items', $this->getOrder())): ?>
28
+ <script type="text/javascript">
29
+ //<![CDATA[
30
+ function giftMessageToogle(giftMessageIdentifier)
31
+ {
32
+ var link = $('order-item-gift-message-link-'+giftMessageIdentifier);
33
+ var container = $('order-item-gift-message-'+giftMessageIdentifier);
34
+ var row = $('order-item-row-'+giftMessageIdentifier);
35
+ if(link.expanded) {
36
+ link.expanded = false;
37
+ link.removeClassName('expanded');
38
+ if(container.hasClassName('last')) {
39
+ row.addClassName('last');
40
+ }
41
+ container.hide();
42
+ } else {
43
+ link.expanded = true;
44
+ link.addClassName('expanded');
45
+ if(container.hasClassName('last')) {
46
+ row.removeClassName('last');
47
+ }
48
+ container.show();
49
+ }
50
+
51
+ return false;
52
+ }
53
+ //]]>
54
+ </script>
55
+ <?php endif; ?>
56
+ <?php $_order = $this->getOrder() ?>
57
+ <h3><?php echo $this->__('Items Ordered') ?>
58
+ <?php if ($_order->getTracksCollection()->count()) : ?>
59
+ <span class="separator">|</span> <a href="#" onclick="popWin('<?php echo $this->helper('shipping')->getTrackingPopUpUrlByOrderId($_order->getId()) ?>','trackorder','top=50,left=50,width=800,height=600,resizable=yes,scrollbars=yes'); return false;" title="<?php echo $this->__('Track your order') ?>"><?php echo $this->__('Track your order') ?></a>
60
+ <?php endif; ?>
61
+ </h3>
62
+
63
+ <?php echo $this->getChildHtml('order_items') ?>
64
+
65
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order', $_order) && $_order->getGiftMessageId()): ?>
66
+ <h3><?php echo $this->__('Gift Message for this Order') ?></h3>
67
+ <?php $_giftMessage=$this->helper('giftmessage/message')->getGiftMessageForEntity($_order); ?>
68
+ <dl class="gift-message">
69
+ <dt><strong><?php echo $this->__('From') ?></strong> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?></dt>
70
+ <dt><strong><?php echo $this->__('To') ?></strong> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?></dt>
71
+ <dd><?php echo $this->helper('giftmessage/message')->getEscapedGiftMessage($_order) ?></dd>
72
+ </dl>
73
+ <?php endif; ?>
74
+ <?php $_history = $this->getOrder()->getVisibleStatusHistory() ?>
75
+ <?php if (count($_history)): ?>
76
+ <h3><?php echo $this->__('About Your Order') ?></h3>
77
+ <dl>
78
+ <?php foreach ($_history as $_historyItem): ?>
79
+ <dt><?php echo $this->formatDate($_historyItem->getCreatedAt(), 'medium', true) ?></dt>
80
+ <dd><?php echo $_historyItem->getComment() ?></dd>
81
+ <?php endforeach; ?>
82
+ </dl>
83
+ <?php endif; ?>
84
+ <div class="buttons-set">
85
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back to My Orders') ?></a>
86
+ </div>
app/design/frontend/default/blank/template/sales/reorder/sidebar.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_blank
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
28
+ /**
29
+ * Last order sidebar
30
+ *
31
+ * @see Mage_Sale_Block_Reorder_Sidebar
32
+ */
33
+ ?>
34
+ <?php if($_order = $this->getLastOrder()): ?>
35
+ <div class="block block-reorder">
36
+ <div class="block-title">
37
+ <h2><?php echo $this->__('My Orders') ?> <span class="separator">|</span> <a href="<?php echo $this->getUrl('customer/account') ?>">View All</a></h2>
38
+ </div>
39
+ <div class="block-content">
40
+ <h3><?php echo $this->__('Last ordered items') ?></h3>
41
+ <form method="post" action="<?php echo $this->getUrl('checkout/cart/addgroup') ?>" id="reorder-validate-detail">
42
+ <fieldset>
43
+ <ol id="cart-sidebar-reorder">
44
+ <?php $_showAddButtonFlag = false ?>
45
+ <?php foreach ($_order->getItemsRandomCollection(5) as $_item): ?>
46
+ <?php if ($_item->getProduct() && is_null($_item->getParentItem())): ?>
47
+ <li>
48
+ <?php if ($_item->getProduct()->getStockItem()->getIsInStock()): ?>
49
+ <?php $_showAddButtonFlag = true ?>
50
+ <input type="checkbox" name="order_items[]" id="reorder-item-<?php echo $_item->getId() ?>" value="<?php echo $_item->getId() ?>" class="checkbox validate-one-required-by-name" />
51
+ <script type="text/javascript">
52
+ //<![CDATA[
53
+ $('reorder-item-<?php echo $_item->getId() ?>').advaiceContainer = 'cart-sidebar-reorder-advice-container';
54
+ //]]>
55
+ </script>
56
+ <?php endif; ?>
57
+ <span class="label"><a href="<?php echo $_item->getProduct()->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></span>
58
+ </li>
59
+ <?php endif; ?>
60
+ <?php endforeach; ?>
61
+ </ol>
62
+ <script type="text/javascript">decorateList('cart-sidebar-reorder')</script>
63
+ <div id="cart-sidebar-reorder-advice-container"></div>
64
+ <?php if ($_showAddButtonFlag): ?>
65
+ <div class="actions">
66
+ <button type="submit" class="button"><span><?php echo $this->__('Add to Cart') ?></span></button>
67
+ </div>
68
+ <?php endif; ?>
69
+ </fieldset>
70
+ </form>
71
+ </div>
72
+ </div>
73
+ <?php echo $this->getPagerHtml(); ?>
74
+ <script type="text/javascript">
75
+ //<![CDATA[
76
+ var reorderFormDetail = new VarienForm('reorder-validate-detail');
77
+ //]]>
78
+ </script>
79
+ <?php endif ?>
app/design/frontend/default/blank/template/sendfriend/send.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_blank
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
+ /**
28
+ * Send to friend form
29
+ *
30
+ * @see Mage_Sendfriend_Block_Index
31
+ */
32
+ ?>
33
+ <script type="text/javascript">
34
+ //<![CDATA[
35
+ i=0;
36
+ var recipCount = 1;
37
+ var maxRecip = <?php echo $this->getMaxRecipients() ?>;
38
+ function remove_recipient(i){
39
+ $('recipients_name'+i).up(2).remove();
40
+ recipCount--;
41
+ if(recipCount<maxRecip && maxRecip != 0) {
42
+ $('add_recipient_button').show();
43
+ $('max_recipient_message').hide();
44
+ }
45
+ return false;
46
+ }
47
+
48
+ function add_recipient(){
49
+ ul = $('recipients_options');
50
+ var li_mail = Element.extend(document.createElement("LI"));
51
+ li_mail.addClassName('add-row');
52
+ li_mail.innerHTML = '<a href="delete_email" onclick="remove_recipient('+i+'); return false" class="btn-remove"><img src="<?php echo $this->getSkinUrl('images/list_remove_btn.gif') ?>" alt="<?php echo $this->__('Remove Email') ?>" title="<?php echo $this->__('Remove Email') ?>" /><\/a>'
53
+ li_mail.innerHTML += '<div class="input-box"><label for="recipients_name'+i+'"><?php echo $this->__('Name:') ?> <span class="required">*<\/span><\/label><br /><div><input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name'+i+'" /><\/div>';
54
+ li_mail.innerHTML += '<div class="input-box"><label for="recipients_email'+i+'"><?php echo $this->__('Email Address:') ?><span class="required">*<\/span><\/label><br /><input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email'+i+'" type="text" class="input-text required-entry validate-email" /><\/div>';
55
+ i++;
56
+ recipCount++;
57
+ if(recipCount>=maxRecip && maxRecip != 0) {
58
+ $('add_recipient_button').hide();
59
+ $('max_recipient_message').show();
60
+ }
61
+
62
+ ul.appendChild(li_mail);
63
+ }
64
+ //]]>
65
+ </script>
66
+
67
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
68
+ <div class="page-title">
69
+ <h2><?php echo $this->__('Email to a Friend') ?></h2>
70
+ </div>
71
+ <form action="<?php echo $this->getUrl('*/*/sendmail', array('id'=>$this->getProductId(), 'cat_id'=>$this->getCategoryId())) ?>" method="post" id="product_sendtofriend_form">
72
+ <fieldset>
73
+ <h3><?php echo $this->__('Sender:') ?></h3>
74
+ <ul class="form-list group-select" id="sender_options">
75
+ <li>
76
+ <div class="input-box">
77
+ <label for="sender_name"><?php echo $this->__('Name:') ?> <span class="required">*</span></label><br />
78
+ <input name="sender[name]" value="<?php echo $this->htmlEscape($this->getUserName()) ?>" title="<?php echo $this->__('Name') ?>" id="sender_name" type="text" class="input-text required-entry" />
79
+ </div>
80
+ <div class="input-box">
81
+ <label for="sender_email"><?php echo $this->__('Email:') ?> <span class="required">*</span></label><br />
82
+ <input name="sender[email]" value="<?php echo $this->htmlEscape($this->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" id="sender_email" type="text" class="input-text required-entry validate-email" /></div>
83
+ </li>
84
+ <li>
85
+ <label for="sender_message"><?php echo $this->__('Message:') ?></label> <span class="required">*</span><br />
86
+ <textarea name="sender[message]" class="input-text required-entry" id="sender_message" cols="3" rows="3" style="height:100px;"><?php echo $this->htmlEscape($this->getFormData()->getData('sender/message'))?></textarea>
87
+ </li>
88
+ </ul>
89
+ </fieldset>
90
+ <fieldset>
91
+ <h3><?php echo $this->__('Recipient:') ?></h3>
92
+ <ul class="form-list group-select" id="recipients_options">
93
+ <li>
94
+ <div class="input-box">
95
+ <label for="recipients_name"><?php echo $this->__('Name:') ?> <span class="required">*</span></label><br />
96
+ <input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name" />
97
+ </div>
98
+ <div class="input-box">
99
+ <label for="recipients_email"><?php echo $this->__('Email Address:') ?> <span class="required">*</span></label><br />
100
+ <input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email" type="text" class="input-text required-entry validate-email" />
101
+ </div>
102
+ </li>
103
+ </ul>
104
+ <div class="buttons-set">
105
+ <button type="submit" class="button"><span><?php echo $this->__('Send email') ?></span></button>
106
+ <div id="max_recipient_message" style="display:none;">
107
+ <?php if ($this->getMaxRecipients()): ?>
108
+ <p><?php echo $this->__('Maximum %d email addresses allowed.', $this->getMaxRecipients()) ?></p>
109
+ <?php endif; ?>
110
+ </div>
111
+ <?php if (1 < $this->getMaxRecipients()): ?>
112
+ <p id="add_recipient_button">
113
+ <button class="button" onclick="add_recipient();" type="button"><span><?php echo $this->__('Add Recipient') ?></span></button>
114
+ </p>
115
+ <?php endif; ?>
116
+ </div>
117
+ </fieldset>
118
+ </form>
119
+ <script type="text/javascript">
120
+ //<![CDATA[
121
+ var productSendtofriendForm = new VarienForm('product_sendtofriend_form');
122
+ productSendtofriendForm.submit = function() {
123
+ if(this.validator.validate()) {
124
+ this.form.submit();
125
+ }
126
+ }.bind(productSendtofriendForm);
127
+ //]]>
128
+ </script>
app/design/frontend/default/blank/template/shipping/tracking/ajax.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ ?>
app/design/frontend/default/blank/template/shipping/tracking/popup.phtml ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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 $_results = $this->getTrackingInfo() ?>
28
+ <div class="buttons-set">
29
+ <button class="button" onclick="window.close(); window.opener.focus();"><span><?php echo $this->__('Close Window') ?></span></button>
30
+ </div>
31
+ <?php if(sizeof($_results)>0): ?>
32
+ <?php foreach($_results as $shipid => $_result): ?>
33
+ <?php if($shipid): ?>
34
+ <h3><?php echo $this->__('Shipment #').$shipid; ?></h3>
35
+ <?php endif; ?>
36
+ <?php if(sizeof($_result)>0): ?>
37
+ <?php $rowCount = sizeof($_result); $counter = 1; ?>
38
+ <?php foreach($_result as $track): ?>
39
+ <table class="data-table">
40
+ <?php if(is_object($track)): ?>
41
+ <tr>
42
+ <th class="label"><?php echo $this->__('Tracking Number:'); ?></th>
43
+ <td class="value"><?php echo $track->getTracking(); ?></td>
44
+ </tr>
45
+ <?php if ($track->getCarrierTitle()): ?>
46
+ <tr>
47
+ <th class="label"><?php echo $this->__('Carrier:'); ?></th>
48
+ <td class="value"><?php echo $track->getCarrierTitle(); ?></td>
49
+ </tr>
50
+ <?php endif; ?>
51
+ <?php if($track->getErrorMessage()): ?>
52
+ <tr>
53
+ <th class="label"><?php echo $this->__('Error:'); ?></th>
54
+ <td class="error"><?php echo $this->__('Tracking information is currently not available. Please ') ?><a href="<?php echo $this->getContactUs() ?>" onclick="this.target='_blank'"><?php echo $this->__('contact us') ?></a><?php $this->__(' for more information or email us at '); ?><a href="<?php echo $this->getStoreSupportEmail() ?>"><?php echo $this->getStoreSupportEmail() ?></a></td>
55
+ </tr>
56
+ <?php elseif($track->getTrackSummary()): ?>
57
+ <tr>
58
+ <th class="label"><?php echo $this->__('Info:'); ?></th>
59
+ <td class="value"><?php echo $track->getTrackSummary(); ?></td>
60
+ </tr>
61
+ <?php elseif($track->getUrl()): ?>
62
+ <tr>
63
+ <th class="label"><?php echo $this->__('Track:'); ?></th>
64
+ <td class="value"><a href="<?php echo $track->getUrl(); ?>" onclick="this.target='_blank'"><?php echo $track->getUrl(); ?></a></td>
65
+ </tr>
66
+ <?php else: ?>
67
+ <?php if ($track->getStatus()): ?>
68
+ <tr>
69
+ <th class="label"><?php echo $this->__('Status:'); ?></th>
70
+ <td class="value"><?php echo $track->getStatus(); ?></td>
71
+ </tr>
72
+ <?php endif; ?>
73
+
74
+ <?php if ($track->getDeliverydate()): ?>
75
+ <tr>
76
+ <th class="label"><?php echo $this->__('Delivered on:'); ?></th>
77
+ <td class="value"><?php echo $this->formatDeliveryDateTime($track->getDeliverydate(),$track->getDeliverytime()); ?></td>
78
+ </tr>
79
+ <?php endif; ?>
80
+
81
+ <?php if ($track->getSignedby()): ?>
82
+ <tr>
83
+ <th class="label"><?php echo $this->__('Signed by:'); ?></th>
84
+ <td class="value"><?php echo $track->getSignedby(); ?></td>
85
+ </tr>
86
+ <?php endif; ?>
87
+
88
+ <?php if ($track->getDeliveryLocation()): ?>
89
+ <tr>
90
+ <th class="label"><?php echo $this->__('Delivered to:'); ?></th>
91
+ <td class="value"><?php echo $track->getDeliveryLocation(); ?></td>
92
+ </tr>
93
+ <?php endif; ?>
94
+
95
+ <?php if ($track->getShippedDate()): ?>
96
+ <tr>
97
+ <th class="label"><?php echo $this->__('Shipped or billed on:'); ?></th>
98
+ <td class="value"><?php echo $track->getShippedDate(); ?></td>
99
+ </tr>
100
+ <?php endif; ?>
101
+
102
+ <?php if ($track->getService()): ?>
103
+ <tr>
104
+ <th class="label"><?php echo $this->__('Service Type:'); ?></th>
105
+ <td class="value"><?php echo $track->getService(); ?></td>
106
+ </tr>
107
+ <?php endif; ?>
108
+
109
+ <?php if ($track->getWeight()): ?>
110
+ <tr>
111
+ <th class="label"><?php echo $this->__('Weight:'); ?></th>
112
+ <td class="value"><?php echo $track->getWeight(); ?></td>
113
+ </tr>
114
+ <?php endif; ?>
115
+
116
+ <?php endif; ?>
117
+ <?php elseif(isset($track['title']) && isset($track['number']) && $track['number']): ?>
118
+ <!--if the tracking is custom value-->
119
+ <tr>
120
+ <th class="label"><?php echo ($track['title'] ? $track['title'] : $this->__('N/A')); ?>:</th>
121
+ <td class="value"><?php echo (isset($track['number']) ? $track['number'] : ''); ?></td>
122
+ </tr>
123
+ <?php endif; ?>
124
+
125
+ </table>
126
+ <?php if (is_object($track) && sizeof($track->getProgressdetail())>0): ?>
127
+ <br />
128
+ <table class="data-table" id="track-history-table-<?php echo $track->getTracking(); ?>">
129
+ <thead>
130
+ <tr>
131
+ <th><?php echo $this->__('Location') ?></th>
132
+ <th><?php echo $this->__('Date') ?></th>
133
+ <th><?php echo $this->__('Local Time') ?></th>
134
+ <th><?php echo $this->__('Description') ?></th>
135
+ </tr>
136
+ </thead>
137
+ <?php foreach($track->getProgressdetail() as $_detail): ?>
138
+ <tr>
139
+ <td><?php echo (isset($_detail['deliverylocation']) ? $_detail['deliverylocation'] : ''); ?></td>
140
+ <td><?php echo (isset($_detail['deliverydate']) ? $this->formatDeliveryDate($_detail['deliverydate']) : '') ?></td>
141
+ <td><?php echo (isset($_detail['deliverytime']) ? $this->formatDeliveryTime($_detail['deliverytime']) : '') ?></td>
142
+ <td><?php echo (isset($_detail['activity']) ? $_detail['activity'] : '') ?></td>
143
+ </tr>
144
+ <?php endforeach; ?>
145
+ </table>
146
+ <script type="text/javascript">
147
+ decorateTable('track-history-table-<?php echo $track->getTracking(); ?>');
148
+ </script>
149
+ <?php endif; ?>
150
+ <?php if($counter!=$rowCount): ?>
151
+ <?php endif; ?>
152
+ <?php $counter++; ?>
153
+ <!--end for each tracking information-->
154
+ <?php endforeach; ?>
155
+ <?php else: ?>
156
+ <p><?php echo $this->__('There is no tracking available for this shipment.'); ?></p>
157
+ <?php endif; ?>
158
+
159
+ <?php endforeach; ?>
160
+ <?php else: ?>
161
+ <div><?php echo $this->__('There is no tracking available.'); ?></div>
162
+ <?php endif; ?>
163
+ <div class="buttons-set">
164
+ <button class="button" onclick="window.close(); window.opener.focus();"><span><?php echo $this->__('Close Window') ?></span></button>
165
+ </div>
app/design/frontend/default/blank/template/tag/cloud.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('All Tags') ?></h2>
29
+ </div>
30
+ <?php if( sizeof($this->getTags()) > 0 ): ?>
31
+ <ul class="tags-list">
32
+ <?php foreach ($this->getTags() as $_tag): ?>
33
+ <li><a href="<?php echo $_tag->getTaggedProductsUrl() ?>" style="font-size:<?php echo $_tag->getRatio()*70+75 ?>%;"><?php echo $this->htmlEscape($_tag->getName()) ?></a></li>
34
+ <?php endforeach; ?>
35
+ </ul>
36
+ <?php else: ?>
37
+ <p class="note-msg"><?php echo $this->__("Tags Aren't Available") ?></p>
38
+ <?php endif; ?>
app/design/frontend/default/blank/template/tag/customer/edit.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Edit Tag') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <form id="addTagForm" action="<?php echo $this->getFormAction(); ?>" method="post">
32
+ <fieldset class="group-select">
33
+ <h3 class="legend"><?php echo $this->__('Tag Information') ?></h3>
34
+ <p><input type="text" class="input-text required-entry" name="tagName" value="<?php echo $this->htmlEscape($this->getTag()->getName()) ?>" /></p>
35
+ </fieldset>
36
+ <div class="buttons-set">
37
+ <a href="<?php echo $this->getUrl('*/*/view/', array('tagId' => $this->getTag()->getTagId())) ?>" class="back-link">&laquo; <?php echo $this->__('Back to view Tag') ?></a>
38
+ <button class="button" onclick="tagForm.submit();"><span><?php echo $this->__('Save Tag') ?></span></button>
39
+ </div>
40
+ </form>
41
+ <script type="text/javascript">
42
+ //<![CDATA[
43
+ var tagForm = new VarienForm('addTagForm');
44
+ //]]>
45
+ </script>
app/design/frontend/default/blank/template/tag/customer/recent.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_blank
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
+ <div class="tags">
28
+ <div class="title-buttons">
29
+ <h3><?php echo $this->__('My Recent Tags') ?></h3>
30
+ <a href="<?php echo $this->getAllTagsUrl() ?>"><?php echo $this->__('View All Tags') ?></a>
31
+ </div>
32
+ <ol id="my_recent_tags">
33
+ <?php $iterator = 0; ?>
34
+ <?php foreach( $this->getCollection()->getItems() as $_item ): ?>
35
+ <li>
36
+ <span class="number"><?php echo ++$iterator ?></span>
37
+ <div class="details">
38
+ <h3 class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></h3>
39
+ <p><strong><?php echo $this->__('Tags:') ?></strong></p>
40
+ <?php $_i = 0; ?>
41
+ <?php foreach( $_item->getProductTags() as $_tag ): ?>
42
+ <a href="<?php echo $_tag->getViewTagUrl() ?>"><?php echo $this->htmlEscape($_tag->getName()) ?></a><?php if(++$_i != sizeof($_item->getProductTags()->getItems())): ?>,<?php endif; ?>
43
+ <?php endforeach; ?>
44
+ </div>
45
+ </li>
46
+ <?php endforeach; ?>
47
+ </ol>
48
+ <script type="text/javascript">decorateList('my_recent_tags');</script>
49
+ </div>
app/design/frontend/default/blank/template/tag/customer/tags.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_blank
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 echo $this->getMessagesBlock()->getGroupedHtml() ?>
28
+ <div class="page-title">
29
+ <h2><?php echo $this->__('My Tags') ?></h2>
30
+ </div>
31
+ <?php if($this->getTags()): ?>
32
+ <p><?php echo $this->__('Click on a tag to view your corresponding products.') ?></p>
33
+ <ul class="tags-list">
34
+ <?php foreach ($this->getTags() as $_tag): ?>
35
+ <li><a href="<?php echo $this->getUrl('tag/customer/view', array('tagId' => $_tag->getTagId())) ?>" style="font-size:<?php echo $_tag->getRatio()*70+75 ?>%;"><?php echo $this->htmlEscape($_tag->getName()) ?></a></li>
36
+ <?php endforeach; ?>
37
+ </ul>
38
+ <?php else: ?>
39
+ <p><?php echo $this->__('You have not tagged any products yet.') ?></p>
40
+ <?php endif; ?>
41
+ <div class="buttons-set">
42
+ <a href="<?php echo $this->getBackUrl() ?>" class="back-link">&laquo; <?php echo $this->__('Back') ?></a>
43
+ </div>
app/design/frontend/default/blank/template/tag/customer/view.phtml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('My Tags') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <p>
32
+ <?php echo $this->__('Tag Name: %s', $this->htmlEscape($this->getTagInfo()->getName())) ?>
33
+ ( <a href="<?php echo $this->getTagInfo()->getEditTagUrl(); ?>"><?php echo $this->__('Edit Tag') ?></a>
34
+ <span class="separator">|</span>
35
+ <a href="<?php echo $this->getTagInfo()->getRemoveTagUrl(); ?>" onclick="return confirm('<?php echo $this->__('Are you sure you want to delete this tag?') ?>');"><?php echo $this->__('Delete Tag') ?></a> )
36
+ </p>
37
+ <?php echo $this->getToolbarHtml() ?>
38
+ <table class="data-table" id="my-tags-table">
39
+ <?php if( sizeof($this->getMyProducts()) > 0 ): ?>
40
+ <col width="100" />
41
+ <col />
42
+ <col width="75" />
43
+ <tbody>
44
+ <?php $iterator = 0 ?>
45
+ <?php foreach($this->getMyProducts() as $_product): ?>
46
+ <tr<?php if($iterator % 2 == 0): ?> class="odd"<?php $iterator++;endif; ?>>
47
+ <td><a class="product-image" href="<?php echo $_product->getProductUrl(); ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(100, 100); ?>" width="100" height="100" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" /></a></td>
48
+ <td>
49
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></h3>
50
+ <?php echo $this->getPriceHtml($_product) ?>
51
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
52
+ <p><?php echo $_product->getDescription() ?></p>
53
+ </td>
54
+ <td>
55
+ <?php if($_product->isSaleable()): ?>
56
+ <button class="button" onclick="setLocation('<?php echo $this->getUrl('checkout/cart/add',array('product'=>$_product->getId())) ?>')"><span><?php echo $this->__('Add to Cart') ?></span></button>
57
+ <?php endif; ?>
58
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
59
+ <p><a href="<?php echo $this->getUrl('wishlist/index/add',array('product'=>$_product->getId())) ?>"><?php echo $this->__('Add to Wishlist') ?></a></p>
60
+ <?php endif; ?>
61
+ </td>
62
+ </tr>
63
+ <?php endforeach; ?>
64
+ </tbody>
65
+ <?php else: ?>
66
+ <tr>
67
+ <td><p><?php echo $this->__("Unable to find any products tagged with '%s' in the current store", $this->htmlEscape($this->getTagInfo()->getName()) ) ?></p></td>
68
+ </tr>
69
+ <?php endif; ?>
70
+ </table>
71
+ <script type="text/javascript">decorateTable('my-tags-table')</script>
72
+ <?php echo $this->getToolbarHtml() ?>
73
+ <div class="buttons-set">
74
+ <a href="<?php echo $this->getUrl('*/*/')?>" class="back-link">&laquo; <?php echo $this->__('Back to Tags List')?></a>
75
+ </div>
app/design/frontend/default/blank/template/tag/list.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_blank
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
+ <div class="tags">
28
+ <h3><?php echo $this->__('Product Tags') ?></h3>
29
+ <?php if( $this->getCount() ): ?>
30
+ <h4><?php echo $this->__('Other people marked this product with these tags:') ?></h4>
31
+ <ul class="tags-list">
32
+ <?php $_iterator = 0; ?>
33
+ <?php foreach( $this->getTags() as $_tag ): ?>
34
+ <li<?php if( 1 == ++$_iterator && $this->getCount() != 1 ): ?> class="first"<?php elseif($_iterator == $this->getCount()): ?> class="last"<?php endif; ?>><a href="<?php echo $_tag->getTaggedProductsUrl() ?>"><?php echo $this->htmlEscape($_tag->getName()) ?></a> (<?php echo $_tag->getPopularity() ?>)</li>
35
+ <?php endforeach; ?>
36
+ </ul>
37
+ <?php endif; ?>
38
+ <form id="addTagForm" action="<?php echo $this->getFormAction(); ?>" method="get">
39
+ <fieldset class="form-add-tags">
40
+ <label for="tagName"><?php echo $this->__('Add Your Tags:') ?></label>
41
+ <div class="input-box">
42
+ <input type="text" class="input-text required-entry" name="tagName" id="productTagName" />
43
+ </div>
44
+ <button class="button" onclick="submitTagForm()"><span><?php echo $this->__('Add Tags') ?></span></button>
45
+ <p><?php echo $this->__("Use spaces to separate tags. Use single quotes (') for phrases.") ?></p>
46
+ </fieldset>
47
+ </form>
48
+ <script type="text/javascript">
49
+ //<![CDATA[
50
+ var addTagFormJs = new VarienForm('addTagForm');
51
+ function submitTagForm(){
52
+ if(addTagFormJs.validator.validate()) {
53
+ addTagFormJs.form.submit();
54
+ }
55
+ }
56
+ //]]>
57
+ </script>
58
+ </div>
app/design/frontend/default/blank/template/tag/mytags.phtml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <script type="text/javascript">
28
+ //<![CDATA[
29
+ function editTag(id, name) {
30
+ var new_name = prompt('Please type new tag name', name)
31
+ if (new_name) {
32
+ var req = new Ajax.Request('/tag/index/update', {
33
+ method:'post',
34
+ parameters: {
35
+ tagname: new_name,
36
+ tag_id: id
37
+ },
38
+ onSuccess: function(req, json){
39
+ eval('var json = ' + req.responseText);
40
+ if (1 === json.error) {
41
+ alert(json.error_message);
42
+ }
43
+ }
44
+ });
45
+ }
46
+ }
47
+
48
+ function deleteTag(id) {
49
+ if (confirm('Do tou realy want to delete the Tag?')) {
50
+ var req = new Ajax.Request('/tag/index/delete', {
51
+ method:'post',
52
+ parameters: {
53
+ tag_id: id
54
+ },
55
+ onSuccess: function(req, json){
56
+ eval('var json = ' + req.responseText);
57
+ if (1 === json.error) {
58
+ alert(json.error_message);
59
+ }
60
+ }
61
+ });
62
+ }
63
+ }
64
+ //]]>
65
+ </script>
66
+
67
+ <?php foreach ($collection->getItems() as $tag) { /* $tag = $tag->getData();*/ ?>
68
+ <span>
69
+ <a style="font-size:<?php echo $collection->getFSize($tag->getTag_id()); ?>" href="/tag/index/show?tag=<?php echo $tag->getTagname(); ?>"><?php echo $tag->getTagname(); ?></a>
70
+ <span>
71
+ <a href="#" title="edit tag" onclick="editTag(<?php echo $tag->getTag_id(); ?>, '<?php echo $tag->getTagname(); ?>'); return false;">e</a>
72
+ <a href="#" title="delete tag" onclick="deleteTag(<?php echo $tag->getTag_id(); ?>); return false;">d</a>
73
+ </span>
74
+ </span>
75
+ <?php } ?>
app/design/frontend/default/blank/template/tag/popular.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_blank
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
+ <div class="block block-tags">
28
+ <div class="block-title">
29
+ <h2><?php echo $this->__('Popular Tags'); ?></h2>
30
+ </div>
31
+ <div class="block-content">
32
+ <ul>
33
+ <?php foreach ($this->getTags() as $_tag): ?>
34
+ <li><a href="<?php echo $_tag->getTaggedProductsUrl() ?>" style="font-size:<?php echo $_tag->getRatio()*70+75 ?>%;"><?php echo $this->htmlEscape($_tag->getName()) ?></a></li>
35
+ <?php endforeach; ?>
36
+ </ul>
37
+ <div class="actions">
38
+ <a href="<?php echo $this->getUrl('tag/list') ?>"><?php echo $this->__('View All Tags') ?></a>
39
+ </div>
40
+ </div>
41
+ </div>
app/design/frontend/default/blank/template/tag/product/result.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_blank
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 if( $this->getTagInfo()->getName() ): ?>
28
+ <div class="page-title">
29
+ <h2><?php echo $this->__("Products tagged with '%s'", $this->htmlEscape($this->getTagInfo()->getName())) ?></h2>
30
+ </div>
31
+ <?php endif; ?>
32
+ <?php echo $this->getListHtml() ?>
33
+ <table class="data-table" id="tags-table">
34
+ <?php if( $this->getCount() > 0 ): ?>
35
+ <col width="100" />
36
+ <col />
37
+ <col width="75" />
38
+ <tbody>
39
+ <?php $iterator = 0 ?>
40
+ <?php foreach($this->getProducts() as $_product): ?>
41
+ <tr<?php if($iterator % 2 == 0): ?> class="odd"<?php $iterator++;endif; ?>>
42
+ <td><a href="<?php echo $_product->getProductUrl(); ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(100, 100); ?>" alt="" height="100" width="100" /></a></td>
43
+ <td>
44
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->htmlEscape($_product->getName()) ?></a></h3>
45
+ <?php echo $this->getPriceHtml($_product) ?>
46
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
47
+ <p><?php echo $_product->getDescription() ?></p>
48
+ </td>
49
+ <td>
50
+ <button class="button" onclick="setLocation('<?php echo $this->getUrl('checkout/cart/add',array('product'=>$_product->getId())) ?>')"><span><?php echo $this->__('Add to Cart') ?></span></button>
51
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
52
+ <p><a href="<?php echo $this->getUrl('wishlist/index/add',array('product'=>$_product->getId())) ?>"><?php echo $this->__('Add to Wishlist') ?></a></p>
53
+ <?php endif; ?>
54
+ </td>
55
+ </tr>
56
+ <?php endforeach; ?>
57
+ </tbody>
58
+ <?php else: ?>
59
+ <tr>
60
+ <td><p><?php echo $this->__("Unable to find any products tagged with '%s' in the current store", $this->htmlEscape($this->getTagInfo()->getName()) ) ?></p></td>
61
+ </tr>
62
+ <?php endif; ?>
63
+ </table>
64
+ <script type="text/javascript">decorateTable('tags-table')</script>
65
+ <?php echo $this->getListHtml() ?>
app/design/frontend/default/blank/template/tag/result.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__("Search Results for '%s' (<a href='%s'>RSS</a>)", $query, '/taggedproducts/xml/?tag='.$query) ?></h2>
29
+ </div>
30
+ <ul>
31
+ <?php foreach ($hits as $hit) { ?>
32
+ <li>
33
+ <h3><?php echo $hit['name']; ?></h3>
34
+ <p>
35
+ <?php foreach ($hit['tags']['data'] as $tag) { ?>
36
+ <a style="font-size:<?php echo $tag['size']; ?>" href="/taggedproducts/?tag=<?php echo $tag['tag_name']; ?>"><?php echo $tag['tag_name']; ?></a>
37
+ <?php } ?>
38
+ </p>
39
+ </li>
40
+ <?php } ?>
41
+ </ul>
app/design/frontend/default/blank/template/tag/search.phtml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__("Products tagged with '%s' (<a href='%s'>RSS</a>)", $query, '/tag/index/xml?tag='.$query) ?></h2>
29
+ </div>
30
+ <?php if (!empty($collection)): ?>
31
+ <ol>
32
+ <?php foreach ($collection as $item): ?>
33
+ <li>
34
+ <?php echo $item['name']; ?>
35
+ <strong>Tags:</strong>
36
+ <?php foreach ($item['tags'] as $tag): ?>
37
+ <a href="/tag/index/search?q=<?php echo $tag['tagname']; ?>"><?php echo $tag['tagname']; ?></a>
38
+ <?php endforeach; ?>
39
+ </li>
40
+ <?php endforeach; ?>
41
+ </ol>
42
+ <?php endif; ?>
app/design/frontend/default/blank/template/wishlist/email/items.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_blank
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 $l=$this->getWishlist()->count() ?>
28
+ <div style="border:1px solid #bebcb7; padding:15px; background:#f8f7f5;">
29
+ <table cellspacing="0" cellpadding="0" border="0" width="100%">
30
+ <tr>
31
+ <?php $i=0; foreach($this->getWishlist() as $item): $i++ ?>
32
+ <td width="32%">
33
+ <p align="center"><a href="<?php echo $item->getProductUrl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($item, 'small_image')->resize(135); ?>" style="border:1px solid #ccc;" width="135" alt="" /></a></p>
34
+ <p align="center"><a href="<?php echo $item->getProductUrl() ?>" style="color:#203548;"><strong><?php echo $this->htmlEscape($item->getName()) ?></strong></a></p>
35
+ <?php if($this->hasDescription($item)): ?><p align="center"><?php echo $this->__('Comment') ?>:<br /><?php echo $this->getEscapedDescription($item) ?></p><?php endif; ?>
36
+ <p align="center"><a href="<?php echo $item->getProductUrl() ?>" style="color:#1E7EC8;"><?php echo $this->__('View Product') ?></a> <small><?php if($item->getIsSalable()):?>|</small> <a href="<?php echo $this->getUrl('checkout/cart/add', array('product'=>$item->getId())) ?>" style="color:#DC6809;"><strong><?php echo $this->__('Add to Cart') ?></strong></a><?php endif;?>
37
+ </p></td>
38
+ <?php if ($i%3!=0): ?>
39
+ <td width="2%"></td>
40
+ <?php else: ?>
41
+ </tr>
42
+ <tr>
43
+ <td colspan="5">&nbsp;</td>
44
+ </tr>
45
+ <?php if ($i<$l): ?>
46
+ <tr>
47
+ <?php endif ?>
48
+ <?php endif ?>
49
+ <?php endforeach ?>
50
+ </table>
51
+ </div>
app/design/frontend/default/blank/template/wishlist/email/rss.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_blank
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
+ <div>
28
+ <?php echo $this->__("RSS link to %s's wishlist",$this->helper('wishlist')->getCustomerName()) ?>
29
+ <br />
30
+ <a href="<?php echo $this->helper('wishlist')->getRssUrl(); ?>"><?php echo $this->helper('wishlist')->getRssUrl(); ?></a>
31
+ </div>
app/design/frontend/default/blank/template/wishlist/shared.phtml ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->htmlEscape($this->getHeader()) ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <?php if($this->getWishlist()->getSize()): ?>
32
+ <form action="<?php echo $this->getUrl('*/*/update') ?>" method="post">
33
+ <table class="data-table" id="wishlist-table">
34
+ <col width="130" />
35
+ <col />
36
+ <col width="130" />
37
+ <thead>
38
+ <tr>
39
+ <th><?php echo $this->__('Product') ?></th>
40
+ <th><?php echo $this->__('Comment') ?></th>
41
+ <th>&nbsp;</th>
42
+ </tr>
43
+ </thead>
44
+ <tbody>
45
+ <?php foreach($this->getWishlist() as $item): ?>
46
+ <tr>
47
+ <td>
48
+ <a class="product-image" href="<?php echo $item->getProductUrl() ?>">
49
+ <img src="<?php echo $this->helper('catalog/image')->init($item, 'small_image')->resize(113); ?>" alt="<?php echo $this->htmlEscape($item->getName()) ?>" width="113" />
50
+ </a>
51
+ <h3 class="product-name"><a href="<?php echo $item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($item->getName()) ?>"><?php echo $this->htmlEscape($item->getName()) ?></a></h3>
52
+ <?php echo $this->getPriceHtml($item) ?>
53
+ </td>
54
+ <td><?php echo $this->getEscapedDescription($item) ?></td>
55
+ <td>
56
+ <?php if($item->isSaleable()): ?>
57
+ <a href="#" onclick="setLocation('<?php echo $this->helper('checkout/cart')->getAddUrl($item) ?>'); return false;"><?php echo $this->__('Add to Cart') ?></a>
58
+ <?php endif;?><br />
59
+ <a href="#" onclick="setLocation('<?php echo $this->helper('wishlist')->getAddUrl($item) ?>'); return false;"><?php echo $this->__('Add to Wishlist') ?></a>
60
+ </td>
61
+ </tr>
62
+ <?php endforeach ?>
63
+ </tbody>
64
+ </table>
65
+ <script type="text/javascript">decorateTable('wishlist-table');</script>
66
+ <?php if($this->isSaleable()):?>
67
+ <div class="buttons-set">
68
+ <button onclick="setLocation('<?php echo $this->getUrl('*/*/allcart', array('_current'=>true)) ?>')" class="button" type="button"><span><?php echo $this->__('Add All to Cart') ?></span></button>
69
+ </div>
70
+ <?php endif;?>
71
+ </form>
72
+ <?php else: ?>
73
+ <p><?php echo $this->__('Wishlist is empty now.') ?></p>
74
+ <?php endif ?>
app/design/frontend/default/blank/template/wishlist/sharing.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_blank
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
+ <div class="page-title">
28
+ <h2><?php echo $this->__('Share Your Wishlist') ?></h2>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <form action="<?php echo $this->getSendUrl() ?>" id="form-validate" method="post">
32
+ <fieldset class="group-select">
33
+ <h3><?php echo $this->__('Sharing Information') ?></h3>
34
+ <ul class="form-list">
35
+ <li>
36
+ <label for="email_address"><?php echo $this->__('Email addresses, separated by commas') ?> <span class="required">*</span></label><br />
37
+ <textarea name="emails" cols="60" rows="5" id="email_address" class="validate-emails required-entry"><?php echo $this->getEnteredData('emails') ?></textarea>
38
+ </li>
39
+ <li>
40
+ <label for="message"><?php echo $this->__('Message') ?></label><br />
41
+ <textarea id="message" name="message" cols="60" rows="5"><?php echo $this->getEnteredData('message') ?></textarea>
42
+ </li>
43
+ <?php if($this->helper('wishlist')->isRssAllow()): ?>
44
+ <li>
45
+ <input type="checkbox" name="rss_url" id="rss_url" value="1" class="checkbox" />
46
+ <label for="rss_url"><?php echo $this->__('Check this checkbox if you want to add a link to an rss feed to your wishlist.') ?></label>
47
+ </li>
48
+ <?php endif; ?>
49
+ </ul>
50
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
51
+ <div class="buttons-set">
52
+ <a href="<?php echo $this->getUrl('*/')?>" class="back-link">&laquo; <?php echo $this->__('Back')?></a>
53
+ <button type="submit" class="button"><span><?php echo $this->__('Share Wishlist') ?></span></button>
54
+ </div>
55
+ </fieldset>
56
+ </form>
57
+ <script type="text/javascript">
58
+ //<![CDATA[
59
+ Validation.addAllThese([
60
+ ['validate-emails', '<?php echo $this->__('Please enter a valid email addresses, separated by commas. For example johndoe@domain.com, johnsmith@domain.com.') ?>', function (v) {
61
+ if(Validation.get('IsEmpty').test(v)) {
62
+ return true;
63
+ }
64
+
65
+ var valid_regexp = /^[a-z0-9\._-]{1,30}@([a-z0-9_-]{1,30}\.){1,5}[a-z]{2,4}$/i;
66
+ var emails = v.split(',');
67
+
68
+ for (var i=0; i<emails.length; i++) {
69
+ if(!valid_regexp.test(emails[i].strip())) {
70
+ return false;
71
+ }
72
+ }
73
+
74
+ return true;
75
+ }]
76
+ ]);
77
+ var dataForm = new VarienForm('form-validate', true);
78
+ //]]>
79
+ </script>
app/design/frontend/default/blank/template/wishlist/sidebar.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_A