Title: Wrong discount calculation
Last modified: February 3, 2025

---

# Wrong discount calculation

 *  Resolved [antoinelrx](https://wordpress.org/support/users/antoinelrx/)
 * (@antoinelrx)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/wrong-discount-calculation-3/)
 * Hi, 
   I have an issue with the discount calculation. I’m using your plugin with**
   Sale price as order discount for WooCommerce**
 * On 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 discountSecond 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.png](https://www.bloque-volet.com/wp-content/uploads/Capture-decran-2025-02-03-a-09.48.08.png)
 * On 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.png](https://www.bloque-volet.com/wp-content/uploads/Capture-decran-2025-02-03-a-09.47.18.png)
 * I 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://wordpress.org/support/topic/wrong-discount-calculation-2/#post-18278181](https://wordpress.org/support/topic/wrong-discount-calculation-2/#post-18278181)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/wrong-discount-calculation-3/#post-18304228)
 * Hi [@antoinelrx](https://wordpress.org/support/users/antoinelrx/),
 * Since you have the Premium Templates extension, and as providing help for paid
   plugins is forbidden in these forums ([see](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products)),
   please contact us at [support@wpovernight.com](https://wordpress.org/support/topic/wrong-discount-calculation-3/support@wpovernight.com?output_format=md),
   so we can continue with the help there 😉
 *  Thread Starter [antoinelrx](https://wordpress.org/support/users/antoinelrx/)
 * (@antoinelrx)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/wrong-discount-calculation-3/#post-18312613)
 * HI [@yordansoares](https://wordpress.org/support/users/yordansoares/) 
   I’ve sent
   you the same message on your email but I don’t understand. The issue has nothing
   to do with the premium template plugin since the issue appears directly in the
   woocommerce order, before any invoice is created. Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wrong discount calculation’ is closed to new replies.

 * ![](https://ps.w.org/sale-discount-for-woocommerce/assets/icon-256x256.png?rev
   =2646024)
 * [Sale price as order discount for WooCommerce](https://wordpress.org/plugins/sale-discount-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sale-discount-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sale-discount-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/sale-discount-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sale-discount-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sale-discount-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [antoinelrx](https://wordpress.org/support/users/antoinelrx/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/wrong-discount-calculation-3/#post-18312613)
 * Status: resolved