Wrong discount calculation
-
Hi,
I have an issue with the discount calculation. I’m using your plugin with?Sale price as order discount for WooCommerceOn an order with 2 items on sale :
First one > regular price : 66,90€ Sale price : 60,22€ : On the order the item is saved without the discount
Second Item > Regular price 66,90€ Sale price : 63,55€ : On the order the price is saved with the discount. (see screenshot).So in woocommerce admin, the discount is shown only for the second one. (which is wrong).
https://www.bloque-volet.com/wp-content/uploads/Capture-decran-2025-02-03-a-09.48.08.pngOn the invoice pdf, each item line shows the right regular and sale price, but the global discount on the totals blocks, shows only one of them.
https://www.bloque-volet.com/wp-content/uploads/Capture-decran-2025-02-03-a-09.47.18.pngI guess this is because the sale price is not saved properly on the first item but I don’t know what I can do to fix this.
Regards.
Original thread : https://www.ads-software.com/support/topic/wrong-discount-calculation-2/#post-18278181
- You must be logged in to reply to this topic.