What Changed in WooCommerce: Cart, Checkout and Orders for Developers on 4wp.dev

WooCommerce changed. The cart, the checkout and the orders work differently under the hood.

Cart. Add to cart goes through the Store API, and the Mini-Cart block updates without a page reload.

Checkout. The Checkout block talks to the same Store API. woocommerce_checkout_fields belongs to the classic checkout; new fields here come from the Additional Checkout Fields API.

Orders. With HPOS, orders live in their own tables. Code that goes through wc_get_order() and $order->get_meta() works with HPOS and with the old posts storage.

The old way still works in many stores. The point is to know both and choose on purpose.

👉 Full overview: 4wp.dev/wc

🔔 More WooCommerce videos: youtube.com/@4wpdev