solidus_frontend 1.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of solidus_frontend might be problematic. Click here for more details.

Files changed (416) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +26 -0
  3. data/README.md +21 -0
  4. data/app/assets/images/credit_cards/amex_cid.gif +0 -0
  5. data/app/assets/images/credit_cards/credit_card.gif +0 -0
  6. data/app/assets/images/credit_cards/discover_cid.gif +0 -0
  7. data/app/assets/images/credit_cards/icons/american_express.png +0 -0
  8. data/app/assets/images/credit_cards/icons/cirrus.png +0 -0
  9. data/app/assets/images/credit_cards/icons/delta.png +0 -0
  10. data/app/assets/images/credit_cards/icons/diners_club.png +0 -0
  11. data/app/assets/images/credit_cards/icons/directdebit.png +0 -0
  12. data/app/assets/images/credit_cards/icons/discover.png +0 -0
  13. data/app/assets/images/credit_cards/icons/egold.png +0 -0
  14. data/app/assets/images/credit_cards/icons/maestro.png +0 -0
  15. data/app/assets/images/credit_cards/icons/master.png +0 -0
  16. data/app/assets/images/credit_cards/icons/paypal.png +0 -0
  17. data/app/assets/images/credit_cards/icons/solo.png +0 -0
  18. data/app/assets/images/credit_cards/icons/switch.png +0 -0
  19. data/app/assets/images/credit_cards/icons/visa.png +0 -0
  20. data/app/assets/images/credit_cards/icons/visaelectron.png +0 -0
  21. data/app/assets/images/credit_cards/icons/westernunion.png +0 -0
  22. data/app/assets/images/credit_cards/icons/wirecard.png +0 -0
  23. data/app/assets/images/credit_cards/icons/worldpay.png +0 -0
  24. data/app/assets/images/credit_cards/master_cid.jpg +0 -0
  25. data/app/assets/images/credit_cards/visa_cid.gif +0 -0
  26. data/app/assets/images/favicon.ico +0 -0
  27. data/app/assets/images/icons/add-to-cart.png +0 -0
  28. data/app/assets/images/icons/checkout.png +0 -0
  29. data/app/assets/images/icons/delete.png +0 -0
  30. data/app/assets/images/icons/update.png +0 -0
  31. data/app/assets/images/spinner.gif +0 -0
  32. data/app/assets/images/spree/frontend/cart.png +0 -0
  33. data/app/assets/images/spree/frontend/select_arrow.gif +0 -0
  34. data/app/assets/javascripts/spree/frontend/cart.js.coffee +15 -0
  35. data/app/assets/javascripts/spree/frontend/checkout/address.js.coffee +86 -0
  36. data/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee +79 -0
  37. data/app/assets/javascripts/spree/frontend/checkout.js.coffee +11 -0
  38. data/app/assets/javascripts/spree/frontend/product.js.coffee +47 -0
  39. data/app/assets/javascripts/spree/frontend.js +5 -0
  40. data/app/assets/stylesheets/spree/frontend/_variables.scss +61 -0
  41. data/app/assets/stylesheets/spree/frontend/screen.css.scss +1321 -0
  42. data/app/assets/stylesheets/spree/frontend.css +6 -0
  43. data/app/controllers/spree/checkout_controller.rb +167 -0
  44. data/app/controllers/spree/content_controller.rb +23 -0
  45. data/app/controllers/spree/home_controller.rb +12 -0
  46. data/app/controllers/spree/locale_controller.rb +16 -0
  47. data/app/controllers/spree/orders_controller.rb +115 -0
  48. data/app/controllers/spree/products_controller.rb +45 -0
  49. data/app/controllers/spree/store_controller.rb +47 -0
  50. data/app/controllers/spree/taxons_controller.rb +28 -0
  51. data/app/models/spree/frontend_configuration.rb +5 -0
  52. data/app/views/spree/address/_form.html.erb +75 -0
  53. data/app/views/spree/checkout/_address.html.erb +33 -0
  54. data/app/views/spree/checkout/_confirm.html.erb +12 -0
  55. data/app/views/spree/checkout/_delivery.html.erb +100 -0
  56. data/app/views/spree/checkout/_payment.html.erb +71 -0
  57. data/app/views/spree/checkout/_summary.html.erb +72 -0
  58. data/app/views/spree/checkout/edit.html.erb +37 -0
  59. data/app/views/spree/checkout/payment/_check.html.erb +0 -0
  60. data/app/views/spree/checkout/payment/_gateway.html.erb +32 -0
  61. data/app/views/spree/content/cvv.html.erb +13 -0
  62. data/app/views/spree/content/test.html.erb +1 -0
  63. data/app/views/spree/home/index.html.erb +12 -0
  64. data/app/views/spree/layouts/spree_application.html.erb +37 -0
  65. data/app/views/spree/orders/_adjustment_row.html.erb +8 -0
  66. data/app/views/spree/orders/_adjustments.html.erb +24 -0
  67. data/app/views/spree/orders/_form.html.erb +28 -0
  68. data/app/views/spree/orders/_line_item.html.erb +36 -0
  69. data/app/views/spree/orders/edit.html.erb +47 -0
  70. data/app/views/spree/orders/show.html.erb +22 -0
  71. data/app/views/spree/payments/_payment.html.erb +18 -0
  72. data/app/views/spree/products/_cart_form.html.erb +65 -0
  73. data/app/views/spree/products/_image.html.erb +5 -0
  74. data/app/views/spree/products/_promotions.html.erb +19 -0
  75. data/app/views/spree/products/_properties.html.erb +15 -0
  76. data/app/views/spree/products/_taxons.html.erb +14 -0
  77. data/app/views/spree/products/_thumbnails.html.erb +19 -0
  78. data/app/views/spree/products/index.html.erb +27 -0
  79. data/app/views/spree/products/show.html.erb +51 -0
  80. data/app/views/spree/shared/_address.html.erb +38 -0
  81. data/app/views/spree/shared/_filters.html.erb +27 -0
  82. data/app/views/spree/shared/_footer.html.erb +6 -0
  83. data/app/views/spree/shared/_google_analytics.html.erb +36 -0
  84. data/app/views/spree/shared/_head.html.erb +14 -0
  85. data/app/views/spree/shared/_header.html.erb +5 -0
  86. data/app/views/spree/shared/_link_to_cart.html.erb +1 -0
  87. data/app/views/spree/shared/_main_nav_bar.html.erb +12 -0
  88. data/app/views/spree/shared/_nav_bar.html.erb +7 -0
  89. data/app/views/spree/shared/_order_details.html.erb +147 -0
  90. data/app/views/spree/shared/_products.html.erb +46 -0
  91. data/app/views/spree/shared/_search.html.erb +11 -0
  92. data/app/views/spree/shared/_shipment_tracking.html.erb +9 -0
  93. data/app/views/spree/shared/_sidebar.html.erb +3 -0
  94. data/app/views/spree/shared/_taxonomies.html.erb +9 -0
  95. data/app/views/spree/shared/unauthorized.html.erb +0 -0
  96. data/app/views/spree/store/cart_link.html.erb +1 -0
  97. data/app/views/spree/taxons/_taxon.html.erb +4 -0
  98. data/app/views/spree/taxons/show.html.erb +20 -0
  99. data/config/initializers/assets.rb +1 -0
  100. data/config/initializers/canonical_rails.rb +15 -0
  101. data/config/initializers/check_for_orphaned_preferences.rb +9 -0
  102. data/config/initializers/deprecation_checker.rb +7 -0
  103. data/config/initializers/rails_5868.rb +8 -0
  104. data/config/initializers/spree.rb +4 -0
  105. data/config/routes.rb +37 -0
  106. data/lib/solidus_frontend.rb +1 -0
  107. data/lib/spree/frontend/engine.rb +19 -0
  108. data/lib/spree/frontend/middleware/seo_assist.rb +51 -0
  109. data/lib/spree/frontend/preference_rescue.rb +25 -0
  110. data/lib/spree/frontend.rb +10 -0
  111. data/lib/spree_frontend.rb +1 -0
  112. data/lib/tasks/rake_util.rb +19 -0
  113. data/lib/tasks/taxon.rake +14 -0
  114. data/vendor/assets/images/datepicker/cal.gif +0 -0
  115. data/vendor/assets/images/flags/ad.png +0 -0
  116. data/vendor/assets/images/flags/ae.png +0 -0
  117. data/vendor/assets/images/flags/af.png +0 -0
  118. data/vendor/assets/images/flags/ag.png +0 -0
  119. data/vendor/assets/images/flags/ai.png +0 -0
  120. data/vendor/assets/images/flags/al.png +0 -0
  121. data/vendor/assets/images/flags/am.png +0 -0
  122. data/vendor/assets/images/flags/an.png +0 -0
  123. data/vendor/assets/images/flags/ao.png +0 -0
  124. data/vendor/assets/images/flags/ar.png +0 -0
  125. data/vendor/assets/images/flags/as.png +0 -0
  126. data/vendor/assets/images/flags/at.png +0 -0
  127. data/vendor/assets/images/flags/au.png +0 -0
  128. data/vendor/assets/images/flags/aw.png +0 -0
  129. data/vendor/assets/images/flags/ax.png +0 -0
  130. data/vendor/assets/images/flags/az.png +0 -0
  131. data/vendor/assets/images/flags/ba.png +0 -0
  132. data/vendor/assets/images/flags/bb.png +0 -0
  133. data/vendor/assets/images/flags/bd.png +0 -0
  134. data/vendor/assets/images/flags/be.png +0 -0
  135. data/vendor/assets/images/flags/bf.png +0 -0
  136. data/vendor/assets/images/flags/bg.png +0 -0
  137. data/vendor/assets/images/flags/bh.png +0 -0
  138. data/vendor/assets/images/flags/bi.png +0 -0
  139. data/vendor/assets/images/flags/bj.png +0 -0
  140. data/vendor/assets/images/flags/bm.png +0 -0
  141. data/vendor/assets/images/flags/bn.png +0 -0
  142. data/vendor/assets/images/flags/bo.png +0 -0
  143. data/vendor/assets/images/flags/br.png +0 -0
  144. data/vendor/assets/images/flags/bs.png +0 -0
  145. data/vendor/assets/images/flags/bt.png +0 -0
  146. data/vendor/assets/images/flags/bv.png +0 -0
  147. data/vendor/assets/images/flags/bw.png +0 -0
  148. data/vendor/assets/images/flags/by.png +0 -0
  149. data/vendor/assets/images/flags/bz.png +0 -0
  150. data/vendor/assets/images/flags/ca.png +0 -0
  151. data/vendor/assets/images/flags/catalonia.png +0 -0
  152. data/vendor/assets/images/flags/cc.png +0 -0
  153. data/vendor/assets/images/flags/cd.png +0 -0
  154. data/vendor/assets/images/flags/cf.png +0 -0
  155. data/vendor/assets/images/flags/cg.png +0 -0
  156. data/vendor/assets/images/flags/ch.png +0 -0
  157. data/vendor/assets/images/flags/ci.png +0 -0
  158. data/vendor/assets/images/flags/ck.png +0 -0
  159. data/vendor/assets/images/flags/cl.png +0 -0
  160. data/vendor/assets/images/flags/cm.png +0 -0
  161. data/vendor/assets/images/flags/cn.png +0 -0
  162. data/vendor/assets/images/flags/co.png +0 -0
  163. data/vendor/assets/images/flags/cr.png +0 -0
  164. data/vendor/assets/images/flags/cs.png +0 -0
  165. data/vendor/assets/images/flags/cu.png +0 -0
  166. data/vendor/assets/images/flags/cv.png +0 -0
  167. data/vendor/assets/images/flags/cx.png +0 -0
  168. data/vendor/assets/images/flags/cy.png +0 -0
  169. data/vendor/assets/images/flags/cz.png +0 -0
  170. data/vendor/assets/images/flags/de.png +0 -0
  171. data/vendor/assets/images/flags/dj.png +0 -0
  172. data/vendor/assets/images/flags/dk.png +0 -0
  173. data/vendor/assets/images/flags/dm.png +0 -0
  174. data/vendor/assets/images/flags/do.png +0 -0
  175. data/vendor/assets/images/flags/dz.png +0 -0
  176. data/vendor/assets/images/flags/ec.png +0 -0
  177. data/vendor/assets/images/flags/ee.png +0 -0
  178. data/vendor/assets/images/flags/eg.png +0 -0
  179. data/vendor/assets/images/flags/eh.png +0 -0
  180. data/vendor/assets/images/flags/england.png +0 -0
  181. data/vendor/assets/images/flags/er.png +0 -0
  182. data/vendor/assets/images/flags/es.png +0 -0
  183. data/vendor/assets/images/flags/et.png +0 -0
  184. data/vendor/assets/images/flags/europeanunion.png +0 -0
  185. data/vendor/assets/images/flags/fam.png +0 -0
  186. data/vendor/assets/images/flags/fi.png +0 -0
  187. data/vendor/assets/images/flags/fj.png +0 -0
  188. data/vendor/assets/images/flags/fk.png +0 -0
  189. data/vendor/assets/images/flags/fm.png +0 -0
  190. data/vendor/assets/images/flags/fo.png +0 -0
  191. data/vendor/assets/images/flags/fr.png +0 -0
  192. data/vendor/assets/images/flags/ga.png +0 -0
  193. data/vendor/assets/images/flags/gb.png +0 -0
  194. data/vendor/assets/images/flags/gd.png +0 -0
  195. data/vendor/assets/images/flags/ge.png +0 -0
  196. data/vendor/assets/images/flags/gf.png +0 -0
  197. data/vendor/assets/images/flags/gh.png +0 -0
  198. data/vendor/assets/images/flags/gi.png +0 -0
  199. data/vendor/assets/images/flags/gl.png +0 -0
  200. data/vendor/assets/images/flags/gm.png +0 -0
  201. data/vendor/assets/images/flags/gn.png +0 -0
  202. data/vendor/assets/images/flags/gp.png +0 -0
  203. data/vendor/assets/images/flags/gq.png +0 -0
  204. data/vendor/assets/images/flags/gr.png +0 -0
  205. data/vendor/assets/images/flags/gs.png +0 -0
  206. data/vendor/assets/images/flags/gt.png +0 -0
  207. data/vendor/assets/images/flags/gu.png +0 -0
  208. data/vendor/assets/images/flags/gw.png +0 -0
  209. data/vendor/assets/images/flags/gy.png +0 -0
  210. data/vendor/assets/images/flags/hk.png +0 -0
  211. data/vendor/assets/images/flags/hm.png +0 -0
  212. data/vendor/assets/images/flags/hn.png +0 -0
  213. data/vendor/assets/images/flags/hr.png +0 -0
  214. data/vendor/assets/images/flags/ht.png +0 -0
  215. data/vendor/assets/images/flags/hu.png +0 -0
  216. data/vendor/assets/images/flags/id.png +0 -0
  217. data/vendor/assets/images/flags/ie.png +0 -0
  218. data/vendor/assets/images/flags/il.png +0 -0
  219. data/vendor/assets/images/flags/in.png +0 -0
  220. data/vendor/assets/images/flags/io.png +0 -0
  221. data/vendor/assets/images/flags/iq.png +0 -0
  222. data/vendor/assets/images/flags/ir.png +0 -0
  223. data/vendor/assets/images/flags/is.png +0 -0
  224. data/vendor/assets/images/flags/it.png +0 -0
  225. data/vendor/assets/images/flags/ja.png +0 -0
  226. data/vendor/assets/images/flags/jm.png +0 -0
  227. data/vendor/assets/images/flags/jo.png +0 -0
  228. data/vendor/assets/images/flags/ke.png +0 -0
  229. data/vendor/assets/images/flags/kg.png +0 -0
  230. data/vendor/assets/images/flags/kh.png +0 -0
  231. data/vendor/assets/images/flags/ki.png +0 -0
  232. data/vendor/assets/images/flags/km.png +0 -0
  233. data/vendor/assets/images/flags/kn.png +0 -0
  234. data/vendor/assets/images/flags/kp.png +0 -0
  235. data/vendor/assets/images/flags/kr.png +0 -0
  236. data/vendor/assets/images/flags/kw.png +0 -0
  237. data/vendor/assets/images/flags/ky.png +0 -0
  238. data/vendor/assets/images/flags/kz.png +0 -0
  239. data/vendor/assets/images/flags/la.png +0 -0
  240. data/vendor/assets/images/flags/lb.png +0 -0
  241. data/vendor/assets/images/flags/lc.png +0 -0
  242. data/vendor/assets/images/flags/li.png +0 -0
  243. data/vendor/assets/images/flags/lk.png +0 -0
  244. data/vendor/assets/images/flags/lr.png +0 -0
  245. data/vendor/assets/images/flags/ls.png +0 -0
  246. data/vendor/assets/images/flags/lt.png +0 -0
  247. data/vendor/assets/images/flags/lu.png +0 -0
  248. data/vendor/assets/images/flags/lv.png +0 -0
  249. data/vendor/assets/images/flags/ly.png +0 -0
  250. data/vendor/assets/images/flags/ma.png +0 -0
  251. data/vendor/assets/images/flags/mc.png +0 -0
  252. data/vendor/assets/images/flags/md.png +0 -0
  253. data/vendor/assets/images/flags/me.png +0 -0
  254. data/vendor/assets/images/flags/mg.png +0 -0
  255. data/vendor/assets/images/flags/mh.png +0 -0
  256. data/vendor/assets/images/flags/mk.png +0 -0
  257. data/vendor/assets/images/flags/ml.png +0 -0
  258. data/vendor/assets/images/flags/mm.png +0 -0
  259. data/vendor/assets/images/flags/mn.png +0 -0
  260. data/vendor/assets/images/flags/mo.png +0 -0
  261. data/vendor/assets/images/flags/mp.png +0 -0
  262. data/vendor/assets/images/flags/mq.png +0 -0
  263. data/vendor/assets/images/flags/mr.png +0 -0
  264. data/vendor/assets/images/flags/ms.png +0 -0
  265. data/vendor/assets/images/flags/mt.png +0 -0
  266. data/vendor/assets/images/flags/mu.png +0 -0
  267. data/vendor/assets/images/flags/mv.png +0 -0
  268. data/vendor/assets/images/flags/mw.png +0 -0
  269. data/vendor/assets/images/flags/mx.png +0 -0
  270. data/vendor/assets/images/flags/my.png +0 -0
  271. data/vendor/assets/images/flags/mz.png +0 -0
  272. data/vendor/assets/images/flags/na.png +0 -0
  273. data/vendor/assets/images/flags/nc.png +0 -0
  274. data/vendor/assets/images/flags/ne.png +0 -0
  275. data/vendor/assets/images/flags/nf.png +0 -0
  276. data/vendor/assets/images/flags/ng.png +0 -0
  277. data/vendor/assets/images/flags/ni.png +0 -0
  278. data/vendor/assets/images/flags/nl.png +0 -0
  279. data/vendor/assets/images/flags/no.png +0 -0
  280. data/vendor/assets/images/flags/np.png +0 -0
  281. data/vendor/assets/images/flags/nr.png +0 -0
  282. data/vendor/assets/images/flags/nu.png +0 -0
  283. data/vendor/assets/images/flags/nz.png +0 -0
  284. data/vendor/assets/images/flags/om.png +0 -0
  285. data/vendor/assets/images/flags/pa.png +0 -0
  286. data/vendor/assets/images/flags/pe.png +0 -0
  287. data/vendor/assets/images/flags/pf.png +0 -0
  288. data/vendor/assets/images/flags/pg.png +0 -0
  289. data/vendor/assets/images/flags/ph.png +0 -0
  290. data/vendor/assets/images/flags/pk.png +0 -0
  291. data/vendor/assets/images/flags/pl.png +0 -0
  292. data/vendor/assets/images/flags/pm.png +0 -0
  293. data/vendor/assets/images/flags/pn.png +0 -0
  294. data/vendor/assets/images/flags/pr.png +0 -0
  295. data/vendor/assets/images/flags/ps.png +0 -0
  296. data/vendor/assets/images/flags/pt.png +0 -0
  297. data/vendor/assets/images/flags/pw.png +0 -0
  298. data/vendor/assets/images/flags/py.png +0 -0
  299. data/vendor/assets/images/flags/qa.png +0 -0
  300. data/vendor/assets/images/flags/re.png +0 -0
  301. data/vendor/assets/images/flags/ro.png +0 -0
  302. data/vendor/assets/images/flags/rs.png +0 -0
  303. data/vendor/assets/images/flags/ru.png +0 -0
  304. data/vendor/assets/images/flags/rw.png +0 -0
  305. data/vendor/assets/images/flags/sa.png +0 -0
  306. data/vendor/assets/images/flags/sb.png +0 -0
  307. data/vendor/assets/images/flags/sc.png +0 -0
  308. data/vendor/assets/images/flags/scotland.png +0 -0
  309. data/vendor/assets/images/flags/sd.png +0 -0
  310. data/vendor/assets/images/flags/se.png +0 -0
  311. data/vendor/assets/images/flags/sg.png +0 -0
  312. data/vendor/assets/images/flags/sh.png +0 -0
  313. data/vendor/assets/images/flags/si.png +0 -0
  314. data/vendor/assets/images/flags/sj.png +0 -0
  315. data/vendor/assets/images/flags/sk.png +0 -0
  316. data/vendor/assets/images/flags/sl.png +0 -0
  317. data/vendor/assets/images/flags/sm.png +0 -0
  318. data/vendor/assets/images/flags/sn.png +0 -0
  319. data/vendor/assets/images/flags/so.png +0 -0
  320. data/vendor/assets/images/flags/sr.png +0 -0
  321. data/vendor/assets/images/flags/st.png +0 -0
  322. data/vendor/assets/images/flags/sv.png +0 -0
  323. data/vendor/assets/images/flags/sy.png +0 -0
  324. data/vendor/assets/images/flags/sz.png +0 -0
  325. data/vendor/assets/images/flags/tc.png +0 -0
  326. data/vendor/assets/images/flags/td.png +0 -0
  327. data/vendor/assets/images/flags/tf.png +0 -0
  328. data/vendor/assets/images/flags/tg.png +0 -0
  329. data/vendor/assets/images/flags/th.png +0 -0
  330. data/vendor/assets/images/flags/tj.png +0 -0
  331. data/vendor/assets/images/flags/tk.png +0 -0
  332. data/vendor/assets/images/flags/tl.png +0 -0
  333. data/vendor/assets/images/flags/tm.png +0 -0
  334. data/vendor/assets/images/flags/tn.png +0 -0
  335. data/vendor/assets/images/flags/to.png +0 -0
  336. data/vendor/assets/images/flags/tr.png +0 -0
  337. data/vendor/assets/images/flags/tt.png +0 -0
  338. data/vendor/assets/images/flags/tv.png +0 -0
  339. data/vendor/assets/images/flags/tw.png +0 -0
  340. data/vendor/assets/images/flags/tz.png +0 -0
  341. data/vendor/assets/images/flags/ua.png +0 -0
  342. data/vendor/assets/images/flags/ug.png +0 -0
  343. data/vendor/assets/images/flags/um.png +0 -0
  344. data/vendor/assets/images/flags/us.png +0 -0
  345. data/vendor/assets/images/flags/uy.png +0 -0
  346. data/vendor/assets/images/flags/uz.png +0 -0
  347. data/vendor/assets/images/flags/va.png +0 -0
  348. data/vendor/assets/images/flags/vc.png +0 -0
  349. data/vendor/assets/images/flags/ve.png +0 -0
  350. data/vendor/assets/images/flags/vg.png +0 -0
  351. data/vendor/assets/images/flags/vi.png +0 -0
  352. data/vendor/assets/images/flags/vn.png +0 -0
  353. data/vendor/assets/images/flags/vu.png +0 -0
  354. data/vendor/assets/images/flags/wales.png +0 -0
  355. data/vendor/assets/images/flags/wf.png +0 -0
  356. data/vendor/assets/images/flags/ws.png +0 -0
  357. data/vendor/assets/images/flags/ye.png +0 -0
  358. data/vendor/assets/images/flags/yt.png +0 -0
  359. data/vendor/assets/images/flags/za.png +0 -0
  360. data/vendor/assets/images/flags/zm.png +0 -0
  361. data/vendor/assets/images/flags/zw.png +0 -0
  362. data/vendor/assets/images/jquery.formalize/button.png +0 -0
  363. data/vendor/assets/images/jquery.formalize/select_arrow.gif +0 -0
  364. data/vendor/assets/javascripts/jquery.formalize.min.js +1 -0
  365. data/vendor/assets/javascripts/jquery.validate/additional-methods.min.js +12 -0
  366. data/vendor/assets/javascripts/jquery.validate/jquery.validate.min.js +12 -0
  367. data/vendor/assets/javascripts/jquery.validate/localization/messages_ar.js +25 -0
  368. data/vendor/assets/javascripts/jquery.validate/localization/messages_bg.js +25 -0
  369. data/vendor/assets/javascripts/jquery.validate/localization/messages_ca.js +25 -0
  370. data/vendor/assets/javascripts/jquery.validate/localization/messages_cs.js +25 -0
  371. data/vendor/assets/javascripts/jquery.validate/localization/messages_da.js +22 -0
  372. data/vendor/assets/javascripts/jquery.validate/localization/messages_de.js +22 -0
  373. data/vendor/assets/javascripts/jquery.validate/localization/messages_el.js +25 -0
  374. data/vendor/assets/javascripts/jquery.validate/localization/messages_es.js +25 -0
  375. data/vendor/assets/javascripts/jquery.validate/localization/messages_et.js +23 -0
  376. data/vendor/assets/javascripts/jquery.validate/localization/messages_eu.js +25 -0
  377. data/vendor/assets/javascripts/jquery.validate/localization/messages_fa.js +25 -0
  378. data/vendor/assets/javascripts/jquery.validate/localization/messages_fi.js +23 -0
  379. data/vendor/assets/javascripts/jquery.validate/localization/messages_fr.js +47 -0
  380. data/vendor/assets/javascripts/jquery.validate/localization/messages_ge.js +23 -0
  381. data/vendor/assets/javascripts/jquery.validate/localization/messages_he.js +25 -0
  382. data/vendor/assets/javascripts/jquery.validate/localization/messages_hr.js +25 -0
  383. data/vendor/assets/javascripts/jquery.validate/localization/messages_hu.js +24 -0
  384. data/vendor/assets/javascripts/jquery.validate/localization/messages_it.js +25 -0
  385. data/vendor/assets/javascripts/jquery.validate/localization/messages_ja.js +25 -0
  386. data/vendor/assets/javascripts/jquery.validate/localization/messages_ka.js +25 -0
  387. data/vendor/assets/javascripts/jquery.validate/localization/messages_kk.js +25 -0
  388. data/vendor/assets/javascripts/jquery.validate/localization/messages_ko.js +25 -0
  389. data/vendor/assets/javascripts/jquery.validate/localization/messages_lt.js +25 -0
  390. data/vendor/assets/javascripts/jquery.validate/localization/messages_lv.js +25 -0
  391. data/vendor/assets/javascripts/jquery.validate/localization/messages_ms.js +25 -0
  392. data/vendor/assets/javascripts/jquery.validate/localization/messages_nl.js +35 -0
  393. data/vendor/assets/javascripts/jquery.validate/localization/messages_no.js +25 -0
  394. data/vendor/assets/javascripts/jquery.validate/localization/messages_pl.js +25 -0
  395. data/vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js +24 -0
  396. data/vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js +24 -0
  397. data/vendor/assets/javascripts/jquery.validate/localization/messages_ro.js +25 -0
  398. data/vendor/assets/javascripts/jquery.validate/localization/messages_ru.js +25 -0
  399. data/vendor/assets/javascripts/jquery.validate/localization/messages_se.js +23 -0
  400. data/vendor/assets/javascripts/jquery.validate/localization/messages_si.js +25 -0
  401. data/vendor/assets/javascripts/jquery.validate/localization/messages_sk.js +22 -0
  402. data/vendor/assets/javascripts/jquery.validate/localization/messages_sl.js +25 -0
  403. data/vendor/assets/javascripts/jquery.validate/localization/messages_sr.js +25 -0
  404. data/vendor/assets/javascripts/jquery.validate/localization/messages_sv.js +23 -0
  405. data/vendor/assets/javascripts/jquery.validate/localization/messages_th.js +25 -0
  406. data/vendor/assets/javascripts/jquery.validate/localization/messages_tr.js +25 -0
  407. data/vendor/assets/javascripts/jquery.validate/localization/messages_tw.js +24 -0
  408. data/vendor/assets/javascripts/jquery.validate/localization/messages_uk.js +25 -0
  409. data/vendor/assets/javascripts/jquery.validate/localization/messages_vi.js +25 -0
  410. data/vendor/assets/javascripts/jquery.validate/localization/messages_zh.js +25 -0
  411. data/vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js +26 -0
  412. data/vendor/assets/javascripts/jquery.validate/localization/methods_de.js +12 -0
  413. data/vendor/assets/javascripts/jquery.validate/localization/methods_nl.js +9 -0
  414. data/vendor/assets/javascripts/jquery.validate/localization/methods_pt.js +9 -0
  415. data/vendor/assets/stylesheets/jquery.formalize.css.erb +363 -0
  416. metadata +527 -0
