
The Admin Bar quick action button (<code>⚡ + Test Order</code>).
OrderCraft for WooCommerce is a lightweight developer utility designed to streamline local development, agency QA workflows, transactional email design verification, and staging site testing.
Instead of filling out front-end checkout forms repeatedly, this plugin adds a dedicated quick-action button (⚡ + Test Order) to your top WordPress Admin Bar. With a single click, it programmatically generates a complete mock order using native WooCommerce CRUD APIs and redirects you straight to the WooCommerce order edit screen.
TEST10OFF – TEST25OFF) on the fly if no coupons exist.calculate_totals() to accurately factor line items, shipping fees, tax rates, and discount reductions into the final order amount.wc_create_order(), WC_Order_Item_Shipping, WC_Coupon). Requires zero external assets or background processes.When you click the ⚡ + Test Order button in the Admin Bar:
manage_woocommerce) and validates the request nonce (check_admin_referer).wc_get_products() for 2 to 4 published products.wc_create_order().WC_Order_Item_Shipping object and attaches a randomly selected shipping rate.get_posts('shop_coupon') or generates a fallback percentage coupon using WC_Coupon.$order->calculate_totals(), sets the status to processing, and redirects directly to the edit order screen.OrderCraft for WooCommerce is open-source software licensed under the GNU General Public License v2.0 or later (GPLv2+).
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.