thanks can you please share side cart code
Topic summary
A user seeks to display total savings in their cart on the Prestige Theme but encounters issues with various Liquid variables like {{ total_saving }} and {{ cart.compare_at_price }}.
Solution Provided:
A community member shares working code that:
- Loops through cart items
- Calculates savings by comparing
compare_at_priceto actual price - Multiplies by quantity and accumulates total savings
- Displays the result with
{{ total_saving }}
Implementation Details:
The code uses Liquid logic to check if compare_at_price exceeds the variant price, then calculates and displays accumulated savings.
Status:
The original poster confirms the solution works. Several other users later request help implementing the same feature, asking where to paste the code and sharing their store URLs for assistance. The discussion remains active with ongoing support requests.
1 Like