woocommerce/packages/js/extend-cart-checkout-block
Seghir Nadir 2a406c7e8a
Update all blocks to V3 (#48720)
* 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>
2024-08-20 10:14:11 +00:00
..
changelog Update all blocks to V3 (#48720) 2024-08-20 10:14:11 +00:00
src Update all blocks to V3 (#48720) 2024-08-20 10:14:11 +00:00
$slug-blocks-integration.php.mustache Update extend-cart-checkout-block dependency 2023-03-14 11:57:22 +07:00
$slug.php.mustache Register block in PHP and Add default opt in text when saving example block in `@woocommerce/extend-cart-checkout-block` (#48581) 2024-07-10 12:07:02 +01:00
.editorconfig.mustache Update extend-cart-checkout-block dependency 2023-03-14 11:57:22 +07:00
.eslintignore.mustache Add `@woocommerce/extend-cart-checkout-block` package (#32323) 2022-05-25 23:44:31 +12:00
.eslintrc.js.mustache Add `@woocommerce/extend-cart-checkout-block` package (#32323) 2022-05-25 23:44:31 +12:00
.gitignore Extend cart checkout block package: Prep for publish (#33355) 2022-06-10 15:25:17 +12:00
.gitignore.mustache Add `@woocommerce/extend-cart-checkout-block` package (#32323) 2022-05-25 23:44:31 +12:00
.nvmrc.mustache Update extend-cart-checkout-block dependency 2023-03-14 11:57:22 +07:00
.wp-env.json.mustache Move .wp-env.json.mustache to root folder 2023-03-28 12:05:58 +07:00
CHANGELOG.md Prepare Packages for Release (#49334) 2024-07-10 12:34:32 +01:00
README.md Update extend-cart-checkout-block dependency 2023-03-14 11:57:22 +07:00
README.md.mustache Add `@woocommerce/extend-cart-checkout-block` package (#32323) 2022-05-25 23:44:31 +12:00
composer.json bump php version in packages/js/*/composer.json (#42020) 2024-01-04 10:18:34 -04:00
composer.lock Update changelogger to 3.3.0 to support PR number capturing with merge (#36266) 2023-01-05 14:42:51 +05:30
index.js Update extend-cart-checkout-block dependency 2023-03-14 11:57:22 +07:00
package.json Prepare Packages for Release (#49334) 2024-07-10 12:34:32 +01:00
webpack.config.js.mustache Update extend-cart-checkout-block dependency 2023-03-14 11:57:22 +07:00

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"