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
Remove line that strips out 'categories/' from permalink in sample data.
Matthew Kennedyc2cdf245d325
diff --git a/sample/db/samples/taxons.rb b/sample/db/samples/taxons.rbindex 5f29d1ddbc..5f7492173a 100644--- a/sample/db/samples/taxons.rb+++ b/sample/db/samples/taxons.rb@@ -17,7 +17,6 @@ categories_taxon = Spree::Taxon.where(name: I18n.t('spree.taxonomy_categories_naTAXON_NAMES.each do |taxon_name|taxon = categories_taxon.children.where(name: taxon_name).first_or_create!- taxon.permalink = taxon.permalink.gsub('categories/', '')taxon.taxonomy = categoriestaxon.save!end