Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Added documentation how to remove Multi Currency when moving to Spree 4.2

Damian Legawiec871001d157ec
diff --git a/guides/src/content/developer/upgrades/four-dot-one-to-four-dot-two.md b/guides/src/content/developer/upgrades/four-dot-one-to-four-dot-two.md
index 5f3ba8e02a..8e98d652b5 100644
--- a/guides/src/content/developer/upgrades/four-dot-one-to-four-dot-two.md
+++ b/guides/src/content/developer/upgrades/four-dot-one-to-four-dot-two.md
@@ -24,6 +24,19 @@ gem 'spree_gateway', '~> 3.9'
gem 'spree_i18n', '~> 5.0', github: 'spree-contrib/spree_i18n', branch: 'master'
```
+## Remove SpreeMultiCurrency (optional)
+
+If you used that gem in the past you need to remove. Multi Currency is now incorporated into Spree core and you cannot use that gem anymore.
+
+1. Remove `spree_multi_currency` from your `Gemfile`
+2. Remove these preferences from your Spree initializer (`config/initializers/spree.rb`):
+
+ * `allow_currency_change`
+ * `show_currency_selector`
+ * `supported_currencies`
+3. Remove `//= require spree/frontend/spree_multi_currency` from `vendor/assets/javascripts/spree/frontend/all.js`
+4. Remove `//= require spree/backend/spree_multi_currency` from `vendor/assets/javascripts/spree/backend/all.js`
+
## Update gems
```bash