From f3b4e6eaa605b6eae32a6bf3114c451fa0bb15fb Mon Sep 17 00:00:00 2001 From: valentindellangela Date: Mon, 14 Oct 2024 10:08:02 +1100 Subject: [PATCH] feat(checkout): CHECKOUT-8516 Add Shipping Discount to Cart Page --- CHANGELOG.md | 1 + assets/scss/components/stencil/cart/_cart.scss | 4 ++++ templates/components/cart/shipping-estimator.html | 7 ++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1334b8cec..db67e9a04e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Address deprecated jQuery methods [#2466](https://github.com/bigcommerce/cornerstone/pull/2466) - Load other font weights and styles for the body-font [#2396](https://github.com/bigcommerce/cornerstone/pull/2396) - Stored XSS within company address field [#2485](https://github.com/bigcommerce/cornerstone/pull/2485) +- Display shipping discount on the cart page [#2490](https://github.com/bigcommerce/cornerstone/pull/2490) ## 6.14.0 (05-15-2024) - Account.php is inside of a list item [#2457](https://github.com/bigcommerce/cornerstone/pull/2457) diff --git a/assets/scss/components/stencil/cart/_cart.scss b/assets/scss/components/stencil/cart/_cart.scss index 242df753f7..c1ba28f0a3 100644 --- a/assets/scss/components/stencil/cart/_cart.scss +++ b/assets/scss/components/stencil/cart/_cart.scss @@ -679,3 +679,7 @@ $card-preview-zoom-bottom-offset: 6rem; padding-bottom: spacing("single"); padding-right: spacing("single"); } + +.shipping-estimate-value #shipping-cost-discounted { + margin-left: spacing("quarter"); +} diff --git a/templates/components/cart/shipping-estimator.html b/templates/components/cart/shipping-estimator.html index e1e9655b2f..ef87c77957 100644 --- a/templates/components/cart/shipping-estimator.html +++ b/templates/components/cart/shipping-estimator.html @@ -4,7 +4,12 @@ {{#if shipping_cost}}
{{else}}