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
Fix broken carousel
Matthew Kennedy61e758509895
diff --git a/core/app/models/concerns/spree/product_scopes.rb b/core/app/models/concerns/spree/product_scopes.rbindex faf7bef2b2..b66a6a9b9e 100644--- a/core/app/models/concerns/spree/product_scopes.rb+++ b/core/app/models/concerns/spree/product_scopes.rb@@ -107,7 +107,8 @@ module Spree"MIN(#{Classification.table_name}.position) AS min_position"].join(', ')).- group(:id)+ group(:id).+ order(position: :asc)end# a scope that finds all products having property specified by name, object or iddiff --git a/frontend/app/controllers/spree/taxons_controller.rb b/frontend/app/controllers/spree/taxons_controller.rbindex 37251482fc..0797151684 100644--- a/frontend/app/controllers/spree/taxons_controller.rb+++ b/frontend/app/controllers/spree/taxons_controller.rb@@ -36,14 +36,7 @@ module Spreeenddef load_products- search_params = params.merge(- current_store: current_store,- taxon: @taxon,- include_images: true- )-- @searcher = build_searcher(search_params)- @products = @searcher.retrieve_products+ @products = Spree::Product.joins(:taxons).where(Taxon.table_name => { id: @taxon.id })enddef etagdiff --git a/frontend/app/views/spree/shared/_carousel_4_products.html.erb b/frontend/app/views/spree/shared/_carousel_4_products.html.erbindex 87d2e3ffc3..029d764d23 100644--- a/frontend/app/views/spree/shared/_carousel_4_products.html.erb+++ b/frontend/app/views/spree/shared/_carousel_4_products.html.erb@@ -1,4 +1,4 @@-<% cache [common_product_cache_keys, products&.maximum(:updated_at), id, products&.ids&.join(',')] do %>+<% cache [common_product_cache_keys, products&.maximum(:updated_at).to_i, id, products&.ids&.join(',')] do %><div id="<%= id %>-mobile" class="carousel slide d-md-none homepage-carousel" data-interval="false"><div class="carousel-inner"><% products.each_slice(2).with_index do |sliced_items, index| %>