2a406c7e8a
* Update all blocks to V3 * remove explicit version set in shared config blocks * update styling for Cart/Checkout in iframe * test: fix block e2e tests * test: fix attribute filter e2e tests * test: fix product collection e2e tests * test: fix product on sale e2e test * test: fix rating filter e2e tests * test: fix review e2e tests * test: fix stock e2e tests * test: fix preview button test * fix: product on sale wrapper * test: fix insertBlockByShortcut in iframe * test: fix core e2e tests * chore: changelog * test: typo * test: update PC e2e tests * add test to make sure iframe canvas is loaded * fix syntax error * Update plugins/woocommerce-blocks/tests/e2e/tests/basic.block_theme.spec.ts Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com> --------- Co-authored-by: Tung Du <dinhtungdu@gmail.com> Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com> |
||
---|---|---|
.. | ||
changelog | ||
src | ||
$slug-blocks-integration.php.mustache | ||
$slug.php.mustache | ||
.editorconfig.mustache | ||
.eslintignore.mustache | ||
.eslintrc.js.mustache | ||
.gitignore | ||
.gitignore.mustache | ||
.nvmrc.mustache | ||
.wp-env.json.mustache | ||
CHANGELOG.md | ||
README.md | ||
README.md.mustache | ||
composer.json | ||
composer.lock | ||
index.js | ||
package.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.
Installing wp-prettier
(optional)
WooCommerce Blocks uses wp-prettier
to format the JS files. If you want to use wp-prettier
, you will need to run the following command:
nvm use && npm i --D "prettier@npm:wp-prettier@latest"
Installing wp-env
(optional)
wp-env
lets you easily set up a local WordPress environment for building and testing your extension. If you want to use wp-env
, you will need to run the following command:
nvm use && npm i -D @wordpress/env && npm set-script wp-env "wp-env"