Start with a clear plugin prompt
Adapt this example to your site, then paste it into your workspace. Include your WordPress, PHP, and relevant plugin versions so the request describes the environment you need to support.
Create a WooCommerce plugin that adds an optional gift-wrap checkbox to the checkout page. When selected, add a configurable fee, save the choice to the order, show it in the store admin and order emails, and provide a settings screen where staff can change the label and fee. Use WooCommerce checkout fields and order metadata. Include sanitization, capability checks, nonces for settings, and clear activation behavior.
Build around WooCommerce hooks and data
WooCommerce extensions often begin with a precise moment in the shopping flow: displaying a field, calculating a fee, changing product data, or updating an order. A useful request identifies that moment and the data involved. For checkout work, describe the field type, where it appears, who can configure it, and how the choice should be stored. The resulting plugin can use WooCommerce actions and filters, order metadata, settings APIs, and the admin order screen in a way that is easier to review than a disconnected code snippet.
Plan for store data and settings
Store features usually need predictable configuration and data handling. Explain which settings belong in the WordPress admin, whether the feature applies to all products or selected categories, and what should happen for existing orders. For product-level behavior, include the product types, variation rules, and customer-facing copy. A clear brief also names the data that needs to be saved, displayed, or exported. This gives the generated plugin a defined data flow to inspect when testing with WooCommerce products, carts, coupons, and orders.
Test against realistic purchase paths
Test a generated WooCommerce plugin on a staging store with a representative theme, payment method, shipping setup, and product catalog. Try guest and logged-in purchases, invalid field values, coupons, tax calculations, and order status changes where relevant. Confirm that the feature still works with variations and that store staff can understand the settings screen. Review the generated code for the hooks it uses and test the behavior after a WooCommerce update in a non-production environment before depending on it in a live purchase flow.
Frequently asked questions
What WooCommerce features can I generate?
You can start with checkout fields, fees, product options, order workflows, admin tools, customer notices, and integrations that have a clear behavior and data flow.
What should I include in a WooCommerce prompt?
Name the relevant store screen or event, the data to collect or change, the settings staff need, and the expected behavior for orders, products, or customers.