Sets up or customizes Bricks WooCommerce pages, templates, and native elements with a reviewed plan that preserves existing store content.
Ships in bricks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bricks exposes additional WooCommerce/product elements when the experimental advanced modular elements setting is enabled. Classic/default Woo surfaces remain available, and advanced modular cart/checkout/account elements are opt-in through the Bricks global setting woocommerceUseAdvancedModularElements.
For store setup, use the Woo setup abilities before writing raw element JSON:
bricks/get-woo-setup-status.bricks/plan-woo-setup with the intended areas, scope, and mode.bricks/run-woo-setup, passing the returned planId when available.Use WooCommerce-owned abilities for product and order operations when they are available. Bricks Woo setup abilities configure Bricks pages, templates, presets, modular Woo elements, and setup-related Woo options.
Default to mode: "classic" unless the user explicitly wants the experimental modular v2 flow. Use mode: "advanced" only after explaining that it enables an experimental Bricks Woo setting that changes which Woo elements are registered and may affect existing classic Woo setups.
Important setup behavior:
overwriteExistingPageContent.woocommerceUseBricksWooCheckoutCoupon and woocommerceUseBricksWooCheckoutLogin through bricks/set-global-settings. Bricks 2.4.5 plans both for advanced checkout.bricks/get-woo-setup-options, bricks/set-woo-setup-options, and the global settings abilities.0 to intentionally clear an assignment.Classic setup uses:
shop: use the Woo shop/archive template flow and classic shop/archive elements.single_product: use Woo single product template flow and product elements.cart: use the assigned Woo cart page plus classic cart elements.checkout: use the assigned Woo checkout page plus classic checkout elements.my_account: use the assigned Woo account page plus classic account elements.After setup, customize by fetching exact schemas for the elements already inserted. Prefer preserving the generated Woo structure and changing spacing, typography, layout wrappers, and global classes over replacing the entire tree.
Advanced modular setup is for users who need finer control over cart, checkout, and account states. Enable it only with user confirmation:
woocommerce-cart-v2, woocommerce-checkout-v2, woocommerce-account-page-v2.woocommerce-cart-v2-state-cart, woocommerce-cart-v2-state-empty.woocommerce-checkout-v2-state-checkout, woocommerce-checkout-v2-state-login, woocommerce-checkout-v2-state-pay, woocommerce-checkout-v2-state-receipt, woocommerce-checkout-v2-state-thankyou.woocommerce-dynamic-fragment, woocommerce-form-field, woocommerce-form-submit, cart quantity/form, checkout billing/shipping/order/payment pieces, and account form pieces.Treat v2 state elements as generated/managed structural children. Preserve their required structure. If the user asks to deeply customize v2 flows, fetch the parent and child schemas first and preserve required state wrappers.
For an existing Account v2 missing a newly available state, read
bricks/get-element-schema for woocommerce-account-page-v2 and inspect its
stateChildren. Append only missing direct state children with fresh IDs; preserve
existing customized children. The returned list respects current feature gates
(includes/abilities/reference.php).
For an existing classic Woo setup:
woocommerceUseAdvancedModularElements.Old classic templates may remain after migration. Do not delete old templates or pages unless the user asks.
Product-singular elements include title, price, gallery, reviews, rating, meta, content, short description, stock, tabs, related products, upsells, additional information, and add to cart. Build a custom single-product template by composing these in a WooCommerce single-product template (wc_product) when you want the Woo template flow.
Shop/archive elements include woocommerce-products, products pagination, orderby, filter, total results, archive description, breadcrumbs, and notices. The Woo products-filter wraps native Woo filtering and is separate from generic Bricks query filters.
woocommerce-template-hook may exist in the schema set, but only use it when the runtime registers it on the target site.
Products are a custom post type (product). You can use a regular Bricks Posts loop with post_type: product: no Woo element required. This gives you full control over the card layout.
Tradeoff:
{woo_product_price}, {woo_product_stock} etc. inside the loop: they'll resolve.woocommerce-products element: inherits Woo shop queries (sort, filters, pagination) automatically. Less customizable but matches Woo conventions.Rule of thumb: if the user wants "our shop, styled our way" -> Posts loop of products with custom card design. If they want "Woo's standard shop with our header/footer" -> woocommerce-products element.
From provider-woo.php. Available when current post is a product:
{woo_product_type} -> simple / variable / grouped / external
{woo_product_price} -> "$29.99" (with currency)
{woo_product_price:value} -> "29.99" (numeric value)
{woo_product_regular_price} -> regular price
{woo_product_sale_price} -> sale price (empty if not on sale)
{woo_product_excerpt} -> product short description
{woo_product_stock} -> stock status / quantity
{woo_product_sku}
{woo_product_gtin}
{woo_product_rating}
{woo_product_on_sale}
{woo_product_badge_new}
{woo_add_to_cart}
Outside product context: these resolve empty. To render a specific product, place the tag inside a product loop or preview it through MCP with the target product postId.
Two separate pages (/cart/ and /checkout/), each with its own Bricks template option. Approach:
cart-items + cart-collaterals.content template instead, scope it with ids to the configured Woo cart or checkout page. There is no pageType: cart condition in the Bricks template condition schema.Woo's templating allows overriding individual template parts. Bricks doesn't interfere: if you place overrides in your child theme's woocommerce/ directory, Woo uses them normally.
Theme hierarchy for Woo templates:
Bricks does include WooCommerce template files under its theme woocommerce/ directory. A child theme override still wins because Woo checks the child theme before the parent theme.
When to override vs. use Bricks elements:
| Hook | Kind | Purpose |
|---|---|---|
bricks/woocommerce/products_filters/options | filter | Options for the Woo products-filter element |
woocommerce_loop_add_to_cart_link | filter | Add-to-cart button HTML |
woocommerce_loop_product_title | filter | Product card title HTML |
woocommerce_before_shop_loop / after_shop_loop | action | Around shop loop |
woocommerce_single_product_summary | action | Single product summary content |
woocommerce_cart_calculate_fees | action | Add fees at checkout |
(Most hooks above are Woo's, not Bricks'. Check Woo's docs for the exhaustive list.)
From Bricks side, includes/woocommerce.php registers the integration at plugin load.
Bricks registers WooCommerce theme style controls for Woo buttons and Woo notices. Use existing global classes, variables, palettes, and theme styles first. If the site has a design system, match it. If the site is still stock, create only a clean functional setup unless the user also asks for styling or a new design system.
Variable products have sub-configurations (size, color). The single-product add-to-cart element handles the <select> UI by default.
Gotcha: if you build a custom product card on archive pages and link straight to ?add-to-cart=PRODUCT_ID, you bypass the variation selector. User lands on cart with "which variant?" failure. Always let the user choose variants before adding to cart.
woocommerce-mini-cart.php is a Bricks Woo element. Use it when you want the built-in mini cart output. For a custom drawer, build with Bricks Offcanvas plus Woo cart elements, toggled by an interaction on a cart button in the header.
For a cart-count badge, use the registered {woo_cart_items_count} tag (provider-woo.php). It reads cart quantity without custom PHP. Confirm the runtime tag and cart context. For cart-dependent content that must refresh, inspect woocommerce-dynamic-fragment and the wooCartContentsChanged interaction trigger.
Account pages are Woo's multi-tab interface. Elements for each tab are separate:
woocommerce-account-dashboard.php (not available as a separate Bricks element; default Woo)woocommerce-account-orders.php, -addresses.php, -downloads.php, -payment-methods.php, -view-order.php, -edit-account.php, -edit-address.php-form-login.php, -form-register.php-form-lost-password.php, -form-reset-password.phpTo customize account surfaces, use the dedicated Woo account elements or a Bricks Woo account template flow. The normal template condition schema does not include URL-pattern or isEndpoint condition kinds.
Profile product archives, cart updates, and checkout separately; see bricks-performance.
file: on Woo, inline CSS can balloon (product-specific styles per variant). File mode caches.Woo element renders placeholder text in builder, empty on frontend? a. Current page isn't a product/archive/cart context. Element only works in its intended context. b. Test on an actual product single page, not the builder preview root.
Add-to-cart button does nothing? a. Product is out of stock but "Continue selling when out of stock" is off. b. Variable product without selected variation. c. JS error elsewhere preventing Woo scripts from initializing. d. CAPTCHA / Cloudflare interceptor blocking the AJAX call.
Cart shows empty after adding?
a. Session cookie blocked (cookies-disabled on the browser, or test-mode without proper session handling).
b. Cart fragments AJAX failing. Check Network tab for wc-ajax=get_refreshed_fragments.
Checkout validation fires but form doesn't submit? a. Custom JS on the page hijacking the submit event. b. Payment gateway misconfiguration: check Woo > Settings > Payments.
Woo dynamic tag {woo_product_price} renders empty?
a. Not in a product context. Move inside a product loop or preview with the target product postId.
b. Product has no price set (free product without explicit "0.00").
Custom Woo template override ignored?
a. File path typo: Woo is strict: child-theme/woocommerce/single-product/title.php (mirrors plugin structure exactly).
b. File-exists check not firing; try with a cart/cart.php override first as a sanity test.
woocommerce-products element on the same template: you'll double-render products.What SKILL.md sets; muted values are Claude Code's defaults
/bricks:bricks-woocommercefrom bricks
npx claudepluginhub codeerhq/bricks-skills --plugin bricks46 skills in this plugin
/bricks-agent-repositoryHandle complex existing-site Bricks edits through advertised repository/workspace workflows when focused abilities cannot express the change./bricks-ai-tabDiagnose Bricks AI connection setup, ability toggles, dispatcher availability and disabled actions. Use for connection/availability problems./bricks-audit-design-systemAudit Bricks classes, variables, palettes and components, or carry out requested cleanup. Report-only audits do not authorize fixes.Other plugins' skills for the same job