You Saved adds a row such as "You Saved $12.50" to the cart and checkout totals, showing the difference between regular prices and what the customer pays, plus cart discounts and coupons if you want. Turn it on in WooCommerce > Pricepep > Promotion > You Saved.
How do I show the amount saved?
- Go to WooCommerce > Pricepep > Promotion.
- Under You Saved, tick Enable.
- Choose Position in cart and Position in checkout, and adjust the other settings.
- Click Save Changes.
Which settings does it have?
| Setting | Default | Options and notes |
|---|---|---|
| Enable | Off | |
| Label | You Saved | Text before the amount. |
| Position in cart | Order total - After | Cart table - Before/After, Cart totals - Before/After, Order total - Before/After, Checkout button - Before/After, Disabled |
| Position in checkout | Order total - After | Checkout form - Before/After, Payment details - Before/After, Order total - Before/After, Disabled |
| Discount amount threshold | Empty | Show the row only when the saving is at least this amount. Empty: any saving. |
| Include cart discounts and coupons | On | Adds cart discounts and coupon discounts to the amount. |
| Include tax | On | Shown only when taxes are enabled. Counts savings with tax. |
| Show on orders and emails | Off | Since 2.6.0. Adds the row to the order totals on the order received page, in My Account, in order emails, on the order screen and in invoice plugins that print the order totals. Works whether or not Enable is on. |
The Order total positions add a row to the totals table; the other positions add a separate block.
How is the amount calculated?
For each cart item: regular price × quantity, minus what the customer pays for the line. Then, with Include cart discounts and coupons on, every cart discount and coupon amount is added.
Example: 3 × a $20.00 product with a 10% bulk discount ($54.00 instead of $60.00), 1 × a product on sale for $8.00 instead of $10.00, and a $5.00 cart discount:
| Part | Saving |
|---|---|
| Bulk discount | $6.00 |
| WooCommerce sale price | $2.00 |
| Cart discount | $5.00 |
| You Saved | $13.00 |
Checkout fees aren't subtracted, and shipping isn't included.
Does it work in the Cart and Checkout blocks?
Yes, since 2.6. The row appears in the Cart block when Position in cart isn't Disabled, and in the Checkout block when Position in checkout isn't Disabled. The blocks show it under the order totals, whatever position you chose, and the label is plain text.
Can it show on orders and in emails?
Yes, since 2.6.0: tick Show on orders and emails. The row, such as "You Saved: $12.50", then shows after the order total on the order received page (classic and block themes), in My Account > Orders, in order emails (HTML and plain text), on the order payment page and on the order screen in wp-admin, and in invoice plugins that print WooCommerce's order totals. It doesn't need the cart row: it works with Enable off.
- Saved at every checkout: since 2.6.0, Pricepep saves the amount with every order placed at checkout (classic or block), whatever these settings say; Show on orders and emails only shows it. Turned on later, it also shows the amount on orders placed since the update. Orders placed before 2.6.0 have no saved amount, so they don't show it.
- Settings that apply: Include cart discounts and coupons and Include tax as they were at checkout, when the amount was saved; Label (with a colon added) and Discount amount threshold as they are when the order is shown. The positions are for the cart and checkout only.
More in do discounts show in order emails and invoices.
Can I change the row?
Copy extensions/promotion-total-saved/templates/tr.php (table row) or div.php (block) to your-theme/wc-dynamic-pricing-and-discounts/extensions/promotion-total-saved/. Developers can change the amount, label and threshold with filters (see the filter reference).
Frequently asked questions
Does You Saved include sale prices?
Yes. It compares what the customer pays with the regular prices, so WooCommerce sale prices count as savings too.
Does it work with the Cart and Checkout blocks?
Yes, since Pricepep 2.6 the row also appears in the Cart and Checkout blocks.
Can the amount saved show in order emails and invoices?
Yes, since Pricepep 2.6.0: tick Show on orders and emails. The amount saved at checkout then follows the order total on the order received page, in My Account, in order emails, on the order screen and in invoice plugins that print the order totals.