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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Simplify Store API product visibility scope (#13575)
Damian Legawiecf5c0df48425b
diff --git a/backend/engines/api/app/controllers/spree/api/v3/store/products_controller.rb b/backend/engines/api/app/controllers/spree/api/v3/store/products_controller.rbindex 935f01822b..0d276e3e2d 100644--- a/backend/engines/api/app/controllers/spree/api/v3/store/products_controller.rb+++ b/backend/engines/api/app/controllers/spree/api/v3/store/products_controller.rb@@ -31,7 +31,7 @@ module Spreeenddef scope- super.available(Time.current, Spree::Current.currency)+ super.active(Spree::Current.currency)end# these scopes are not automatically picked by ar_lazy_preload gem and we need to explicitly include them