WordPress Developer Ukraine, Kyiv
WooCommerce Blocks Checkout: Adding Custom Fields with Slot Fills

WooCommerce Blocks Checkout: Adding Custom Fields with Slot Fills

Custom fields in the WooCommerce Checkout block In the classic checkout, extra fields were added with the woocommerce_checkout_fields filter. The Checkout block ignores that filter: it is a React application that talks to the Store API. Since WooCommerce 8.9 (2024), the Additional Checkout Fields API registers fields in PHP that the block renders, validates and…
Building a Custom WooCommerce Product Type from Scratch

Building a Custom WooCommerce Product Type from Scratch

A custom WooCommerce product type WooCommerce ships with simple, variable, grouped and external products. A service with a booking date, a gift card or a license with seats does not fit any of them well, and storing “this simple product is actually a service” in a meta field leads to checks scattered all over the…
Building Composite Products in WooCommerce Without a Plugin

Building Composite Products in WooCommerce Without a Plugin

A simple composite product in WooCommerce without a plugin A composite product lets the customer build one item from components: a gift box with a choice of tea, mug and card, or a computer with a choice of processor and memory. Extensions do this with full stock handling for every component. For a shop with…
Build Custom WooCommerce Email Notifications from Scratch

Build Custom WooCommerce Email Notifications from Scratch

Build custom WooCommerce email notifications WooCommerce emails are built on the abstract WC_Email class. It renders the templates inside the standard WooCommerce header and footer, adds the settings page (enable, subject, heading, additional content, email type) under WooCommerce → Settings → Emails, replaces placeholders like {order_number}, and sends through wp_mail(). Every built-in email (new order,…
Use the WooCommerce REST API for Headless and Decoupled Commerce

Use the WooCommerce REST API for Headless and Decoupled Commerce

The WooCommerce REST API for a headless storefront In a headless shop, WordPress and WooCommerce keep the products, orders and payments, and a separate frontend (Next.js, Nuxt, Astro) renders the pages. WooCommerce has two APIs for this, and the most common mistake is using the wrong one: the authenticated REST API wc/v3 is for servers,…
Hook into WooCommerce Order Status Transitions and Lifecycle Events

Hook into WooCommerce Order Status Transitions and Lifecycle Events

Hook into WooCommerce order status transitions A WooCommerce order moves through statuses: pending, processing, on-hold, completed, cancelled, refunded, failed, plus custom ones from extensions. Every status change fires a predictable set of hooks, so fulfillment, ERP sync, notifications and analytics can react to exactly the transition they need, without save_post and without polling.