Update subtotal with discount in shopping cart

Hello everyone, I would appreciate the help of someone who can guide me in this matter:

I have two values to show in my store’s shopping cart:
-1 subtotal of the products that the customer has chosen
-2 subtotal of the products chosen with a discount for being a insider customer.

In the first tag I am showing the subtotal with the

tag, but my second tag I have not been able to apply a discount with the value that I get in {{cart.total_price}} since it is not updated in the page.

How can I get the cart.total_price value to update in real time (every time the customer chooses an item or removes it from their shopping cart)?

This is an advanced customization and varies wildly by theme, you’ll have to modify the themes javascript and depending on theme it’s cart drawer template.

Contact me with store and logic details for pricing this customization, either by PM or my email in my forum signature.