Title: Wrong discount calculation
Last modified: January 30, 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-2/)
 * 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). 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. 
   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.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwrong-discount-calculation-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Darren Peyou](https://wordpress.org/support/users/dpeyou/)
 * (@dpeyou)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/wrong-discount-calculation-2/#post-18278181)
 * Hey [@antoinelrx](https://wordpress.org/support/users/antoinelrx/),
   It seems 
   you forgot to include the screenshots.
 * > I guess this is because the sale price is not saved properly on the first item
 * > So in woocommerce admin, the discount is shown only for the second one. (which
   > is wrong) .
 * Based on these comments, it sounds like you may need to post this issue in our
   other support forum here instead: [https://wordpress.org/support/plugin/sale-discount-for-woocommerce/](https://wordpress.org/support/plugin/sale-discount-for-woocommerce/).
 * To confirm this, it would be great to see the screenshots of your order backend
   screen (order details screen). This would need to include the totals section 
   and price column sections of the items. From those, you will more clearly show
   which things are wrong.
   [Uploading Images to WordPress.org – WP Overnight Documentation](https://docs.wpovernight.com/general/uploading-images-to-wordpress-org/)
 *  Thread Starter [antoinelrx](https://wordpress.org/support/users/antoinelrx/)
 * (@antoinelrx)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/wrong-discount-calculation-2/#post-18280949)
 * Hi,
 * Thank you I’ve created a new support ticket on your other plugin page here : 
   [https://wordpress.org/support/topic/wrong-discount-calculation-3/](https://wordpress.org/support/topic/wrong-discount-calculation-3/)
   
   The screenshots are there.
 * Regards 🙂

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

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

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

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