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.

Merge pull request #11019 from spree/fix/re-use-product-filters-in-finder

Damian Legawiec0f18f1daea54
diff --cc core/app/finders/spree/products/find.rb
index b3bb71b937,45a82e256b..cd72376980
--- a/core/app/finders/spree/products/find.rb
+++ b/core/app/finders/spree/products/find.rb
@@@ -225,15 -219,9 +219,15 @@@ module Spre
end
def include_discontinued(products)
- discontinued ? products : products.available
+ discontinued ? products : products.active(currency)
end
+ def map_prices(prices)
+ prices.map do |price|
+ price == 'Infinity' ? Float::INFINITY : price.to_f
+ end
+ end
+
def taxon_ids(taxons_ids)
return if taxons_ids.nil? || taxons_ids.to_s.blank?