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.
- checksums.yaml +7 -0
- data/LICENSE +26 -0
- data/README.md +21 -0
- data/app/assets/images/credit_cards/amex_cid.gif +0 -0
- data/app/assets/images/credit_cards/credit_card.gif +0 -0
- data/app/assets/images/credit_cards/discover_cid.gif +0 -0
- data/app/assets/images/credit_cards/icons/american_express.png +0 -0
- data/app/assets/images/credit_cards/icons/cirrus.png +0 -0
- data/app/assets/images/credit_cards/icons/delta.png +0 -0
- data/app/assets/images/credit_cards/icons/diners_club.png +0 -0
- data/app/assets/images/credit_cards/icons/directdebit.png +0 -0
- data/app/assets/images/credit_cards/icons/discover.png +0 -0
- data/app/assets/images/credit_cards/icons/egold.png +0 -0
- data/app/assets/images/credit_cards/icons/maestro.png +0 -0
- data/app/assets/images/credit_cards/icons/master.png +0 -0
- data/app/assets/images/credit_cards/icons/paypal.png +0 -0
- data/app/assets/images/credit_cards/icons/solo.png +0 -0
- data/app/assets/images/credit_cards/icons/switch.png +0 -0
- data/app/assets/images/credit_cards/icons/visa.png +0 -0
- data/app/assets/images/credit_cards/icons/visaelectron.png +0 -0
- data/app/assets/images/credit_cards/icons/westernunion.png +0 -0
- data/app/assets/images/credit_cards/icons/wirecard.png +0 -0
- data/app/assets/images/credit_cards/icons/worldpay.png +0 -0
- data/app/assets/images/credit_cards/master_cid.jpg +0 -0
- data/app/assets/images/credit_cards/visa_cid.gif +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/icons/add-to-cart.png +0 -0
- data/app/assets/images/icons/checkout.png +0 -0
- data/app/assets/images/icons/delete.png +0 -0
- data/app/assets/images/icons/update.png +0 -0
- data/app/assets/images/spinner.gif +0 -0
- data/app/assets/images/spree/frontend/cart.png +0 -0
- data/app/assets/images/spree/frontend/select_arrow.gif +0 -0
- data/app/assets/javascripts/spree/frontend/cart.js.coffee +15 -0
- data/app/assets/javascripts/spree/frontend/checkout/address.js.coffee +86 -0
- data/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee +79 -0
- data/app/assets/javascripts/spree/frontend/checkout.js.coffee +11 -0
- data/app/assets/javascripts/spree/frontend/product.js.coffee +47 -0
- data/app/assets/javascripts/spree/frontend.js +5 -0
- data/app/assets/stylesheets/spree/frontend/_variables.scss +61 -0
- data/app/assets/stylesheets/spree/frontend/screen.css.scss +1321 -0
- data/app/assets/stylesheets/spree/frontend.css +6 -0
- data/app/controllers/spree/checkout_controller.rb +167 -0
- data/app/controllers/spree/content_controller.rb +23 -0
- data/app/controllers/spree/home_controller.rb +12 -0
- data/app/controllers/spree/locale_controller.rb +16 -0
- data/app/controllers/spree/orders_controller.rb +115 -0
- data/app/controllers/spree/products_controller.rb +45 -0
- data/app/controllers/spree/store_controller.rb +47 -0
- data/app/controllers/spree/taxons_controller.rb +28 -0
- data/app/models/spree/frontend_configuration.rb +5 -0
- data/app/views/spree/address/_form.html.erb +75 -0
- data/app/views/spree/checkout/_address.html.erb +33 -0
- data/app/views/spree/checkout/_confirm.html.erb +12 -0
- data/app/views/spree/checkout/_delivery.html.erb +100 -0
- data/app/views/spree/checkout/_payment.html.erb +71 -0
- data/app/views/spree/checkout/_summary.html.erb +72 -0
- data/app/views/spree/checkout/edit.html.erb +37 -0
- data/app/views/spree/checkout/payment/_check.html.erb +0 -0
- data/app/views/spree/checkout/payment/_gateway.html.erb +32 -0
- data/app/views/spree/content/cvv.html.erb +13 -0
- data/app/views/spree/content/test.html.erb +1 -0
- data/app/views/spree/home/index.html.erb +12 -0
- data/app/views/spree/layouts/spree_application.html.erb +37 -0
- data/app/views/spree/orders/_adjustment_row.html.erb +8 -0
- data/app/views/spree/orders/_adjustments.html.erb +24 -0
- data/app/views/spree/orders/_form.html.erb +28 -0
- data/app/views/spree/orders/_line_item.html.erb +36 -0
- data/app/views/spree/orders/edit.html.erb +47 -0
- data/app/views/spree/orders/show.html.erb +22 -0
- data/app/views/spree/payments/_payment.html.erb +18 -0
- data/app/views/spree/products/_cart_form.html.erb +65 -0
- data/app/views/spree/products/_image.html.erb +5 -0
- data/app/views/spree/products/_promotions.html.erb +19 -0
- data/app/views/spree/products/_properties.html.erb +15 -0
- data/app/views/spree/products/_taxons.html.erb +14 -0
- data/app/views/spree/products/_thumbnails.html.erb +19 -0
- data/app/views/spree/products/index.html.erb +27 -0
- data/app/views/spree/products/show.html.erb +51 -0
- data/app/views/spree/shared/_address.html.erb +38 -0
- data/app/views/spree/shared/_filters.html.erb +27 -0
- data/app/views/spree/shared/_footer.html.erb +6 -0
- data/app/views/spree/shared/_google_analytics.html.erb +36 -0
- data/app/views/spree/shared/_head.html.erb +14 -0
- data/app/views/spree/shared/_header.html.erb +5 -0
- data/app/views/spree/shared/_link_to_cart.html.erb +1 -0
- data/app/views/spree/shared/_main_nav_bar.html.erb +12 -0
- data/app/views/spree/shared/_nav_bar.html.erb +7 -0
- data/app/views/spree/shared/_order_details.html.erb +147 -0
- data/app/views/spree/shared/_products.html.erb +46 -0
- data/app/views/spree/shared/_search.html.erb +11 -0
- data/app/views/spree/shared/_shipment_tracking.html.erb +9 -0
- data/app/views/spree/shared/_sidebar.html.erb +3 -0
- data/app/views/spree/shared/_taxonomies.html.erb +9 -0
- data/app/views/spree/shared/unauthorized.html.erb +0 -0
- data/app/views/spree/store/cart_link.html.erb +1 -0
- data/app/views/spree/taxons/_taxon.html.erb +4 -0
- data/app/views/spree/taxons/show.html.erb +20 -0
- data/config/initializers/assets.rb +1 -0
- data/config/initializers/canonical_rails.rb +15 -0
- data/config/initializers/check_for_orphaned_preferences.rb +9 -0
- data/config/initializers/deprecation_checker.rb +7 -0
- data/config/initializers/rails_5868.rb +8 -0
- data/config/initializers/spree.rb +4 -0
- data/config/routes.rb +37 -0
- data/lib/solidus_frontend.rb +1 -0
- data/lib/spree/frontend/engine.rb +19 -0
- data/lib/spree/frontend/middleware/seo_assist.rb +51 -0
- data/lib/spree/frontend/preference_rescue.rb +25 -0
- data/lib/spree/frontend.rb +10 -0
- data/lib/spree_frontend.rb +1 -0
- data/lib/tasks/rake_util.rb +19 -0
- data/lib/tasks/taxon.rake +14 -0
- data/vendor/assets/images/datepicker/cal.gif +0 -0
- data/vendor/assets/images/flags/ad.png +0 -0
- data/vendor/assets/images/flags/ae.png +0 -0
- data/vendor/assets/images/flags/af.png +0 -0
- data/vendor/assets/images/flags/ag.png +0 -0
- data/vendor/assets/images/flags/ai.png +0 -0
- data/vendor/assets/images/flags/al.png +0 -0
- data/vendor/assets/images/flags/am.png +0 -0
- data/vendor/assets/images/flags/an.png +0 -0
- data/vendor/assets/images/flags/ao.png +0 -0
- data/vendor/assets/images/flags/ar.png +0 -0
- data/vendor/assets/images/flags/as.png +0 -0
- data/vendor/assets/images/flags/at.png +0 -0
- data/vendor/assets/images/flags/au.png +0 -0
- data/vendor/assets/images/flags/aw.png +0 -0
- data/vendor/assets/images/flags/ax.png +0 -0
- data/vendor/assets/images/flags/az.png +0 -0
- data/vendor/assets/images/flags/ba.png +0 -0
- data/vendor/assets/images/flags/bb.png +0 -0
- data/vendor/assets/images/flags/bd.png +0 -0
- data/vendor/assets/images/flags/be.png +0 -0
- data/vendor/assets/images/flags/bf.png +0 -0
- data/vendor/assets/images/flags/bg.png +0 -0
- data/vendor/assets/images/flags/bh.png +0 -0
- data/vendor/assets/images/flags/bi.png +0 -0
- data/vendor/assets/images/flags/bj.png +0 -0
- data/vendor/assets/images/flags/bm.png +0 -0
- data/vendor/assets/images/flags/bn.png +0 -0
- data/vendor/assets/images/flags/bo.png +0 -0
- data/vendor/assets/images/flags/br.png +0 -0
- data/vendor/assets/images/flags/bs.png +0 -0
- data/vendor/assets/images/flags/bt.png +0 -0
- data/vendor/assets/images/flags/bv.png +0 -0
- data/vendor/assets/images/flags/bw.png +0 -0
- data/vendor/assets/images/flags/by.png +0 -0
- data/vendor/assets/images/flags/bz.png +0 -0
- data/vendor/assets/images/flags/ca.png +0 -0
- data/vendor/assets/images/flags/catalonia.png +0 -0
- data/vendor/assets/images/flags/cc.png +0 -0
- data/vendor/assets/images/flags/cd.png +0 -0
- data/vendor/assets/images/flags/cf.png +0 -0
- data/vendor/assets/images/flags/cg.png +0 -0
- data/vendor/assets/images/flags/ch.png +0 -0
- data/vendor/assets/images/flags/ci.png +0 -0
- data/vendor/assets/images/flags/ck.png +0 -0
- data/vendor/assets/images/flags/cl.png +0 -0
- data/vendor/assets/images/flags/cm.png +0 -0
- data/vendor/assets/images/flags/cn.png +0 -0
- data/vendor/assets/images/flags/co.png +0 -0
- data/vendor/assets/images/flags/cr.png +0 -0
- data/vendor/assets/images/flags/cs.png +0 -0
- data/vendor/assets/images/flags/cu.png +0 -0
- data/vendor/assets/images/flags/cv.png +0 -0
- data/vendor/assets/images/flags/cx.png +0 -0
- data/vendor/assets/images/flags/cy.png +0 -0
- data/vendor/assets/images/flags/cz.png +0 -0
- data/vendor/assets/images/flags/de.png +0 -0
- data/vendor/assets/images/flags/dj.png +0 -0
- data/vendor/assets/images/flags/dk.png +0 -0
- data/vendor/assets/images/flags/dm.png +0 -0
- data/vendor/assets/images/flags/do.png +0 -0
- data/vendor/assets/images/flags/dz.png +0 -0
- data/vendor/assets/images/flags/ec.png +0 -0
- data/vendor/assets/images/flags/ee.png +0 -0
- data/vendor/assets/images/flags/eg.png +0 -0
- data/vendor/assets/images/flags/eh.png +0 -0
- data/vendor/assets/images/flags/england.png +0 -0
- data/vendor/assets/images/flags/er.png +0 -0
- data/vendor/assets/images/flags/es.png +0 -0
- data/vendor/assets/images/flags/et.png +0 -0
- data/vendor/assets/images/flags/europeanunion.png +0 -0
- data/vendor/assets/images/flags/fam.png +0 -0
- data/vendor/assets/images/flags/fi.png +0 -0
- data/vendor/assets/images/flags/fj.png +0 -0
- data/vendor/assets/images/flags/fk.png +0 -0
- data/vendor/assets/images/flags/fm.png +0 -0
- data/vendor/assets/images/flags/fo.png +0 -0
- data/vendor/assets/images/flags/fr.png +0 -0
- data/vendor/assets/images/flags/ga.png +0 -0
- data/vendor/assets/images/flags/gb.png +0 -0
- data/vendor/assets/images/flags/gd.png +0 -0
- data/vendor/assets/images/flags/ge.png +0 -0
- data/vendor/assets/images/flags/gf.png +0 -0
- data/vendor/assets/images/flags/gh.png +0 -0
- data/vendor/assets/images/flags/gi.png +0 -0
- data/vendor/assets/images/flags/gl.png +0 -0
- data/vendor/assets/images/flags/gm.png +0 -0
- data/vendor/assets/images/flags/gn.png +0 -0
- data/vendor/assets/images/flags/gp.png +0 -0
- data/vendor/assets/images/flags/gq.png +0 -0
- data/vendor/assets/images/flags/gr.png +0 -0
- data/vendor/assets/images/flags/gs.png +0 -0
- data/vendor/assets/images/flags/gt.png +0 -0
- data/vendor/assets/images/flags/gu.png +0 -0
- data/vendor/assets/images/flags/gw.png +0 -0
- data/vendor/assets/images/flags/gy.png +0 -0
- data/vendor/assets/images/flags/hk.png +0 -0
- data/vendor/assets/images/flags/hm.png +0 -0
- data/vendor/assets/images/flags/hn.png +0 -0
- data/vendor/assets/images/flags/hr.png +0 -0
- data/vendor/assets/images/flags/ht.png +0 -0
- data/vendor/assets/images/flags/hu.png +0 -0
- data/vendor/assets/images/flags/id.png +0 -0
- data/vendor/assets/images/flags/ie.png +0 -0
- data/vendor/assets/images/flags/il.png +0 -0
- data/vendor/assets/images/flags/in.png +0 -0
- data/vendor/assets/images/flags/io.png +0 -0
- data/vendor/assets/images/flags/iq.png +0 -0
- data/vendor/assets/images/flags/ir.png +0 -0
- data/vendor/assets/images/flags/is.png +0 -0
- data/vendor/assets/images/flags/it.png +0 -0
- data/vendor/assets/images/flags/ja.png +0 -0
- data/vendor/assets/images/flags/jm.png +0 -0
- data/vendor/assets/images/flags/jo.png +0 -0
- data/vendor/assets/images/flags/ke.png +0 -0
- data/vendor/assets/images/flags/kg.png +0 -0
- data/vendor/assets/images/flags/kh.png +0 -0
- data/vendor/assets/images/flags/ki.png +0 -0
- data/vendor/assets/images/flags/km.png +0 -0
- data/vendor/assets/images/flags/kn.png +0 -0
- data/vendor/assets/images/flags/kp.png +0 -0
- data/vendor/assets/images/flags/kr.png +0 -0
- data/vendor/assets/images/flags/kw.png +0 -0
- data/vendor/assets/images/flags/ky.png +0 -0
- data/vendor/assets/images/flags/kz.png +0 -0
- data/vendor/assets/images/flags/la.png +0 -0
- data/vendor/assets/images/flags/lb.png +0 -0
- data/vendor/assets/images/flags/lc.png +0 -0
- data/vendor/assets/images/flags/li.png +0 -0
- data/vendor/assets/images/flags/lk.png +0 -0
- data/vendor/assets/images/flags/lr.png +0 -0
- data/vendor/assets/images/flags/ls.png +0 -0
- data/vendor/assets/images/flags/lt.png +0 -0
- data/vendor/assets/images/flags/lu.png +0 -0
- data/vendor/assets/images/flags/lv.png +0 -0
- data/vendor/assets/images/flags/ly.png +0 -0
- data/vendor/assets/images/flags/ma.png +0 -0
- data/vendor/assets/images/flags/mc.png +0 -0
- data/vendor/assets/images/flags/md.png +0 -0
- data/vendor/assets/images/flags/me.png +0 -0
- data/vendor/assets/images/flags/mg.png +0 -0
- data/vendor/assets/images/flags/mh.png +0 -0
- data/vendor/assets/images/flags/mk.png +0 -0
- data/vendor/assets/images/flags/ml.png +0 -0
- data/vendor/assets/images/flags/mm.png +0 -0
- data/vendor/assets/images/flags/mn.png +0 -0
- data/vendor/assets/images/flags/mo.png +0 -0
- data/vendor/assets/images/flags/mp.png +0 -0
- data/vendor/assets/images/flags/mq.png +0 -0
- data/vendor/assets/images/flags/mr.png +0 -0
- data/vendor/assets/images/flags/ms.png +0 -0
- data/vendor/assets/images/flags/mt.png +0 -0
- data/vendor/assets/images/flags/mu.png +0 -0
- data/vendor/assets/images/flags/mv.png +0 -0
- data/vendor/assets/images/flags/mw.png +0 -0
- data/vendor/assets/images/flags/mx.png +0 -0
- data/vendor/assets/images/flags/my.png +0 -0
- data/vendor/assets/images/flags/mz.png +0 -0
- data/vendor/assets/images/flags/na.png +0 -0
- data/vendor/assets/images/flags/nc.png +0 -0
- data/vendor/assets/images/flags/ne.png +0 -0
- data/vendor/assets/images/flags/nf.png +0 -0
- data/vendor/assets/images/flags/ng.png +0 -0
- data/vendor/assets/images/flags/ni.png +0 -0
- data/vendor/assets/images/flags/nl.png +0 -0
- data/vendor/assets/images/flags/no.png +0 -0
- data/vendor/assets/images/flags/np.png +0 -0
- data/vendor/assets/images/flags/nr.png +0 -0
- data/vendor/assets/images/flags/nu.png +0 -0
- data/vendor/assets/images/flags/nz.png +0 -0
- data/vendor/assets/images/flags/om.png +0 -0
- data/vendor/assets/images/flags/pa.png +0 -0
- data/vendor/assets/images/flags/pe.png +0 -0
- data/vendor/assets/images/flags/pf.png +0 -0
- data/vendor/assets/images/flags/pg.png +0 -0
- data/vendor/assets/images/flags/ph.png +0 -0
- data/vendor/assets/images/flags/pk.png +0 -0
- data/vendor/assets/images/flags/pl.png +0 -0
- data/vendor/assets/images/flags/pm.png +0 -0
- data/vendor/assets/images/flags/pn.png +0 -0
- data/vendor/assets/images/flags/pr.png +0 -0
- data/vendor/assets/images/flags/ps.png +0 -0
- data/vendor/assets/images/flags/pt.png +0 -0
- data/vendor/assets/images/flags/pw.png +0 -0
- data/vendor/assets/images/flags/py.png +0 -0
- data/vendor/assets/images/flags/qa.png +0 -0
- data/vendor/assets/images/flags/re.png +0 -0
- data/vendor/assets/images/flags/ro.png +0 -0
- data/vendor/assets/images/flags/rs.png +0 -0
- data/vendor/assets/images/flags/ru.png +0 -0
- data/vendor/assets/images/flags/rw.png +0 -0
- data/vendor/assets/images/flags/sa.png +0 -0
- data/vendor/assets/images/flags/sb.png +0 -0
- data/vendor/assets/images/flags/sc.png +0 -0
- data/vendor/assets/images/flags/scotland.png +0 -0
- data/vendor/assets/images/flags/sd.png +0 -0
- data/vendor/assets/images/flags/se.png +0 -0
- data/vendor/assets/images/flags/sg.png +0 -0
- data/vendor/assets/images/flags/sh.png +0 -0
- data/vendor/assets/images/flags/si.png +0 -0
- data/vendor/assets/images/flags/sj.png +0 -0
- data/vendor/assets/images/flags/sk.png +0 -0
- data/vendor/assets/images/flags/sl.png +0 -0
- data/vendor/assets/images/flags/sm.png +0 -0
- data/vendor/assets/images/flags/sn.png +0 -0
- data/vendor/assets/images/flags/so.png +0 -0
- data/vendor/assets/images/flags/sr.png +0 -0
- data/vendor/assets/images/flags/st.png +0 -0
- data/vendor/assets/images/flags/sv.png +0 -0
- data/vendor/assets/images/flags/sy.png +0 -0
- data/vendor/assets/images/flags/sz.png +0 -0
- data/vendor/assets/images/flags/tc.png +0 -0
- data/vendor/assets/images/flags/td.png +0 -0
- data/vendor/assets/images/flags/tf.png +0 -0
- data/vendor/assets/images/flags/tg.png +0 -0
- data/vendor/assets/images/flags/th.png +0 -0
- data/vendor/assets/images/flags/tj.png +0 -0
- data/vendor/assets/images/flags/tk.png +0 -0
- data/vendor/assets/images/flags/tl.png +0 -0
- data/vendor/assets/images/flags/tm.png +0 -0
- data/vendor/assets/images/flags/tn.png +0 -0
- data/vendor/assets/images/flags/to.png +0 -0
- data/vendor/assets/images/flags/tr.png +0 -0
- data/vendor/assets/images/flags/tt.png +0 -0
- data/vendor/assets/images/flags/tv.png +0 -0
- data/vendor/assets/images/flags/tw.png +0 -0
- data/vendor/assets/images/flags/tz.png +0 -0
- data/vendor/assets/images/flags/ua.png +0 -0
- data/vendor/assets/images/flags/ug.png +0 -0
- data/vendor/assets/images/flags/um.png +0 -0
- data/vendor/assets/images/flags/us.png +0 -0
- data/vendor/assets/images/flags/uy.png +0 -0
- data/vendor/assets/images/flags/uz.png +0 -0
- data/vendor/assets/images/flags/va.png +0 -0
- data/vendor/assets/images/flags/vc.png +0 -0
- data/vendor/assets/images/flags/ve.png +0 -0
- data/vendor/assets/images/flags/vg.png +0 -0
- data/vendor/assets/images/flags/vi.png +0 -0
- data/vendor/assets/images/flags/vn.png +0 -0
- data/vendor/assets/images/flags/vu.png +0 -0
- data/vendor/assets/images/flags/wales.png +0 -0
- data/vendor/assets/images/flags/wf.png +0 -0
- data/vendor/assets/images/flags/ws.png +0 -0
- data/vendor/assets/images/flags/ye.png +0 -0
- data/vendor/assets/images/flags/yt.png +0 -0
- data/vendor/assets/images/flags/za.png +0 -0
- data/vendor/assets/images/flags/zm.png +0 -0
- data/vendor/assets/images/flags/zw.png +0 -0
- data/vendor/assets/images/jquery.formalize/button.png +0 -0
- data/vendor/assets/images/jquery.formalize/select_arrow.gif +0 -0
- data/vendor/assets/javascripts/jquery.formalize.min.js +1 -0
- data/vendor/assets/javascripts/jquery.validate/additional-methods.min.js +12 -0
- data/vendor/assets/javascripts/jquery.validate/jquery.validate.min.js +12 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ar.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_bg.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ca.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_cs.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_da.js +22 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_de.js +22 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_el.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_es.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_et.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_eu.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fa.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fi.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fr.js +47 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ge.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_he.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_hr.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_hu.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_it.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ja.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ka.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_kk.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ko.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_lt.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_lv.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ms.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_nl.js +35 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_no.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_pl.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ro.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ru.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_se.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_si.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sk.js +22 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sl.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sr.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sv.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_th.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_tr.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_tw.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_uk.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_vi.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_zh.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js +26 -0
- data/vendor/assets/javascripts/jquery.validate/localization/methods_de.js +12 -0
- data/vendor/assets/javascripts/jquery.validate/localization/methods_nl.js +9 -0
- data/vendor/assets/javascripts/jquery.validate/localization/methods_pt.js +9 -0
- data/vendor/assets/stylesheets/jquery.formalize.css.erb +363 -0
- metadata +527 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
<% promotions = @product.possible_promotions %>
|
2
|
+
<% if promotions.any? %>
|
3
|
+
<div id="promotions">
|
4
|
+
<h3><%= Spree.t(:promotions) %></h3>
|
5
|
+
<% promotions.each do |promotion| %>
|
6
|
+
<div>
|
7
|
+
<h4><%= promotion.name %></h4>
|
8
|
+
<p><%= promotion.description %></p>
|
9
|
+
<% if promotion.products.any? %>
|
10
|
+
<ul>
|
11
|
+
<% promotion.products.each do |product| %>
|
12
|
+
<li><%= link_to product.name, product_path(product) %></li>
|
13
|
+
<% end %>
|
14
|
+
</ul>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
17
|
+
<% end %>
|
18
|
+
</div>
|
19
|
+
<% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% unless @product_properties.empty? %>
|
2
|
+
<h6 class="product-section-title"><%= Spree.t('properties')%></h6>
|
3
|
+
<table id="product-properties" class="table-display" data-hook>
|
4
|
+
<tbody>
|
5
|
+
<% @product_properties.each do |product_property| %>
|
6
|
+
<% css_class = cycle('even', 'odd', :name => "properties") %>
|
7
|
+
<tr class="<%= css_class %>">
|
8
|
+
<td><strong><%= product_property.property.presentation %></strong></td>
|
9
|
+
<td><%= product_property.value %></td>
|
10
|
+
</tr>
|
11
|
+
<% end %>
|
12
|
+
<% reset_cycle('properties') %>
|
13
|
+
</tbody>
|
14
|
+
</table>
|
15
|
+
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<% if !@product.taxons.blank? %>
|
2
|
+
<div id="taxon-crumbs" data-hook class="alpha columns five omega">
|
3
|
+
<h6 class="product-section-title"><%= Spree.t(:look_for_similar_items) %></h6>
|
4
|
+
|
5
|
+
<div data-hook="product_taxons">
|
6
|
+
<ul id="similar_items_by_taxon" data-hook>
|
7
|
+
<% @product.taxons.each do |taxon| %>
|
8
|
+
<li><%= link_to taxon.name, seo_url(taxon) %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
</div>
|
14
|
+
<% end %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<%# no need for thumbnails unless there is more than one image %>
|
2
|
+
<% if (@product.images + @product.variant_images).uniq.size > 1 %>
|
3
|
+
<ul id="product-thumbnails" class="thumbnails inline" data-hook>
|
4
|
+
<% @product.images.each do |i| %>
|
5
|
+
<li class='tmb-all tmb-<%= i.viewable.id %>'>
|
6
|
+
<%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product)) %>
|
7
|
+
</li>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% if @product.has_variants? %>
|
11
|
+
<% @product.variant_images.each do |i| %>
|
12
|
+
<% next if @product.images.include?(i) %>
|
13
|
+
<li class='vtmb tmb-<%= i.viewable.id %>'>
|
14
|
+
<%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product)) %>
|
15
|
+
</li>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
</ul>
|
19
|
+
<% end %>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<% content_for :sidebar do %>
|
2
|
+
<div data-hook="homepage_sidebar_navigation">
|
3
|
+
<% if "spree/products" == params[:controller] && @taxon %>
|
4
|
+
<%= render :partial => 'spree/shared/filters' %>
|
5
|
+
<% else %>
|
6
|
+
<%= render :partial => 'spree/shared/taxonomies' %>
|
7
|
+
<% end %>
|
8
|
+
</div>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
|
12
|
+
<% if params[:keywords] %>
|
13
|
+
|
14
|
+
<div data-hook="search_results">
|
15
|
+
<% if @products.empty? %>
|
16
|
+
<h6 class="search-results-title"><%= Spree.t(:no_products_found) %></h6>
|
17
|
+
<% else %>
|
18
|
+
<%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>
|
19
|
+
<% end %>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<% else %>
|
23
|
+
|
24
|
+
<div data-hook="homepage_products">
|
25
|
+
<%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>
|
26
|
+
</div>
|
27
|
+
<% end %>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<% cache [I18n.locale, current_currency, @product] do %>
|
2
|
+
<div data-hook="product_show" itemscope itemtype="http://schema.org/Product">
|
3
|
+
<% @body_id = 'product-details' %>
|
4
|
+
|
5
|
+
<div class="columns six alpha" data-hook="product_left_part">
|
6
|
+
<div class="row" data-hook="product_left_part_wrap">
|
7
|
+
|
8
|
+
<div id="product-images" data-hook="product_images">
|
9
|
+
<div id="main-image" data-hook>
|
10
|
+
<%= render :partial => 'image' %>
|
11
|
+
</div>
|
12
|
+
<div id="thumbnails" data-hook>
|
13
|
+
<%= render :partial => 'thumbnails' %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div data-hook="product_properties">
|
18
|
+
<%= render :partial => 'properties' %>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div data-hook="promotions">
|
22
|
+
<%= render :partial => 'promotions' %>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<div class="columns ten omega" data-hook="product_right_part">
|
29
|
+
<div class="row" data-hook="product_right_part_wrap">
|
30
|
+
|
31
|
+
<div id="product-description" data-hook="product_description">
|
32
|
+
|
33
|
+
<h1 class="product-title" itemprop="name"><%= @product.name %></h1>
|
34
|
+
|
35
|
+
<div itemprop="description" data-hook="description">
|
36
|
+
<%= product_description(@product) rescue Spree.t(:product_has_no_description) %>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="cart-form" data-hook="cart_form">
|
40
|
+
<%= render :partial => 'cart_form' %>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<%= render :partial => 'taxons' %>
|
46
|
+
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
</div>
|
51
|
+
<% end %>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<div class="address vcard">
|
2
|
+
<div class="fn"><%= address.full_name %></div>
|
3
|
+
<% unless address.company.blank? %>
|
4
|
+
<div class="org">
|
5
|
+
<%= address.company %>
|
6
|
+
</div>
|
7
|
+
<% end %>
|
8
|
+
<div class="adr">
|
9
|
+
<div class="street-address">
|
10
|
+
<div class="street-address-line">
|
11
|
+
<%= address.address1 %>
|
12
|
+
</div>
|
13
|
+
<% unless address.address2.blank? %>
|
14
|
+
<div class="street-address-line">
|
15
|
+
<%= address.address2 %>
|
16
|
+
</div>
|
17
|
+
<% end %>
|
18
|
+
</div>
|
19
|
+
<div class="local">
|
20
|
+
<span class="locality"><%= address.city %></span>
|
21
|
+
<span class="region"><%= address.state_text %></span>
|
22
|
+
<span class="postal-code"><%= address.zipcode %></span>
|
23
|
+
<div class="country-name"><%= address.country.try(:name) %></div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<% unless address.phone.blank? %>
|
27
|
+
<div class="tel">
|
28
|
+
<span class="type"><%= Spree.t(:phone) %></span>
|
29
|
+
<%= address.phone %>
|
30
|
+
</div>
|
31
|
+
<% end %>
|
32
|
+
<% unless address.alternative_phone.blank? %>
|
33
|
+
<div class="alternative-phone tel">
|
34
|
+
<span class="type"><%= Spree.t(:alternative_phone) %></span>
|
35
|
+
<%= address.alternative_phone %>
|
36
|
+
</div>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<% filters = @taxon ? @taxon.applicable_filters : [Spree::Core::ProductFilters.all_taxons] %>
|
2
|
+
<% unless filters.empty? %>
|
3
|
+
<%= form_tag '', :method => :get, :id => 'sidebar_products_search' do %>
|
4
|
+
<%= hidden_field_tag 'per_page', params[:per_page] %>
|
5
|
+
<% filters.each do |filter| %>
|
6
|
+
<% labels = filter[:labels] || filter[:conds].map {|m,c| [m,m]} %>
|
7
|
+
<% next if labels.empty? %>
|
8
|
+
<div class="navigation" data-hook="navigation">
|
9
|
+
<h6 class="filter-title"> <%= filter[:name] %> </h6>
|
10
|
+
<ul class="filter_choices">
|
11
|
+
<% labels.each do |nm,val| %>
|
12
|
+
<% label = "#{filter[:name]}_#{nm}".gsub(/\s+/,'_') %>
|
13
|
+
<li class="nowrap">
|
14
|
+
<input type="checkbox"
|
15
|
+
id="<%= label %>"
|
16
|
+
name="search[<%= filter[:scope].to_s %>][]"
|
17
|
+
value="<%= val %>"
|
18
|
+
<%= params[:search] && params[:search][filter[:scope]] && params[:search][filter[:scope]].include?(val.to_s) ? "checked" : "" %> />
|
19
|
+
<label class="nowrap" for="<%= label %>"> <%= nm %> </label>
|
20
|
+
</li>
|
21
|
+
<% end %>
|
22
|
+
</ul>
|
23
|
+
</div>
|
24
|
+
<% end %>
|
25
|
+
<%= submit_tag Spree.t(:search), :name => nil %>
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<footer id="footer" class="sixteen columns" data-hook>
|
2
|
+
<div id="footer-left" class="columns alpha eight" data-hook>
|
3
|
+
<p><%= Spree.t :powered_by %> <%= link_to 'Solidus', 'http://solidus.io/' %></p>
|
4
|
+
</div>
|
5
|
+
<div id="footer-right" class="columns omega eight" data-hook></div>
|
6
|
+
</footer>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<% if tracker = Spree::Tracker.current %>
|
2
|
+
<script>
|
3
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
4
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
5
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
6
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
7
|
+
|
8
|
+
ga('create', '<%= tracker.analytics_id %>', 'auto');
|
9
|
+
ga('require', 'displayfeatures');
|
10
|
+
ga('send', 'pageview');
|
11
|
+
|
12
|
+
<% if @order && order_just_completed?(@order) %>
|
13
|
+
<%# more info: https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce %>
|
14
|
+
ga('require', 'ecommerce', 'ecommerce.js');
|
15
|
+
ga('ecommerce:addTransaction', {
|
16
|
+
'id': '<%= j @order.number %>', // Transaction ID. Required.
|
17
|
+
'affiliation': '<%= current_store.name %>', // Affiliation or store name.
|
18
|
+
'revenue': '<%= @order.total %>', // Grand Total.
|
19
|
+
'shipping': '<%= @order.ship_total %>', // Shipping.
|
20
|
+
'tax': '<%= @order.tax_total %>', // Tax.
|
21
|
+
'currency': '<%= current_currency %>' // local currency code.
|
22
|
+
});
|
23
|
+
<% @order.line_items.each do |line_item| %>
|
24
|
+
ga('ecommerce:addItem', {
|
25
|
+
'id': '<%= j @order.number %>', // Transaction ID. Required.
|
26
|
+
'name': '<%= j line_item.variant.product.name %>', // Product name. Required.
|
27
|
+
'sku': '<%= j (line_item.variant.sku || line_item.variant_id) %>', // SKU/code.
|
28
|
+
'category': '', // Category or variation.
|
29
|
+
'price': '<%= line_item.price %>', // Unit price.
|
30
|
+
'quantity': '<%= line_item.quantity %>' // Quantity.
|
31
|
+
});
|
32
|
+
<% end %>
|
33
|
+
ga('ecommerce:send');
|
34
|
+
<% end %>
|
35
|
+
</script>
|
36
|
+
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<meta charset="utf-8">
|
2
|
+
<title><%= title %></title>
|
3
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
4
|
+
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1" name="viewport">
|
5
|
+
<%== meta_data_tags %>
|
6
|
+
<%= canonical_tag(current_store.url) %>
|
7
|
+
<%= favicon_link_tag 'favicon.ico' %>
|
8
|
+
<%= stylesheet_link_tag 'spree/frontend/all', :media => 'screen' %>
|
9
|
+
<%= csrf_meta_tags %>
|
10
|
+
<%= javascript_include_tag 'spree/frontend/all' %>
|
11
|
+
<!--[if lt IE 9]>
|
12
|
+
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6/html5shiv.min.js"></script>
|
13
|
+
<![endif]-->
|
14
|
+
<%= yield :head %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= link_to_cart %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<nav class="columns sixteen">
|
2
|
+
<ul id="main-nav-bar" class="inline" data-hook>
|
3
|
+
<li id="home-link" data-hook><%= link_to Spree.t(:home), spree.root_path %></li>
|
4
|
+
<li id="link-to-cart" data-hook>
|
5
|
+
<noscript>
|
6
|
+
<%= link_to Spree.t(:cart), '/cart' %>
|
7
|
+
</noscript>
|
8
|
+
|
9
|
+
</li>
|
10
|
+
<script>Spree.fetch_cart()</script>
|
11
|
+
</ul>
|
12
|
+
</nav>
|
@@ -0,0 +1,147 @@
|
|
1
|
+
<div class="row steps-data">
|
2
|
+
|
3
|
+
<% if order.has_step?("address") %>
|
4
|
+
|
5
|
+
<div class="columns alpha four" data-hook="order-bill-address">
|
6
|
+
<h6><%= Spree.t(:billing_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless order.completed? %></h6>
|
7
|
+
<%= render :partial => 'spree/shared/address', :locals => { :address => order.bill_address } %>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<% if order.has_step?("delivery") %>
|
11
|
+
<div class="columns alpha four" data-hook="order-ship-address">
|
12
|
+
<h6><%= Spree.t(:shipping_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless order.completed? %></h6>
|
13
|
+
<%= render :partial => 'spree/shared/address', :locals => { :address => order.ship_address } %>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="columns alpha four" data-hook="order-shipment">
|
17
|
+
<h6><%= Spree.t(:shipments) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:delivery) unless order.completed? %></h6>
|
18
|
+
<div class="delivery">
|
19
|
+
<% order.shipments.each do |shipment| %>
|
20
|
+
<div>
|
21
|
+
<i class='fa fa-truck'></i>
|
22
|
+
<%= Spree.t(:shipment_details, :stock_location => shipment.stock_location.name, :shipping_method => shipment.selected_shipping_rate.name) %>
|
23
|
+
</div>
|
24
|
+
<% end %>
|
25
|
+
</div>
|
26
|
+
<%= render(:partial => 'spree/shared/shipment_tracking', :locals => {:order => order}) if order.shipped? %>
|
27
|
+
</div>
|
28
|
+
<% end %>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<div class="columns omega four">
|
32
|
+
<h6><%= Spree.t(:payment_information) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:payment) unless order.completed? %></h6>
|
33
|
+
<div class="payment-info">
|
34
|
+
<% order.payments.valid.each do |payment| %>
|
35
|
+
<%= render payment %><br/>
|
36
|
+
<% end %>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<hr />
|
43
|
+
|
44
|
+
<table id='line-items' class="index columns alpha omega sixteen" data-hook="order_details">
|
45
|
+
<col width="15%" valign="middle" halign="center">
|
46
|
+
<col width="70%" valign="middle">
|
47
|
+
<col width="5%" valign="middle" halign="center">
|
48
|
+
<col width="5%" valign="middle" halign="center">
|
49
|
+
<col width="5%" valign="middle" halign="center">
|
50
|
+
|
51
|
+
<thead data-hook>
|
52
|
+
<tr data-hook="order_details_line_items_headers">
|
53
|
+
<th colspan="2"><%= Spree.t(:item) %></th>
|
54
|
+
<th class="price"><%= Spree.t(:price) %></th>
|
55
|
+
<th class="qty"><%= Spree.t(:qty) %></th>
|
56
|
+
<th class="total"><span><%= Spree.t(:total) %></span></th>
|
57
|
+
</tr>
|
58
|
+
</thead>
|
59
|
+
|
60
|
+
<tbody data-hook>
|
61
|
+
<% order.line_items.each do |item| %>
|
62
|
+
<tr data-hook="order_details_line_item_row">
|
63
|
+
<td data-hook="order_item_image">
|
64
|
+
<% if item.variant.images.length == 0 %>
|
65
|
+
<%= link_to small_image(item.variant.product), item.variant.product %>
|
66
|
+
<% else %>
|
67
|
+
<%= link_to image_tag(item.variant.images.first.attachment.url(:small)), item.variant.product %>
|
68
|
+
<% end %>
|
69
|
+
</td>
|
70
|
+
<td data-hook="order_item_description">
|
71
|
+
<h4><%= item.variant.product.name %></h4>
|
72
|
+
<%= truncated_product_description(item.variant.product) %>
|
73
|
+
<%= "(" + item.variant.options_text + ")" unless item.variant.option_values.empty? %>
|
74
|
+
</td>
|
75
|
+
<td data-hook="order_item_price" class="price"><span><%= item.single_money.to_html %></span></td>
|
76
|
+
<td data-hook="order_item_qty"><%= item.quantity %></td>
|
77
|
+
<td data-hook="order_item_total" class="total"><span><%= item.display_amount.to_html %></span></td>
|
78
|
+
</tr>
|
79
|
+
<% end %>
|
80
|
+
</tbody>
|
81
|
+
<tfoot id="order-total" data-hook="order_details_total">
|
82
|
+
<tr class="total">
|
83
|
+
<td colspan="4"><b><%= Spree.t(:order_total) %>:</b></td>
|
84
|
+
<td class="total"><span id="order_total"><%= order.display_order_total_after_store_credit.to_html %></span></td>
|
85
|
+
</tr>
|
86
|
+
</tfoot>
|
87
|
+
|
88
|
+
<tfoot id="subtotal" data-hook="order_details_subtotal">
|
89
|
+
<tr class="total" id="subtotal-row">
|
90
|
+
<td colspan="4"><b><%= Spree.t(:subtotal) %>:</b></td>
|
91
|
+
<td class="total"><span><%= order.display_item_total.to_html %></span></td>
|
92
|
+
</tr>
|
93
|
+
</tfoot>
|
94
|
+
|
95
|
+
<% if order.line_item_adjustments.exists? %>
|
96
|
+
<% if order.all_adjustments.promotion.eligible.exists? %>
|
97
|
+
<tfoot id="price-adjustments" data-hook="order_details_price_adjustments">
|
98
|
+
<% order.all_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
|
99
|
+
<tr class="total">
|
100
|
+
<td colspan="4"><%= Spree.t(:promotion) %>: <strong><%= label %></strong></td>
|
101
|
+
<td class="total"><span><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %></span></td>
|
102
|
+
</tr>
|
103
|
+
<% end %>
|
104
|
+
</tfoot>
|
105
|
+
<% end %>
|
106
|
+
<% end %>
|
107
|
+
|
108
|
+
<tfoot id='shipment-total'>
|
109
|
+
<% order.shipments.group_by { |s| s.selected_shipping_rate.name }.each do |name, shipments| %>
|
110
|
+
<tr class="total" data-hook='shipment-row'>
|
111
|
+
<td colspan="4"><%= Spree.t(:shipping) %>: <strong><%= name %></strong></td>
|
112
|
+
<td class="total"><span><%= Spree::Money.new(shipments.sum(&:discounted_cost), currency: order.currency).to_html %></span></td>
|
113
|
+
</tr>
|
114
|
+
<% end %>
|
115
|
+
</tfoot>
|
116
|
+
|
117
|
+
<% if order.all_adjustments.tax.exists? %>
|
118
|
+
<tfoot id="tax-adjustments" data-hook="order_details_tax_adjustments">
|
119
|
+
<% order.all_adjustments.tax.group_by(&:label).each do |label, adjustments| %>
|
120
|
+
<tr class="total">
|
121
|
+
<td colspan="4"><%= Spree.t(:tax) %>: <strong><%= label %></strong></td>
|
122
|
+
<td class="total"><span><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %></span></td>
|
123
|
+
</tr>
|
124
|
+
<% end %>
|
125
|
+
</tfoot>
|
126
|
+
<% end %>
|
127
|
+
|
128
|
+
<% if order.total_applicable_store_credit > 0.0 %>
|
129
|
+
<tfoot id="store-credit" data-hook="order_details_store_credit">
|
130
|
+
<tr class="total">
|
131
|
+
<td colspan='4'><%= Spree.t("store_credit.store_credit") %>:</td>
|
132
|
+
<td class='total'><span><%= order.display_total_applicable_store_credit.to_html %></span></td>
|
133
|
+
</tr>
|
134
|
+
</tfoot>
|
135
|
+
<% end %>
|
136
|
+
|
137
|
+
<tfoot id="order-charges" data-hook="order_details_adjustments">
|
138
|
+
<% order.adjustments.eligible.each do |adjustment| %>
|
139
|
+
<% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
|
140
|
+
<tr class="total">
|
141
|
+
<td colspan="4"><strong><%= adjustment.label %></strong></td>
|
142
|
+
<td class="total"><span><%= adjustment.display_amount.to_html %></span></td>
|
143
|
+
</tr>
|
144
|
+
<% end %>
|
145
|
+
</tfoot>
|
146
|
+
|
147
|
+
</table>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<%
|
2
|
+
paginated_products = @searcher.retrieve_products if params.key?(:keywords)
|
3
|
+
paginated_products ||= products
|
4
|
+
%>
|
5
|
+
|
6
|
+
<% content_for :head do %>
|
7
|
+
<% if paginated_products.respond_to?(:num_pages) %>
|
8
|
+
<%= rel_next_prev_link_tags paginated_products %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<div data-hook="products_search_results_heading">
|
13
|
+
<% if products.empty? %>
|
14
|
+
<div data-hook="products_search_results_heading_no_results_found">
|
15
|
+
<%= Spree.t(:no_products_found) %>
|
16
|
+
</div>
|
17
|
+
<% elsif params.key?(:keywords) %>
|
18
|
+
<div data-hook="products_search_results_heading_results_found">
|
19
|
+
<h6 class="search-results-title"><%= Spree.t(:search_results, :keywords => h(params[:keywords])) %></h6>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<% if products.any? %>
|
25
|
+
<ul id="products" class="inline product-listing" data-hook>
|
26
|
+
<% products.each do |product| %>
|
27
|
+
<% url = spree.product_path(product, :taxon_id => @taxon.try(:id)) %>
|
28
|
+
<li id="product_<%= product.id %>" class="columns three <%= cycle("alpha", "secondary", "", "omega secondary", :name => "classes") %>" data-hook="products_list_item" itemscope itemtype="http://schema.org/Product">
|
29
|
+
<% cache(@taxon.present? ? [I18n.locale, current_currency, @taxon, product] : [I18n.locale, current_currency, product]) do %>
|
30
|
+
<div class="product-image">
|
31
|
+
<%= link_to small_image(product, :itemprop => "image"), url, :itemprop => 'url' %>
|
32
|
+
</div>
|
33
|
+
<%= link_to truncate(product.name, :length => 50), url, :class => 'info', :itemprop => "name", :title => product.name %>
|
34
|
+
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
|
35
|
+
<span class="price selling" itemprop="price"><%= display_price(product) %>
|
36
|
+
</span>
|
37
|
+
<% end %>
|
38
|
+
</li>
|
39
|
+
<% end %>
|
40
|
+
<% reset_cycle("classes") %>
|
41
|
+
</ul>
|
42
|
+
<% end %>
|
43
|
+
|
44
|
+
<% if paginated_products.respond_to?(:num_pages) %>
|
45
|
+
<%= paginate paginated_products %>
|
46
|
+
<% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% @taxons = @taxon && @taxon.parent ? @taxon.parent.children : Spree::Taxon.roots %>
|
2
|
+
<%= form_tag spree.products_path, :method => :get do %>
|
3
|
+
<% cache(cache_key_for_taxons) do %>
|
4
|
+
<%= select_tag :taxon,
|
5
|
+
options_for_select([[Spree.t(:all_departments), '']] +
|
6
|
+
@taxons.map {|t| [t.name, t.id]},
|
7
|
+
@taxon ? @taxon.id : params[:taxon]), 'aria-label' => 'Taxon' %>
|
8
|
+
<% end %>
|
9
|
+
<%= search_field_tag :keywords, params[:keywords], :placeholder => Spree.t(:search) %>
|
10
|
+
<%= submit_tag Spree.t(:search), :name => nil %>
|
11
|
+
<% end %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<% max_level = Spree::Config[:max_level_in_taxons_menu] || 1 %>
|
2
|
+
<nav id="taxonomies" class="sidebar-item" data-hook>
|
3
|
+
<% @taxonomies.each do |taxonomy| %>
|
4
|
+
<% cache [I18n.locale, taxonomy, max_level] do %>
|
5
|
+
<h6 class='taxonomy-root'><%= Spree.t(:shop_by_taxonomy, :taxonomy => taxonomy.name) %></h6>
|
6
|
+
<%= taxons_tree(taxonomy.root, @taxon, max_level) %>
|
7
|
+
<% end %>
|
8
|
+
<% end %>
|
9
|
+
</nav>
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= link_to_cart %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<h1 class="taxon-title"><%= @taxon.name %></h1>
|
2
|
+
|
3
|
+
<% content_for :sidebar do %>
|
4
|
+
<div data-hook="taxon_sidebar_navigation">
|
5
|
+
<%= render partial: 'spree/shared/taxonomies' %>
|
6
|
+
<%= render partial: 'spree/shared/filters' if @taxon.children.empty? %>
|
7
|
+
</div>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<div data-hook="taxon_products">
|
11
|
+
<%= render partial: 'spree/shared/products', locals: { products: @products, taxon: @taxon } %>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<% unless params[:keywords].present? %>
|
15
|
+
<div data-hook="taxon_children">
|
16
|
+
<% cache [I18n.locale, @taxon] do %>
|
17
|
+
<%= render partial: 'taxon', collection: @taxon.children %>
|
18
|
+
<% end %>
|
19
|
+
</div>
|
20
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
Rails.application.config.assets.precompile += %w( favicon.ico spree/frontend/cart.png )
|
@@ -0,0 +1,15 @@
|
|
1
|
+
CanonicalRails.setup do |config|
|
2
|
+
# http://en.wikipedia.org/wiki/URL_normalization
|
3
|
+
# Trailing slash represents semantics of a directory, ie a collection view - implying an :index get route;
|
4
|
+
# otherwise we have to assume semantics of an instance of a resource type, a member view - implying a :show get route
|
5
|
+
#
|
6
|
+
# Acts as a whitelist for routes to have trailing slashes
|
7
|
+
|
8
|
+
config.collection_actions# = [:index]
|
9
|
+
|
10
|
+
# Parameter spamming can cause index dilution by creating seemingly different URLs with identical or near-identical content.
|
11
|
+
# Unless whitelisted, these parameters will be omitted
|
12
|
+
|
13
|
+
config.whitelisted_parameters = [:keywords, :page, :search, :taxon]
|
14
|
+
|
15
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
begin
|
2
|
+
required_column_names = ["owner_id", "owner_type", "name"]
|
3
|
+
if (Spree::Preference.column_names & required_column_names) == required_column_names
|
4
|
+
ActiveRecord::Base.connection.execute("SELECT owner_id, owner_type, name, value FROM spree_preferences WHERE 'key' IS NULL").each do |pref|
|
5
|
+
warn "[WARNING] Orphaned preference `#{pref[2]}` with value `#{pref[3]}` for #{pref[1]} with id of: #{pref[0]}, you should reset the preference value manually."
|
6
|
+
end
|
7
|
+
end
|
8
|
+
rescue
|
9
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
# check for incorect product assets path in public directory
|
4
|
+
if File.exist?(Rails.root.join("public/assets/products")) || File.exist?(Rails.root.join("public/assets/taxons"))
|
5
|
+
puts %q{[DEPRECATION] Your applications public directory contains an assets/products and/or assets/taxons subdirectory.
|
6
|
+
Run `rake spree:assets:relocate_images` to relocate the images.}
|
7
|
+
end
|