woo_scaffold_shipping_method
Generate a WooCommerce shipping method class including calculate_shipping(), init_form_fields(), and ServiceProvider registration. Define a custom shipping method with namespace, class name, method ID, and title.
Instructions
Generate a WooCommerce Shipping Method class with calculate_shipping(), init_form_fields(), and ServiceProvider registration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| className | Yes | Class name in PascalCase (e.g., "FlatRateShipping") | |
| methodId | Yes | Shipping method ID (e.g., "custom_flat_rate") | |
| title | Yes | Shipping method title |