4.2 to 4.3
This guide covers upgrading a 4.2 Spree application to Spree 4.3.
If you're on an older version than 4.1 please follow previous upgrade guides and perform those upgrades incrementally, eg.
This is the safest and recommended method.
gem 'spree', '>= 4.3'
If you used that gem in the past you need to remove it. Multi-Store is now incorporated into Spree core and you cannot use that gem anymore.
- 1.Remove
spree_multi_domain
from yourGemfile
- 2.Remove
//= require spree/frontend/spree_multi_domain
fromvendor/assets/javascripts/spree/frontend/all.js
- 3.Remove
//= require spree/backend/spree_multi_domain
fromvendor/assets/javascripts/spree/backend/all.js
Spree 4.3 includes TinyMCE 5 editor built-in. It's not recommended to use
spree_editor
gem anymore.Spree 4.3 includes a built-in CMS. It's not recommended to use
spree_static_content
Spree 4.3 was split into separate modules which aren't included in the
spree
package anymore.If you use the default Spree Storefront you need to add it to your
Gemfile
.Note: If you are using
spree_auth_devise
, make sure spree_frontend
precedes it in your Gemfile.gem 'spree_frontend', '>= 4.3'
If you use the default Spree Admin Panel you need to add it to your
Gemfile
. Make sure it comes before spree_auth_devise
.Note: If you are using
spree_auth_devise
, make sure spree_backend
precedes it in your Gemfile.gem 'spree_backend', '>= 4.3'
Transactional emails once part of
spree_core
were extracted into their own gem called spree_emails
. If you would like to still use this feature you'll need to include this new gem in your Gemfile
.gem 'spree_emails', '>= 4.3'
bundle update
bin/rails spree:install:migrations
bin/rails db:migrate
In your project create
app/assets/config/manifest.jss
file with contents://= link_tree ../images
//= link_tree ../javascripts
//= link_directory ../stylesheets .css
bundle update spree_gateway spree_auth_devise
If you've developed custom features for your Admin Panel, please replace
render partial: 'spree/shared/error_messages'
with
render partial: 'spree/admin/shared/error_messages'
To avoid errors and compatibility issues, please update all of your Spree extension gems to the newest versions which usually include fixes for the new Spree release, eg.
bundle update spree_related_products
If you have any questions or suggestions feel free to contact us via email or through Spree slack channels
Last modified 1yr ago