@@ -0,0 +1,100 @@
1
+ <fieldset id='shipping_method' data-hook>
2
+ <legend align="center"><%= Spree.t(:delivery) %></legend>
3
+ <div class="inner" data-hook="shipping_method_inner">
4
+ <div id="methods">
5
+ <%= form.fields_for :shipments do |ship_form| %>
6
+
7
+ <div class="shipment">
8
+ <h3 class="stock-location" data-hook="stock-location">
9
+ <%= Spree.t(:package_from) %>
10
+ <strong class="stock-location-name" data-hook="stock-location-name"><%= ship_form.object.stock_location.name %></strong>
11
+ </h3>
12
+
13
+ <table class="stock-contents" data-hook="stock-contents">
14
+ <colgroup>
15
+ <col style="width: 10%;" />
16
+ <col style="width: 60%;" />
17
+ <col style="width: 10%;" />
18
+ <col style="width: 20%;" />
19
+ </colgroup>
20
+ <thead>
21
+ <th></th>
22
+ <th align='left'><%= Spree.t(:item) %></th>
23
+ <th><%= Spree.t(:qty) %></th>
24
+ <th><%= Spree.t(:price) %></th>
25
+ </thead>
26
+ <tbody>
27
+ <% ship_form.object.manifest.each do |item| %>
28
+ <tr class="stock-item">
29
+ <td class="item-image"><%= mini_image(item.variant) %></td>
30
+ <td class="item-name"><%= item.variant.name %></td>
31
+ <td class="item-qty"><%= item.quantity %></td>
32
+ <td class="item-price"><%= display_price(item.variant) %></td>
33
+ </tr>
34
+ <% end %>
35
+ </tbody>
36
+ </table>
37
+
38
+ <h5 class="stock-shipping-method-title"><%= Spree.t(:shipping_method) %></h5>
39
+ <ul class="field radios shipping-methods">
40
+ <% ship_form.object.shipping_rates.each do |rate| %>
41
+ <li class="shipping-method">
42
+ <label>
43
+ <%= ship_form.radio_button :selected_shipping_rate_id, rate.id %>
44
+ <span class="rate-name"><%= rate.name %></span>
45
+ <span class="rate-cost"><%= rate.display_cost %></span>
46
+ </label>
47
+ </li>
48
+ <% end %>
49
+ </ul>
50
+ </div>
51
+
52
+ <% end %>
53
+
54
+ <% if @differentiator.try(:missing?) %>
55
+ <div class="shipment unshippable">
56
+ <h3 class="stock-location" data-hook="stock-location">
57
+ <%= Spree.t(:unshippable_items) %>
58
+ </h3>
59
+ <table class="stock-contents" data-hook="stock-missing">
60
+ <colgroup>
61
+ <col style="width: 10%;" />
62
+ <col style="width: 60%;" />
63
+ <col style="width: 10%;" />
64
+ <col style="width: 20%;" />
65
+ </colgroup>
66
+ <thead>
67
+ <th></th>
68
+ <th align='left'><%= Spree.t(:item) %></th>
69
+ <th><%= Spree.t(:qty) %></th>
70
+ <th><%= Spree.t(:price) %></th>
71
+ </thead>
72
+ <tbody>
73
+ <% @differentiator.missing.each do |variant, quantity| %>
74
+ <tr class="stock-item">
75
+ <td class="item-image"><%= mini_image(variant) %></td>
76
+ <td class="item-name"><%= variant.name %></td>
77
+ <td class="item-qty"><%= quantity %></td>
78
+ <td class="item-price"><%= display_price(variant) %></td>
79
+ </tr>
80
+ <% end %>
81
+ </tbody>
82
+ </table>
83
+ </div>
84
+ <% end %>
85
+
86
+ </div>
87
+ <% if Spree::Config[:shipping_instructions] %>
88
+ <p id="minstrs" data-hook>
89
+ <%= form.label :special_instructions, Spree.t(:shipping_instructions) %><br />
90
+ <%= form.text_area :special_instructions, :cols => 40, :rows => 7 %>
91
+ </p>
92
+ <% end %>
93
+ </div>
94
+ </fieldset>
95
+
96
+ <br />
97
+
98
+ <div class="form-buttons" data-hook="buttons">
99
+ <%= submit_tag Spree.t(:save_and_continue), :class => 'continue button primary' %>
100
+ </div>
@@ -0,0 +1,71 @@
1
+ <fieldset id="payment" data-hook>
2
+ <legend align="center"><%= Spree.t(:payment_information) %></legend>
3
+ <div data-hook="checkout_payment_step">
4
+ <% if @payment_sources.present? %>
5
+ <div class="card_options">
6
+ <%= radio_button_tag 'use_existing_card', 'yes', true %>
7
+ <label for="use_existing_card_yes">
8
+ <%= Spree.t(:use_existing_cc) %>
9
+ </label>
10
+ <br/>
11
+ <%= radio_button_tag 'use_existing_card', 'no' %>
12
+ <label for="use_existing_card_no">
13
+ <%= Spree.t(:use_new_cc_or_payment_method) %>
14
+ </label>
15
+ </div>
16
+
17
+ <div id="existing_cards">
18
+ <p class="field" data-hook="existing_cards">
19
+ <table class="existing-credit-card-list">
20
+ <tbody>
21
+ <% @payment_sources.each do |card| %>
22
+ <tr id="<%= dom_id(card,'spree')%>" class="<%= cycle('even', 'odd') %>">
23
+ <td><%= card.name %></td>
24
+ <td><%= card.display_number %></td>
25
+ <td><%= card.month %></td>
26
+ <td><%= card.year %></td>
27
+ <td>
28
+ <%= radio_button_tag "order[existing_card]", card.id, (card == @payment_sources.first), { class: "existing-cc-radio" } %>
29
+ </td>
30
+ </tr>
31
+ <% end %>
32
+ </tbody>
33
+ </table>
34
+ </p>
35
+ </div>
36
+ <% end %>
37
+
38
+ <div id="payment-method-fields" data-hook>
39
+ <% @order.available_payment_methods.each do |method| %>
40
+ <p>
41
+ <label>
42
+ <%= radio_button_tag "order[payments_attributes][][payment_method_id]", method.id, method == @order.available_payment_methods.first %>
43
+ <%= Spree.t(method.name, :scope => :payment_methods, :default => method.name) %>
44
+ </label>
45
+ </p>
46
+ <% end %>
47
+ </div>
48
+
49
+ <ul id="payment-methods" data-hook>
50
+ <% @order.available_payment_methods.each do |method| %>
51
+ <li id="payment_method_<%= method.id %>" class="<%= 'last' if method == @order.available_payment_methods.last %>" data-hook>
52
+ <fieldset>
53
+ <%= render :partial => "spree/checkout/payment/#{method.method_type}", :locals => { :payment_method => method } %>
54
+ </fieldset>
55
+ </li>
56
+ <% end %>
57
+ </ul>
58
+ <br style="clear:both;" />
59
+ <p class='field' data-hook='coupon_code'>
60
+ <%= form.label :coupon_code %><br />
61
+ <%= form.text_field :coupon_code %>
62
+ </p>
63
+ </div>
64
+ </fieldset>
65
+
66
+ <br class="space" />
67
+
68
+ <div class="form-buttons" data-hook="buttons">
69
+ <%= submit_tag Spree.t(:save_and_continue), :class => 'continue button primary' %>
70
+ <script>Spree.disableSaveOnClick();</script>
71
+ </div>
@@ -0,0 +1,72 @@
1
+ <h3><%= Spree.t(:order_summary) %></h3>
2
+
3
+ <table data-hook="order_summary">
4
+ <tbody>
5
+ <tr data-hook="item_total">
6
+ <td><strong><%= Spree.t(:item_total) %>:</strong></td>
7
+ <td><strong><%= order.display_item_total.to_html %></strong></td>
8
+ </tr>
9
+
10
+ <% if order.line_item_adjustments.nonzero.exists? %>
11
+ <tbody data-hook="order_details_promotion_adjustments">
12
+ <% order.line_item_adjustments.nonzero.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
13
+ <tr class="total">
14
+ <td><%= label %></td>
15
+ <td><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %></td>
16
+ </tr>
17
+ <% end %>
18
+ </tbody>
19
+ <% end %>
20
+
21
+ <tbody data-hook="order_details_tax_adjustments">
22
+ <% order.all_adjustments.nonzero.tax.eligible.group_by(&:label).each do |label, adjustments| %>
23
+ <tr class="total">
24
+ <td><%= label %></td>
25
+ <td><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %></td>
26
+ </tr>
27
+ <% end %>
28
+ </tbody>
29
+
30
+ <% if order.passed_checkout_step?("delivery") && order.shipments.any? %>
31
+ <tr data-hook="shipping_total">
32
+ <td><%= Spree.t(:shipping_total) %>:</td>
33
+ <td><%= Spree::Money.new(order.shipments.to_a.sum(&:cost), currency: order.currency).to_html %></td>
34
+ </tr>
35
+
36
+ <% if order.shipment_adjustments.nonzero.exists? %>
37
+ <tbody data-hook="order_details_shipment_promotion_adjustments">
38
+ <% order.shipment_adjustments.nonzero.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
39
+ <tr class="total">
40
+ <td><%= label %>:</td>
41
+ <td><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %></td>
42
+ </tr>
43
+ <% end %>
44
+ </tbody>
45
+ <% end %>
46
+ <% end %>
47
+
48
+ <% if order.adjustments.nonzero.eligible.exists? %>
49
+ <tbody id="summary-order-charges" data-hook>
50
+ <% order.adjustments.nonzero.eligible.each do |adjustment| %>
51
+ <% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
52
+ <tr class="total">
53
+ <td><%= adjustment.label %>:</td>
54
+ <td><%= adjustment.display_amount.to_html %></td>
55
+ </tr>
56
+ <% end %>
57
+ </tbody>
58
+ <% end %>
59
+
60
+ <% if order.total_applicable_store_credit > 0.0 %>
61
+ <tr data-hook="checkout-summary-store-credit">
62
+ <td><%= Spree.t("store_credit.store_credit") %>:</td>
63
+ <td><%= order.display_total_applicable_store_credit.to_html %></td>
64
+ </tr>
65
+ <% end %>
66
+
67
+ <tr data-hook="order_total">
68
+ <td><strong><%= Spree.t(:order_total) %>:</strong></td>
69
+ <td><strong><span id='summary-order-total'><%= order.display_order_total_after_store_credit.to_html %></span></strong></td>
70
+ </tr>
71
+ </tbody>
72
+ </table>
@@ -0,0 +1,37 @@
1
+ <div id="checkout" data-hook>
2
+ <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
3
+
4
+ <div class="row" data-hook="checkout_header">
5
+ <h1 class="columns three alpha" data-hook="checkout_title"><%= Spree.t(:checkout) %></h1>
6
+ <div class="columns thirteen omega" data-hook="checkout_progress"><%= checkout_progress %></div>
7
+ </div>
8
+
9
+ <div class="row" data-hook="checkout_content">
10
+ <div class="columns <%= if @order.state != 'confirm' then 'alpha twelve' else 'alpha omega sixteen' end %>" data-hook="checkout_form_wrapper">
11
+ <%= form_for @order, :url => update_checkout_path(@order.state), :html => { :id => "checkout_form_#{@order.state}" } do |form| %>
12
+ <% if @order.state == 'address' || !@order.email? %>
13
+ <p class="field" style='clear: both'>
14
+ <%= form.label :email %><br />
15
+ <%= form.text_field :email %>
16
+ </p>
17
+ <% end %>
18
+ <%= form.hidden_field :state_lock_version %>
19
+ <%= render @order.state, :form => form %>
20
+ <% end %>
21
+ </div>
22
+ <% if @order.state != 'confirm' %>
23
+ <div id="checkout-summary" data-hook="checkout_summary_box" class="columns omega four">
24
+ <%= render :partial => 'summary', :locals => { :order => @order } %>
25
+ </div>
26
+ <% end %>
27
+ </div>
28
+ </div>
29
+
30
+ <script>
31
+ Spree.current_order_id = "<%= @order.number %>"
32
+ Spree.current_order_token = "<%= @order.guest_token %>"
33
+ </script>
34
+
35
+ <% if I18n.locale != :en %>
36
+ <%= javascript_include_tag 'jquery.validate/localization/messages_' + I18n.locale.to_s.downcase.gsub('-', '') %>
37
+ <% end %>
File without changes
@@ -0,0 +1,32 @@
1
+ <%= image_tag 'credit_cards/credit_card.gif', :id => 'credit-card-image' %>
2
+ <% param_prefix = "payment_source[#{payment_method.id}]" %>
3
+
4
+ <p class="field">
5
+ <%= label_tag "name_on_card_#{payment_method.id}", Spree.t(:name_on_card) %><span class="required">*</span><br />
6
+ <%= text_field_tag "#{param_prefix}[name]", "#{@order.billing_firstname} #{@order.billing_lastname}", { id: "name_on_card_#{payment_method.id}"} %>
7
+ </p>
8
+
9
+ <p class="field" data-hook="card_number">
10
+ <%= label_tag "card_number", Spree.t(:card_number) %><span class="required">*</span><br />
11
+ <% options_hash = Rails.env.production? ? {:autocomplete => 'off'} : {} %>
12
+ <%= text_field_tag "#{param_prefix}[number]", '', options_hash.merge(:id => 'card_number', :class => 'required cardNumber', :size => 19, :maxlength => 19, :autocomplete => "off") %>
13
+ &nbsp;
14
+ <span id="card_type" style="display:none;">
15
+ ( <span id="looks_like" ><%= Spree.t(:card_type_is) %> <span id="type"></span></span>
16
+ <span id="unrecognized"><%= Spree.t(:unrecognized_card_type) %></span>
17
+ )
18
+ </span>
19
+ </p>
20
+
21
+ <p class="field" data-hook="card_expiration">
22
+ <%= label_tag "card_expiry", Spree.t(:expiration) %><span class="required">*</span><br />
23
+ <%= text_field_tag "#{param_prefix}[expiry]", '', :id => 'card_expiry', :class => "required cardExpiry", :placeholder => "MM / YY" %>
24
+ </p>
25
+
26
+ <p class="field" data-hook="card_code">
27
+ <%= label_tag "card_code", Spree.t(:card_code) %><span class="required">*</span><br />
28
+ <%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(:id => 'card_code', :class => 'required cardCode', :size => 5) %>
29
+ <%= link_to "(#{Spree.t(:what_is_this)})", spree.content_path('cvv'), :target => '_blank', "data-hook" => "cvv_link", :id => "cvv_link" %>
30
+ </p>
31
+
32
+ <%= hidden_field_tag "#{param_prefix}[cc_type]", '', :id => "cc_type", :class => 'ccType' %>
@@ -0,0 +1,13 @@
1
+ <div class="cvv" data-hook>
2
+ <h1><%= Spree.t(:what_is_a_cvv) %></h1>
3
+ <p>For Visa, MasterCard, and Discover cards, the card code is the last 3 digit number located on the back of your card on or above your signature line. For an American Express card, it is the 4 digits on the FRONT above the end of your card number.</p>
4
+ <p>To help reduce fraud in the card-not-present environment, credit card companies have introduced a card code program. Visa calls this code Card Verification Value (CVV); MasterCard calls it Card Validation Code (CVC); Discover calls it Card ID (CID). The card code is a three- or four- digit security code that is printed on the back of cards. The number typically appears at the end of the signature panel.</p>
5
+ <div class="cid-caption">Visa</div>
6
+ <%= image_tag 'credit_cards/visa_cid.gif' %>
7
+ <div class="cid-caption">Master Card</div>
8
+ <%= image_tag 'credit_cards/master_cid.jpg' %>
9
+ <div class="cid-caption">American Express</div>
10
+ <%= image_tag 'credit_cards/amex_cid.gif' %>
11
+ <div class="cid-caption">Discover</div>
12
+ <%= image_tag 'credit_cards/discover_cid.gif' %>
13
+ </div>
@@ -0,0 +1 @@
1
+ Nothing to see here. Move along now.
@@ -0,0 +1,12 @@
1
+ <% content_for :sidebar do %>
2
+ <div data-hook="homepage_sidebar_navigation">
3
+ <%= render :partial => 'spree/shared/taxonomies' %>
4
+ </div>
5
+ <% end %>
6
+
7
+ <div data-hook="homepage_products">
8
+ <% cache(cache_key_for_products) do %>
9
+ <%= render :partial => 'spree/shared/products', :locals => { :products => @products } %>
10
+ <% end %>
11
+ </div>
12
+
@@ -0,0 +1,37 @@
1
+ <!doctype html>
2
+ <!--[if lt IE 7 ]> <html class="ie ie6" lang="<%= I18n.locale %>"> <![endif]-->
3
+ <!--[if IE 7 ]> <html class="ie ie7" lang="<%= I18n.locale %>"> <![endif]-->
4
+ <!--[if IE 8 ]> <html class="ie ie8" lang="<%= I18n.locale %>"> <![endif]-->
5
+ <!--[if IE 9 ]> <html class="ie ie9" lang="<%= I18n.locale %>"> <![endif]-->
6
+ <!--[if gt IE 9]><!--><html lang="<%= I18n.locale %>"><!--<![endif]-->
7
+ <head data-hook="inside_head">
8
+ <%= render :partial => 'spree/shared/head' %>
9
+ </head>
10
+ <body class="<%= body_class %>" id="<%= @body_id || 'default' %>" data-hook="body">
11
+
12
+ <div class="container">
13
+
14
+ <%= render :partial => 'spree/shared/header' %>
15
+
16
+ <div id="wrapper" class="row" data-hook>
17
+
18
+ <%= breadcrumbs(@taxon) %>
19
+
20
+ <%= render :partial => 'spree/shared/sidebar' if content_for? :sidebar %>
21
+
22
+ <div id="content" class="columns <%= !content_for?(:sidebar) ? "sixteen" : "twelve omega" %>" data-hook>
23
+ <%= flash_messages %>
24
+ <%= yield %>
25
+ </div>
26
+
27
+ <%= yield :templates %>
28
+
29
+ </div>
30
+
31
+ <%= render :partial => 'spree/shared/footer' %>
32
+
33
+ </div>
34
+
35
+ <%= render :partial => 'spree/shared/google_analytics' %>
36
+ </body>
37
+ </html>
@@ -0,0 +1,8 @@
1
+ <% if adjustments.sum(&:amount) != 0 %>
2
+ <tr class="adjustment">
3
+ <td colspan="4" align='right'><h5><%= type %>: <%= label %></h5></td>
4
+ <td colspan='2'>
5
+ <h5><%= Spree::Money.new(adjustments.sum(&:amount), :currency => @order.currency) %></h5>
6
+ </td>
7
+ </tr>
8
+ <% end %>
@@ -0,0 +1,24 @@
1
+ <tbody id="cart_adjustments" data-hook>
2
+ <% if @order.line_item_adjustments.exists? %>
3
+ <% @order.line_item_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
4
+ <%= render "spree/orders/adjustment_row", :label => label, :adjustments => adjustments, :type => Spree.t(:promotion) %>
5
+ <% end %>
6
+ <% end %>
7
+
8
+ <% @order.all_adjustments.tax.eligible.group_by(&:label).each do |label, adjustments| %>
9
+ <%= render "spree/orders/adjustment_row", :label => label, :adjustments => adjustments, :type => Spree.t(:tax) %>
10
+ <% end %>
11
+
12
+ <% @order.shipments.each do |shipment| %>
13
+ <tr>
14
+ <td colspan="4" align='right'><h5><%= Spree.t(:shipping) %>: <%= shipment.shipping_method.name %></h5></td>
15
+ <td colspan='2'>
16
+ <h5><%= shipment.display_discounted_cost %></h5>
17
+ </td>
18
+ </tr>
19
+ <% end %>
20
+
21
+ <% @order.adjustments.eligible.group_by(&:label).each do |label, adjustments| %>
22
+ <%= render "spree/orders/adjustment_row", :label => label, :adjustments => adjustments, :type => Spree.t(:adjustment) %>
23
+ <% end %>
24
+ </tbody>
@@ -0,0 +1,28 @@
1
+ <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
2
+ <table id="cart-detail" data-hook>
3
+ <thead>
4
+ <tr data-hook="cart_items_headers">
5
+ <th class="cart-item-description-header" colspan="2"><%= Spree.t(:item) %></th>
6
+ <th class="cart-item-price-header"><%= Spree.t(:price) %></th>
7
+ <th class="cart-item-quantity-header"><%= Spree.t(:qty) %></th>
8
+ <th class="cart-item-total-header"><%= Spree.t(:total) %></th>
9
+ <th class="cart-item-delete-header"></th>
10
+ </tr>
11
+ </thead>
12
+ <tbody id="line_items" data-hook>
13
+ <%= render partial: 'spree/orders/line_item', collection: order_form.object.line_items, locals: {order_form: order_form} %>
14
+ </tbody>
15
+ <% if @order.adjustments.nonzero.exists? || @order.line_item_adjustments.nonzero.exists? || @order.shipment_adjustments.nonzero.exists? || @order.shipments.any? %>
16
+ <tr class="cart-subtotal">
17
+ <td colspan="4" align='right'><h5><%= Spree.t(:cart_subtotal, :count => @order.line_items.sum(:quantity)) %></h5></th>
18
+ <td colspan><h5><%= order_form.object.display_item_total %></h5></td>
19
+ <td></td>
20
+ </tr>
21
+ <%= render "spree/orders/adjustments" %>
22
+ <% end %>
23
+ <tr class="cart-total">
24
+ <td colspan="4" align='right'><h5><%= Spree.t(:total) %></h5></th>
25
+ <td colspan><h5><%= order_form.object.display_total %></h5></td>
26
+ <td></td>
27
+ </tr>
28
+ </table>
@@ -0,0 +1,36 @@
1
+ <% variant = line_item.variant -%>
2
+ <%= order_form.fields_for :line_items, line_item do |item_form| -%>
3
+ <tr class="<%= cycle('', 'alt') %> line-item">
4
+ <td class="cart-item-image" data-hook="cart_item_image">
5
+ <% if variant.images.length == 0 %>
6
+ <%= link_to small_image(variant.product), variant.product %>
7
+ <% else %>
8
+ <%= link_to image_tag(variant.images.first.attachment.url(:small)), variant.product %>
9
+ <% end %>
10
+ </td>
11
+ <td class="cart-item-description" data-hook="cart_item_description">
12
+ <h4><%= link_to line_item.name, product_path(variant.product) %></h4>
13
+ <%= variant.options_text %>
14
+ <% if line_item.insufficient_stock? %>
15
+ <span class="out-of-stock">
16
+ <%= Spree.t(:out_of_stock) %>&nbsp;&nbsp;<br />
17
+ </span>
18
+ <% end %>
19
+ <span class="line-item-description" data-hook="line_item_description">
20
+ <%= line_item_description_text(line_item.description) %>
21
+ </span>
22
+ </td>
23
+ <td class="cart-item-price" data-hook="cart_item_price">
24
+ <%= line_item.single_money.to_html %>
25
+ </td>
26
+ <td class="cart-item-quantity" data-hook="cart_item_quantity">
27
+ <%= item_form.number_field :quantity, :min => 0, :class => "line_item_quantity", :size => 5 %>
28
+ </td>
29
+ <td class="cart-item-total" data-hook="cart_item_total">
30
+ <%= line_item.display_amount.to_html unless line_item.quantity.nil? %>
31
+ </td>
32
+ <td class="cart-item-delete" data-hook="cart_item_delete">
33
+ <%= link_to image_tag('icons/delete.png'), '#', :class => 'delete', :id => "delete_#{dom_id(line_item)}" %>
34
+ </td>
35
+ </tr>
36
+ <% end -%>
@@ -0,0 +1,47 @@
1
+ <% @body_id = 'cart' %>
2
+ <div data-hook="cart_container">
3
+ <h1><%= Spree.t(:shopping_cart) %></h1>
4
+
5
+ <% if @order.line_items.empty? %>
6
+
7
+ <div data-hook="empty_cart">
8
+ <p><%= Spree.t(:your_cart_is_empty) %></p>
9
+ <p><%= link_to Spree.t(:continue_shopping), products_path, :class => 'button continue' %></p>
10
+ </div>
11
+
12
+ <% else %>
13
+
14
+ <div data-hook="outside_cart_form">
15
+ <%= form_for @order, :url => update_cart_path, :html => {:id => 'update-cart'} do |order_form| %>
16
+ <div data-hook="inside_cart_form">
17
+
18
+ <div data-hook="cart_items">
19
+ <%= render :partial => 'form', :locals => { :order_form => order_form } %>
20
+ </div>
21
+
22
+ <div class="links columns sixteen alpha omega" data-hook="cart_buttons">
23
+ <%= order_form.text_field :coupon_code, :size => 10, :placeholder => Spree.t(:coupon_code) %>
24
+ <%= button_tag :class => 'primary', :id => 'update-button' do %>
25
+ <%= Spree.t(:update) %>
26
+ <% end %>
27
+ <%= button_tag :class => 'button checkout primary', :id => 'checkout-link', :name => 'checkout' do %>
28
+ <%= Spree.t(:checkout) %>
29
+ <% end %>
30
+ </div>
31
+
32
+ </div>
33
+ <% end %>
34
+ </div>
35
+
36
+ <div id="empty-cart" data-hook>
37
+ <%= form_tag empty_cart_path, :method => :put do %>
38
+ <p id="clear_cart_link" data-hook>
39
+ <%= submit_tag Spree.t(:empty_cart), :class => 'button gray' %>
40
+ <%= Spree.t(:or) %>
41
+ <%= link_to Spree.t(:continue_shopping), products_path, :class => 'continue button gray' %>
42
+ </p>
43
+ <% end %>
44
+ </div>
45
+
46
+ <% end %>
47
+ </div>
@@ -0,0 +1,22 @@
1
+ <fieldset id="order_summary" data-hook>
2
+ <legend><%= Spree.t(:order_number, :number => @order.number) %></legend>
3
+ <h1><%= accurate_title %></h1>
4
+ <% if order_just_completed?(@order) %>
5
+ <strong><%= Spree.t(:thank_you_for_your_order) %></strong>
6
+ <% end %>
7
+
8
+ <div id="order" data-hook>
9
+ <%= render :partial => 'spree/shared/order_details', :locals => { :order => @order } %>
10
+
11
+ <br class="clear" />
12
+
13
+ <p data-hook="links">
14
+ <%= link_to Spree.t(:back_to_store), spree.root_path, :class => "button" %>
15
+ <% unless order_just_completed?(@order) %>
16
+ <% if try_spree_current_user && respond_to?(:spree_account_path) %>
17
+ <%= link_to Spree.t(:my_account), spree_account_path, :class => "button" %>
18
+ <% end %>
19
+ <% end %>
20
+ </p>
21
+ </div>
22
+ </fieldset>
@@ -0,0 +1,18 @@
1
+ <% source = payment.source %>
2
+ <% if source.is_a?(Spree::CreditCard) %>
3
+ <span class="cc-type">
4
+ <% unless (cc_type = source.cc_type).blank? %>
5
+ <%= image_tag "credit_cards/icons/#{cc_type}.png" %>
6
+ <% end %>
7
+ <% if source.last_digits %>
8
+ <%= Spree.t(:ending_in) %> <%= source.last_digits %>
9
+ <% end %>
10
+ </span>
11
+ <br />
12
+ <span class="full-name"><%= source.name %></span>
13
+ <% elsif source.is_a?(Spree::StoreCredit) %>
14
+ <%= content_tag(:span, payment.payment_method.name) %>:
15
+ <%= content_tag(:span, payment.display_amount) %>
16
+ <% else %>
17
+ <%= content_tag(:span, payment.payment_method.name) %>
18
+ <% end %>
@@ -0,0 +1,65 @@
1
+ <%= form_for :order, :url => populate_orders_path do |f| %>
2
+ <div id="inside-product-cart-form" data-hook="inside_product_cart_form" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
3
+
4
+ <% if @product.variants_and_option_values(current_currency).any? %>
5
+ <div id="product-variants" class="columns five alpha">
6
+ <h6 class="product-section-title"><%= Spree.t(:variants) %></h6>
7
+ <ul>
8
+ <% @product.variants_and_option_values(current_currency).each_with_index do |variant, index| %>
9
+ <li>
10
+ <%= radio_button_tag "variant_id", variant.id, index == 0, 'data-price' => variant.price_in(current_currency).money %>
11
+ <%= label_tag "variant_id_#{ variant.id }" do %>
12
+ <span class="variant-description">
13
+ <%= variant_options variant %>
14
+ </span>
15
+ <% if variant_price variant %>
16
+ <span class="price diff"><%= variant_price variant %></span>
17
+ <% end %>
18
+
19
+ <% unless variant.can_supply? %>
20
+ <span class="out-of-stock"><%= Spree.t(:out_of_stock) %></span>
21
+ <% end %>
22
+ <% end %>
23
+ </li>
24
+ <% end%>
25
+ </ul>
26
+ </div>
27
+ <% else %>
28
+ <%= hidden_field_tag "variant_id", @product.master.id %>
29
+ <% end %>
30
+
31
+ <% if @product.price_in(current_currency) and !@product.price.nil? %>
32
+ <div data-hook="product_price" class="columns five <% if !@product.has_variants? %> alpha <% else %> omega <% end %>">
33
+
34
+ <div id="product-price">
35
+ <h6 class="product-section-title"><%= Spree.t(:price) %></h6>
36
+ <div>
37
+ <span class="price selling" itemprop="price">
38
+ <%= display_price(@product) %>
39
+ </span>
40
+ <span itemprop="priceCurrency" content="<%= @product.currency %>"></span>
41
+ </div>
42
+
43
+ <% if @product.master.can_supply? %>
44
+ <link itemprop="availability" href="http://schema.org/InStock" />
45
+ <% elsif @product.variants.empty? %>
46
+ <br />
47
+ <span class="out-of-stock"><%= Spree.t(:out_of_stock) %></span>
48
+ <% end %>
49
+ </div>
50
+
51
+ <div class="add-to-cart">
52
+ <%= number_field_tag :quantity, 1, :class => 'title', :min => 1 %>
53
+ <%= button_tag :class => 'large primary', :id => 'add-to-cart-button', :type => :submit do %>
54
+ <%= Spree.t(:add_to_cart) %>
55
+ <% end %>
56
+ </div>
57
+ </div>
58
+ <% else %>
59
+ <div id="product-price">
60
+ <br>
61
+ <div><span class="price selling" itemprop="price"><%= Spree.t('product_not_available_in_this_currency') %></span></div>
62
+ </div>
63
+ <% end %>
64
+ </div>
65
+ <% end %>