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 sample data for menus creating Containers not Links for promo items.

Matthew Kennedybb02420337fe
diff --git a/sample/db/samples/menu_items.rb b/sample/db/samples/menu_items.rb
index 7a2da3771b..a4d7dffb29 100644
--- a/sample/db/samples/menu_items.rb
+++ b/sample/db/samples/menu_items.rb
@@ -219,7 +219,7 @@ MENUS.each do |menu|
name: promo_a_name,
subtitle: promo_a_subtitle,
linked_resource_type: 'Spree::Taxon',
- item_type: 'Container',
+ item_type: 'Link',
menu_id: menu,
parent_id: promo
).first_or_create!
@@ -230,7 +230,7 @@ MENUS.each do |menu|
name: promo_b_name,
subtitle: promo_b_subtitle,
linked_resource_type: 'Spree::Taxon',
- item_type: 'Container',
+ item_type: 'Link',
menu_id: menu,
parent_id: promo
).first_or_create!