fix(storefront): BACK-675 make cart Shipping row label span the full totals width#2674
Merged
Conversation
…totals width The Shipping row's .cart-total-label was constrained to the narrow label column (~50%), which left the embedded shipping expectation message (.cart-shipping-expectation-message) wrapping inside that narrow column instead of using the same horizontal space as Discount and other totals rows. Sets the shipping-estimator .cart-total-label width to 100% so the label and its embedded expectation message stretch the full width of the parent <li>. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Meztimuro
approved these changes
Jun 4, 2026
bc-maksym-konohorov
approved these changes
Jun 4, 2026
…a cart item is backordered The default shipping expectation prompt was rendering on every cart page where show_default_shipping_expectation_prompt was enabled, even when no item required backorder shipping. The prompt is only informational for backordered items, so it now also requires at least one cart item with stock_position.quantity_backordered > 0. Scans cart.items before the Shipping row, sets a hasBackorderedItem flag via assignVar, and gates the prompt with that flag in addition to the existing inventory_settings.show_default_shipping_expectation_prompt check. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b72e5b5. Configure here.
# Conflicts: # CHANGELOG.md
…ckorder check Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
rtalvarez
approved these changes
Jun 8, 2026
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What?
The cart Shipping row's
.cart-total-labelwas constrained to the narrow label column (~50% of the row width). With multi-coupon UI enabled, the row's label embeds the shipping-estimator trigger and a.cart-shipping-expectation-messageparagraph that wraps inside that narrow column instead of using the same horizontal space as the Discount and other totals rows.This change scopes a
width: 100%rule to.cart-total-shipping-estimator .cart-total-label(inside.cart-total-enhanced) so the label — and the embedded expectation message — stretch across the full width of the parent<li>.Note: the Jira ticket also mentions matching the Discount row's font for the expectation message. That portion is not included in this PR — needs design clarification (the current
<p class="cart-shipping-expectation-message">already inherits the body font, so the specific font change being requested isn't clear from the description alone). Happy to follow up in a separate PR or commit once we have a reference.Files changed:
assets/scss/components/stencil/cart/_cart.scss— addedwidth: 100%for.cart-total-shipping-estimator .cart-total-labelwithin.cart-total-enhanced.CHANGELOG.md— Draft entry added.Requirements
Tickets / Documentation
Screenshots (if appropriate)
Test plan
cart.inventory_settings.show_default_shipping_expectation_prompt = true: open the cart page. The Shipping row label (containing "Shipping", the destination estimator trigger, and the expectation prompt) should span the full width of the totals row, matching the Discount row's width..cart-total-shipping-estimatorclass is applied to the<li>).🤖 Generated with Claude Code
Note
Low Risk
Scoped cart totals styling and template conditionals; legacy cart layout is unchanged when multi-coupon UI is off.
Overview
Cart Shipping row layout (multi-coupon UI): When enhanced cart totals are enabled, the Shipping row label (including the estimator trigger and shipping expectation copy) now spans the full width of the totals row via
width: 100%on.cart-total-shipping-estimator .cart-total-label, so the expectation message is not squeezed into the narrow label column.Shipping expectation prompt gating: The default shipping expectation message in cart totals is shown only when the inventory setting is on and the cart has at least one backordered line item (including pick-list bundled items with
quantity_backordered). Previously it appeared whenever the setting was enabled.Reviewed by Cursor Bugbot for commit a5ba67b. Bugbot is set up for automated code reviews on this repo. Configure here.