From fdee4bbc9571b2bf13cd2666dc01465bcdc68cef Mon Sep 17 00:00:00 2001 From: tblivet Date: Fri, 12 Dec 2025 18:45:46 +0100 Subject: [PATCH] fix: min qty alert message on cart --- src/js/components/useQuantityInput.ts | 6 +++--- templates/checkout/_partials/cart-detailed-product-line.tpl | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/js/components/useQuantityInput.ts b/src/js/components/useQuantityInput.ts index 204ebf5a3..db03a1ec9 100644 --- a/src/js/components/useQuantityInput.ts +++ b/src/js/components/useQuantityInput.ts @@ -168,11 +168,11 @@ const updateQuantity = async (qtyInputGroup: Theme.QuantityInput.InputGroup, cha if (data.hasError) { const errors = data.errors as Array; - const productAlertSelector = resetAlertContainer(qtyInput); + const cartAlertSelector = cartSelectorMap.alertPlaceholder; - if (errors && productAlertSelector) { + if (errors && cartAlertSelector) { errors.forEach((error: string) => { - useAlert(error, {type: 'danger', selector: productAlertSelector}).show(); + useAlert(error, {type: 'danger', selector: cartAlertSelector}).show(); }); } } else { diff --git a/templates/checkout/_partials/cart-detailed-product-line.tpl b/templates/checkout/_partials/cart-detailed-product-line.tpl index 8e3c610d9..e4fdb2885 100644 --- a/templates/checkout/_partials/cart-detailed-product-line.tpl +++ b/templates/checkout/_partials/cart-detailed-product-line.tpl @@ -4,9 +4,6 @@ *}