
Ecreate Discount Price for WooCommerce – Show Total Savings on Cart and Checkout
by Ecreate Infotech
WooCommerce shows the old price next to the sale price, but it never tells the customer what they have saved in total. That figure is the one that closes the sale, and it is the one missing from the checkout.
Ecreate Discount Price adds it. A single row under the totals, on the cart and on the checkout, in your own wording:
You saved $80.00
It counts the difference between the old price and the sale price on every item in the basket, and, if you want, the coupons the customer has used as well.
Works on the blocks and on the classic pages
WooCommerce now uses the Cart and Checkout blocks by default, and most plugins written for the old shortcode pages quietly do nothing there. This one adds the saving to both: the figure is worked out in PHP and handed to the blocks through the Store API, so the number is always the one your shop calculated.
On the classic shortcode pages it also puts the old price beside the sale price in the price column and the line total, which those pages do not do on their own.
It carries on after the sale
The saving is written onto the order when it is placed, then shown again on the confirmation page, under My Account and in the order email. Because it is stored rather than worked out again later, it still reads correctly months afterwards, when the sale has long ended and the prices have changed.
What you can change
- The wording, such as “You saved”, “Your discount” or “Total savings”, with separate wording for the order.
- Whether it appears on the cart, the checkout, or both.
- A percentage as well as the amount, so it reads “$80.00 (40%)”.
- A smallest saving worth mentioning, so a few pence is not advertised.
- Whether coupons count towards the saving, or only sale prices.
- A notice across the top of the cart, for shops that want it noticed rather than tucked into the totals.
- The saving in the cart drawer, under the classic mini cart.
- On the order confirmation, under My Account and in the customer email.
- On classic pages, whether the old price is shown in the price column and the line total.
- Anywhere at all with the
[ecdrp_saved]shortcode, with your own wording.
Built properly
- No settings to wrestle with: switch it on and the row appears.
- Nothing is stored about your customers, and nothing is sent anywhere.
- Compatible with High Performance Order Storage and the Cart and Checkout blocks.
- The saving can be changed by other code through the
ecdrp_total_savedfilter.
Screenshots

The saving under the totals on the Cart block.

The saving on the Checkout block.

The classic cart, with the old price beside the sale price and the saving row.

The settings page.