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.

Fix PLP searcher (spree-multi-domain)

Tomek Urban4e222a123e2b
diff --git a/frontend/app/controllers/spree/products_controller.rb b/frontend/app/controllers/spree/products_controller.rb
index b950828a72..ce4c951f1b 100644
--- a/frontend/app/controllers/spree/products_controller.rb
+++ b/frontend/app/controllers/spree/products_controller.rb
@@ -9,7 +9,7 @@ module Spree
respond_to :html
def index
- @searcher = build_searcher(params.merge(include_images: true))
+ @searcher = build_searcher(params.merge(include_images: true, current_store_id: current_store.id))
@products = @searcher.retrieve_products
last_modified = @products.maximum(:updated_at)&.utc if @products.respond_to?(:maximum)