Impulse theme, ajax cart drawer, show total savings next to subtotal

Topic summary

Goal: Add a live “You saved $X” message under Subtotal in the Impulse theme’s AJAX slide-out cart, updating instantly when item quantities change. Also request for the cart icon’s item count to update live via AJAX.

Requirements: Works without page refresh; compatible with Impulse AJAX cart drawer; needs a solution (user comfortable with HTML/Liquid, not with AJAX).

Responses: One reply states the request is complex and specific code can’t be provided just by inspecting the theme; suggests using an app or hiring a developer with AJAX expertise.

New info/resources: OP found that the cart counter can auto-update via AJAX using Liquid Ajax Cart (https://liquid-ajax-cart.js.org) and a referenced YouTube tutorial. These links are central to the discussion.

Status/outstanding: Cart counter AJAX update appears solvable with the shared library. The “You saved $X” dynamic calculation and display under Subtotal remains unresolved; no working script was provided. Open questions: how to compute total savings per cart (compare line-item price vs. compare-at price/discounts) and update the drawer UI on quantity changes using the theme’s AJAX events.

Resolution: Ongoing; no final code or implementation provided.

Summarized with AI on February 11. AI used: gpt-5.

In the slide cart - ajax on the impulse theme

https://themes.shopify.com/themes/impulse/styles/modern

In the ajax slide in cart, i want to have “you saved $XXX” under subtotal. It needs to work and update if they change the qty btn in the cart, not just on page refresh. I know html but ajax is confusion. Please show the i need to add.

Also, is it possible to have the number of items in the cart change live / ajax on the cart symbol - top right ?

again liquid and html is fine, but it needs to change live / ajax. Need the

thank you very much for your help

Hi @mrsingh1 ,

Your query is complex. We can’t give an AJEX code just by looking at the theme. You may try looking for an app solution or hire a developer with AJEX expertise.

Cart counter can be ajax auto update see

https://www.youtube.com/watch?v=5Dl9Wsmq130

which references

https://liquid-ajax-cart.js.org

Super thank you to

Evgeniy Mukhamedjanov

the “you have saved $X” ajax cart is still hard work, pls help ?