Extending WooCommerce Like A Pro
summary
Explains how to build a maintainable WooCommerce extension: creates an estimates gateway by extending WC_Payment_Gateway where process_payment reduces stock and sets a custom order status (e.g., waiting confirmation) instead of charging, builds a wrapper product class around WC_Product to add bundle logic, and uses namespaces, Composer autoload, containers and version control. Recommends PhpStorm with Xdebug for debugging, emphasizes integration tests and careful QA around money calculations, and warns that built-in reports require complex SQL to adjust.
AI-written summary · about
chapters (37)
- 0:00Introduction and background
- 1:15WooCommerce backend focus
- 2:17Handling money and accuracy
- 3:00User story and project planning
- 4:24WooCommerce structure overview
- 7:19WooCommerce core tables and objects
- 9:06Product and order objects
- 10:33Custom meta fields and standards
- 12:42Wrapper classes for product meta
- 13:04Custom payment gateways
- 14:07Custom order statuses
- 15:34Example: Estimates gateway
- 18:49WooCommerce templating system
- 20:14Simple plugin structure
- 21:01Building a plugin framework
- 22:02Development tools and tips
- 24:29PHPStorm features for WooCommerce
- 25:12Namespacing and autoloading
- 26:14Version control importance
- 26:56Separating logic and theme
- 27:50Code documentation best practices
- 28:52Inline documentation in PHPStorm
- 29:14Plugin class structure example
- 31:20Extending WooCommerce safely
- 33:09Organizing hooks and filters
- 34:14Checkout process hooks
- 35:19Filtering price and amount data
- 35:40Multiple checkout paths
- 37:05Product visibility and REST API
- 37:27Issues with WooCommerce reports
- 39:16Closures for filtering
- 39:38Handling translations
- 40:41Order status checks and translations
- 41:44Using core functions and deprecation
- 42:05Avoiding direct database access
- 42:30Wrapping WooCommerce objects
- 42:53Changelog and updates
