Pricepep 2.6 works with the WooCommerce Cart, Checkout and Mini-Cart blocks. Discounted item prices show in all three; cart discounts with their titles, checkout fees, payment method rules and the You Saved row appear in the Cart and Checkout blocks (the Mini-Cart block lists the items and their subtotal, without discount or fee lines). A few extras, such as hover tips with rule descriptions, are only in the classic cart and checkout, and Customer Notifications don't show for changes made inside the blocks.
What works in the blocks?
| Feature | Blocks | Since |
|---|---|---|
| Product pricing rules (item prices) | Yes | |
| Shop prices in product blocks such as All Products | Yes, with Change display prices in shop on, variable products included | 2.6 |
| Cart discounts, shown with their Title - Public | Yes | 2.5; on other pages with a Cart or Checkout block since 2.6 |
| Cart discounts that depend on the subtotal update without a reload | Yes, also after changes made in the Mini-Cart block | 2.6 |
| Checkout fees | Yes | |
| Payment method discounts and fees update when the method changes (example) | Yes | 2.6 |
| Express payment buttons use the method the order is placed with | Yes | 2.6 |
| You Saved row | Yes, under the totals of the Cart and Checkout blocks (not in the Mini-Cart block) | 2.6 |
| Cart Item Descriptions | Yes, as an item detail in plain text | 2.5 |
| First order and loyalty conditions for guests (billing email entered at checkout) | Yes | |
Rule data saved with the order (_rp_wcdpd_cart_discount_data, _rp_wcdpd_checkout_fee_data) | Yes | |
| Customer Notifications | Not for changes made in the blocks; a page with a block shows them only if the theme prints notices there | 2.6 |
| Hover tips with the Description - Public of discounts and fees | No, classic cart only | |
| Positions such as Cart table - Before for You Saved | No; the blocks use their own place |
What should I know?
- Guest order history: a guest's past orders are matched by the billing email once it's entered in the Checkout block, as in the classic checkout; before that a guest counts as a new customer. Logged-in customers are recognised as usual.
- Customer Notifications don't show for changes made inside the Cart and Checkout blocks, and since 2.6 those notices no longer turn up later on other pages. A page with one of these blocks shows a notice when the theme prints notices there, as block themes do on the store's cart and checkout pages; see the blocks. Use Cart Item Descriptions or the You Saved row to explain discounts in the blocks.
- Product blocks: product blocks such as All Products and Product Collection show the same prices as product pages once Change display prices in shop is set to Change - Include simple adjustments or Change - Include all adjustment types on the Settings tab, variable products included; see settings.
- Developers: the blocks read Pricepep's cart discount titles and the You Saved row from the Store API; a custom or headless checkout can use the same data. See Store API cart data.
Something is missing in the blocks
- Update Pricepep: most block fixes are in 2.5 and 2.6.
- Check the same cart with the classic cart (a page with the
[woocommerce_cart]shortcode). If it's wrong there too, the rule is the problem; see discount not applied. - If only the block is wrong, send a bug report with the steps.
Frequently asked questions
Is Pricepep compatible with the Cart and Checkout blocks?
Yes. Pricepep 2.6 declares compatibility with the blocks, so WooCommerce no longer lists it as possibly incompatible.
Do payment method fees work in the Checkout block?
Yes. Since 2.6 the Checkout block updates them when the customer picks another method, and the order uses the method it's placed with.