From woocommerce-commerce
Builds WooCommerce shipping methods—WC_Shipping_Method, zones, classes, rate calculations, tracking, carrier integrations—for custom shipping logic.
How this skill is triggered — by the user, by Claude, or both
Slash command
/woocommerce-commerce:woo-shippingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Fetch live docs**:
Fetch live docs:
site:developer.woocommerce.com shipping method api for shipping method guidewoocommerce custom shipping method tutorial for implementation patternshttps://woocommerce.github.io/code-reference/classes/WC-Shipping-Method.html for class referenceGeographic regions that determine available shipping methods:
Product-level classification for rate customization:
All custom shipping methods extend WC_Shipping_Method:
| Property | Description |
|---|---|
$id | Unique method identifier |
$method_title | Admin-facing title |
$method_description | Admin-facing description |
$title | Customer-facing title |
$enabled | Whether method is enabled |
$instance_id | Zone instance ID |
$supports | Supported features array |
Filter woocommerce_shipping_methods:
add_filter( 'woocommerce_shipping_methods', function( $methods ) {
$methods['my_shipping'] = 'My_Shipping_Method';
return $methods;
});
__construct( $instance_id ) — set $id, $method_title, $supports, initialize settingsinit_form_fields() — define settings fields (flat rate, per-item, per-class)calculate_shipping( $package ) — compute rates and add via $this->add_rate()Receives $package array containing:
contents — cart items in this packagedestination — shipping address (country, state, postcode, city)cart_subtotal — package subtotalReturns rates via $this->add_rate():
$this->add_rate( [
'id' => $this->get_rate_id(),
'label' => $this->title,
'cost' => $calculated_cost,
'taxes' => '', // empty = auto-calculate, 'false' = tax-free
'calc_tax' => 'per_order', // or 'per_item'
'package' => $package,
]);
For zone-based configuration (per-zone settings):
$this->instance_form_fields instead of $this->form_fields'instance-settings' and 'instance-settings-modal' to $this->supportsCart items grouped for shipping calculation:
woocommerce_cart_shipping_packages to split items into multiple packages$package = [
'contents' => [ /* cart items */ ],
'contents_cost' => 50.00,
'applied_coupons' => [],
'destination' => [
'country' => 'US',
'state' => 'CA',
'postcode' => '90210',
'city' => 'Beverly Hills',
],
];
Fixed cost regardless of cart contents. Optionally add per-item or per-class surcharges.
Calculate from total package weight:
$item['data']->get_weight() * $item['quantity'] for all itemsComplex rate calculation based on combinations of weight, item count, destination, and price. Often implemented with rate tables stored in custom DB tables.
Call carrier APIs (UPS, FedEx, USPS, DHL):
Store tracking info as order meta:
$order->update_meta_data( '_tracking_number', $number )$order->update_meta_data( '_tracking_provider', $carrier )Built-in WC_Shipping_Free_Shipping — enable based on:
Fetch the WooCommerce shipping method documentation for exact method signatures, package format, and instance settings patterns before implementing.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin woocommerce-commerceConfigures Saleor shipping zones, price/weight-based methods, custom apps, warehouse allocation, and click-and-collect via GraphQL mutations. Use for e-commerce delivery setup.
Manages Wix e-commerce shipping rules via REST APIs: query rates, retrieve details, create rates with costs, regions, logistics, and conditions like free shipping over subtotal. For store shipping configuration.
Builds and consumes WooCommerce REST API v3 endpoints: authentication, custom routes, resource extensions, webhooks, batch operations. For WooCommerce API development and integrations.