Description
Add your own fields to the WooCommerce block checkout, right inside the block editor.
- Text, dropdown, country, checkbox, email, phone, number, URL, date, time, textarea, radio and checkbox-group fields
- Heading and text blocks to show a short message between fields
- Place fields in Contact information, Shipping address, Billing address or Order information
- Show a field in shipping only, billing only, or both
- Required and optional fields with server-side validation
Cart Block extras (all off until you turn them on, under WooCommerce > Checkout Block Editor):
- A notice in the cart, for example delivery times
- A free shipping progress bar
- A minimum order amount, with an optional block at checkout
- One click to regenerate a missing Checkout or Cart page
This plugin does not connect to any external service and does not track users.
Source code
The JavaScript and CSS in the build folder are compiled from the src folder. Build with npm install then npm run build (uses @wordpress/scripts).
Installation
- Make sure WooCommerce is installed and active.
- Upload the plugin to
/wp-content/plugins/and activate it. - Edit your Checkout page in the block editor and add the “Custom Fields” block inside the checkout step where you want the fields.
- For the cart, go to WooCommerce > Checkout Block Editor and turn on the cart features you want.
FAQ
Does it work with the classic shortcode checkout?
No. It is built for the WooCommerce Checkout and Cart Blocks. Pages built with the classic shortcode or a page builder such as Elementor are not supported.
Changelog
1.0.1
- New: Checkbox field, for terms, consent or newsletter opt-ins.
- New: Country field with the full WooCommerce country list.
- New: Heading and text, to show a short message between checkout fields.
- New: WooCommerce > Checkout Block Editor page with Checkout and Cart tabs.
- New: Cart notice, free shipping progress bar and minimum order amount.
- New: One-click regenerate for a missing Checkout or Cart page.
- Security: A checkout block in any other post can no longer change the checkout fields.
- Security: Long textarea values are now cut to 5000 characters.
- Tweak: Plugin data is removed when the plugin is deleted.
1.0.0
- Initial release.
