Customer Notifications show a WooCommerce notice, such as "Discount Spring sale has been applied to your cart.", when a product pricing rule, cart discount or checkout fee starts to apply. They appear on pages that show WooCommerce notices, such as the classic cart, checkout and product pages; changes made inside the Cart and Checkout blocks don't show them. Turn them on per rule type in WooCommerce > Pricepep > Promotion > Customer Notifications.
How do I turn on notifications?
- Go to WooCommerce > Pricepep > Promotion.
- Under Customer Notifications, tick Product Pricing, Cart Discounts and/or Checkout Fees.
- Edit the Text under each one you ticked. It can't be empty.
- Click Save Changes.
What are the default texts and macros?
| Notification | Default Text | Macros |
|---|---|---|
| Product Pricing | Product discount has been applied to your cart. | {{description}} |
| Cart Discounts | Discount {{title}} has been applied to your cart. | {{title}}, {{description}} |
| Checkout Fees | Fee {{title}} has been applied to your cart. | {{title}}, {{description}} |
{{title}}is the rule's Title - Public (cart discounts and checkout fees).{{description}}is the rule's Description - Public. Since 2.6.0 a description can contain{{start_date}}and{{end_date}}, the rule's dates (see the sale dates); in the notification Text itself they aren't replaced.- Line breaks become new lines; basic HTML such as
<strong>works.
Each applied rule gets its own notice. If two product pricing rules apply at once with the default text, the customer sees the same sentence twice, so use {{description}} to tell them apart, for example {{description}} applied to your cart.
When does a notice appear?
On the next page the customer opens after a rule starts to apply, usually the product page they added from or the cart. Pricepep remembers which notices it showed:
- While a rule stays applied, its notice doesn't repeat.
- If the rule stops applying (for example the cart drops below a subtotal condition) and applies again later, the notice shows again.
Notices are added on normal page loads, not during background (AJAX) updates, so a discount that starts to apply while the classic checkout recalculates shows its notice on the next page load.
What about the Cart and Checkout blocks?
- Changes made inside the Cart or Checkout block (a quantity, a removed item, a coupon) don't show a notice. The blocks don't display these notices, so since 2.6.0 the rule counts as announced and its notice doesn't turn up later on another page.
- A page with the Cart or Checkout block shows the notice of a rule that starts to apply as the page loads if the theme prints notices on that page: block themes do on the store's cart and checkout pages; with a classic theme it depends on the theme. Where the page doesn't print it, the notice is dropped and doesn't come back later.
- Product blocks and the Mini-Cart on other pages work as in the classic shop: when an Add to cart button of a product block or a change in the Mini-Cart makes a rule apply, its notice shows on the next page that shows notices.
To explain discounts inside the blocks, use Cart Item Descriptions or You Saved.
Notifications or cart item descriptions?
Notifications tell customers that something changed. To keep explaining a product discount next to the item in the cart, use Cart Item Descriptions.
Frequently asked questions
Does the notice show on every page?
No. It shows when the rule starts to apply. While the rule stays applied it doesn't repeat; if it stops and applies again, the notice shows again.
Can the notice name the discount?
For cart discounts and checkout fees, {{title}} shows the rule's title. All three notices can show the rule's public description with {{description}}.
Do notices show with the Cart and Checkout blocks?
Not for changes made inside the blocks. When a page with one of these blocks loads, the notice shows if the theme prints notices on that page, as block themes do on the store's cart and checkout pages.