A Shopify store owner needs help displaying compare-at prices (original prices) in the shopping cart, as discounts are only visible on product pages but disappear during checkout.
Solution Provided:
Replace existing price display code in sections/main-cart-items.liquid with conditional logic that shows both compare-at price (strikethrough) and discounted price
Add CSS styling to assets/component-cart-items.css for visual formatting (strikethrough for original price, colored final price)
Original solution used red (#FF1111) for sale price, later customized to green (#03b77a) per user preference
Current Status:
Initial solution worked for the original poster
Multiple users report the code doesn’t work for their stores, suggesting theme-specific compatibility issues
One user mentions using the “Zest” theme (paid), another uses “Sense” theme
The helper offered direct inbox support for troubleshooting theme-specific implementations
Discussion remains open with unresolved cases for different themes
Summarized with AI on October 29.
AI used: claude-sonnet-4-5-20250929.
Hi, When I add a product to my shopping cart, how do I make the compare price visible. Right now when I add the following product, it will only show the final price in the shopping cart but I want the customer to see the discount theyre getting. On the product page the discount is visible, but shopping cart not
Hey, i currently have the same problem, the compare at price works for the product page but when i add it to the cart it does not show the compare price and neither in the checkout. I have tried with the method above but it did not work, and i also have the option in markets not selected. i am using the sense theme