0

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 final sale

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

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.