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.

Assign payment methods to all stores

Damian Legawiec5d49f788c533
diff --git a/sample/db/samples/stores.rb b/sample/db/samples/stores.rb
index 5ec4ed28e8..f66a583e36 100644
--- a/sample/db/samples/stores.rb
+++ b/sample/db/samples/stores.rb
@@ -33,4 +33,6 @@ Spree::Price.where(currency: 'USD').each do |price|
end
end
-Spree::Config[:show_store_selector] = true
+Spree::PaymentMethod.all.each do |payment_method|
+ payment_method.stores = Spree::Store.all
+end