on the checkout page when the promo code is applied, I need to update the item details on the basis of some calculation of promo code for
I have to show
final sale text dynamically when the discount is more than
50% on each item.
When a promo code is applied on checkout the page doesn't reload, it updated things dynamically.
How can I calculate the
final sale logic and update it after the
promo code is applied. like that