[Critical] Price calculation fails in Woo Sale Report
-
I’m using Woo Discount Rules 2.3.9 with WooCommerce 5.9.0
In the plugin setting, section Cart, I set “Apply cart discount as Fee“. I understand that this config will calculate the discount against the cart total only (and the price of each product in the cart will be intact).
Everything went smooth on Black Friday, my customers are happy. However, when I checked WooCommerce’s Product Sales Report to see my stats, it showed weird numbers. The problem is stats are bigger than my real earnings.
After a few investigations, I found that WooCommerce did not take the discounted amount into report calculation. For example, a cart has 2 products with the total is $200:
- Software #1: $100
- Software #2: $100
- —————————
- Subtotal: $200
- Discount 30%: -$60
- Total: $140
The client paid $140 and I received $140. However, the report shows $200 which is the price before discount.
I can change the setting to “Apply cart discount as Coupon” which will calculate the discount price directly in each product’s price and correct the WooCommerce report. However, it only affects future orders.
The questions are:
- Do you have an option or setting that subtract the discount directly into product’s price (the same mechanism as “Coupon”)
- How can I get the correct numbers for my completed orders?</strong
PS: I have a lot of new orders during BF and I don’t want to use excel to manually calculate the sale for each one
- The topic ‘[Critical] Price calculation fails in Woo Sale Report’ is closed to new replies.