Sale price as order discount for WooCommerce

Stores the regular price of products in the order data so that the customer sees…

Author:WP Overnight (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:6.5
Plugin version:1.1.5
Added to WordPress repository:16-12-2021
Last updated:20-03-2024
Rating, %:100
Rated by:1
Plugin URI:https://wordpress.org/plugins/sale-discount-f...
Total downloads:2 121
Active installs:100+
plugin download
Click to start download

When you set a sale price for a product in WooCommerce, or when the price of a product is modified by 3rd party plugins, WooCommerce does not store this price (or discount) in the order data by default. As a result, once the order is placed, the customer doesn’t see the discount they got in the email or invoice they receive, and the admin doesn’t see this in the order details either.
This is because WooCommerce only considers coupon discounts as discounts, whereas a change in price (a sale price or a programmatically modified price) is simply regarded as the actual price of the product.

This plugin addresses that issue by copying the ‘regular price’ from the product data as soon as the order is created (either in the backend or via the checkout). This price is then set as the item’s “pre-discount” price (leaving the actual price paid untouched). The result is that WooCommerce will show this the same way it shows coupon discounts.


FAQ
ChangeLog