diff --git a/CHANGELOG.md b/CHANGELOG.md index a30bc4f58e..6afa13b72d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,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}}
- {{shipping_cost.formatted}} + + {{shipping_cost.formatted}} + {{#if shipping_cost_discounted}} + {{shipping_cost_discounted.formatted}} + {{/if}} +
{{else}}