Bug Report
Product discounts are sometimes not displayed in the cart (both drawer and page), causing confusion when customers see lower prices without understanding why. The discount becomes visible only at checkout.
Problem
When a product with a discount is added to cart:
- The product shows a reduced price in cart
- No discount indicator or explanation is shown
- Customer doesn't know why the price is lower
- At checkout, discount line appears (e.g., "30% off")
- This creates confusion and distrust
Current Behavior
Cart Display:
Product Name
$70.00 ← Lower price shown, but no explanation
Checkout Display:
Product Name $100.00
- 30% discount -$30.00
-------
Subtotal $70.00
Expected Behavior
Cart Display Should Show:
Product Name
$100.00 $70.00 ← Show both original and discounted price
30% off applied ← Show discount label/badge
OR
Product Name
$70.00
Discount: -$30.00 (30% off) ← Show discount details
Root Cause Analysis
The discount logic may be missing or incomplete in the cart UI:
Possible Issues:
- Cart data contains discount info, but UI doesn't render it
- Discount data is not included in cart query/response
- Discount component exists but has conditional logic that's not triggered
- Line item discount allocations are not being fetched
Steps to Reproduce
- Create a product with a discount (e.g., 30% off)
- Add the product to cart
- Open cart drawer
- Observe: Lower price is shown, but no discount explanation
- Navigate to cart page
- Observe: Same issue - no discount display
- Proceed to checkout
- Observe: Discount now appears as a line item
Side Quest: Check Gift Card Display
Verify if the same problem affects gift cards:
- Do gift cards show properly when applied?
- Is the gift card amount and code displayed in cart?
- Does the cart show the reduced total with gift card breakdown?
Test scenarios:
Impact
- Customer confusion: Users don't understand why prices are lower
- Trust issues: Unexpected price changes without explanation
- Abandoned carts: Customers may think there's an error
- Support burden: Increased customer service inquiries
Technical Investigation Needed
-
Check cart query/fragment for discount fields:
discountAllocations
compareAtPrice
discountedPrice
-
Review cart line item component:
- Does it render discount information?
- Are discount fields being passed to the component?
-
Check cart data structure:
lines {
merchandise {
product {
compareAtPrice
}
price
}
discountAllocations {
allocatedAmount {
amount
}
discountApplication {
value
}
}
}
-
Verify gift card query includes necessary fields
Expected Fix
Cart Line Item Should Display:
- Original price (if discounted)
- Discounted price (current price)
- Discount percentage or amount
- Discount badge or label
- Clear visual distinction (strikethrough, color, etc.)
For Gift Cards:
- Gift card code
- Gift card amount
- Applied amount
- Remaining balance (if partial)
Acceptance Criteria
Bug Report
Product discounts are sometimes not displayed in the cart (both drawer and page), causing confusion when customers see lower prices without understanding why. The discount becomes visible only at checkout.
Problem
When a product with a discount is added to cart:
Current Behavior
Cart Display:
Checkout Display:
Expected Behavior
Cart Display Should Show:
OR
Root Cause Analysis
The discount logic may be missing or incomplete in the cart UI:
Possible Issues:
Steps to Reproduce
Side Quest: Check Gift Card Display
Verify if the same problem affects gift cards:
Test scenarios:
Impact
Technical Investigation Needed
Check cart query/fragment for discount fields:
discountAllocationscompareAtPricediscountedPriceReview cart line item component:
Check cart data structure:
Verify gift card query includes necessary fields
Expected Fix
Cart Line Item Should Display:
For Gift Cards:
Acceptance Criteria