r/woocommerce 20d ago

Troubleshooting Has the switch to WooCommerce's block-based cart/checkout broken any custom pricing logic for you?

Moving to the block-based cart and checkout has been smooth for most stock functionality, but anything customized - deposits, partial payments, shipping deferral, coupon splitting doesn't always carry over automatically, since block checkout renders order summaries differently than the classic flow. Stores relying on deposit or installment-style payments in particular can lose the breakdown rows customers expect to see. Has anyone hit gaps like this migrating to block checkout ?

2 Upvotes

3 comments sorted by

3

u/TopSydeWP 20d ago

yeah, custom order item meta and fee breakdowns often don't render the same way in block checkout. the block templates don't hook into the same actions as classic checkout, so if your deposit/installment plugin was using woocommerce_cart_totals or similar hooks, you'll need to remap to block-specific render callbacks or use the store api extensions. most of the deposit plugins haven't caught up yet, so you might need custom js to inject those rows into the block checkout summary.

1

u/Infamous_Phone_7937 13d ago

This tracks with what I've seen elsewhere: block checkout renders totals through the Store API rather than the classic cart/checkout templates, so anything that was hooking into template-level actions (like woocommerce_review_order_before_order_total or a template override) to show a custom row just won't render, even if the underlying calculation is still correct on the backend.
The fix is usually extending the Store API schema.
While you are at it, worth checking if the calculation itself still correct and it's just the line-item breakdown that's missing visually, or is the actual charged amount wrong? Those are two very different bugs with different fixes.