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
Include translations when fetching product breadcrumb taxons for json-ld (#13450)
m.b.6b00e96e17bf
diff --git a/storefront/app/helpers/spree/products_helper.rb b/storefront/app/helpers/spree/products_helper.rbindex 2a6f6cf3d1..4070d87125 100644--- a/storefront/app/helpers/spree/products_helper.rb+++ b/storefront/app/helpers/spree/products_helper.rb@@ -176,7 +176,7 @@ module Spreereturn Spree::Taxon.none if product.main_taxon.blank?# using find_all as we already iterate over the taxons in #product_json_ld_breadcrumbs- product.main_taxon.self_and_ancestors.find_all { |taxon| taxon.depth != 0 }+ product.main_taxon.self_and_ancestors.includes(:translations).find_all { |taxon| taxon.depth != 0 }end# Generates the JSON-LD elements for a list of products.