Product Icon

WooCommerce

Sell online with the flexible, customizable eCommerce platform designed to grow with your business. From your first sale to millions in revenue, Woo is with you. See why merchants trust us to power 3.4 million online stores.

Line-item discount calculation vs subtotal discount (Croatian standard)

Hello,

I am using plugin Extended Coupon Features for WooCommerce and I would like to report a discount calculation issue that is important for accounting compliance in Croatia. I have contacted plugin developer and he said that discounts are calculated by the WooCommerce plugin itself. So it’s best to contact the WooCommerce support for this.

In Croatia, the standard and commonly accepted accounting practice is that percentage discounts are calculated on the unit price (line item), rounded to two decimals, and only then multiplied by the quantity. This is how invoices are legally issued and how most invoicing / fiscalization software works.

However, WooCommerce (and currently the plugin behavior) calculates percentage discounts on the subtotal (unit price Ă— quantity, then discount), which leads to rounding differences.

Example:

Product unit price: 3.04 €
Quantity: 10 pcs
Discount: 10 %

WooCommerce calculation (subtotal-based):
3.04 × 10 = 30.40 €
10 % discount = 3.04 €
Total = 27.36 €

Croatian standard (line-item-based):
3.04 € − 10 % = 2.74 € (rounded to 2 decimals)
2.74 × 10 = 27.40 €

This results in a discrepancy of 0.04 €, which causes problems because:

WooCommerce shows one total to the customer (cart, checkout, emails)
The invoice generated in a Croatian invoicing / fiscalization system shows a different total
This leads to confusion for customers and accounting inconsistencies
Question / Feature request

Is it possible to add an option to:

Calculate percentage discounts per line item
Apply rounding on the unit price (2 decimals)
Then multiply by quantity
In other words, to support line-item discount calculation instead of subtotal-based discount calculation.

I understand that both methods are mathematically correct, but line-item discounting is required in some countries (including Croatia) for accounting and invoicing consistency.

Thank you very much for your time.
I would appreciate your feedback on whether this is possible or planned.

Best regards,

Author

Matea Granat

Current Status

Open

Last updated: January 15, 2026

0 comments

Log in to comment on this feature request.