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.

Remove default_country_id from Storefront StoreSerializer (#11598)

Aleksandar Petrushev932fa4311ee7
diff --git a/api/app/serializers/spree/v2/storefront/store_serializer.rb b/api/app/serializers/spree/v2/storefront/store_serializer.rb
index 52bb23bd2a..ece9a71aef 100644
--- a/api/app/serializers/spree/v2/storefront/store_serializer.rb
+++ b/api/app/serializers/spree/v2/storefront/store_serializer.rb
@@ -4,9 +4,9 @@ module Spree
class StoreSerializer < BaseSerializer
set_type :store
- attributes :name, :url, :meta_description, :meta_keywords, :seo_title, :default_currency, :default, :supported_currencies, :facebook,
- :twitter, :instagram, :default_locale, :customer_support_email, :default_country_id, :description,
- :address, :contact_phone, :supported_locales, :settings
+ attributes :name, :url, :meta_description, :meta_keywords, :seo_title, :default_currency,
+ :default, :supported_currencies, :facebook, :twitter, :instagram, :default_locale, :customer_support_email,
+ :description, :address, :contact_phone, :supported_locales, :settings
has_many :menus
has_many :cms_pages