spree_frontend 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -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/noimage/large.png +0 -0
- data/app/assets/images/noimage/mini.png +0 -0
- data/app/assets/images/noimage/product.png +0 -0
- data/app/assets/images/noimage/small.png +0 -0
- data/app/assets/images/spinner.gif +0 -0
- data/app/assets/images/store/cart.png +0 -0
- data/app/assets/images/store/select_arrow.gif +0 -0
- data/app/assets/javascripts/store/cart.js.coffee +9 -0
- data/app/assets/javascripts/store/checkout.js.coffee +105 -0
- data/app/assets/javascripts/store/product.js.coffee +42 -0
- data/app/assets/javascripts/store/spree_frontend.js +5 -0
- data/app/assets/stylesheets/admin/plugins/font-awesome.scss +303 -0
- data/app/assets/stylesheets/store/_variables.scss +61 -0
- data/app/assets/stylesheets/store/screen.css.scss +1272 -0
- data/app/assets/stylesheets/store/spree_frontend.css +6 -0
- data/app/controllers/spree/checkout_controller.rb +166 -0
- data/app/controllers/spree/content_controller.rb +29 -0
- data/app/controllers/spree/home_controller.rb +13 -0
- data/app/controllers/spree/locale_controller.rb +16 -0
- data/app/controllers/spree/orders_controller.rb +100 -0
- data/app/controllers/spree/products_controller.rb +50 -0
- data/app/controllers/spree/store_controller.rb +70 -0
- data/app/controllers/spree/taxons_controller.rb +29 -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 +25 -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 +37 -0
- data/app/views/spree/checkout/_summary.html.erb +33 -0
- data/app/views/spree/checkout/edit.html.erb +28 -0
- data/app/views/spree/checkout/payment/_check.html.erb +0 -0
- data/app/views/spree/checkout/payment/_gateway.html.erb +26 -0
- data/app/views/spree/checkout/registration.html.erb +20 -0
- data/app/views/spree/content/cvv.html.erb +13 -0
- data/app/views/spree/home/index.html.erb +10 -0
- data/app/views/spree/layouts/spree_application.html.erb +38 -0
- data/app/views/spree/orders/_adjustments.html.erb +14 -0
- data/app/views/spree/orders/_form.html.erb +18 -0
- data/app/views/spree/orders/_line_item.html.erb +31 -0
- data/app/views/spree/orders/edit.html.erb +48 -0
- data/app/views/spree/orders/new.html.erb +9 -0
- data/app/views/spree/orders/show.html.erb +22 -0
- data/app/views/spree/products/_cart_form.html.erb +48 -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 +49 -0
- data/app/views/spree/shared/_filters.html.erb +28 -0
- data/app/views/spree/shared/_footer.html.erb +6 -0
- data/app/views/spree/shared/_google_analytics.html.erb +39 -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/_main_nav_bar.html.erb +6 -0
- data/app/views/spree/shared/_nav_bar.html.erb +7 -0
- data/app/views/spree/shared/_order_details.html.erb +110 -0
- data/app/views/spree/shared/_products.html.erb +28 -0
- data/app/views/spree/shared/_search.html.erb +9 -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 +6 -0
- data/app/views/spree/shared/unauthorized.html.erb +0 -0
- data/app/views/spree/taxons/_taxon.html.erb +4 -0
- data/app/views/spree/taxons/show.html.erb +19 -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 +6 -0
- data/config/routes.rb +39 -0
- data/lib/spree/frontend.rb +22 -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/scopes/dynamic.rb +33 -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 +28 -0
- data/vendor/assets/javascripts/jquery.validate/jquery.validate.min.js +51 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ar.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_bg.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ca.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_cn.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_cs.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_da.js +20 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_de.js +21 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_el.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_es.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fa.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fi.js +21 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fr.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ge.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_he.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_hu.js +21 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_it.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ja.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_kk.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_lt.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_lv.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_nl.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_no.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_pl.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js +30 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ro.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ru.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_se.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_si.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sk.js +21 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sr.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_th.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_tr.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_tw.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ua.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_vi.js +23 -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 +364 -0
- metadata +557 -0
@@ -0,0 +1,110 @@
|
|
1
|
+
<div class="row steps-data">
|
2
|
+
|
3
|
+
<% if order.has_step?("address") %>
|
4
|
+
<div class="columns alpha four" data-hook="order-ship-address">
|
5
|
+
<h6><%= Spree.t(:shipping_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless @order.completed? %></h6>
|
6
|
+
<%= render :partial => 'spree/shared/address', :locals => { :address => order.ship_address } %>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="columns alpha four" data-hook="order-bill-address">
|
10
|
+
<h6><%= Spree.t(:billing_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless @order.completed? %></h6>
|
11
|
+
<%= render :partial => 'spree/shared/address', :locals => { :address => order.bill_address } %>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<% if @order.has_step?("delivery") %>
|
15
|
+
<div class="columns alpha four">
|
16
|
+
<h6><%= Spree.t(:shipments) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:delivery) unless @order.completed? %></h6>
|
17
|
+
<div class="delivery">
|
18
|
+
<% order.shipments.each do |shipment| %>
|
19
|
+
<%= shipment.stock_location.name %>
|
20
|
+
<%= shipment.shipping_method.name %>
|
21
|
+
<br/>
|
22
|
+
<% end %>
|
23
|
+
</div>
|
24
|
+
<%= render(:partial => 'spree/shared/shipment_tracking', :locals => {:order => @order}) if @order.shipped? %>
|
25
|
+
</div>
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
28
|
+
|
29
|
+
<div class="columns omega four">
|
30
|
+
<h6><%= Spree.t(:payment_information) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:payment) unless @order.completed? %></h6>
|
31
|
+
<div class="payment-info">
|
32
|
+
<% order.payments.valid.each do |payment| %>
|
33
|
+
<%= render payment%><br/>
|
34
|
+
<% end %>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<hr />
|
41
|
+
|
42
|
+
<table id='line-items' class="index columns alpha omega sixteen" data-hook="order_details">
|
43
|
+
<col width="15%" valign="middle" halign="center">
|
44
|
+
<col width="70%" valign="middle">
|
45
|
+
<col width="5%" valign="middle" halign="center">
|
46
|
+
<col width="5%" valign="middle" halign="center">
|
47
|
+
<col width="5%" valign="middle" halign="center">
|
48
|
+
|
49
|
+
<thead data-hook>
|
50
|
+
<tr data-hook="order_details_line_items_headers">
|
51
|
+
<th colspan="2"><%= Spree.t(:item) %></th>
|
52
|
+
<th class="price"><%= Spree.t(:price) %></th>
|
53
|
+
<th class="qty"><%= Spree.t(:qty) %></th>
|
54
|
+
<th class="total"><span><%= Spree.t(:total) %></span></th>
|
55
|
+
</tr>
|
56
|
+
</thead>
|
57
|
+
|
58
|
+
<tbody data-hook>
|
59
|
+
<% @order.line_items.each do |item| %>
|
60
|
+
<tr data-hook="order_details_line_item_row">
|
61
|
+
<td data-hook="order_item_image">
|
62
|
+
<% if item.variant.images.length == 0 %>
|
63
|
+
<%= link_to small_image(item.variant.product), item.variant.product %>
|
64
|
+
<% else %>
|
65
|
+
<%= link_to image_tag(item.variant.images.first.attachment.url(:small)), item.variant.product %>
|
66
|
+
<% end %>
|
67
|
+
</td>
|
68
|
+
<td data-hook="order_item_description">
|
69
|
+
<h4><%= item.variant.product.name %></h4>
|
70
|
+
<%= truncated_product_description(item.variant.product) %>
|
71
|
+
<%= "(" + item.variant.options_text + ")" unless item.variant.option_values.empty? %>
|
72
|
+
</td>
|
73
|
+
<td data-hook="order_item_price" class="price"><span><%= item.single_money.to_html %></span></td>
|
74
|
+
<td data-hook="order_item_qty"><%= item.quantity %></td>
|
75
|
+
<td data-hook="order_item_total" class="total"><span><%= item.display_amount.to_html %></span></td>
|
76
|
+
</tr>
|
77
|
+
<% end %>
|
78
|
+
</tbody>
|
79
|
+
<tfoot id="order-total" data-hook="order_details_total">
|
80
|
+
<tr class="total">
|
81
|
+
<td colspan="4"><b><%= Spree.t(:order_total) %>:</b></td>
|
82
|
+
<td class="total"><span id="order_total"><%= @order.display_total.to_html %></span></td>
|
83
|
+
</tr>
|
84
|
+
</tfoot>
|
85
|
+
<% if order.price_adjustment_totals.present? %>
|
86
|
+
<tfoot id="price-adjustments" data-hook="order_details_price_adjustments">
|
87
|
+
<% @order.price_adjustment_totals.each do |key, total| %>
|
88
|
+
<tr class="total">
|
89
|
+
<td colspan="4"><strong><%= key %></strong></td>
|
90
|
+
<td class="total"><span><%= total %></span></td>
|
91
|
+
</tr>
|
92
|
+
<% end %>
|
93
|
+
</tfoot>
|
94
|
+
<% end %>
|
95
|
+
<tfoot id="subtotal" data-hook="order_details_subtotal">
|
96
|
+
<tr class="total" id="subtotal-row">
|
97
|
+
<td colspan="4"><b><%= Spree.t(:subtotal) %>:</b></td>
|
98
|
+
<td class="total"><span><%= @order.display_item_total.to_html %></span></td>
|
99
|
+
</tr>
|
100
|
+
</tfoot>
|
101
|
+
<tfoot id="order-charges" data-hook="order_details_adjustments">
|
102
|
+
<% @order.adjustments.eligible.each do |adjustment| %>
|
103
|
+
<% next if (adjustment.originator_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
|
104
|
+
<tr class="total">
|
105
|
+
<td colspan="4"><strong><%= adjustment.label %></strong></td>
|
106
|
+
<td class="total"><span><%= adjustment.display_amount.to_html %></span></td>
|
107
|
+
</tr>
|
108
|
+
<% end %>
|
109
|
+
</tfoot>
|
110
|
+
</table>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<%
|
2
|
+
paginated_products = @searcher.retrieve_products if params.key?(:keywords)
|
3
|
+
paginated_products ||= products
|
4
|
+
%>
|
5
|
+
<% if products.empty? %>
|
6
|
+
<%= Spree.t(:no_products_found) %>
|
7
|
+
<% elsif params.key?(:keywords) %>
|
8
|
+
<h6 class="search-results-title"><%= Spree.t(:search_results, :keywords => h(params[:keywords])) %></h6>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<% if products.any? %>
|
12
|
+
<ul id="products" class="inline product-listing" data-hook>
|
13
|
+
<% products.each do |product| %>
|
14
|
+
<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">
|
15
|
+
<div class="product-image">
|
16
|
+
<%= link_to small_image(product, :itemprop => "image"), product, :itemprop => 'url' %>
|
17
|
+
</div>
|
18
|
+
<%= link_to truncate(product.name, :length => 50), product, :class => 'info', :itemprop => "name", :title => product.name %>
|
19
|
+
<span class="price selling" itemprop="price"><%= display_price(product) %></span>
|
20
|
+
</li>
|
21
|
+
<% end %>
|
22
|
+
<% reset_cycle("classes") %>
|
23
|
+
</ul>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<% if paginated_products.respond_to?(:num_pages) %>
|
27
|
+
<%= paginate paginated_products %>
|
28
|
+
<% end %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<% @taxons = @taxon && @taxon.parent ? @taxon.parent.children : Spree::Taxon.roots %>
|
2
|
+
<%= form_tag spree.products_path, :method => :get do %>
|
3
|
+
<%= select_tag :taxon,
|
4
|
+
options_for_select([[Spree.t(:all_departments), '']] +
|
5
|
+
@taxons.map {|t| [t.name, t.id]},
|
6
|
+
@taxon ? @taxon.id : params[:taxon]) %>
|
7
|
+
<%= search_field_tag :keywords, params[:keywords], :placeholder => Spree.t(:search) %>
|
8
|
+
<%= submit_tag Spree.t(:search), :name => nil %>
|
9
|
+
<% end %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<nav id="taxonomies" class="sidebar-item" data-hook>
|
2
|
+
<% get_taxonomies.each do |taxonomy| %>
|
3
|
+
<h6 class='taxonomy-root'><%= Spree.t(:shop_by_taxonomy, :taxonomy => taxonomy.name) %></h6>
|
4
|
+
<%= taxons_tree(taxonomy.root, @taxon, Spree::Config[:max_level_in_taxons_menu] || 1) %>
|
5
|
+
<% end %>
|
6
|
+
</nav>
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
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
|
+
<%= render :partial => 'taxon', :collection => @taxon.children %>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
19
|
+
|
@@ -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
|
data/config/routes.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
Spree::Core::Engine.routes.draw do
|
2
|
+
|
3
|
+
root :to => 'home#index'
|
4
|
+
|
5
|
+
resources :products
|
6
|
+
|
7
|
+
match '/locale/set', :to => 'locale#set'
|
8
|
+
|
9
|
+
resources :states, :only => :index
|
10
|
+
resources :countries, :only => :index
|
11
|
+
|
12
|
+
# non-restful checkout stuff
|
13
|
+
put '/checkout/update/:state', :to => 'checkout#update', :as => :update_checkout
|
14
|
+
get '/checkout/:state', :to => 'checkout#edit', :as => :checkout_state
|
15
|
+
get '/checkout', :to => 'checkout#edit' , :as => :checkout
|
16
|
+
|
17
|
+
populate_redirect = redirect do |params, request|
|
18
|
+
request.flash[:error] = Spree.t(:populate_get_error)
|
19
|
+
request.referer || '/cart'
|
20
|
+
end
|
21
|
+
|
22
|
+
get '/orders/populate', :via => :get, :to => populate_redirect
|
23
|
+
match '/orders/:id/token/:token' => 'orders#show', :via => :get, :as => :token_order
|
24
|
+
|
25
|
+
resources :orders do
|
26
|
+
post :populate, :on => :collection
|
27
|
+
end
|
28
|
+
|
29
|
+
get '/cart', :to => 'orders#edit', :as => :cart
|
30
|
+
put '/cart', :to => 'orders#update', :as => :update_cart
|
31
|
+
put '/cart/empty', :to => 'orders#empty', :as => :empty_cart
|
32
|
+
|
33
|
+
# route globbing for pretty nested taxon and product paths
|
34
|
+
match '/t/*id', :to => 'taxons#show', :as => :nested_taxons
|
35
|
+
|
36
|
+
match '/unauthorized', :to => 'home#unauthorized', :as => :unauthorized
|
37
|
+
match '/content/cvv', :to => 'content#cvv', :as => :cvv
|
38
|
+
match '/content/*path', :to => 'content#show', :via => :get, :as => :content
|
39
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rails/all'
|
2
|
+
require 'rails/generators'
|
3
|
+
require 'jquery-rails'
|
4
|
+
require 'deface'
|
5
|
+
require 'select2-rails'
|
6
|
+
|
7
|
+
require 'spree/core'
|
8
|
+
|
9
|
+
require 'spree/core/mail_settings'
|
10
|
+
require 'spree/core/mail_interceptor'
|
11
|
+
|
12
|
+
require 'spree/responder'
|
13
|
+
require 'spree/frontend/middleware/seo_assist'
|
14
|
+
|
15
|
+
require 'spree/frontend/engine'
|
16
|
+
|
17
|
+
if defined?(ActionView)
|
18
|
+
require 'awesome_nested_set/helper'
|
19
|
+
ActionView::Base.class_eval do
|
20
|
+
include CollectiveIdea::Acts::NestedSet::Helper
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Spree
|
2
|
+
module Frontend
|
3
|
+
class Engine < ::Rails::Engine
|
4
|
+
config.middleware.use "Spree::Frontend::Middleware::SeoAssist"
|
5
|
+
|
6
|
+
# sets the manifests / assets to be precompiled, even when initialize_on_precompile is false
|
7
|
+
initializer "spree.assets.precompile", :group => :all do |app|
|
8
|
+
app.config.assets.precompile += %w[
|
9
|
+
store/all.*
|
10
|
+
]
|
11
|
+
end
|
12
|
+
|
13
|
+
initializer "spree.frontend.environment", :before => :load_config_initializers do |app|
|
14
|
+
Spree::Frontend::Config = Spree::FrontendConfiguration.new
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# Make redirects for SEO needs
|
2
|
+
module Spree
|
3
|
+
module Frontend
|
4
|
+
module Middleware
|
5
|
+
class SeoAssist
|
6
|
+
def initialize(app)
|
7
|
+
@app = app
|
8
|
+
end
|
9
|
+
|
10
|
+
def call(env)
|
11
|
+
request = Rack::Request.new(env)
|
12
|
+
params = request.params
|
13
|
+
|
14
|
+
taxon_id = params['taxon']
|
15
|
+
|
16
|
+
#redirect requests using taxon id's to their permalinks
|
17
|
+
if !taxon_id.blank? && !taxon_id.is_a?(Hash) && taxon = Taxon.find(taxon_id)
|
18
|
+
params.delete('taxon')
|
19
|
+
|
20
|
+
return build_response(params, "#{request.script_name}t/#{taxon.permalink}" )
|
21
|
+
elsif env["PATH_INFO"] =~ /^\/(t|products)(\/\S+)?\/$/
|
22
|
+
#ensures no trailing / for taxon and product urls
|
23
|
+
|
24
|
+
return build_response(params, env["PATH_INFO"][0...-1])
|
25
|
+
end
|
26
|
+
|
27
|
+
@app.call(env)
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def build_response(params, location)
|
33
|
+
query = build_query(params)
|
34
|
+
location += '?' + query unless query.blank?
|
35
|
+
[301, { 'Location'=> location }, []]
|
36
|
+
end
|
37
|
+
|
38
|
+
def build_query(params)
|
39
|
+
params.map { |k, v|
|
40
|
+
if v.class == Array
|
41
|
+
build_query(v.map { |x| ["#{k}[]", x] })
|
42
|
+
else
|
43
|
+
k + "=" + Rack::Utils.escape(v)
|
44
|
+
end
|
45
|
+
}.join("&")
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Spree
|
2
|
+
class OldPrefs < ActiveRecord::Base
|
3
|
+
self.table_name = "spree_preferences"
|
4
|
+
belongs_to :owner, :polymorphic => true
|
5
|
+
attr_accessor :owner_klass
|
6
|
+
end
|
7
|
+
|
8
|
+
class PreferenceRescue
|
9
|
+
def self.try
|
10
|
+
OldPrefs.where(:key => nil).each do |old_pref|
|
11
|
+
next unless owner = (old_pref.owner rescue nil)
|
12
|
+
unless old_pref.owner_type == "Spree::Activator" || old_pref.owner_type == "Spree::Configuration"
|
13
|
+
begin
|
14
|
+
old_pref.key = [owner.class.name, old_pref.name, owner.id].join('::').underscore
|
15
|
+
old_pref.value_type = owner.preference_type(old_pref.name)
|
16
|
+
puts "Migrating Preference: #{old_pref.key}"
|
17
|
+
old_pref.save
|
18
|
+
rescue NoMethodError => ex
|
19
|
+
puts ex.message
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Spree
|
2
|
+
module Scopes
|
3
|
+
# This module is extended by ProductScope
|
4
|
+
module Dynamic
|
5
|
+
module_function
|
6
|
+
|
7
|
+
# Sample dynamic scope generating from set of products
|
8
|
+
# generates 0 or (2..scope_limit) scopes for prices, based
|
9
|
+
# on number of products (uses Math.log, to guess number of scopes)
|
10
|
+
def price_scopes_for(products, scope_limit=5)
|
11
|
+
scopes = []
|
12
|
+
|
13
|
+
# Price based scopes
|
14
|
+
all_prices = products.map(&:price).sort
|
15
|
+
|
16
|
+
ranges = [Math.log(products.length).floor, scope_limit].max
|
17
|
+
|
18
|
+
if ranges >= 2
|
19
|
+
l = all_prices.length / ranges
|
20
|
+
scopes << ProductScope.new({:name => "master_price_lte", :arguments => [all_prices[l]] })
|
21
|
+
|
22
|
+
(ranges - 2).times do |x|
|
23
|
+
scopes << ProductScope.new({:name => "price_between",
|
24
|
+
:arguments => [ all_prices[l*(x+1)+1], all_prices[l*(x+2)] ] })
|
25
|
+
end
|
26
|
+
scopes << ProductScope.new({:name => "master_price_gte", :arguments => [all_prices[l*(ranges-1)+1]] })
|
27
|
+
end
|
28
|
+
|
29
|
+
scopes
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|