spree 0.10.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree might be problematic. Click here for more details.
- data/CHANGELOG +81 -4
- data/CONTRIBUTORS +18 -10
- data/Rakefile +5 -4
- data/app/controllers/admin/adjustments_controller.rb +17 -3
- data/app/controllers/admin/base_controller.rb +2 -2
- data/app/controllers/admin/checkouts_controller.rb +43 -34
- data/app/controllers/admin/line_items_controller.rb +32 -18
- data/app/controllers/admin/option_types_controller.rb +1 -1
- data/app/controllers/admin/orders_controller.rb +28 -7
- data/app/controllers/admin/payments_controller.rb +7 -7
- data/app/controllers/admin/products_controller.rb +12 -23
- data/app/controllers/admin/reports_controller.rb +19 -7
- data/app/controllers/admin/return_authorizations_controller.rb +1 -1
- data/app/controllers/admin/shipments_controller.rb +9 -9
- data/app/controllers/admin/users_controller.rb +3 -1
- data/app/controllers/admin/variants_controller.rb +2 -2
- data/app/controllers/checkouts_controller.rb +29 -18
- data/app/controllers/content_controller.rb +1 -1
- data/{vendor/extensions/localization/app → app}/controllers/locale_controller.rb +1 -1
- data/app/controllers/orders_controller.rb +33 -30
- data/app/controllers/password_resets_controller.rb +4 -4
- data/app/controllers/products_controller.rb +0 -6
- data/app/controllers/spree/base_controller.rb +9 -2
- data/app/controllers/user_sessions_controller.rb +18 -18
- data/app/controllers/users_controller.rb +2 -2
- data/app/helpers/admin/base_helper.rb +5 -2
- data/app/helpers/admin/navigation_helper.rb +1 -1
- data/app/helpers/admin/orders_helper.rb +0 -13
- data/app/helpers/admin/products_helper.rb +0 -8
- data/app/helpers/checkouts_helper.rb +5 -5
- data/app/helpers/products_helper.rb +0 -12
- data/app/helpers/spree/base_helper.rb +10 -39
- data/app/helpers/taxons_helper.rb +1 -0
- data/app/models/address.rb +6 -1
- data/app/models/app_configuration.rb +15 -14
- data/app/models/calculator/flexi_rate.rb +2 -1
- data/app/models/calculator/vat.rb +1 -1
- data/app/models/checkout.rb +1 -1
- data/app/models/creditcard.rb +26 -20
- data/app/models/inventory_unit.rb +70 -21
- data/app/models/line_item.rb +25 -11
- data/app/models/order.rb +16 -10
- data/app/models/payment.rb +4 -1
- data/app/models/payment_method.rb +14 -5
- data/app/models/product.rb +12 -4
- data/app/models/role.rb +2 -2
- data/app/models/shipment.rb +21 -2
- data/app/models/tax_category.rb +8 -0
- data/app/models/taxon.rb +8 -0
- data/app/models/user.rb +2 -3
- data/app/models/variant.rb +18 -13
- data/config/boot.rb +1 -5
- data/config/cucumber.yml +7 -0
- data/config/database.yml +20 -37
- data/config/database.yml.example +5 -6
- data/config/environment.rb +6 -5
- data/config/environments/cucumber.rb +30 -0
- data/config/environments/production.rb +1 -4
- data/config/environments/staging.rb +3 -0
- data/config/environments/test.rb +1 -1
- data/config/initializers/cookie_verification_secret.rb +7 -0
- data/config/initializers/locales.rb +4 -2
- data/config/initializers/new_rails_defaults.rb +2 -0
- data/config/initializers/spree.rb +1 -0
- data/config/initializers/workarounds_for_ruby19.rb +0 -25
- data/config/locales/{en-US.yml → en_spree.yml} +18 -4
- data/config/routes.rb +2 -1
- data/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
- data/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
- data/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
- data/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
- data/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
- data/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
- data/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
- data/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
- data/db/sample/payment_methods.yml +8 -1
- data/db/sample/shipments.yml +2 -2
- data/db/schema.rb +54 -21
- data/features/checkout.feature +98 -0
- data/features/create_admin_user.feature +18 -0
- data/features/search.feature +35 -0
- data/features/sign_in.feature +25 -0
- data/features/sign_out.feature +12 -0
- data/features/sign_up.feature +20 -0
- data/features/step_definitions/error_steps.rb +3 -0
- data/features/step_definitions/model_steps.rb +3 -0
- data/features/step_definitions/pickle_steps.rb +73 -0
- data/features/step_definitions/role_steps.rb +8 -0
- data/features/step_definitions/session_steps.rb +14 -0
- data/features/step_definitions/user_steps.rb +67 -0
- data/features/step_definitions/web_steps.rb +197 -0
- data/features/support/create_admin_user.rb +6 -0
- data/features/support/env.rb +89 -0
- data/features/support/paths.rb +32 -0
- data/features/support/pickle.rb +24 -0
- data/features/work_with_cart.feature +41 -0
- data/lib/generators/extension_model/extension_model_generator.rb +10 -10
- data/lib/generators/instance/templates/databases/mysql.yml +11 -0
- data/lib/scopes/variant.rb +10 -0
- data/lib/spree.rb +3 -3
- data/lib/spree/extensions.rb +1 -1
- data/lib/tasks/cucumber.rake +47 -0
- data/lib/tasks/database.rake +29 -29
- data/public/images/admin/bg/spree_50.png +0 -0
- data/public/images/tile-header.png +0 -0
- data/public/images/tile-slider.png +0 -0
- data/public/javascripts/admin/checkouts/edit.js +33 -0
- data/public/javascripts/dashboard.js +2 -2
- data/public/javascripts/taxonomy.js +2 -2
- data/public/stylesheets/admin/admin-tables.css +4 -0
- data/public/stylesheets/admin/admin.css +31 -16
- data/public/stylesheets/screen.css +16 -3
- data/script/about +3 -2
- data/script/console +2 -2
- data/script/cucumber +10 -0
- data/script/dbconsole +1 -1
- data/script/destroy +2 -2
- data/script/generate +2 -2
- data/script/performance/benchmarker +1 -1
- data/script/performance/profiler +1 -1
- data/script/plugin +2 -2
- data/script/runner +2 -2
- data/script/server +2 -2
- data/test/fixtures/payment_methods.yml +12 -0
- data/test/functional/admin/checkouts_controller_test.rb +0 -2
- data/test/functional/admin/line_items_controller_test.rb +78 -39
- data/test/functional/admin/products_controller_test.rb +4 -5
- data/test/integration/checkout_test.rb +1 -0
- data/test/test_helper.rb +114 -86
- data/test/unit/creditcard_test.rb +28 -7
- data/test/unit/flexi_rate_calculator_test.rb +75 -0
- data/test/unit/helpers/products_helper_test.rb +4 -4
- data/test/unit/inventory_unit_test.rb +39 -5
- data/test/unit/line_item_test.rb +60 -1
- data/test/unit/order_state_test.rb +85 -58
- data/test/unit/order_test.rb +144 -123
- data/test/unit/product_test.rb +21 -0
- data/test/unit/return_authorization_test.rb +22 -28
- data/test/unit/shipment_test.rb +19 -7
- data/test/unit/variant_test.rb +100 -24
- data/vendor/extensions/api/api_extension.rb +2 -2
- data/vendor/extensions/api/app/controllers/api/base_controller.rb +14 -6
- data/vendor/extensions/api/app/controllers/api/countries_controller.rb +4 -0
- data/vendor/extensions/api/app/controllers/api/orders_controller.rb +4 -4
- data/vendor/extensions/api/app/controllers/api/products_controller.rb +5 -1
- data/vendor/extensions/api/app/controllers/api/shipments_controller.rb +7 -7
- data/vendor/extensions/api/app/controllers/api/states_controller.rb +5 -0
- data/vendor/extensions/api/config/locales/{en-US.yml → en.yml} +2 -2
- data/vendor/extensions/api/config/routes.rb +5 -0
- data/vendor/extensions/api/test/integration/orders_api_test.rb +4 -4
- data/vendor/extensions/overview_dashboard/app/views/admin/overview/index.html.erb +1 -1
- data/vendor/extensions/payment_gateway/app/models/gateway.rb +1 -1
- data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net_cim.rb +41 -29
- data/vendor/extensions/payment_gateway/app/models/gateway/bogus.rb +3 -3
- data/vendor/extensions/payment_gateway/app/models/gateway/eway.rb +11 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/sage_pay.rb +9 -0
- data/vendor/extensions/payment_gateway/config/locales/{en-US.yml → en.yml} +1 -1
- data/vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb +46 -56
- data/vendor/extensions/payment_gateway/payment_gateway_extension.rb +9 -10
- data/vendor/extensions/payment_gateway/test/unit/authorize_net_cim_test.rb +7 -6
- data/vendor/extensions/theme_default/app/stylesheets/_checkout.less +10 -3
- data/vendor/extensions/theme_default/app/views/admin/adjustments/index.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/checkouts/_form.html.erb +31 -5
- data/vendor/extensions/theme_default/app/views/admin/checkouts/show.html.erb +27 -16
- data/vendor/extensions/theme_default/app/views/admin/images/_form.html.erb +4 -0
- data/vendor/extensions/theme_default/app/views/admin/images/index.html.erb +16 -13
- data/vendor/extensions/theme_default/app/views/admin/orders/_add_product.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/orders/_form.html.erb +7 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/index.html.erb +5 -5
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/_form.html.erb +12 -6
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/index.html.erb +22 -11
- data/vendor/extensions/theme_default/app/views/admin/product_groups/update.js.erb +2 -2
- data/vendor/extensions/theme_default/app/views/admin/products/_form.html.erb +6 -4
- data/vendor/extensions/theme_default/app/views/admin/shared/_address_form.html.erb +64 -55
- data/vendor/extensions/theme_default/app/views/admin/shared/_configuration_menu.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shared/_order_tabs.html.erb +11 -3
- data/vendor/extensions/theme_default/app/views/admin/shared/_product_tabs.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shipments/_form.html.erb +32 -29
- data/vendor/extensions/theme_default/app/views/admin/shipments/index.html.erb +2 -1
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/_form.html.erb +6 -3
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/index.html.erb +4 -2
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_taxon.html.erb +2 -2
- data/vendor/extensions/theme_default/app/views/admin/taxons/_form.html.erb +11 -1
- data/vendor/extensions/theme_default/app/views/admin/taxons/edit.html.erb +2 -2
- data/vendor/extensions/theme_default/app/views/admin/users/_form.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/variants/_form.html.erb +4 -2
- data/vendor/extensions/theme_default/app/views/checkouts/_confirm.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/checkouts/_delivery.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/checkouts/_summary.html.erb +6 -6
- data/vendor/extensions/theme_default/app/views/checkouts/edit.html.erb +3 -3
- data/vendor/extensions/theme_default/app/views/layouts/admin.html.erb +7 -5
- data/vendor/extensions/theme_default/app/views/layouts/spree_application.html.erb +8 -4
- data/vendor/extensions/theme_default/app/views/orders/_line_item.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/products/index.html.erb +0 -1
- data/vendor/extensions/theme_default/app/views/shared/_footer.html.erb +4 -2
- data/vendor/extensions/theme_default/app/views/shared/_products.html.erb +3 -1
- data/vendor/extensions/theme_default/app/views/shared/_user_form.html.erb +1 -1
- data/vendor/extensions/theme_default/public/images/admin/bg/spree_50.png +0 -0
- data/vendor/extensions/theme_default/public/images/tile-header.png +0 -0
- data/vendor/extensions/theme_default/public/images/tile-slider.png +0 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/checkouts/edit.js +50 -0
- data/vendor/extensions/theme_default/public/javascripts/taxonomy.js +2 -2
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-tables.css +8 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin.css +31 -16
- data/vendor/extensions/theme_default/public/stylesheets/screen.css +16 -3
- data/vendor/plugins/attribute_fu/{tasks → lib/tasks}/attribute_fu_tasks.rake +0 -0
- data/vendor/plugins/enumerable_constants/{tasks → lib/tasks}/enumerable_constants_tasks.rake +0 -0
- data/vendor/plugins/find_by_param/lib/find_by_param.rb +9 -5
- data/vendor/plugins/find_by_param/{tasks → lib/tasks}/find_by_param_tasks.rake +0 -0
- data/vendor/plugins/jrails/{tasks → lib/tasks}/jrails.rake +0 -0
- data/vendor/plugins/jrails_auto_complete/{tasks → lib/tasks}/jrails_auto_complete_tasks.rake +0 -0
- data/vendor/plugins/mail_queue/{tasks → lib/tasks}/mailer_queue_tasks.rake +0 -0
- data/vendor/plugins/open_id_authentication/{tasks → lib/tasks}/open_id_authentication_tasks.rake +0 -0
- data/vendor/plugins/resource_controller/lib/resource_controller/helpers/internal.rb +2 -2
- data/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb +7 -7
- data/vendor/plugins/unobtrusive_date_picker/{tasks → lib/tasks}/datepicker_tasks.rake +0 -0
- metadata +82 -342
- data/app/helpers/admin/adjustments_helper.rb +0 -2
- data/app/helpers/admin/checkouts_helper.rb +0 -2
- data/app/helpers/admin/line_items_helper.rb +0 -2
- data/app/helpers/admin/properties_helper.rb +0 -9
- data/app/helpers/admin/prototypes_helper.rb +0 -18
- data/app/helpers/admin/return_authorizations_helper.rb +0 -2
- data/config/locales/cs-CZ.yml +0 -924
- data/config/locales/cs-CZ_rails.yml +0 -202
- data/config/locales/da.yml +0 -924
- data/config/locales/da_rails.yml +0 -197
- data/config/locales/de-CH.yml +0 -924
- data/config/locales/de-CH_rails.yml +0 -142
- data/config/locales/de.yml +0 -924
- data/config/locales/de_rails.yml +0 -140
- data/config/locales/en-AU.yml +0 -924
- data/config/locales/en-AU_rails.yml +0 -202
- data/config/locales/en-GB.yml +0 -924
- data/config/locales/en-GB_rails.yml +0 -196
- data/config/locales/en-US_rails.yml +0 -200
- data/config/locales/es.yml +0 -924
- data/config/locales/es_rails.yml +0 -173
- data/config/locales/fi.yml +0 -924
- data/config/locales/fi_rails.yml +0 -143
- data/config/locales/fr-FR.yml +0 -924
- data/config/locales/fr-FR_rails.yml +0 -123
- data/config/locales/il.yml +0 -924
- data/config/locales/il_rails.yml +0 -103
- data/config/locales/it.yml +0 -924
- data/config/locales/it_rails.yml +0 -146
- data/config/locales/jp.yml +0 -924
- data/config/locales/jp_rails.yml +0 -135
- data/config/locales/mx.yml +0 -924
- data/config/locales/mx_rails.yml +0 -181
- data/config/locales/nb-NO.yml +0 -924
- data/config/locales/nb-NO_rails.yml +0 -105
- data/config/locales/nl-BE.yml +0 -924
- data/config/locales/nl-BE_rails.yml +0 -155
- data/config/locales/nl-NL.yml +0 -924
- data/config/locales/nl-NL_rails.yml +0 -172
- data/config/locales/pl.yml +0 -924
- data/config/locales/pl_rails.yml +0 -118
- data/config/locales/pt-BR.yml +0 -924
- data/config/locales/pt-BR_rails.yml +0 -138
- data/config/locales/pt-PT.yml +0 -924
- data/config/locales/pt-PT_rails.yml +0 -133
- data/config/locales/ru-RU.yml +0 -924
- data/config/locales/ru-RU_rails.yml +0 -206
- data/config/locales/th.yml +0 -924
- data/config/locales/th_rails.yml +0 -195
- data/config/locales/vn.yml +0 -924
- data/config/locales/vn_rails.yml +0 -202
- data/lib/tasks/translation.rake +0 -102
- data/vendor/extensions/localization/README.rdoc +0 -5
- data/vendor/extensions/localization/Rakefile +0 -120
- data/vendor/extensions/localization/app/controllers/admin/localization_controller.rb +0 -2
- data/vendor/extensions/localization/app/helpers/locale_helper.rb +0 -2
- data/vendor/extensions/localization/app/helpers/localization_helper.rb +0 -2
- data/vendor/extensions/localization/app/views/shared/_language_bar.html.erb +0 -8
- data/vendor/extensions/localization/config/routes.rb +0 -4
- data/vendor/extensions/localization/lib/localization/user_preferences.rb +0 -9
- data/vendor/extensions/localization/lib/tasks/localization_extension_tasks.rake +0 -17
- data/vendor/extensions/localization/localization_extension.rb +0 -21
- data/vendor/extensions/localization/public/images/flags/ad.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ae.png +0 -0
- data/vendor/extensions/localization/public/images/flags/af.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ag.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ai.png +0 -0
- data/vendor/extensions/localization/public/images/flags/al.png +0 -0
- data/vendor/extensions/localization/public/images/flags/am.png +0 -0
- data/vendor/extensions/localization/public/images/flags/an.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ao.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ar.png +0 -0
- data/vendor/extensions/localization/public/images/flags/as.png +0 -0
- data/vendor/extensions/localization/public/images/flags/at.png +0 -0
- data/vendor/extensions/localization/public/images/flags/au.png +0 -0
- data/vendor/extensions/localization/public/images/flags/aw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ax.png +0 -0
- data/vendor/extensions/localization/public/images/flags/az.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ba.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/be.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/br.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/by.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ca.png +0 -0
- data/vendor/extensions/localization/public/images/flags/catalonia.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ch.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ci.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ck.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/co.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cx.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/da.png +0 -0
- data/vendor/extensions/localization/public/images/flags/de.png +0 -0
- data/vendor/extensions/localization/public/images/flags/de_CH.png +0 -0
- data/vendor/extensions/localization/public/images/flags/dj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/dm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/do.png +0 -0
- data/vendor/extensions/localization/public/images/flags/dz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ec.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ee.png +0 -0
- data/vendor/extensions/localization/public/images/flags/eg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/eh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/england.png +0 -0
- data/vendor/extensions/localization/public/images/flags/er.png +0 -0
- data/vendor/extensions/localization/public/images/flags/es.png +0 -0
- data/vendor/extensions/localization/public/images/flags/et.png +0 -0
- data/vendor/extensions/localization/public/images/flags/europeanunion.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fam.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ga.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ge.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gq.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ht.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/id.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ie.png +0 -0
- data/vendor/extensions/localization/public/images/flags/il.png +0 -0
- data/vendor/extensions/localization/public/images/flags/in.png +0 -0
- data/vendor/extensions/localization/public/images/flags/io.png +0 -0
- data/vendor/extensions/localization/public/images/flags/iq.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ir.png +0 -0
- data/vendor/extensions/localization/public/images/flags/is.png +0 -0
- data/vendor/extensions/localization/public/images/flags/it.png +0 -0
- data/vendor/extensions/localization/public/images/flags/jm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/jo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/jp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ke.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ki.png +0 -0
- data/vendor/extensions/localization/public/images/flags/km.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ky.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/la.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/li.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ls.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ly.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ma.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/md.png +0 -0
- data/vendor/extensions/localization/public/images/flags/me.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ml.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mq.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ms.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mx.png +0 -0
- data/vendor/extensions/localization/public/images/flags/my.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/na.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ne.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ng.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ni.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/no.png +0 -0
- data/vendor/extensions/localization/public/images/flags/np.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/om.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pa.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pe.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ph.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ps.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/py.png +0 -0
- data/vendor/extensions/localization/public/images/flags/qa.png +0 -0
- data/vendor/extensions/localization/public/images/flags/re.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ro.png +0 -0
- data/vendor/extensions/localization/public/images/flags/rs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ru.png +0 -0
- data/vendor/extensions/localization/public/images/flags/rw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sa.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/scotland.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/se.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/si.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/so.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/st.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/td.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/th.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/to.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ua.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ug.png +0 -0
- data/vendor/extensions/localization/public/images/flags/um.png +0 -0
- data/vendor/extensions/localization/public/images/flags/us.png +0 -0
- data/vendor/extensions/localization/public/images/flags/uy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/uz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/va.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ve.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/wales.png +0 -0
- data/vendor/extensions/localization/public/images/flags/wf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ws.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ye.png +0 -0
- data/vendor/extensions/localization/public/images/flags/yt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/za.png +0 -0
- data/vendor/extensions/localization/public/images/flags/zm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/zw.png +0 -0
- data/vendor/extensions/localization/spec/controllers/admin/localization_controller_spec.rb +0 -10
- data/vendor/extensions/localization/spec/controllers/locale_controller_spec.rb +0 -35
- data/vendor/extensions/localization/spec/helpers/locale_helper_spec.rb +0 -5
- data/vendor/extensions/localization/spec/helpers/localization_helper_spec.rb +0 -5
- data/vendor/extensions/localization/spec/spec.opts +0 -6
- data/vendor/extensions/localization/spec/spec_helper.rb +0 -37
- data/vendor/extensions/payment_gateway/app/models/gateway/protx.rb +0 -9
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_manage_products.rhtml +0 -31
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_success.rhtml +0 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
en
|
2
|
+
en:
|
3
3
|
'no': "No"
|
4
4
|
'yes': "Yes"
|
5
5
|
5_biggest_spenders: "5 Biggest Spenders"
|
@@ -9,6 +9,7 @@ en-US:
|
|
9
9
|
account: Account
|
10
10
|
account_updated: "Account updated!"
|
11
11
|
action: Action
|
12
|
+
alt_text: Alternative Text
|
12
13
|
actions:
|
13
14
|
cancel: Cancel
|
14
15
|
create: Create
|
@@ -26,7 +27,9 @@ en-US:
|
|
26
27
|
city: City
|
27
28
|
country: "Country"
|
28
29
|
first_name: "First Name"
|
30
|
+
first_name_begins_with: "First Name Begins With"
|
29
31
|
last_name: "Last Name"
|
32
|
+
last_name_begins_with: "Last Name Begins With"
|
30
33
|
phone: Phone
|
31
34
|
state: "State"
|
32
35
|
zipcode: "Zip Code"
|
@@ -247,12 +250,14 @@ en-US:
|
|
247
250
|
available_taxons: "Available Taxons"
|
248
251
|
awaiting_return: Awaiting Return
|
249
252
|
back: Back
|
253
|
+
back_end: Back End
|
250
254
|
back_to_store: "Go Back To Store"
|
251
255
|
backordered: Backordered
|
252
256
|
backordering_is_allowed: "Backordering {{not}} allowed"
|
253
257
|
balance_due: "Balance Due"
|
254
258
|
best_selling_products: "Best Selling Products"
|
255
259
|
best_selling_taxons: "Best Selling Taxons"
|
260
|
+
both: Both
|
256
261
|
bill_address: "Bill Address"
|
257
262
|
billing: Billing
|
258
263
|
billing_address: "Billing Address"
|
@@ -262,6 +267,7 @@ en-US:
|
|
262
267
|
cancel: cancel
|
263
268
|
canceled: Canceled
|
264
269
|
cannot_create_returns: Cannot create returns as this order has not shipped yet.
|
270
|
+
cannot_destory_line_item_as_inventory_units_have_shipped: Cannot destory line item as some inventory units have shipped.
|
265
271
|
capture: Capture
|
266
272
|
card_code: "Card Code"
|
267
273
|
card_details: "Card details"
|
@@ -289,8 +295,6 @@ en-US:
|
|
289
295
|
clone: Clone
|
290
296
|
code: Code
|
291
297
|
combine: Combine
|
292
|
-
comp_order: "Comp Order"
|
293
|
-
comp_order_confirmation: "Customer will not be charged. Are you sure you want to comp this order?"
|
294
298
|
complete: complete
|
295
299
|
complete_list: "Complete List"
|
296
300
|
configuration: Configuration
|
@@ -332,6 +336,7 @@ en-US:
|
|
332
336
|
date_created: Date created
|
333
337
|
date_range: "Date Range"
|
334
338
|
debit: Debit
|
339
|
+
default: Default
|
335
340
|
delete: Delete
|
336
341
|
depth: Depth
|
337
342
|
description: Description
|
@@ -375,12 +380,14 @@ en-US:
|
|
375
380
|
expiration_year: "Expiration Year"
|
376
381
|
extension: Extension
|
377
382
|
extensions: Extensions
|
383
|
+
front_end: Front End
|
378
384
|
filename: Filename
|
379
385
|
final_confirmation: "Final Confirmation"
|
380
386
|
finalize: Finalize
|
381
387
|
finalized_payments: Finalized Payments
|
382
388
|
first_item: First Item Cost
|
383
389
|
first_name: "First Name"
|
390
|
+
first_name_begins_with: "First Name Begins With"
|
384
391
|
flat_percent: "Flat Percent"
|
385
392
|
flat_rate_amount: Amount
|
386
393
|
flat_rate_per_item: "Flat Rate (per item)"
|
@@ -402,12 +409,14 @@ en-US:
|
|
402
409
|
google_analytics_id: "Analytics ID"
|
403
410
|
google_analytics_new: "New Google Analytics Account"
|
404
411
|
google_analytics_setting_description: "Manage Google Analytics ID"
|
412
|
+
guest_checkout: Guest Checkout
|
405
413
|
guest_user_account: Checkout as a Guest
|
406
414
|
has_no_shipped_units: has no shipped units
|
407
415
|
height: Height
|
408
416
|
hello_user: "Hello User"
|
409
417
|
history: History
|
410
418
|
home: "Home"
|
419
|
+
icon: "Icon"
|
411
420
|
icons_by: "Icons by"
|
412
421
|
image: Image
|
413
422
|
images: Images
|
@@ -434,6 +443,7 @@ en-US:
|
|
434
443
|
last_7_days: "Last 7 Days"
|
435
444
|
last_month: "Last Month"
|
436
445
|
last_name: "Last Name"
|
446
|
+
last_name_begins_with: "Last Name Begins With"
|
437
447
|
last_year: "Last Year"
|
438
448
|
list: List
|
439
449
|
listing_categories: "Listing Categories"
|
@@ -474,6 +484,7 @@ en-US:
|
|
474
484
|
my_account: "My Account"
|
475
485
|
my_orders: "My Orders"
|
476
486
|
name: Name
|
487
|
+
name_or_sku: "Name or SKU"
|
477
488
|
new: New
|
478
489
|
new_adjustment: "New Adjustment"
|
479
490
|
new_billing_integration: New Billing Integration
|
@@ -484,6 +495,7 @@ en-US:
|
|
484
495
|
new_option_type: "New Option Type"
|
485
496
|
new_option_value: "New Option Value"
|
486
497
|
new_order: "New Order"
|
498
|
+
new_order_completed: "New Order Completed"
|
487
499
|
new_payment: "New Payment"
|
488
500
|
new_payment_method: New Payment Method
|
489
501
|
new_product: "New Product"
|
@@ -523,7 +535,7 @@ en-US:
|
|
523
535
|
product_not_deleted: "Product could not be deleted"
|
524
536
|
track_me_in_GA: "Track Me in GA"
|
525
537
|
variant_deleted: "Variant has been deleted"
|
526
|
-
variant_not_deleted: "Variant could not be deleted"
|
538
|
+
variant_not_deleted: "Variant could not be deleted"
|
527
539
|
on_hand: "On Hand"
|
528
540
|
operation: Operation
|
529
541
|
option_Values: "Option Values"
|
@@ -798,6 +810,7 @@ en-US:
|
|
798
810
|
shop_by_taxonomy: "Shop by {{taxonomy}}"
|
799
811
|
shopping_cart: "Shopping Cart"
|
800
812
|
show: Show
|
813
|
+
show_active: "Show Active"
|
801
814
|
show_deleted: "Show Deleted"
|
802
815
|
show_incomplete_orders: "Show Incomplete Orders"
|
803
816
|
show_only_complete_orders: "Only show complete orders"
|
@@ -901,6 +914,7 @@ en-US:
|
|
901
914
|
is_too_large: "is too large -- stock on hand cannot cover requested quantity!"
|
902
915
|
must_be_int: "must be an integer"
|
903
916
|
must_be_non_negative: "must be a non-negative value"
|
917
|
+
cannot_be_less_than_shipped_units: "cannot be less than the number of shipped units."
|
904
918
|
value: Value
|
905
919
|
variants: Variants
|
906
920
|
vat: "VAT"
|
data/config/routes.rb
CHANGED
@@ -34,12 +34,13 @@ ActionController::Routing::Routes.draw do |map|
|
|
34
34
|
map.logout '/logout', :controller => 'user_sessions', :action => 'destroy'
|
35
35
|
map.signup '/signup', :controller => 'users', :action => 'new'
|
36
36
|
map.admin '/admin', :controller => 'admin/overview', :action => 'index'
|
37
|
+
map.set_locale '/locale/set', :controller => 'locale', :action => 'set', :method => :get
|
37
38
|
|
38
39
|
map.resources :tax_categories
|
39
40
|
map.resources :countries, :has_many => :states, :only => :index
|
40
41
|
map.resources :states, :only => :index
|
41
42
|
map.resources :users
|
42
|
-
map.resources :products
|
43
|
+
map.resources :products
|
43
44
|
map.resources :orders, :member => {:address_info => :get}, :has_many => [:line_items, :creditcards, :creditcard_payments]
|
44
45
|
map.resources :orders, :member => {:fatal_shipping => :get} do |order|
|
45
46
|
order.resources :shipments, :member => {:shipping_method => :get}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class AddAddressesCheckoutsIndexes < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
add_index :addresses, :firstname
|
4
|
+
add_index :addresses, :lastname
|
5
|
+
add_index :checkouts, :order_id
|
6
|
+
add_index :checkouts, :bill_address_id
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.down
|
10
|
+
remove_index :checkouts, :bill_address_id
|
11
|
+
remove_index :checkouts, :order_id
|
12
|
+
remove_index :addresses, :lastname
|
13
|
+
remove_index :addresses, :firstname
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class AddIconToTaxons < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
# skip this migration if the attribute already exists because of advanced taxon extension
|
4
|
+
return if Taxon.new.respond_to? :icon_file_name
|
5
|
+
add_column :taxons, :icon_file_name, :string
|
6
|
+
add_column :taxons, :icon_content_type, :string
|
7
|
+
add_column :taxons, :icon_file_size, :integer
|
8
|
+
add_column :taxons, :icon_updated_at, :datetime
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.down
|
12
|
+
remove_column :taxons, :icon_file_name
|
13
|
+
remove_column :taxons, :icon_content_type
|
14
|
+
remove_column :taxons, :icon_file_size
|
15
|
+
remove_column :taxons, :icon_updated_at
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class AddDescriptionToTaxons < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
# skip this migration if the attribute already exists because of advanced taxon extension
|
4
|
+
return if Taxon.new.respond_to? :description
|
5
|
+
add_column :taxons, :description, :text
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.down
|
9
|
+
remove_column :taxons, :description
|
10
|
+
end
|
11
|
+
end
|
@@ -20,4 +20,11 @@ bogus_prod:
|
|
20
20
|
description: Bogus payment gateway for production.
|
21
21
|
environment: production
|
22
22
|
active: true
|
23
|
-
type: Gateway::Bogus
|
23
|
+
type: Gateway::Bogus
|
24
|
+
bogus_prod:
|
25
|
+
name: Credit Card
|
26
|
+
description: Bogus payment gateway for staging.
|
27
|
+
environment: staging
|
28
|
+
active: true
|
29
|
+
type: Gateway::Bogus
|
30
|
+
|
data/db/sample/shipments.yml
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
<% 1.upto(100) do |i| %>
|
2
2
|
shipment_<%= i %>:
|
3
|
-
number: <%= Array.new(11){rand(11)}.join %>
|
3
|
+
number: H<%= Array.new(11){rand(11)}.join %>
|
4
4
|
order: order_<%= i %>
|
5
|
-
shipping_method: ups_ground
|
5
|
+
shipping_method: ups_ground
|
6
6
|
address: ship_address_<%= i %>
|
7
7
|
state: pending
|
8
8
|
<% end %>
|
data/db/schema.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
#
|
10
10
|
# It's strongly recommended to check this file into your version control system.
|
11
11
|
|
12
|
-
ActiveRecord::Schema.define(:version =>
|
12
|
+
ActiveRecord::Schema.define(:version => 20100605152042) do
|
13
13
|
|
14
14
|
create_table "addresses", :force => true do |t|
|
15
15
|
t.string "firstname"
|
@@ -27,10 +27,13 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
27
27
|
t.string "alternative_phone"
|
28
28
|
end
|
29
29
|
|
30
|
+
add_index "addresses", ["firstname"], :name => "index_addresses_on_firstname"
|
31
|
+
add_index "addresses", ["lastname"], :name => "index_addresses_on_lastname"
|
32
|
+
|
30
33
|
create_table "adjustments", :force => true do |t|
|
31
34
|
t.integer "order_id"
|
32
35
|
t.string "type"
|
33
|
-
t.decimal "amount"
|
36
|
+
t.decimal "amount"
|
34
37
|
t.string "description"
|
35
38
|
t.integer "position"
|
36
39
|
t.datetime "created_at"
|
@@ -79,6 +82,9 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
79
82
|
t.integer "shipping_method_id"
|
80
83
|
end
|
81
84
|
|
85
|
+
add_index "checkouts", ["bill_address_id"], :name => "index_checkouts_on_bill_address_id"
|
86
|
+
add_index "checkouts", ["order_id"], :name => "index_checkouts_on_order_id"
|
87
|
+
|
82
88
|
create_table "configurations", :force => true do |t|
|
83
89
|
t.string "name"
|
84
90
|
t.datetime "created_at"
|
@@ -126,14 +132,34 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
126
132
|
t.string "gateway_payment_profile_id"
|
127
133
|
end
|
128
134
|
|
135
|
+
create_table "gateway_configurations", :force => true do |t|
|
136
|
+
t.integer "gateway_id"
|
137
|
+
t.datetime "created_at"
|
138
|
+
t.datetime "updated_at"
|
139
|
+
end
|
140
|
+
|
141
|
+
create_table "gateway_option_values", :force => true do |t|
|
142
|
+
t.integer "gateway_configuration_id"
|
143
|
+
t.integer "gateway_option_id"
|
144
|
+
t.text "value"
|
145
|
+
t.datetime "created_at"
|
146
|
+
t.datetime "updated_at"
|
147
|
+
end
|
148
|
+
|
149
|
+
create_table "gateway_options", :force => true do |t|
|
150
|
+
t.string "name"
|
151
|
+
t.text "description"
|
152
|
+
t.integer "gateway_id"
|
153
|
+
t.boolean "textarea", :default => false
|
154
|
+
t.datetime "created_at"
|
155
|
+
t.datetime "updated_at"
|
156
|
+
end
|
157
|
+
|
129
158
|
create_table "gateways", :force => true do |t|
|
130
|
-
t.string "
|
159
|
+
t.string "clazz"
|
131
160
|
t.string "name"
|
132
161
|
t.text "description"
|
133
|
-
t.boolean "active"
|
134
|
-
t.string "environment", :default => "development"
|
135
|
-
t.string "server", :default => "test"
|
136
|
-
t.boolean "test_mode", :default => true
|
162
|
+
t.boolean "active"
|
137
163
|
t.datetime "created_at"
|
138
164
|
t.datetime "updated_at"
|
139
165
|
end
|
@@ -234,13 +260,14 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
234
260
|
t.datetime "created_at"
|
235
261
|
t.datetime "updated_at"
|
236
262
|
t.datetime "deleted_at"
|
263
|
+
t.string "display"
|
237
264
|
end
|
238
265
|
|
239
266
|
create_table "payments", :force => true do |t|
|
240
267
|
t.integer "payable_id"
|
241
268
|
t.datetime "created_at"
|
242
269
|
t.datetime "updated_at"
|
243
|
-
t.decimal "amount", :
|
270
|
+
t.decimal "amount", :default => 0.0, :null => false
|
244
271
|
t.string "payable_type"
|
245
272
|
t.integer "source_id"
|
246
273
|
t.string "source_type"
|
@@ -249,17 +276,15 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
249
276
|
|
250
277
|
create_table "preferences", :force => true do |t|
|
251
278
|
t.string "attribute", :limit => 100, :null => false
|
252
|
-
t.integer "owner_id",
|
279
|
+
t.integer "owner_id", :limit => 30, :null => false
|
253
280
|
t.string "owner_type", :limit => 50, :null => false
|
254
281
|
t.integer "group_id"
|
255
282
|
t.string "group_type", :limit => 50
|
256
|
-
t.text "value"
|
283
|
+
t.text "value", :limit => 255
|
257
284
|
t.datetime "created_at"
|
258
285
|
t.datetime "updated_at"
|
259
286
|
end
|
260
287
|
|
261
|
-
add_index "preferences", ["owner_id", "owner_type", "attribute", "group_id", "group_type"], :name => "index_preferences_on_owner_and_attribute_and_preference", :unique => true
|
262
|
-
|
263
288
|
create_table "product_groups", :force => true do |t|
|
264
289
|
t.string "name"
|
265
290
|
t.string "permalink"
|
@@ -387,6 +412,8 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
387
412
|
t.string "state"
|
388
413
|
end
|
389
414
|
|
415
|
+
add_index "shipments", ["number"], :name => "index_shipments_on_number"
|
416
|
+
|
390
417
|
create_table "shipping_categories", :force => true do |t|
|
391
418
|
t.string "name"
|
392
419
|
t.datetime "created_at"
|
@@ -426,6 +453,7 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
426
453
|
t.string "description"
|
427
454
|
t.datetime "created_at"
|
428
455
|
t.datetime "updated_at"
|
456
|
+
t.boolean "is_default", :default => false
|
429
457
|
end
|
430
458
|
|
431
459
|
create_table "tax_rates", :force => true do |t|
|
@@ -443,15 +471,20 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
443
471
|
end
|
444
472
|
|
445
473
|
create_table "taxons", :force => true do |t|
|
446
|
-
t.integer "taxonomy_id",
|
474
|
+
t.integer "taxonomy_id", :null => false
|
447
475
|
t.integer "parent_id"
|
448
|
-
t.integer "position",
|
449
|
-
t.string "name",
|
476
|
+
t.integer "position", :default => 0
|
477
|
+
t.string "name", :null => false
|
450
478
|
t.datetime "created_at"
|
451
479
|
t.datetime "updated_at"
|
452
480
|
t.string "permalink"
|
453
481
|
t.integer "lft"
|
454
482
|
t.integer "rgt"
|
483
|
+
t.string "icon_file_name"
|
484
|
+
t.string "icon_content_type"
|
485
|
+
t.integer "icon_file_size"
|
486
|
+
t.datetime "icon_updated_at"
|
487
|
+
t.text "description"
|
455
488
|
end
|
456
489
|
|
457
490
|
add_index "taxons", ["parent_id"], :name => "index_taxons_on_parent_id"
|
@@ -467,7 +500,7 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
467
500
|
end
|
468
501
|
|
469
502
|
create_table "transactions", :force => true do |t|
|
470
|
-
t.decimal "amount", :
|
503
|
+
t.decimal "amount", :default => 0.0, :null => false
|
471
504
|
t.integer "txn_type"
|
472
505
|
t.string "response_code"
|
473
506
|
t.text "avs_response"
|
@@ -481,8 +514,8 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
481
514
|
|
482
515
|
create_table "users", :force => true do |t|
|
483
516
|
t.string "email"
|
484
|
-
t.string "crypted_password"
|
485
|
-
t.string "salt"
|
517
|
+
t.string "crypted_password", :limit => 128
|
518
|
+
t.string "salt", :limit => 128
|
486
519
|
t.string "remember_token"
|
487
520
|
t.string "remember_token_expires_at"
|
488
521
|
t.datetime "created_at"
|
@@ -490,8 +523,8 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
490
523
|
t.string "persistence_token"
|
491
524
|
t.string "single_access_token"
|
492
525
|
t.string "perishable_token"
|
493
|
-
t.integer "login_count",
|
494
|
-
t.integer "failed_login_count",
|
526
|
+
t.integer "login_count", :default => 0, :null => false
|
527
|
+
t.integer "failed_login_count", :default => 0, :null => false
|
495
528
|
t.datetime "last_request_at"
|
496
529
|
t.datetime "current_login_at"
|
497
530
|
t.datetime "last_login_at"
|
@@ -501,10 +534,10 @@ ActiveRecord::Schema.define(:version => 20100317120946) do
|
|
501
534
|
t.integer "ship_address_id"
|
502
535
|
t.integer "bill_address_id"
|
503
536
|
t.string "openid_identifier"
|
504
|
-
t.string "api_key", :limit => 40
|
505
537
|
end
|
506
538
|
|
507
539
|
add_index "users", ["openid_identifier"], :name => "index_users_on_openid_identifier"
|
540
|
+
add_index "users", ["persistence_token"], :name => "index_users_on_persistence_token"
|
508
541
|
|
509
542
|
create_table "variants", :force => true do |t|
|
510
543
|
t.integer "product_id"
|