What problem does it solve?
This Skill solves the confusion between WooCommerce’s public shopper-facing Store API and the admin/integration WC REST API, preventing broken checkout/cart integrations and leaking wrong authentication assumptions.
Core Features & Use Cases
- Correct API selection for storefront cart/checkout: Use
/wp-json/wc/store/v1 for browsing products and reading/updating the current shopper cart and checkout state instead of wc/v4.
- Nonce vs Cart-Token write protection: Implement the required
Nonce header (wp_create_nonce('wc_store_api')) or use Cart-Token for headless continuity across requests.
- Extend Store API responses and mutate cart via blocks: Add public
extensions.<namespace> data and update cart state through /cart/extensions using extensionCartUpdate, while keeping extension data read-only and safe.
Quick Start
Ask the AI to explain which endpoints and headers you must use to implement a headless cart/checkout that updates custom cart state and exposes extra checkout-block data via Store API.