WordPress Developer Ukraine, Kyiv
Migrate WooCommerce Orders to High-Performance Order Storage (HPOS)

Migrate WooCommerce Orders to High-Performance Order Storage (HPOS)

Migrate WooCommerce orders to High-Performance Order Storage (HPOS) High-Performance Order Storage moves WooCommerce orders out of wp_posts and wp_postmeta into their own tables: wc_orders, wc_order_addresses, wc_order_operational_data and wc_orders_meta. It appeared as an opt-in feature in WooCommerce 7.1, and with WooCommerce 8.2 (October 2023) it becomes the default for new stores. The reason is performance: in…
WooCommerce Custom Order Status: Register, Style, and Trigger Email on Status Transition

WooCommerce Custom Order Status: Register, Style, and Trigger Email on S ...

A custom WooCommerce order status: “Ready for pickup” WooCommerce’s order statuses (pending, processing, on hold, completed, cancelled, refunded, failed) do not fit every shop. A store with local pickup needs a step between “processing” and “completed”: the order is packed and waiting at the counter. A custom status shows that in the order list, can…
Add a custom field to the WooCommerce checkout page

Add a custom field to the WooCommerce checkout page

Add a custom field to the WooCommerce checkout page The WooCommerce checkout collects the usual data: billing and shipping address, contact details, payment method. Real shops often need more at the moment of purchase: a gift message, a preferred delivery time, artwork instructions, a company VAT number. The checkout is the right place for it,…
Send Custom HTML Email Templates in WordPress with wp_mail()

Send Custom HTML Email Templates in WordPress with wp_mail()

Send HTML emails from WordPress with your own template Every WordPress site sends emails: password resets, new user notifications, form submissions, order confirmations. By default wp_mail() sends them as plain text. For a branded email we need two things: HTML content type and a template that looks the same in all email clients, including Outlook.