Configure and extend spreecommerce for being more german market ready. Assumes a german country.
- Alters the address fields in the checkout address
- Checkout: Change the final save and continue button caption if there is no confirm state
- Adds some declarations and translations.
- Adds a german zone, german tax categories/rates and a default flat german shipping method.
- Remove germany from all other zones.
- Set germany as default checkout zone and default country id.
- Sets Euro (EUR) as default currency
Add spree_german_market to your Gemfile:
gem 'spree_german_market', :git => 'git://github.com/hefan/spree_german_market.git'
For a specific version use the appropriate branch, for example
gem 'spree_german_market', :git => 'git://github.com/hefan/spree_german_market.git', :branch => '3-1-stable'
Bundle your dependencies and run the installation generator:
bundle bundle exec rails g spree_german_market:install
Add products with the appropriate shipping and tax categories to your shop and you're done.
You may add the following to your application.rb:
'de' as i18n default locale of your application
config.i18n.default_locale = :de
- you have to add spree_i18n for that, see https://github.com/spree/spree_i18n
'Berlin' as the time_zone of your application
config.time_zone = 'Berlin'
If you want to move all existing Products
- to the newly created shipping category
- to the newly created tax category
and set the currencies of all products and incompleted orders to "EUR" (without altering the prices) use
bundle exec rails g spree_german_market:convert_products
Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
bundle bundle exec rake test_app