Story 53.1. Apply coupon for the product

General info

"Total" calculation in WooC Order using a voucher with usage restriction (specific product)

Current scenario: example order #67698:

A user reserves a bag and gets a discount code from the seller.
The user then buys the bag, but adds a LCK to the order and uses the voucher code.
In the WooC Order, the coupon limited to the bag only ALSO limits the price of the LCK. It shouldn’t to that.

How it should be:

A coupon limited for a specific product (like our reservation coupons) should only deduct the sold price/total of the specific product in the WooC Order. It should not deduct the “price sold”/total of any products added to the order.

In this order, the LCK Total/price sold should be 48€ instead, and the Hermes Bag Total/price sold €13000 (1050€ voucher deducted from the price).

Screenshot discount code limited to a product:https://app.box.com/s/05bis3fljjc610ykw0nbk4f5lr0ktadi

Screenshot of wrong discount calculation in the order: https://app.box.com/s/joi4lwhmnw1i0nvggq209nuthpdmoan5

User story

As a website user

I want to buy the products with a discount

So that helps to get some products cheaper

Visual design

Acceptance criteria

01

Given: order #67698
with price 14050€

When: apply the coupon for the product with a discount 1050€
AND add to the cart LCK 48€

Then: total price: product 13000€ + LCK 48€

image-20240509-130756.png

Comments

Leave a Reply