Linux 软件免费装
Banner图

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

开发者 ecreateinfotech
gb071
更新时间 2026年10月3日 13:33
PHP版本: 7.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

checkout woocommerce discount sale price you saved cart savings

下载

1.0.0 1.1.0

详情介绍:

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 Built properly

安装:

  1. In your WordPress admin, go to Plugins, then Add New, and search for Ecreate Discount Price.
  2. Click Install Now, then Activate. WooCommerce must be active.
  3. Go to WooCommerce, then Discount Price, to choose the wording and where the saving appears.

屏幕截图:

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

升级注意事项:

1.1.0 Works with the Cart and Checkout blocks, adds a total saving row, and fixes a security problem in the settings screen. Your settings are kept.

常见问题:

How do I show how much a customer saved in WooCommerce?

Activate the plugin. A "You saved" row appears under the totals on the cart and the checkout, with the total discount across everything in the basket. You can change the wording under WooCommerce, then Discount Price.

Does it work with the Cart and Checkout blocks?

Yes. The saving is added to both the blocks and the old shortcode pages. The figure comes from the Store API, so it matches what your shop charges.

Does the saving include coupons?

That is your choice. By default a coupon counts towards the saving, so a customer who used a code sees the full amount they saved. You can switch it to sale prices only.

Why does my cart already show the old price, but no total saving?

WooCommerce shows the old price per item in the blocks, and a "Save" badge beside it, but it does not add up the saving across the basket. That total is what this plugin adds.

Does the customer see the saving after they have paid?

Yes, if you want them to. The saving appears on the order confirmation, under My Account and in the order email. It is saved onto the order at the moment of purchase, so it stays right even after the sale ends.

Can I show the saving as a percentage?

Yes. Switch on the percentage and the row reads "You saved $80.00 (40%)". The percentage is worked out against what the basket would have cost at the old prices.

Can I put the saving somewhere else on my site?

Use the [ecdrp_saved] shortcode. It prints the current saving, and takes your own wording, for example [ecdrp_saved label="Total savings"].

Does it work with variable products and sale schedules?

Yes. The saving uses the price WooCommerce is charging for each item, so scheduled sales, variable products and prices set by other plugins are all counted correctly.

Does it slow down my shop?

No. The saving is worked out from the cart that WooCommerce has already loaded, with no extra database queries, and the script on the blocks only renders the row.

更新日志:

1.1.0 1.0.0