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.

Fixed TaxonList page model

Damian Legawiecabe01d585db6
diff --git a/core/app/models/spree/pages/taxon_list.rb b/core/app/models/spree/pages/taxon_list.rb
index 376f6e4200..b85ee6d53c 100644
--- a/core/app/models/spree/pages/taxon_list.rb
+++ b/core/app/models/spree/pages/taxon_list.rb
@@ -3,6 +3,7 @@ module Spree
class TaxonList < Spree::Page
DISPLAY_NAME = Spree.t(:taxonomy_brands_name).freeze
+
def url
return unless url_exists?(:taxonomy_path)
@@ -27,8 +28,9 @@ module Spree
DISPLAY_NAME
end
+ # FIXME: this should use preferences
def taxonomy_id
- settings['taxonomy_id'].presence || store.taxonomies.first&.id
+ store.taxonomies.first&.id
end
def taxonomy