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
Adds ability to multi-vendorize the app (#11579)
Damian Legawiec2bda793d1155
diff --git a/core/app/models/spree/order.rb b/core/app/models/spree/order.rbindex ed47aee22d..7681fee311 100644--- a/core/app/models/spree/order.rb+++ b/core/app/models/spree/order.rb@@ -31,6 +31,9 @@ module Spreeif defined?(Spree::Security::Orders)include Spree::Security::Ordersend+ if defined?(Spree::VendorConcern)+ include Spree::VendorConcern+ endMEMOIZED_METHODS = %w(tax_zone)diff --git a/core/app/models/spree/product.rb b/core/app/models/spree/product.rbindex be5087f7d2..853e731f97 100644--- a/core/app/models/spree/product.rb+++ b/core/app/models/spree/product.rb@@ -28,6 +28,9 @@ module Spreeif defined?(Spree::Webhooks)include Spree::Webhooks::HasWebhooksend+ if defined?(Spree::VendorConcern)+ include Spree::VendorConcern+ endMEMOIZED_METHODS = %w(total_on_hand taxonomy_ids taxon_and_ancestors categorydefault_variant_id tax_category default_variantdiff --git a/core/app/models/spree/shipping_method.rb b/core/app/models/spree/shipping_method.rbindex 51a79ddca9..74f5dacc28 100644--- a/core/app/models/spree/shipping_method.rb+++ b/core/app/models/spree/shipping_method.rb@@ -6,6 +6,9 @@ module Spreeif defined?(Spree::Webhooks)include Spree::Webhooks::HasWebhooksend+ if defined?(Spree::VendorConcern)+ include Spree::VendorConcern+ endDISPLAY = [:both, :front_end, :back_end]diff --git a/core/app/models/spree/stock_location.rb b/core/app/models/spree/stock_location.rbindex 95c890f5eb..4113c7b885 100644--- a/core/app/models/spree/stock_location.rb+++ b/core/app/models/spree/stock_location.rb@@ -7,6 +7,9 @@ module Spreeif defined?(Spree::Security::StockLocations)include Spree::Security::StockLocationsend+ if defined?(Spree::VendorConcern)+ include Spree::VendorConcern+ endhas_many :shipmentshas_many :stock_items, dependent: :delete_all, inverse_of: :stock_location