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.

Always use current_currency

Damian Legawiec436e6ce9b2fa
diff --git a/core/app/finders/spree/products/find.rb b/core/app/finders/spree/products/find.rb
index 4a227725d3..c2f2ccfe4f 100644
--- a/core/app/finders/spree/products/find.rb
+++ b/core/app/finders/spree/products/find.rb
@@ -7,7 +7,7 @@ module Spree
@ids = String(params.dig(:filter, :ids)).split(',')
@skus = String(params.dig(:filter, :skus)).split(',')
@price = String(params.dig(:filter, :price)).split(',').map(&:to_f)
- @currency = params[:currency] || current_currency
+ @currency = current_currency
@taxons = taxon_ids(params.dig(:filter, :taxons))
@concat_taxons = taxon_ids(params.dig(:filter, :concat_taxons))
@name = params.dig(:filter, :name)