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.

Mark some properties from seed filterable

Damian Legawiec3eef18a33c92
diff --git a/sample/db/samples/properties.rb b/sample/db/samples/properties.rb
index 06f3012859..cd4fd5156b 100644
--- a/sample/db/samples/properties.rb
+++ b/sample/db/samples/properties.rb
@@ -16,3 +16,5 @@ properties = {
properties.each do |name, presentation|
Spree::Property.where(name: name, presentation: presentation).first_or_create!
end
+
+Spree::Property.where(name: %w[brand manufacturer]).update(filterable: true)