跳到内容

Ecreate Discount Price for WooCommerce – Show Total Savings on Cart and Checkout

v1.1.0

Ecreate Infotech · 2020年11月6日 上架

Show customers how much they are saving. Adds a "You saved" total to the WooCommerce cart and checkout, on both the blocks and the classic pages.

正在使用
10+
评分
暂无
累计下载
1,081
最近更新
2026年11月26日
需要 WordPress 5.9+已测试到 7.2PHP 7.2+

截图

The saving under the totals on the Cart block.
The saving under the totals on the Cart block.
The saving on the Checkout block.
The saving on the Checkout block.
The classic cart, with the old price beside the sale price and the saving row.
The classic cart, with the old price beside the sale price and the saving row.
The settings page.
The settings page.

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_saved filter.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums