docs/getting-started/scaffolding.md
WooCommerce offers a number of starter kits and scaffolds depending on what you are building.
If you’re designing a WooCommerce store, you have two options for theme development: Classic Themes and Block Themes.
Storefront is Woo’s flagship classic theme, available in the WordPress Theme Directory. You can either rename and modify the theme itself, or override specific aspects of it using a child theme.
For more information on building a classic WooCommerce theme, read our classic theme development handbook. For a comprehensive guide on creating a child block theme and understanding the differences between a classic and block theme, please refer to WooCommerce block theme development and WordPress block child theme development.
If you are completely new to block theme development, please check Develop Your First Low-Code Block Theme to learn about block theme development, and explore the Create Block Theme plugin tool when you're ready to create a new theme.
For more information, check out our Block Theme Development handbook.
Create Woo Extension is an NPX command that scaffolds an entire WooCommerce extension for your store. The generated extensions adds a React-based settings page integrating with WooCommerce Admin. Also included are PHP and Javascript unit testing, linting, and Prettier IDE configuration for WooCommerce and WordPress.
Read our full tutorial on using the create-woo-extension package.
This is a template to be used with @wordpress/create-block to create a WooCommerce Blocks extension starting point. To install and use it, follow the instructions in @woocommerce/extend-cart-checkout-block. Please note that this example contains multiple other examples of extensibility, not just inner blocks.
Inside of the WooCommerce plugin are a set of example extensions that showcase different use-cases for modifying WooCommerce core functionality. Some examples include adding a custom report, a custom payment gateway, and modifying the WooCommerce dashboard.
Read our full tutorial showcasing how to extend WooCommerce analytics reports.
The default WordPress theme (Twenty-Twenty Five as of the time of this writing) is a great place to see the best practices and standard conventions of a WordPress block theme. Using the Create Block Theme tool, you can modify the theme design from within the site edtitor and then export your new design to a custom child theme.
If you’re adding additional content or design elements to WordPress, it may make sense to create a custom block. The WordPress block editor package library includes a scaffolding tool called WordPress Create Block that helps you spin up custom blocks that can be inserted into any page or template.
Read more about the wordpress/create-block package.
It may be helpful to load your local store with sample data. In the WooCommerce core plugin, you can find CSV and XML files that can be imported directly into WooCommerce using the WordPress admin or via WC-CLI. The sample data is located in /plugins/woocommerce/sample-data/.
For more advanced testing, you may want sample customers and order data. Smooth Generator is a plugin to help you generate WooCommerce-related data for testing. Use the WP Admin interface for basic operations, or the CLI tool for more advanced features. Download and install the latest version from the Releases page and browse the repository for more documentation.