spree_frontend 4.1.8 → 4.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/arrow-down.svg +12 -0
- data/app/assets/images/edit.svg +1 -1
- data/app/assets/images/flags/4x3/ad.svg +150 -0
- data/app/assets/images/flags/4x3/ae.svg +6 -0
- data/app/assets/images/flags/4x3/af.svg +81 -0
- data/app/assets/images/flags/4x3/ag.svg +14 -0
- data/app/assets/images/flags/4x3/ai.svg +763 -0
- data/app/assets/images/flags/4x3/al.svg +5 -0
- data/app/assets/images/flags/4x3/am.svg +5 -0
- data/app/assets/images/flags/4x3/ao.svg +13 -0
- data/app/assets/images/flags/4x3/aq.svg +5 -0
- data/app/assets/images/flags/4x3/ar.svg +31 -0
- data/app/assets/images/flags/4x3/as.svg +33 -0
- data/app/assets/images/flags/4x3/at.svg +6 -0
- data/app/assets/images/flags/4x3/au.svg +9 -0
- data/app/assets/images/flags/4x3/aw.svg +186 -0
- data/app/assets/images/flags/4x3/ax.svg +18 -0
- data/app/assets/images/flags/4x3/az.svg +8 -0
- data/app/assets/images/flags/4x3/ba.svg +12 -0
- data/app/assets/images/flags/4x3/bb.svg +6 -0
- data/app/assets/images/flags/4x3/bd.svg +4 -0
- data/app/assets/images/flags/4x3/be.svg +7 -0
- data/app/assets/images/flags/4x3/bf.svg +7 -0
- data/app/assets/images/flags/4x3/bg.svg +7 -0
- data/app/assets/images/flags/4x3/bh.svg +9 -0
- data/app/assets/images/flags/4x3/bi.svg +15 -0
- data/app/assets/images/flags/4x3/bj.svg +14 -0
- data/app/assets/images/flags/4x3/bl.svg +7 -0
- data/app/assets/images/flags/4x3/bm.svg +98 -0
- data/app/assets/images/flags/4x3/bn.svg +36 -0
- data/app/assets/images/flags/4x3/bo.svg +676 -0
- data/app/assets/images/flags/4x3/bq.svg +5 -0
- data/app/assets/images/flags/4x3/br.svg +45 -0
- data/app/assets/images/flags/4x3/bs.svg +13 -0
- data/app/assets/images/flags/4x3/bt.svg +89 -0
- data/app/assets/images/flags/4x3/bv.svg +13 -0
- data/app/assets/images/flags/4x3/bw.svg +7 -0
- data/app/assets/images/flags/4x3/by.svg +20 -0
- data/app/assets/images/flags/4x3/bz.svg +145 -0
- data/app/assets/images/flags/4x3/ca.svg +4 -0
- data/app/assets/images/flags/4x3/cc.svg +19 -0
- data/app/assets/images/flags/4x3/cd.svg +5 -0
- data/app/assets/images/flags/4x3/cf.svg +15 -0
- data/app/assets/images/flags/4x3/cg.svg +12 -0
- data/app/assets/images/flags/4x3/ch.svg +9 -0
- data/app/assets/images/flags/4x3/ci.svg +7 -0
- data/app/assets/images/flags/4x3/ck.svg +9 -0
- data/app/assets/images/flags/4x3/cl.svg +13 -0
- data/app/assets/images/flags/4x3/cm.svg +15 -0
- data/app/assets/images/flags/4x3/cn.svg +11 -0
- data/app/assets/images/flags/4x3/co.svg +7 -0
- data/app/assets/images/flags/4x3/cr.svg +7 -0
- data/app/assets/images/flags/4x3/cu.svg +13 -0
- data/app/assets/images/flags/4x3/cv.svg +13 -0
- data/app/assets/images/flags/4x3/cw.svg +14 -0
- data/app/assets/images/flags/4x3/cx.svg +15 -0
- data/app/assets/images/flags/4x3/cy.svg +6 -0
- data/app/assets/images/flags/4x3/cz.svg +5 -0
- data/app/assets/images/flags/4x3/de.svg +5 -0
- data/app/assets/images/flags/4x3/dj.svg +13 -0
- data/app/assets/images/flags/4x3/dk.svg +5 -0
- data/app/assets/images/flags/4x3/dm.svg +152 -0
- data/app/assets/images/flags/4x3/do.svg +6745 -0
- data/app/assets/images/flags/4x3/dz.svg +5 -0
- data/app/assets/images/flags/4x3/ec.svg +138 -0
- data/app/assets/images/flags/4x3/ee.svg +7 -0
- data/app/assets/images/flags/4x3/eg.svg +38 -0
- data/app/assets/images/flags/4x3/eh.svg +15 -0
- data/app/assets/images/flags/4x3/er.svg +8 -0
- data/app/assets/images/flags/4x3/es-ca.svg +4 -0
- data/app/assets/images/flags/4x3/es.svg +544 -0
- data/app/assets/images/flags/4x3/et.svg +14 -0
- data/app/assets/images/flags/4x3/eu.svg +28 -0
- data/app/assets/images/flags/4x3/fi.svg +5 -0
- data/app/assets/images/flags/4x3/fj.svg +122 -0
- data/app/assets/images/flags/4x3/fk.svg +90 -0
- data/app/assets/images/flags/4x3/fm.svg +11 -0
- data/app/assets/images/flags/4x3/fo.svg +12 -0
- data/app/assets/images/flags/4x3/fr.svg +7 -0
- data/app/assets/images/flags/4x3/ga.svg +7 -0
- data/app/assets/images/flags/4x3/gb-eng.svg +5 -0
- data/app/assets/images/flags/4x3/gb-nir.svg +132 -0
- data/app/assets/images/flags/4x3/gb-sct.svg +4 -0
- data/app/assets/images/flags/4x3/gb-wls.svg +9 -0
- data/app/assets/images/flags/4x3/gb.svg +7 -0
- data/app/assets/images/flags/4x3/gd.svg +27 -0
- data/app/assets/images/flags/4x3/ge.svg +6 -0
- data/app/assets/images/flags/4x3/gf.svg +7 -0
- data/app/assets/images/flags/4x3/gg.svg +9 -0
- data/app/assets/images/flags/4x3/gh.svg +6 -0
- data/app/assets/images/flags/4x3/gi.svg +32 -0
- data/app/assets/images/flags/4x3/gl.svg +4 -0
- data/app/assets/images/flags/4x3/gm.svg +14 -0
- data/app/assets/images/flags/4x3/gn.svg +7 -0
- data/app/assets/images/flags/4x3/gp.svg +7 -0
- data/app/assets/images/flags/4x3/gq.svg +23 -0
- data/app/assets/images/flags/4x3/gr.svg +16 -0
- data/app/assets/images/flags/4x3/gs.svg +201 -0
- data/app/assets/images/flags/4x3/gt.svg +204 -0
- data/app/assets/images/flags/4x3/gu.svg +39 -0
- data/app/assets/images/flags/4x3/gw.svg +13 -0
- data/app/assets/images/flags/4x3/gy.svg +9 -0
- data/app/assets/images/flags/4x3/hk.svg +30 -0
- data/app/assets/images/flags/4x3/hm.svg +9 -0
- data/app/assets/images/flags/4x3/hn.svg +18 -0
- data/app/assets/images/flags/4x3/hr.svg +58 -0
- data/app/assets/images/flags/4x3/ht.svg +116 -0
- data/app/assets/images/flags/4x3/hu.svg +7 -0
- data/app/assets/images/flags/4x3/id.svg +6 -0
- data/app/assets/images/flags/4x3/ie.svg +7 -0
- data/app/assets/images/flags/4x3/il.svg +14 -0
- data/app/assets/images/flags/4x3/im.svg +36 -0
- data/app/assets/images/flags/4x3/in.svg +25 -0
- data/app/assets/images/flags/4x3/io.svg +138 -0
- data/app/assets/images/flags/4x3/iq.svg +10 -0
- data/app/assets/images/flags/4x3/ir.svg +219 -0
- data/app/assets/images/flags/4x3/is.svg +12 -0
- data/app/assets/images/flags/4x3/it.svg +7 -0
- data/app/assets/images/flags/4x3/je.svg +29 -0
- data/app/assets/images/flags/4x3/jm.svg +8 -0
- data/app/assets/images/flags/4x3/jo.svg +16 -0
- data/app/assets/images/flags/4x3/jp.svg +11 -0
- data/app/assets/images/flags/4x3/ke.svg +23 -0
- data/app/assets/images/flags/4x3/kg.svg +15 -0
- data/app/assets/images/flags/4x3/kh.svg +61 -0
- data/app/assets/images/flags/4x3/ki.svg +36 -0
- data/app/assets/images/flags/4x3/km.svg +16 -0
- data/app/assets/images/flags/4x3/kn.svg +14 -0
- data/app/assets/images/flags/4x3/kp.svg +15 -0
- data/app/assets/images/flags/4x3/kr.svg +24 -0
- data/app/assets/images/flags/4x3/kw.svg +13 -0
- data/app/assets/images/flags/4x3/ky.svg +63 -0
- data/app/assets/images/flags/4x3/kz.svg +23 -0
- data/app/assets/images/flags/4x3/la.svg +12 -0
- data/app/assets/images/flags/4x3/lb.svg +15 -0
- data/app/assets/images/flags/4x3/lc.svg +8 -0
- data/app/assets/images/flags/4x3/li.svg +43 -0
- data/app/assets/images/flags/4x3/lk.svg +22 -0
- data/app/assets/images/flags/4x3/lr.svg +14 -0
- data/app/assets/images/flags/4x3/ls.svg +8 -0
- data/app/assets/images/flags/4x3/lt.svg +7 -0
- data/app/assets/images/flags/4x3/lu.svg +5 -0
- data/app/assets/images/flags/4x3/lv.svg +6 -0
- data/app/assets/images/flags/4x3/ly.svg +13 -0
- data/app/assets/images/flags/4x3/ma.svg +4 -0
- data/app/assets/images/flags/4x3/mc.svg +6 -0
- data/app/assets/images/flags/4x3/md.svg +70 -0
- data/app/assets/images/flags/4x3/me.svg +116 -0
- data/app/assets/images/flags/4x3/mf.svg +7 -0
- data/app/assets/images/flags/4x3/mg.svg +7 -0
- data/app/assets/images/flags/4x3/mh.svg +7 -0
- data/app/assets/images/flags/4x3/mk.svg +5 -0
- data/app/assets/images/flags/4x3/ml.svg +7 -0
- data/app/assets/images/flags/4x3/mm.svg +16 -0
- data/app/assets/images/flags/4x3/mn.svg +13 -0
- data/app/assets/images/flags/4x3/mo.svg +9 -0
- data/app/assets/images/flags/4x3/mp.svg +86 -0
- data/app/assets/images/flags/4x3/mq.svg +7 -0
- data/app/assets/images/flags/4x3/mr.svg +6 -0
- data/app/assets/images/flags/4x3/ms.svg +78 -0
- data/app/assets/images/flags/4x3/mt.svg +49 -0
- data/app/assets/images/flags/4x3/mu.svg +8 -0
- data/app/assets/images/flags/4x3/mv.svg +6 -0
- data/app/assets/images/flags/4x3/mw.svg +10 -0
- data/app/assets/images/flags/4x3/mx.svg +382 -0
- data/app/assets/images/flags/4x3/my.svg +15 -0
- data/app/assets/images/flags/4x3/mz.svg +21 -0
- data/app/assets/images/flags/4x3/na.svg +16 -0
- data/app/assets/images/flags/4x3/nc.svg +14 -0
- data/app/assets/images/flags/4x3/ne.svg +6 -0
- data/app/assets/images/flags/4x3/nf.svg +9 -0
- data/app/assets/images/flags/4x3/ng.svg +6 -0
- data/app/assets/images/flags/4x3/ni.svg +129 -0
- data/app/assets/images/flags/4x3/nl.svg +5 -0
- data/app/assets/images/flags/4x3/no.svg +7 -0
- data/app/assets/images/flags/4x3/np.svg +14 -0
- data/app/assets/images/flags/4x3/nr.svg +12 -0
- data/app/assets/images/flags/4x3/nu.svg +26 -0
- data/app/assets/images/flags/4x3/nz.svg +41 -0
- data/app/assets/images/flags/4x3/om.svg +115 -0
- data/app/assets/images/flags/4x3/pa.svg +14 -0
- data/app/assets/images/flags/4x3/pe.svg +244 -0
- data/app/assets/images/flags/4x3/pf.svg +19 -0
- data/app/assets/images/flags/4x3/pg.svg +9 -0
- data/app/assets/images/flags/4x3/ph.svg +9 -0
- data/app/assets/images/flags/4x3/pk.svg +15 -0
- data/app/assets/images/flags/4x3/pl.svg +6 -0
- data/app/assets/images/flags/4x3/pm.svg +7 -0
- data/app/assets/images/flags/4x3/pn.svg +62 -0
- data/app/assets/images/flags/4x3/pr.svg +13 -0
- data/app/assets/images/flags/4x3/ps.svg +15 -0
- data/app/assets/images/flags/4x3/pt.svg +57 -0
- data/app/assets/images/flags/4x3/pw.svg +11 -0
- data/app/assets/images/flags/4x3/py.svg +157 -0
- data/app/assets/images/flags/4x3/qa.svg +4 -0
- data/app/assets/images/flags/4x3/re.svg +7 -0
- data/app/assets/images/flags/4x3/ro.svg +7 -0
- data/app/assets/images/flags/4x3/rs.svg +292 -0
- data/app/assets/images/flags/4x3/ru.svg +7 -0
- data/app/assets/images/flags/4x3/rw.svg +13 -0
- data/app/assets/images/flags/4x3/sa.svg +26 -0
- data/app/assets/images/flags/4x3/sb.svg +13 -0
- data/app/assets/images/flags/4x3/sc.svg +14 -0
- data/app/assets/images/flags/4x3/sd.svg +13 -0
- data/app/assets/images/flags/4x3/se.svg +5 -0
- data/app/assets/images/flags/4x3/sg.svg +13 -0
- data/app/assets/images/flags/4x3/sh.svg +74 -0
- data/app/assets/images/flags/4x3/si.svg +18 -0
- data/app/assets/images/flags/4x3/sj.svg +7 -0
- data/app/assets/images/flags/4x3/sk.svg +9 -0
- data/app/assets/images/flags/4x3/sl.svg +7 -0
- data/app/assets/images/flags/4x3/sm.svg +91 -0
- data/app/assets/images/flags/4x3/sn.svg +8 -0
- data/app/assets/images/flags/4x3/so.svg +11 -0
- data/app/assets/images/flags/4x3/sr.svg +6 -0
- data/app/assets/images/flags/4x3/ss.svg +8 -0
- data/app/assets/images/flags/4x3/st.svg +16 -0
- data/app/assets/images/flags/4x3/sv.svg +594 -0
- data/app/assets/images/flags/4x3/sx.svg +56 -0
- data/app/assets/images/flags/4x3/sy.svg +6 -0
- data/app/assets/images/flags/4x3/sz.svg +45 -0
- data/app/assets/images/flags/4x3/tc.svg +67 -0
- data/app/assets/images/flags/4x3/td.svg +7 -0
- data/app/assets/images/flags/4x3/tf.svg +15 -0
- data/app/assets/images/flags/4x3/tg.svg +14 -0
- data/app/assets/images/flags/4x3/th.svg +7 -0
- data/app/assets/images/flags/4x3/tj.svg +22 -0
- data/app/assets/images/flags/4x3/tk.svg +5 -0
- data/app/assets/images/flags/4x3/tl.svg +13 -0
- data/app/assets/images/flags/4x3/tm.svg +206 -0
- data/app/assets/images/flags/4x3/tn.svg +13 -0
- data/app/assets/images/flags/4x3/to.svg +10 -0
- data/app/assets/images/flags/4x3/tr.svg +8 -0
- data/app/assets/images/flags/4x3/tt.svg +5 -0
- data/app/assets/images/flags/4x3/tv.svg +16 -0
- data/app/assets/images/flags/4x3/tw.svg +14 -0
- data/app/assets/images/flags/4x3/tz.svg +13 -0
- data/app/assets/images/flags/4x3/ua.svg +6 -0
- data/app/assets/images/flags/4x3/ug.svg +30 -0
- data/app/assets/images/flags/4x3/um.svg +15 -0
- data/app/assets/images/flags/4x3/un.svg +16 -0
- data/app/assets/images/flags/4x3/us.svg +10 -0
- data/app/assets/images/flags/4x3/uy.svg +28 -0
- data/app/assets/images/flags/4x3/uz.svg +30 -0
- data/app/assets/images/flags/4x3/va.svg +479 -0
- data/app/assets/images/flags/4x3/vc.svg +8 -0
- data/app/assets/images/flags/4x3/ve.svg +26 -0
- data/app/assets/images/flags/4x3/vg.svg +127 -0
- data/app/assets/images/flags/4x3/vi.svg +28 -0
- data/app/assets/images/flags/4x3/vn.svg +11 -0
- data/app/assets/images/flags/4x3/vu.svg +18 -0
- data/app/assets/images/flags/4x3/wf.svg +7 -0
- data/app/assets/images/flags/4x3/ws.svg +7 -0
- data/app/assets/images/flags/4x3/xk.svg +16 -0
- data/app/assets/images/flags/4x3/ye.svg +7 -0
- data/app/assets/images/flags/4x3/yt.svg +7 -0
- data/app/assets/images/flags/4x3/za.svg +17 -0
- data/app/assets/images/flags/4x3/zm.svg +27 -0
- data/app/assets/images/flags/4x3/zw.svg +21 -0
- data/app/assets/images/global.svg +1 -0
- data/app/assets/images/info.svg +7 -0
- data/app/assets/images/pagination-arrow-right.svg +3 -10
- data/app/assets/images/pagination-double-arrow-right.svg +6 -13
- data/app/assets/images/plus.svg +1 -1
- data/app/assets/images/search.svg +1 -1
- data/app/assets/javascripts/spree/frontend.js +3 -0
- data/app/assets/javascripts/spree/frontend/checkout.js +1 -1
- data/app/assets/javascripts/spree/frontend/checkout/address.js +19 -10
- data/app/assets/javascripts/spree/frontend/checkout/payment.js +50 -23
- data/app/assets/javascripts/spree/frontend/login.js +5 -0
- data/app/assets/javascripts/spree/frontend/main_nav_bar.js +86 -0
- data/app/assets/javascripts/spree/frontend/multi_currency.js +13 -0
- data/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js +53 -10
- data/app/assets/javascripts/spree/frontend/views/spree/products/index.js +84 -14
- data/app/assets/javascripts/spree/frontend/views/spree/shared/product_added_modal.js +7 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/variant_select.js +93 -0
- data/app/assets/stylesheets/spree/frontend.css +0 -1
- data/app/assets/stylesheets/spree/frontend/application.scss +4 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/carousel.scss +4 -0
- data/app/assets/stylesheets/spree/frontend/components-custom/inputs.scss +80 -1
- data/app/assets/stylesheets/spree/frontend/flags/_flag-icon-base.scss +23 -0
- data/app/assets/stylesheets/spree/frontend/flags/_flag-icon-list.scss +265 -0
- data/app/assets/stylesheets/spree/frontend/flags/_variables.scss +2 -0
- data/app/assets/stylesheets/spree/frontend/flags/flag-icon.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/helpers/spree/frontend_helper.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/confirm.scss +0 -4
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/delivery.scss +6 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/edit.scss +3 -4
- data/app/assets/stylesheets/spree/frontend/views/spree/orders/edit.scss +2 -2
- data/app/assets/stylesheets/spree/frontend/views/spree/products/cart_form.scss +8 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/gallery_modal.scss +1 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/index.scss +28 -4
- data/app/assets/stylesheets/spree/frontend/views/spree/products/show.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/_color_select.scss +10 -9
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/carousel/single.scss +1 -1
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/carousel/thumbnails.scss +1 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/cart.scss +9 -4
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/change_store.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/main_nav_bar.scss +30 -25
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/mobile_navigation.scss +29 -3
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/nav_bar.scss +24 -7
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/quantity_select.scss +9 -12
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/search_form.scss +12 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/users/show.scss +0 -6
- data/app/controllers/spree/currency_controller.rb +17 -0
- data/app/controllers/spree/products_controller.rb +29 -13
- data/app/controllers/spree/store_controller.rb +4 -0
- data/app/helpers/spree/addresses_helper.rb +37 -7
- data/app/helpers/spree/frontend_helper.rb +33 -3
- data/app/helpers/spree/navigation_helper.rb +4 -1
- data/app/views/kaminari/twitter-bootstrap-4/_first_page.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_last_page.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_next_page.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_prev_page.html.erb +1 -1
- data/app/views/spree/address/_form.html.erb +22 -22
- data/app/views/spree/addresses/_form.html.erb +15 -6
- data/app/views/spree/addresses/edit.html.erb +13 -8
- data/app/views/spree/addresses/new.html.erb +5 -1
- data/app/views/spree/checkout/_address.html.erb +16 -18
- data/app/views/spree/checkout/_confirm.html.erb +5 -47
- data/app/views/spree/checkout/_delivery.html.erb +10 -3
- data/app/views/spree/checkout/_delivery_informations.html.erb +44 -0
- data/app/views/spree/checkout/_payment.html.erb +5 -24
- data/app/views/spree/checkout/_payment_sources.html.erb +17 -0
- data/app/views/spree/checkout/_summary.html.erb +22 -17
- data/app/views/spree/checkout/edit.html.erb +1 -1
- data/app/views/spree/checkout/payment/_gateway.html.erb +1 -1
- data/app/views/spree/checkout/registration.html.erb +2 -2
- data/app/views/spree/errors/not_found.html.erb +2 -2
- data/app/views/spree/home/index.html.erb +29 -35
- data/app/views/spree/layouts/checkout.html.erb +3 -1
- data/app/views/spree/orders/_coupon_code.html.erb +1 -1
- data/app/views/spree/orders/_line_item.html.erb +1 -1
- data/app/views/spree/orders/_line_item_data.html.erb +2 -2
- data/app/views/spree/orders/show.html.erb +1 -1
- data/app/views/spree/products/_cart_form.html.erb +8 -2
- data/app/views/spree/products/_color_option_type.html.erb +15 -14
- data/app/views/spree/products/_description.html.erb +10 -2
- data/app/views/spree/products/_filters_desktop.html.erb +43 -41
- data/app/views/spree/products/_filters_mobile.html.erb +6 -6
- data/app/views/spree/products/_gallery_modal.html.erb +1 -1
- data/app/views/spree/products/_option_type.html.erb +0 -1
- data/app/views/spree/products/_properties.html.erb +6 -4
- data/app/views/spree/products/_sort_desktop.html.erb +6 -6
- data/app/views/spree/products/_sort_mobile.html.erb +8 -8
- data/app/views/spree/products/_vendor_info.html.erb +13 -0
- data/app/views/spree/products/show.html.erb +3 -0
- data/app/views/spree/shared/_breadcrumbs.html.erb +2 -2
- data/app/views/spree/shared/_carousel_4_products.html.erb +1 -1
- data/app/views/spree/shared/_cart.html.erb +1 -1
- data/app/views/spree/shared/_change_store.html.erb +25 -0
- data/app/views/spree/shared/_checkout_header.html.erb +2 -2
- data/app/views/spree/shared/_footer.html.erb +12 -8
- data/app/views/spree/shared/_head.html.erb +2 -1
- data/app/views/spree/shared/_link_to_account.html.erb +1 -0
- data/app/views/spree/shared/_link_to_cart.html.erb +1 -2
- data/app/views/spree/shared/_login.html.erb +4 -4
- data/app/views/spree/shared/_main_nav_bar.html.erb +46 -40
- data/app/views/spree/shared/_mobile_change_store.html.erb +30 -0
- data/app/views/spree/shared/_mobile_navigation.html.erb +29 -52
- data/app/views/spree/shared/_nav_bar.html.erb +6 -16
- data/app/views/spree/shared/_option_values.html.erb +2 -2
- data/app/views/spree/shared/_quantity_select.html.erb +1 -1
- data/app/views/spree/shared/_search.html.erb +8 -11
- data/app/views/spree/shared/_taxonomies.html.erb +1 -1
- data/app/views/spree/shared/carousel/_thumbnails.html.erb +32 -30
- data/app/views/spree/users/_address.html.erb +16 -24
- data/app/views/spree/users/_address_controls.html.erb +11 -0
- data/app/views/spree/users/show.html.erb +14 -12
- data/config/routes.rb +2 -0
- data/spree_frontend.gemspec +4 -4
- metadata +300 -17
- data/app/assets/stylesheets/spree/frontend/_glyphicons_urls_fix.scss +0 -10
- data/app/assets/stylesheets/spree/frontend/address_book.scss +0 -8
@@ -1,42 +1,39 @@
|
|
1
1
|
.quantity-select {
|
2
|
-
width: 136px;
|
3
|
-
height: 45px;
|
4
|
-
@include media-breakpoint-up(sm) {
|
5
|
-
width: 174px;
|
6
|
-
height: 58px;
|
7
|
-
}
|
8
|
-
@include media-breakpoint-up(md) {
|
9
|
-
width: 136px;
|
10
|
-
height: 45px;
|
11
|
-
}
|
12
2
|
&-decrease, &-increase {
|
3
|
+
width: 45px;
|
13
4
|
border-radius: 0;
|
14
5
|
font-size: font-px-to-rem(20px);
|
15
6
|
font-weight: 500;
|
16
7
|
background-color: theme-color("light-background");
|
17
8
|
border: 1px solid theme-color("borders");
|
18
9
|
@include media-breakpoint-up(sm) {
|
10
|
+
width: 58px;
|
19
11
|
font-size: font-px-to-rem(30px);
|
20
12
|
border: 2px solid theme-color("borders");
|
21
13
|
}
|
22
14
|
@include media-breakpoint-up(md) {
|
15
|
+
width: 45px;
|
23
16
|
font-size: font-px-to-rem(20px);
|
24
17
|
border: 1px solid theme-color("borders");
|
25
18
|
}
|
26
19
|
}
|
27
20
|
&-value {
|
28
|
-
width:
|
21
|
+
width: 46px;
|
22
|
+
height: 45px;
|
29
23
|
font-size: font-px-to-rem(20px);
|
30
24
|
font-weight: 500;
|
31
25
|
border-radius: 0;
|
32
26
|
border: 1px solid theme-color('borders');
|
33
|
-
height: auto;
|
34
27
|
z-index: 1;
|
35
28
|
@include media-breakpoint-up(sm) {
|
29
|
+
width: 58px;
|
30
|
+
height: 58px;
|
36
31
|
font-size: font-px-to-rem(28px);
|
37
32
|
border: 2px solid theme-color("borders");
|
38
33
|
}
|
39
34
|
@include media-breakpoint-up(md) {
|
35
|
+
width: 46px;
|
36
|
+
height: 45px;
|
40
37
|
font-size: font-px-to-rem(20px);
|
41
38
|
border: 1px solid theme-color("borders");
|
42
39
|
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Spree
|
2
|
+
class CurrencyController < StoreController
|
3
|
+
def set
|
4
|
+
@currency = supported_currencies.find { |currency| currency.iso_code == params[:currency] }
|
5
|
+
# Make sure that we update the current order, so the currency change is reflected.
|
6
|
+
current_order&.update_attributes!(currency: @currency.iso_code)
|
7
|
+
session[:currency] = params[:currency] if Spree::Config[:allow_currency_change]
|
8
|
+
respond_to do |format|
|
9
|
+
format.json { render json: !@currency.nil? }
|
10
|
+
format.html do
|
11
|
+
# We want to go back to where we came from!
|
12
|
+
redirect_back_or_default(root_path)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -9,19 +9,10 @@ module Spree
|
|
9
9
|
respond_to :html
|
10
10
|
|
11
11
|
def index
|
12
|
-
@searcher = build_searcher(params.merge(include_images: true))
|
12
|
+
@searcher = build_searcher(params.merge(include_images: true, current_store_id: current_store.id))
|
13
13
|
@products = @searcher.retrieve_products
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
etag = [
|
18
|
-
store_etag,
|
19
|
-
last_modified&.to_i,
|
20
|
-
available_option_types_cache_key,
|
21
|
-
filtering_params_cache_key
|
22
|
-
]
|
23
|
-
|
24
|
-
fresh_when etag: etag, last_modified: last_modified, public: true
|
15
|
+
fresh_when etag: etag_index, last_modified: last_modified_index, public: true
|
25
16
|
end
|
26
17
|
|
27
18
|
def show
|
@@ -29,7 +20,7 @@ module Spree
|
|
29
20
|
|
30
21
|
@taxon = params[:taxon_id].present? ? Spree::Taxon.find(params[:taxon_id]) : @product.taxons.first
|
31
22
|
|
32
|
-
if stale?(etag:
|
23
|
+
if stale?(etag: etag_show, last_modified: last_modified_show, public: true)
|
33
24
|
@product_summary = Spree::ProductSummaryPresenter.new(@product).call
|
34
25
|
@product_properties = @product.product_properties.includes(:property)
|
35
26
|
@product_price = @product.price_in(current_currency).amount
|
@@ -96,7 +87,16 @@ module Spree
|
|
96
87
|
end
|
97
88
|
end
|
98
89
|
|
99
|
-
def
|
90
|
+
def etag_index
|
91
|
+
[
|
92
|
+
store_etag,
|
93
|
+
last_modified_index,
|
94
|
+
available_option_types_cache_key,
|
95
|
+
filtering_params_cache_key
|
96
|
+
]
|
97
|
+
end
|
98
|
+
|
99
|
+
def etag_show
|
100
100
|
[
|
101
101
|
store_etag,
|
102
102
|
@product,
|
@@ -105,5 +105,21 @@ module Spree
|
|
105
105
|
@product.possible_promotions.maximum(:updated_at),
|
106
106
|
]
|
107
107
|
end
|
108
|
+
|
109
|
+
alias product_etag etag_show
|
110
|
+
|
111
|
+
def last_modified_index
|
112
|
+
products_last_modified = @products.maximum(:updated_at)&.utc if @products.respond_to?(:maximum)
|
113
|
+
current_store_last_modified = current_store.updated_at.utc
|
114
|
+
|
115
|
+
[products_last_modified, current_store_last_modified].compact.max
|
116
|
+
end
|
117
|
+
|
118
|
+
def last_modified_show
|
119
|
+
product_last_modified = @product.updated_at.utc
|
120
|
+
current_store_last_modified = current_store.updated_at.utc
|
121
|
+
|
122
|
+
[product_last_modified, current_store_last_modified].compact.max
|
123
|
+
end
|
108
124
|
end
|
109
125
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
module Spree
|
3
3
|
module AddressesHelper
|
4
4
|
def address_field(form, method, address_id = 'b', &handler)
|
5
|
-
content_tag :
|
5
|
+
content_tag :div, id: [address_id, method].join, class: 'form-group checkout-content-inner-field has-float-label' do
|
6
6
|
if handler
|
7
7
|
yield
|
8
8
|
else
|
@@ -12,22 +12,52 @@ module Spree
|
|
12
12
|
form.text_field(method,
|
13
13
|
class: [is_required ? 'required' : nil, 'spree-flat-input'].compact,
|
14
14
|
required: is_required,
|
15
|
-
placeholder: is_required ? "#{method_name} #{required}" : method_name
|
15
|
+
placeholder: is_required ? "#{method_name} #{required}" : method_name,
|
16
|
+
aria: { label: method_name }) +
|
17
|
+
form.label(method_name,
|
18
|
+
is_required ? "#{method_name} #{required}" : method_name,
|
19
|
+
class: 'text-uppercase')
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
19
23
|
|
20
|
-
def
|
24
|
+
def address_zipcode(form, country, address_id = 'b')
|
25
|
+
country ||= Spree::Country.default
|
26
|
+
is_required = country.zipcode_required?
|
27
|
+
method_name = Spree.t(:zipcode)
|
28
|
+
required = Spree.t(:required)
|
29
|
+
form.text_field(:zipcode,
|
30
|
+
class: [is_required ? 'required' : nil, 'spree-flat-input'].compact,
|
31
|
+
required: is_required,
|
32
|
+
placeholder: is_required ? "#{method_name} #{required}" : method_name,
|
33
|
+
aria: { label: Spree.t(:zipcode) }) +
|
34
|
+
form.label(:zipcode,
|
35
|
+
is_required ? "#{method_name} #{required}" : method_name,
|
36
|
+
class: 'text-uppercase',
|
37
|
+
id: address_id + '_zipcode_label')
|
38
|
+
end
|
39
|
+
|
40
|
+
def address_state(form, country, address_id = 'b')
|
21
41
|
country ||= Spree::Country.find(Spree::Config[:default_country_id])
|
22
42
|
have_states = country.states.any?
|
23
43
|
state_elements = [
|
24
44
|
form.collection_select(:state_id, country.states.order(:name),
|
25
45
|
:id, :name,
|
26
|
-
{ prompt: Spree.t(:state)
|
27
|
-
class: have_states ? 'required
|
46
|
+
{ prompt: Spree.t(:state) },
|
47
|
+
class: [have_states ? 'required' : 'hidden', 'spree-flat-select'].compact,
|
48
|
+
aria: { label: Spree.t(:state) },
|
28
49
|
disabled: !have_states) +
|
29
|
-
form.text_field(:state_name,
|
30
|
-
|
50
|
+
form.text_field(:state_name,
|
51
|
+
class: [!have_states ? 'required' : 'hidden', 'spree-flat-input'].compact,
|
52
|
+
aria: { label: Spree.t(:state) },
|
53
|
+
disabled: have_states,
|
54
|
+
placeholder: Spree.t(:state) + " #{Spree.t(:required)}") +
|
55
|
+
form.label(Spree.t(:state).downcase,
|
56
|
+
raw(Spree.t(:state) + content_tag(:abbr, " #{Spree.t(:required)}")),
|
57
|
+
class: [have_states ? 'state-select-label' : nil, ' text-uppercase'].compact,
|
58
|
+
id: address_id + '_state_label') +
|
59
|
+
image_tag('arrow.svg',
|
60
|
+
class: [!have_states ? 'hidden' : nil, 'position-absolute spree-flat-select-arrow'].compact)
|
31
61
|
].join.tr('"', "'").delete("\n")
|
32
62
|
|
33
63
|
content_tag(:noscript, form.text_field(:state_name, class: 'required')) +
|
@@ -7,6 +7,26 @@ module Spree
|
|
7
7
|
@body_class
|
8
8
|
end
|
9
9
|
|
10
|
+
def store_country_iso(store)
|
11
|
+
store ||= current_store
|
12
|
+
return unless store
|
13
|
+
return unless store.default_country
|
14
|
+
|
15
|
+
store.default_country.iso.downcase
|
16
|
+
end
|
17
|
+
|
18
|
+
def stores
|
19
|
+
@stores ||= Spree::Store.includes(:default_country)
|
20
|
+
end
|
21
|
+
|
22
|
+
def store_currency_symbol(store)
|
23
|
+
store ||= current_store
|
24
|
+
return unless store
|
25
|
+
return unless store.default_currency
|
26
|
+
|
27
|
+
::Money::Currency.find(store.default_currency).symbol
|
28
|
+
end
|
29
|
+
|
10
30
|
def spree_breadcrumbs(taxon, _separator = '', product = nil)
|
11
31
|
return '' if current_page?('/') || taxon.nil?
|
12
32
|
|
@@ -51,7 +71,7 @@ module Spree
|
|
51
71
|
) << content_tag(:meta, nil, itemprop: 'position', content: '1'), class: 'active', itemscope: 'itemscope', itemtype: 'https://schema.org/ListItem', itemprop: 'itemListElement')
|
52
72
|
end
|
53
73
|
crumb_list = content_tag(:ol, raw(crumbs.flatten.map(&:mb_chars).join), class: 'breadcrumb', itemscope: 'itemscope', itemtype: 'https://schema.org/BreadcrumbList')
|
54
|
-
content_tag(:nav, crumb_list, id: 'breadcrumbs', class: 'col-12 mt-1 mt-sm-3 mt-lg-4', aria: { label:
|
74
|
+
content_tag(:nav, crumb_list, id: 'breadcrumbs', class: 'col-12 mt-1 mt-sm-3 mt-lg-4', aria: { label: Spree.t(:breadcrumbs) })
|
55
75
|
end
|
56
76
|
|
57
77
|
def class_for(flash_type)
|
@@ -146,7 +166,13 @@ module Spree
|
|
146
166
|
|
147
167
|
def plp_and_carousel_image(product, image_class = '')
|
148
168
|
image = default_image_for_product_or_variant(product)
|
149
|
-
|
169
|
+
|
170
|
+
image_url = if image.present?
|
171
|
+
main_app.url_for(image.url('plp'))
|
172
|
+
else
|
173
|
+
asset_path('noimage/plp.png')
|
174
|
+
end
|
175
|
+
|
150
176
|
image_style = image&.style(:plp)
|
151
177
|
|
152
178
|
lazy_image(
|
@@ -261,13 +287,17 @@ module Spree
|
|
261
287
|
def spree_social_link(service)
|
262
288
|
return '' if current_store.send(service).blank?
|
263
289
|
|
264
|
-
link_to "https://#{service}.com/#{current_store.send(service)}", target: :blank, rel: 'nofollow noopener' do
|
290
|
+
link_to "https://#{service}.com/#{current_store.send(service)}", target: :blank, rel: 'nofollow noopener', 'aria-label': service do
|
265
291
|
content_tag :figure, id: service, class: 'px-2' do
|
266
292
|
icon(name: service, width: 22, height: 22)
|
267
293
|
end
|
268
294
|
end
|
269
295
|
end
|
270
296
|
|
297
|
+
def checkout_available_payment_methods
|
298
|
+
@order.available_payment_methods(current_store)
|
299
|
+
end
|
300
|
+
|
271
301
|
private
|
272
302
|
|
273
303
|
def formatted_price(value)
|
@@ -11,7 +11,10 @@ module Spree
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def spree_nav_cache_key(section = 'header')
|
14
|
-
|
14
|
+
@spree_nav_cache_key = begin
|
15
|
+
keys = base_cache_key + [current_store, spree_navigation_data_cache_key, Spree::Config[:logo], stores&.cache_key, section]
|
16
|
+
Digest::MD5.hexdigest(keys.join('-'))
|
17
|
+
end
|
15
18
|
end
|
16
19
|
|
17
20
|
def main_nav_image(image_path, title = '')
|
@@ -8,6 +8,6 @@
|
|
8
8
|
-%>
|
9
9
|
<% unless current_page.first? %>
|
10
10
|
<li class="first page-item">
|
11
|
-
<%= link_to_unless current_page.first?, inline_svg_tag('pagination-double-arrow-right.svg', size: '13px*16px', class: 'spree-icon-arrow-left'), url, remote: remote, class: 'page-link' %>
|
11
|
+
<%= link_to_unless current_page.first?, inline_svg_tag('pagination-double-arrow-right.svg', size: '13px*16px', class: 'spree-icon-arrow-left'), url, remote: remote, class: 'page-link', 'aria-label': 'First page' %>
|
12
12
|
</li>
|
13
13
|
<% end %>
|
@@ -8,6 +8,6 @@
|
|
8
8
|
-%>
|
9
9
|
<% unless current_page.last? %>
|
10
10
|
<li class="last next page-item"><%# "next" class present for border styling in twitter bootstrap %>
|
11
|
-
<%= link_to_unless current_page.last?, inline_svg_tag('pagination-double-arrow-right.svg', size: '13px*16px'), url, remote: remote, class: 'page-link' %>
|
11
|
+
<%= link_to_unless current_page.last?, inline_svg_tag('pagination-double-arrow-right.svg', size: '13px*16px'), url, remote: remote, class: 'page-link', 'aria-label': 'Last page' %>
|
12
12
|
</li>
|
13
13
|
<% end %>
|
@@ -8,6 +8,6 @@
|
|
8
8
|
-%>
|
9
9
|
<% unless current_page.last? %>
|
10
10
|
<li class="next_page page-item">
|
11
|
-
<%= link_to_unless current_page.last?, inline_svg_tag('pagination-arrow-right.svg', size: '13px*16px'), url, rel: 'next', remote: remote, class: 'page-link' %>
|
11
|
+
<%= link_to_unless current_page.last?, inline_svg_tag('pagination-arrow-right.svg', size: '13px*16px'), url, rel: 'next', remote: remote, class: 'page-link', 'aria-label': 'Next page' %>
|
12
12
|
</li>
|
13
13
|
<% end %>
|
@@ -8,6 +8,6 @@
|
|
8
8
|
-%>
|
9
9
|
<% unless current_page.first? %>
|
10
10
|
<li class="prev page-item">
|
11
|
-
<%= link_to_unless current_page.first?, inline_svg_tag('pagination-arrow-right.svg', size: '13px*16px', class: 'spree-icon-arrow-left'), url, rel: 'prev', remote: remote, class: 'page-link' %>
|
11
|
+
<%= link_to_unless current_page.first?, inline_svg_tag('pagination-arrow-right.svg', size: '13px*16px', class: 'spree-icon-arrow-left'), url, rel: 'prev', remote: remote, class: 'page-link', 'aria-label': 'Previous page' %>
|
12
12
|
</li>
|
13
13
|
<% end %>
|
@@ -1,51 +1,51 @@
|
|
1
1
|
<% address_id = address_type.chars.first %>
|
2
2
|
|
3
3
|
<div class="inner" data-hook=<%="#{address_type}_inner" %>>
|
4
|
-
<
|
4
|
+
<div class="form-group" id=<%="#{address_id}firstname" %>>
|
5
5
|
<%= form.label :firstname do %>
|
6
6
|
<%= Spree.t(:first_name) %><abbr class="required" title="required">*</abbr>
|
7
7
|
<% end %>
|
8
8
|
<%= form.text_field :firstname, class: 'form-control', required: true %>
|
9
|
-
</
|
10
|
-
<
|
9
|
+
</div>
|
10
|
+
<div class="form-group" id=<%="#{address_id}lastname" %>>
|
11
11
|
<%= form.label :lastname do %>
|
12
12
|
<%= Spree.t(:last_name) %><abbr class="required" title="required">*</abbr>
|
13
13
|
<% end %>
|
14
14
|
<%= form.text_field :lastname, class: 'form-control', required: true %>
|
15
|
-
</
|
15
|
+
</div>
|
16
16
|
<% if Spree::Config[:company] %>
|
17
|
-
<
|
17
|
+
<div class="form-group" id=<%="#{address_id}company" %>>
|
18
18
|
<%= form.label :company, Spree.t(:company) %>
|
19
19
|
<%= form.text_field :company, class: 'form-control' %>
|
20
|
-
</
|
20
|
+
</div>
|
21
21
|
<% end %>
|
22
|
-
<
|
22
|
+
<div class="form-group" id=<%="#{address_id}address1" %>>
|
23
23
|
<%= form.label :address1 do %>
|
24
24
|
<%= Spree.t(:street_address) %><abbr class="required" title="required">*</abbr>
|
25
25
|
<% end %>
|
26
26
|
<%= form.text_field :address1, class: 'form-control required' %>
|
27
|
-
</
|
28
|
-
<
|
27
|
+
</div>
|
28
|
+
<div class="form-group" id=<%="#{address_id}address2" %>>
|
29
29
|
<%= form.label :address2, Spree.t(:street_address_2) %>
|
30
30
|
<%= form.text_field :address2, class: 'form-control' %>
|
31
|
-
</
|
32
|
-
<
|
31
|
+
</div>
|
32
|
+
<div class="form-group" id=<%="#{address_id}city" %>>
|
33
33
|
<%= form.label :city do %>
|
34
34
|
<%= Spree.t(:city) %><abbr class="required" title="required">*</abbr>
|
35
35
|
<% end %>
|
36
36
|
<%= form.text_field :city, class: 'form-control', required: true %>
|
37
|
-
</
|
38
|
-
<
|
37
|
+
</div>
|
38
|
+
<div class="form-group" id=<%="#{address_id}country" %>>
|
39
39
|
<%= form.label :country_id do %>
|
40
40
|
<%= Spree.t(:country) %><abbr class="required" title="required">*</abbr>
|
41
41
|
<% end %>
|
42
42
|
<span id=<%="#{address_id}country-selection" %>>
|
43
43
|
<%= form.collection_select :country_id, available_countries, :id, :name, {}, { class: 'form-control', required: true } %>
|
44
44
|
</span>
|
45
|
-
</
|
45
|
+
</div>
|
46
46
|
|
47
47
|
<% if Spree::Config[:address_requires_state] %>
|
48
|
-
<
|
48
|
+
<div class="form-group" id=<%="#{address_id}state" %>>
|
49
49
|
<% have_states = !address.country.states.empty? %>
|
50
50
|
<%= form.label :state do %>
|
51
51
|
<%= Spree.t(:state) %><abbr class='required' title="required" id=<%="#{address_id}state-required"%>>*</abbr>
|
@@ -64,28 +64,28 @@
|
|
64
64
|
disabled: have_states)
|
65
65
|
].join.gsub('"', "'").gsub("\n", "")
|
66
66
|
%>
|
67
|
-
</
|
67
|
+
</div>
|
68
68
|
<noscript>
|
69
69
|
<%= form.text_field :state_name, class: 'form-control', required: true %>
|
70
70
|
</noscript>
|
71
71
|
<% end %>
|
72
72
|
|
73
|
-
<
|
73
|
+
<div class="form-group" id=<%="#{address_id}zipcode" %>>
|
74
74
|
<%= form.label :zipcode do %>
|
75
75
|
<%= Spree.t(:zip) %><% if address.require_zipcode? %><abbr class="required" title="required">*</abbr><% end %>
|
76
76
|
<% end %>
|
77
77
|
<%= form.text_field :zipcode, class: 'form-control', required: address.require_zipcode? %>
|
78
|
-
</
|
79
|
-
<
|
78
|
+
</div>
|
79
|
+
<div class="form-group" id=<%="#{address_id}phone" %>>
|
80
80
|
<%= form.label :phone do %>
|
81
81
|
<%= Spree.t(:phone) %><% if address.require_phone? %><abbr class="required" title="required">*</abbr><% end %>
|
82
82
|
<% end %>
|
83
83
|
<%= form.phone_field :phone, class: 'form-control', required: address.require_phone? %>
|
84
|
-
</
|
84
|
+
</div>
|
85
85
|
<% if Spree::Config[:alternative_shipping_phone] %>
|
86
|
-
<
|
86
|
+
<div class="form-group" id=<%="#{address_id}altphone" %>>
|
87
87
|
<%= form.label :alternative_phone, Spree.t(:alternative_phone) %>
|
88
88
|
<%= form.phone_field :alternative_phone, class: 'form-control' %>
|
89
|
-
</
|
89
|
+
</div>
|
90
90
|
<% end %>
|
91
91
|
</div>
|