Build a “not at home” shipping extension in the WooCommerce checkout block
summary
Builds a real WooCommerce Blocks extension that adds an “I’m not at home” dropdown and optional free-text instruction to the Checkout block, wiring the front-end React block to the WordPress data store via setExtensionData, registering fields with the Store API using extend checkout schema, validating with the WC store validation actions and selectors (get_validation_error), and saving the values to order meta so they appear in WP‑Admin. Workshop code runs end‑to‑end in the demo; final repository is available on GitHub.
AI-written summary · about
chapters (19)
- 0:00Introduction and setup
- 1:11Workshop agenda and presenters
- 3:21Motivation for the extension
- 4:25What are WooCommerce blocks
- 5:08Extending WooCommerce blocks
- 10:26Starting the workshop
- 11:53Adding shipping options
- 21:47Free text input for instructions
- 24:14Storing data with Store API
- 31:59Setting extension data
- 44:11Validation for required fields
- 1:01:27Displaying validation errors
- 1:19:14Frontend validation and error display
- 1:28:45Frontend implementation summary
- 1:29:08Backend integration overview
- 1:33:29Extending Store API for checkout
- 1:37:08Saving data to order metadata
- 1:41:43Displaying in admin order page
- 1:44:11Q&A and resources
