Woo checkout

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Woo checkout is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Customize WooCommerce checkout — classic and block-based checkout, custom fields, validation, order processing, and checkout extensibility. Use when modifying the checkout flow, adding custom checkout fields, or integrating checkout extensions.

How to use this skill

Skill file

WooCommerce Checkout Customization

Before writing code

Fetch live docs:

  1. Web-search site:developer.woocommerce.com checkout for checkout documentation
  2. Web-search woocommerce checkout blocks extensibility api for block checkout patterns
  3. Web-search woocommerce classic checkout customization hooks for classic checkout hooks

Two Checkout Implementations

Classic Checkout (Shortcode-Based)

Block-Based Checkout (Default Since WC 8.3)

Classic Checkout Customization

Checkout Fields

Filter woocommerce_checkout_fields to modify fields:

Adding Custom Fields

Add to the fields array in the woocommerce_checkout_fields filter:

Validating Custom Fields

Action woocommerce_checkout_process:

Saving Custom Field Data

Action woocommerce_checkout_update_order_meta (legacy) or woocommerce_checkout_order_processed:

Displaying Custom Fields

Block Checkout Customization

Extending via Store API

Add custom data to checkout process:

  1. Register endpoint data with ExtendSchema::register_endpoint_data()
  2. Process during checkout via woocommerce_store_api_checkout_update_order_from_request

Checkout Filters (JS)

registerCheckoutFilters from @woocommerce/blocks-checkout:

Slot Fills (JS)

Inject React components at predefined points:

Inner Blocks

Register custom blocks as checkout inner blocks for maximum layout control.

Checkout Flow

Order Processing Sequence

  1. Validate fields (woocommerce_checkout_process)
  2. Create order (woocommerce_checkout_create_order)
  3. Process payment (WC_Payment_Gateway::process_payment())
  4. On success: redirect to thank-you page
  5. Hooks: woocommerce_checkout_order_processed, woocommerce_payment_complete, woocommerce_thankyou

Cart to Order Conversion

WC_Checkout::create_order():

Checkout Fees

Add fees via woocommerce_cart_calculate_fees action:

Best Practices

Fetch the WooCommerce checkout documentation for exact hook names, Store API extension methods, and block checkout patterns before implementing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.