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
Utilize `Order#item_count` to reduse number of SQL queries (#13085)
Damian Legawiecd652c95913d4
diff --git a/storefront/app/views/themes/default/spree/orders/_summary.html.erb b/storefront/app/views/themes/default/spree/orders/_summary.html.erbindex 1fee0c0ca2..09c8aa3e64 100644--- a/storefront/app/views/themes/default/spree/orders/_summary.html.erb+++ b/storefront/app/views/themes/default/spree/orders/_summary.html.erb@@ -1,5 +1,5 @@<%= turbo_frame_tag :cart_summary do %>- <% if order.line_items.any? %>+ <% if order.item_count.positive? %><div class="cart-summary-container p-4"><p class="text-center lg:text-right text-sm mb-3"><%= Spree.t('storefront.cart.shipping_and_taxes_calculated_at_checkout') %>