c539e5614f
* Update main integration file to register newsletter block scripts/styles * Add files for example newsletter block * Use only one internal dependencies comment * Include newsletter block in index * Move entry to correct position in webpack * Rename functions to register scripts and styles * Add changelog * Remove block registration code * Register slug as a block category to prevent warnings in console * Add comment explaining the purpose of the function * Bring templates up to date with latest changes to WC Blocks The way the validation store selectors work was updated, so this template will use the new selectors. * Ensure error message shows when box is not checked * Ensure checkbox is targeted with CSS in editor |
||
---|---|---|
.. | ||
changelog | ||
src | ||
$slug-blocks-integration.php.mustache | ||
$slug.php.mustache | ||
.eslintignore.mustache | ||
.eslintrc.js.mustache | ||
.gitignore | ||
.gitignore.mustache | ||
CHANGELOG.md | ||
README.md | ||
README.md.mustache | ||
composer.json | ||
composer.lock | ||
index.js | ||
package.json | ||
project.json | ||
webpack.config.js.mustache |
README.md
@woocommerce/extend-cart-checkout-block
This is a template to be used with @wordpress/create-block
to create a WooCommerce Blocks extension starting point.
Installation
From your plugins
directory run:
npx @wordpress/create-block -t @woocommerce/extend-cart-checkout-block your_extension_name
When this has completed, go to your WordPress plugins page and activate the plugin.
Add some items to your cart and visit the Checkout block, notice there is additional data on the block that this template has added.