Yes. Orders, emails and invoices show Pricepep's discounts as WooCommerce shows any price, discount and fee, and since Pricepep 2.6.0 two settings add the amount saved and the rules' descriptions:
| Pricepep | In the order |
|---|---|
| Product pricing rules | Lower item prices, like a sale price. The original price isn't a separate line. With Cart Item Descriptions > Show on orders and emails (2.6.0), each item lists the public descriptions of the rules that priced it. |
| Cart discounts | A coupon discount. Emails and the order page show the discount amount. |
| Checkout fees | A fee line with the fee's Title - Public. |
| You Saved | With You Saved > Show on orders and emails (2.6.0), a row with the amount saved after the order total. Off by default; before 2.6.0, cart and checkout only. |
Both settings are off by default, and they work whether or not You Saved and the descriptions show in the cart.
How do I show the amount saved on orders and in emails?
- Go to WooCommerce > Pricepep > Promotion.
- Under You Saved, tick Show on orders and emails.
- Click Save Changes.
A row such as "You Saved: $12.50" then follows 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. Invoice plugins that print WooCommerce's order totals show it too.
- The amount is the one the cart's You Saved row calculates, with Include cart discounts and coupons and Include tax as they were at checkout. Discount amount threshold applies too, and the label is the You Saved Label with a colon added.
- Since 2.6.0 Pricepep saves the amount with every order placed at checkout (classic or block), whatever the settings say; this setting shows it. So turning it on later also shows the row on orders placed since the update. Orders placed before updating to 2.6.0 have no saved amount, so they don't show the row.
How do I show the rule descriptions with each item?
- Go to WooCommerce > Pricepep > Promotion.
- Under Cart Item Descriptions, tick Show on orders and emails.
- Click Save Changes.
Under each item, the order then lists the Description - Public of each product pricing rule that priced it, as plain text and labelled as in the cart ("Promotion" by default): on the order received page, in My Account, in order emails and in invoice plugins that print item details. The same description shows once per item. The order screen in wp-admin lists the rules instead (see below).
- Older orders show it too: Pricepep has saved the rule data with every order since 2.4.
- The descriptions are shown as they were at checkout: editing a rule later doesn't change past orders.
What does the order screen show?
Under each item priced by product pricing rules, the order screen in wp-admin shows (since 2.6.0, always on, for staff only):
- Pricing rule(s): the rules' names as they were at checkout: each rule's Note - Private, as in the rule list ("Pricing Rule" for a rule without one).
- Price before rules: the price the rules started from. For products on sale, that's the sale price with the default Base price for products on sale = Sale price: the WooCommerce sale discount then doesn't count as something the rules took off. With Regular price, the rules start from the regular price, and the sale discount counts. Prices that other plugins added before the rules, such as the product field prices of WooCommerce Custom Fields, are included.
- Rules took off this line: the amount the rules took off the whole line, shown only when they took something off.
- The prices are as entered in products. When the order was placed with prices entered with tax and has tax lines, they include tax, marked "(incl. VAT)" or "(incl. tax)" as WooCommerce words it for the store's country.
- Orders placed before 2.6.0 show the two amounts only where no other plugin changed the price.
Subscriptions and their renewal orders show none of this: see the developer notes below.
Where do cart discount titles show?
In the admin order screen, Pricepep shows each cart discount's Title - Public in place of its coupon code: since 2.6.0 the title the rule had at checkout, saved with the order, so renaming or deleting the rule later doesn't change old orders. Orders saved without it, such as Checkout block orders placed before 2.6.0, show the rule's current title, or "Cart Discount (deleted)" if the rule no longer exists. Elsewhere, for example in invoice plugins that print coupon codes, an internal code starting with rp_wcdpd_ may appear instead of the title. Check your invoice plugin's coupon settings, or hide coupon codes there.
For developers
Pricepep stores what applied, in the classic checkout and the Checkout block alike: order item meta _rp_wcdpd_product_pricing_data for product pricing, and order meta _rp_wcdpd_cart_discount_data and _rp_wcdpd_checkout_fee_data for cart discounts and fees. Use them to show discount names or savings in custom emails and invoices. See the action reference and filter reference.
Since 2.6.0:
- The amount saved is order meta
_rp_wcdpd_total_saved: an array withamountandinclude_tax. Like Pricepep's other order meta, REST API order responses list it inmeta_data; a store that wants it out of them can remove it with WooCommerce'swoocommerce_rest_prepare_shop_order_objectfilter. - On orders,
rp_wcdpd_promotion_total_saved_display,rp_wcdpd_promotion_total_saved_labelandrp_wcdpd_promotion_total_saved_formatted_amountget the hookorder, and so doesrp_wcdpd_promotion_total_saved_amountwhen the amount is saved, at every checkout.rp_wcdpd_promotion_total_saved_discount_thresholdruns on orders too, without a hook. rp_wcdpd_promotion_order_item_descriptionchanges a description on orders, or removes it when it returns an empty string. The descriptions are display-only item meta: the REST API doesn't list them.- Subscriptions and renewal or resubscribe orders (WooCommerce Subscriptions) and renewal orders (Subscriptio) show no amount saved, descriptions or rule lines: their items carry a copy of the first order's data, which belongs to that order only. They are recognised by their type, so renewal and resubscribe orders paid through the cart and checkout (an early renewal, a resubscribe) are hidden too. Change this with
rp_wcdpd_order_has_copied_pricing_data.