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
Add ability to use scoped slugs for products (#12169)
Damian Legawiec7b45f18f35b9
diff --git a/core/app/models/spree/product.rb b/core/app/models/spree/product.rbindex 921661b197..0a6555e49c 100644--- a/core/app/models/spree/product.rb+++ b/core/app/models/spree/product.rb@@ -61,7 +61,7 @@ module Spreeendend- friendly_id :slug_candidates, use: [:history, :mobility]+ friendly_id :slug_candidates, use: [:history, :scoped, :mobility], scope: spree_base_uniqueness_scopeacts_as_paranoidauto_strip_attributes :name