Wix store : How to display total discount in checkout page ?

In wix store, I have applied discount for many products. When users add some of these products in cart and proceed for checkout, I want to display how much money they saved.

  1. Get the sum of actual product price

  2. Get the sum of discounted price

  3. Find the difference

  4. Display it like "You saved : "

Thanks for your help.

Hi Mayon, I’ll have our Product Expert look into this for you.

Hi Mayon,

You can checkout the Velo API,

https://www.wix.com/velo/reference/wix-stores/getcurrentcart

This event is triggered when the cart page is loaded.

https://www.wix.com/velo/reference/wix-stores/oncartchanged

This event is triggered when the cart is updated.

So, if user apply a coupon on cart page, you can show the banner to make user excited :slight_smile:

Thanks for your reply. But this helps when we use coupon right ?
my requirement is different from this.
Discount applied in product level not with coupon code.
So product will be displayed in website with discounted price and real price is crossed.

Now when user add this product in cart, proceed to checkout, I want to display how much total discount they’ve got.

Please find the screenshot here. with this example, product real price : 257
price after applied discount : 231
While checkout user should see a message that “You saved ₹ 26”