woocommerce / woocommerce-blocks
WooCommerce blocks for the Gutenberg editor.
Installs: 900 075
Dependents: 1
Suggesters: 0
Security: 0
Stars: 398
Watchers: 93
Forks: 223
Open Issues: 41
Language:TypeScript
Type:wordpress-plugin
Requires
- ext-hash: *
- ext-json: *
- automattic/jetpack-autoloader: ^2.11
- automattic/jetpack-config: ^1.15
- automattic/jetpack-connection: ^1.57
- composer/installers: ^1.7.0
Requires (Dev)
- mockery/mockery: 1.6.6
- nikic/php-parser: 4.16.0 as 1.0.0
- phpdocumentor/reflection: 3.0.1
- phpunit/php-code-coverage: 9.2.29
- phpunit/phpunit: 9.6.13
- woocommerce/woocommerce-sniffs: 0.1.3
- wp-hooks/generator: 0.9.0
- yoast/phpunit-polyfills: 2.0.0
- dev-trunk
- 11.7.0
- 11.6.2
- 11.6.1
- 11.6.0
- 11.5.4
- 11.5.3
- 11.5.2
- 11.5.1
- 11.5.0
- 11.4.9
- 11.4.8
- 11.4.7
- 11.4.6
- 11.4.5
- 11.4.4
- 11.4.3
- 11.4.2
- 11.4.1
- 11.4.0
- 11.3.1
- 11.3.0
- 11.2.0
- 11.1.3
- 11.1.2
- 11.1.1
- 11.1.0
- 11.0.0
- 10.9.3
- 10.9.2
- 10.9.1
- 10.9.0
- 10.8.3
- 10.8.2
- 10.8.1
- 10.8.0
- 10.7.1
- 10.7.0
- 10.6.6
- 10.6.5
- 10.6.4
- 10.6.3
- 10.6.2
- 10.6.1
- 10.6.0
- 10.5.0
- 10.4.6
- 10.4.5
- 10.4.4
- 10.4.3
- 10.4.2
- 10.4.1
- 10.4.0
- 10.3.0
- 10.2.4
- 10.2.3
- 10.2.2
- 10.2.1
- 10.2.0
- 10.1.0
- 10.0.6
- 10.0.5
- 10.0.4
- 10.0.3
- 10.0.2
- 10.0.1
- 10.0.0
- 9.9.0
- 9.8.5
- 9.8.4
- 9.8.3
- 9.8.2
- v9.8.1
- v9.8.0
- v9.7.2
- v9.7.1
- v9.7.0
- v9.6.6
- v9.6.5
- v9.6.4
- v9.6.3
- v9.6.2
- v9.6.1
- v9.6.0
- v9.5.0
- v9.4.4
- v9.4.3
- v9.4.2
- v9.4.1
- v9.4.0
- v9.3.0
- v9.2.0
- v9.1.5
- v9.1.4
- v9.1.3
- v9.1.2
- v9.1.1
- v9.1.0
- v9.0.0
- v8.9.4
- v8.9.3
- v8.9.2
- v8.9.1
- v8.9.0
- v8.8.2
- v8.8.1
- v8.8.0
- v8.7.6
- v8.7.5
- v8.7.4
- v8.7.3
- v8.7.2
- v8.7.1
- v8.7.0
- v8.6.0
- v8.5.2
- v8.5.1
- v8.5.0
- v8.4.0
- v8.3.3
- v8.3.2
- v8.3.1
- v8.3.0
- v8.2.1
- v8.2.0
- v8.1.0
- v8.0.0
- v7.9.0
- v7.8.3
- v7.8.2
- v7.8.1
- v7.8.0
- v7.7.0
- v7.6.2.x-dev
- v7.6.2
- v7.6.1
- v7.6.0
- v7.5.0
- v7.4.3
- v7.4.2
- v7.4.1
- v7.4.0
- v7.3.0
- v7.2.2
- v7.2.1
- v7.2.0
- v7.1.0
- v7.0.0
- v6.9.0
- v6.8.0
- v6.7.3
- v6.7.2
- v6.7.1
- v6.7.0
- v6.6.0
- v6.5.2
- v6.5.1
- v6.5.0
- v6.4.0
- v6.3.3
- v6.3.2
- v6.3.1
- v6.3.0
- v6.2.0
- v6.1.0
- v6.0.2
- v6.0.1
- v6.0.0
- v5.9.1
- v5.9.0
- v5.8.0
- v5.7.2
- v5.7.1
- v5.7.0
- v5.6.0
- v5.5.1
- v5.5.0
- v5.4.0
- v5.3.3
- v5.3.2
- v5.3.1
- v5.3.0
- v5.2.0
- v5.1.1
- v5.1.0
- v5.0.0
- v4.9.2
- v4.9.1
- v4.9.0
- v4.8.0
- v4.7.3
- v4.7.2
- v4.7.1
- v4.7.0
- v4.6.0
- v4.5.2
- v4.5.1
- v4.5.0
- v4.4.4
- v4.4.3
- v4.4.2
- v4.4.1
- v4.4.0
- v4.3.0
- v4.2.0
- v4.1.0
- v4.0.1
- v4.0.0
- v3.9.0
- v3.8.2
- v3.8.1
- v3.8.0
- v3.7.1
- v3.7.0
- v3.6.1
- v3.6.0
- v3.5.0
- v3.4.1
- v3.4.0
- v3.3.0
- 3.2
- v3.1.1
- v3.1.0
- v3.0.0
- v2.9.0
- v2.8.0
- v2.7.4
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.1
- v2.6.0
- v2.6.0-rc1
- v2.6.0-beta3
- v2.6.0-beta-2
- v2.6.0-beta.1
- v2.5.17
- v2.5.16
- v2.5.15
- v2.5.14.1
- v2.5.14
- v2.5.13
- v2.5.12
- v2.5.11.1
- v2.5.11
- v2.5.10
- v2.5.9
- v2.5.8
- v2.5.7
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.5.0-beta3
- v2.5.0-beta2
- v2.5.0-beta1
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.1
- v2.3.0
- v2.3.0-rc.1
- v2.3.0-beta.3
- v2.3.0-beta.2
- v2.3.0-beta
- v2.2.1
- v2.2.0
- v2.1.0
- v2.1.0-rc
- v2.0.1
- v2.0.0
- v2.0.0-rc3
- v2.0.0-rc2
- v2.0.0-rc1
- v2.0.0-beta
- v2.0.0-alpha
- v1.4.0
- v1.4.0-RC
- v1.3.1
- v1.3.0
- v1.3.0-RC
- 1.2.0
- dev-dependabot/npm_and_yarn/axios-1.6.0
- dev-add/11585-custom-fields-api
- dev-11933-contribution-test
- dev-add/merge-block-workflow
- dev-fix/11855-update-deprecated-button-props
- dev-11164-contribution-test
- dev-9360-product-collection-filters-price-range
- dev-add/11823-hide-filters-per-collection
- dev-add/10822-new-flow-for-product-collection
- dev-add/reviews-tests
- dev-fix/improve-e2e-test-flakiness
- dev-ci/11802
- dev-fix/pr-11070-payment-methods-index
- dev-fix/9114_session_handler_shims
- dev-fix/11563-notice-styling
- dev-test/price-filter-context
- dev-release/11.6.0
- dev-add/active-filters-interactivity-api
- dev-add/interactivity-rating-filter
- dev-release/11.6.1
- dev-update/8883-optimise-shipping-notice
- dev-fix/10565-express-payment-error
- dev-dev/minor-store-changes-dropdown
- dev-refactor/import-alias
- dev-update/jetpack-tracking
- dev-dev/migrate-price-filter-store-api
- dev-cherry-pick/directive-enhancements
- dev-add/9778-add-option-to-opt-out-from-woocommerce-blocks-patterns
- dev-dev/dropdown-support-multi-select
- dev-fix/product-gallery-e2e-test
- dev-11828/ai-generated-price
- dev-fix/11851-woocommerce-before-thankyou-hook
- dev-add/10822-e2e-failing
- dev-dev/clean-up-ts-action
- dev-fix/11311-product-gallery-refactor-handle-click-action
- dev-fix/generate-ai-content-for-newly-created-products
- dev-block-hook/insert-mini-cart-into-header-template-part
- dev-upodate/fine-tune-ai-prompts
- dev-try/data-processing-filters
- dev-dependabot/npm_and_yarn/testing-library/react-hooks-8.0.1
- dev-dependabot/npm_and_yarn/eslint-import-resolver-typescript-3.6.1
- dev-dependabot/npm_and_yarn/classnames-and-types/classnames-2.3.2
- dev-dependabot/npm_and_yarn/dataloader-2.2.2
- dev-dependabot/github_actions/actions/checkout-4
- dev-update/ai-content-generation-for-products
- dev-add/checkboxlist-storybook
- dev-dependabot/github_actions/WebFreak001/deploy-nightly-3.0.0
- dev-try/block-templates-refactor-poc
- dev-dependabot/composer/woocommerce/woocommerce-sniffs-1.0.0
- dev-11516-cys-improve-footer-with-simple-menu-and-cart-pattern
- dev-enhance/add-default-width-for-site-logo
- dev-11237-fix-height-issues-with-the-product-collections-featured-collection-on-the-editor
- dev-try/add-experimental-collection-filter
- dev-tt4/11328-featured-blocks-rounded-borders
- dev-remove/author-filter-from-product-collection
- dev-11398-cys-woo-express-hero-product-3-split
- dev-try/filter-block-as-view-block
- dev-try/11148-product-gallery-add-max-thumbnails-columns
- dev-try/10946-add-better-product-gallery-dialog-template-part
- dev-fix/9790-shipping-method-switch
- dev-try/product-collection-extendability-attributes
- dev-try/product-recommendations-block
- dev-update/patterns-content
- dev-add/organise-patterns
- dev-fix/add-aspect-ratio-to-patterns
- dev-try/inner-filter-block
- dev-try/new-price-filter
- dev-11088-store-customization-homepage-template-1-review-layout-and-spacing-in-between-patterns
- dev-try/auto-insert-blocks
- dev-experiment/templated-fixtures
- dev-fix/make-pattern-images-more-restrictive
- dev-interactivity-api-sync-with-gutenberg
- dev-experiment/store-notices-with-interactivity-api
- dev-fix/prevent-product-gallery-from-appearing-on-post-editor
- dev-10880-product-gallery-add-support-for-variation-image-updates
- dev-poc/collections-as-variations
- dev-enhancement/10658-store-customization-create-a-new-endpoint-within-store-api-for-updating-patterns-with-ai-generated-content
- dev-try/interactivity-with-mustache
- dev-fix/lint-error
- dev-dev/migrate-product-rating-to-playwright
- dev-try/merge-frontend-requests
- dev-10750-product-gallery-block-different-icons-for-next-previous-block
- dev-10771/featured-categories-grid-pattern
- dev-10771/add-featured-categories-grid-pattern
- dev-revert/9859
- dev-pw/enable-parallelism
- dev-10637-product-hero-pattern-update-the-content-max-width
- dev-test-jetpack-ai
- dev-feat/10713-add-support-to-view-ts-file
- dev-fix/upgrade-package-lock-and-composer-lock-to-prevent-error-when-building
- dev-fix/testing-instructions-10339
- dev-try/optimize-frontend-rendering-stock-filter
- dev-try/storybook7
- dev-try/use-storystorev7
- dev-enhance/auto-insert-the-mini-cart-block-after-navigation-block
- dev-9274-explore-how-to-inject-the-mini-cart-block-into-headers
- dev-10458-store-customization-design-feedback-on-wireframed-and-new-patterns
- dev-try/use-playwright-container
- dev-try/simple-price-filter-block-demo
- dev-fix/10594
- dev-fix/10525-disable-product-query-from-inserter
- dev-update/price-block-improvments
- dev-10511/remove-wp-hardcoded-version
- dev-test-flaky
- dev-9004-playwright-migration-integrate-the-flaky-e2e-test-reporter
- dev-try/cancel-request-middleware
- dev-try/populate-patterns-with-verticals
- dev-product-on-sale-convert-to-ts
- dev-add/e2e-tests-compatiblity-layer
- dev-add/e2e-tests-compatiblity-no-reults
- dev-6516/assign-milestone-after-merging
- dev-fix/migration-for-blockyfied-templates
- dev-7034/fix-best-selling-products-logic
- dev-add/product-gallery-settings-crop-zoom-fullscreen
- dev-test/test-ci-php-error
- dev-try/google-maps-client
- dev-fix/legacy-template-archive
- dev-fix/single-product-duplicate-classname-2
- dev-10259-woocommerce-causing-malfunction-of-the-navigation-block-on-wordpress-63
- dev-fix/9400
- dev-feature/gift-wrapping
- dev-test/pr9614
- dev-update/block-editor
- dev-fix/10228
- dev-9668/show-enabled-express-methods-detect-button-render
- dev-9668/show-enabled-express-methods
- dev-add/an-endpoint-for-updating-customer-by-order
- dev-fix/print_inline_script-is-deprecated-on-wp-6-3
- dev-9438/product-rating-inner-blocks
- dev-experiment/create-data-wc-navigation-id-directive
- dev-add/9943-product-gallery-thumbnails
- dev-add/an-endpoint-for-getting-pay-for-order-orders
- dev-add/product-gallery-next/previous-buttons
- dev-add/migration-path-from-products-to-product-collection
- dev-add/migration-path-from-products-to-product-collection-notice-visibility-logic
- dev-add/block-fixture-generation
- dev-add/6949-interactivity-api-product-button-store
- dev-check/remove-proptypes-product-tag-9758-pr
- dev-contribute-pipeline-check-9758
- dev-add/product-centric-product-collection
- dev-fix/active-filters-tests
- dev-6949-different-behavior-of-the-product-button-block-when-it-is-used-in-the-product-query-block-and-it-is-used-in-the-all-products-block
- dev-enhance/9438-enable-individual-customization-of-stars-and-rating
- dev-test-php-lint-ci
- dev-contribution-pipeline-check-9814
- dev-9847/hero-product-3-split
- dev-disable-php-unit-tests
- dev-run-php-unit-tests-only-for-php-files
- dev-update/products-alignment
- dev-8744-create-a-docker-image-with-the-env-already-setup-to-reduce-the-time-to-run-e2e-tests
- dev-contribution-pipeline-check-9815
- dev-add/hook-up-the-order-update-customer
- dev-add/9745-product-collection-product-summary
- dev-product-collection-use-product-title
- dev-fix/9726-product-meta-inner-blocks-alignment-not-correct-when-product-has-no-sku
- dev-fix/add-d-ts-module-with-product
- dev-9003-playwright-migration-support-multiple-environment
- dev-9637-block-error-is-displayed-on-clearing-customizations-for-woo-templates
- dev-test-9713
- dev-add/enable-blockified-template-more-e2e-tests
- dev-add/add-to-cart-with-options-dedicated-templates
- dev-fix/@wordpress/e2e-test-utils-playwright-official-package
- dev-fix/add-to-cart-with-options-remove-opinionated-font-size
- dev-8771-add-to-cart-form-redirects-to-the-product-page-after-clicking-the-button
- dev-fix/remove-call-to-global-variables-from-gallery-block
- dev-9287-product-rating-add-the-support-for-the-single-product-template
- dev-fix/checkout-error
- dev-fix/php-error-on-pattern
- dev-test/add-text-field
- dev-fix/name-for-add-to-cart-block
- dev-try/products-optimisation-with-api-fetch
- dev-contribution-pipeline-check-9258
- dev-9036/header-2-pattern
- dev-try/wc-payments-fix
- dev-try/filter-by-price-customisation
- dev-add/poc-custom-fields
- dev-fix/attribute-filter-send-data-on-initial-request
- dev-try/global-variable-overwrite
- dev-poc-custom-fields
- dev-try/filters-with-client-side-navigation
- dev-fix/8341-disable-buttons-when-updating-items
- dev-add/rewind-posts-to-product-details-block
- dev-fix/attribute-terms-tree-bug
- dev-8528-product-image-gallery-block-not-showing-sale-badge
- dev-try/add-simple-price-filter-block
- dev-fix/re-add-product-type-product-class
- dev-fix/hide_product_image_gallery_release
- dev-try/mini-cart-show-amount
- dev-fix/avoid-unnecessary-serialization
- dev-try/cherry-pick-wp-components
- dev-add/6909-skip-generate-zip-test
- dev-fix/duplicated-star-ratings
- dev-try/simple-price-filter-ssr
- dev-try/single-product-post-types
- dev-try/single-product-fallback-templates
- dev-fix/stylebook-mini-cart-contents
- dev-8314-blockifying-single-product-template-investigate-how-to-apply-wc-core-styles-to-product-template
- dev-try/single-product-extra-templates
- dev-7649/hide-product-by-templates
- dev-7649/hide-product-by
- dev-fix/stylebook-filter-preview
- dev-add/e2e-test-old-wordpress
- dev-fix-block-tests
- dev-add/product-query-layout-options
- dev-fix/refactor-product-query-e2e-tests
- dev-fix/8048-storybook-productprice-error
- dev-add/breadcrumbs-block
- dev-try/single-product-template-by-type
- dev-try/wrapper-no-wrapper
- dev-try/product-gallery
- dev-enhance/blocks-registration-performance
- dev-try/fix-click-event-not-triggering-in-editor
- dev-try/update-wordpress-components-front
- dev-chore/enable-react-fast-refresh
- dev-try/8002
- dev-fix/cart-block-invalid-coupon-console-error
- dev-fix/stable-reference-to-actions-in-use-forced-layout
- dev-revert-7511-partially
- dev-tests/product-query-variations
- dev-try/reuse-preview-options
- dev-enhancement/update-copy-filter-by-rating-block
- dev-add/product-query-default-pattern
- dev-try/custom-fields
- dev-docs/fix-md-lint-errors
- dev-test/update-comment-monitor-ts
- dev-try/minicart-themejson-icon
- dev-try/typescript-monitor-second-branch
- dev-try/block_single_product
- dev-try/product-connected-patterns
- dev-persist-shipping-as-billing
- dev-fix/cart-express-payment-any-instead-of-or2
- dev-fix/1160
- dev-docs/inner-blocks
- dev-try/product-grid-client-side-transitions-with-filters
- dev-add/payment-docs
- dev-try/extension-layer
- dev-try/use-existing-hook-for-hoc
- dev-backup
- dev-moment-timezone-bug-repro
- dev-fix/6879-coupon-batch-delete-return-type
- dev-new-grid
- dev-try/new-product-grid
- dev-fix/e2e-timeout
- dev-fix/1279
- dev-refactor/e2e-i18n
- dev-fix/active-filters-and-php-templates-2
- dev-fix/6029-3
- dev-try/6064-handpicked-products-add-image-control
- dev-fix/select-element-style
- dev-refactor/goToBlockPage
- dev-chore/5890-rename-legacy-blocks
- dev-add/5666-add-to-cart-button
- dev-poc/payment-methods-block-state
- dev-ts-conversions
- dev-add/4965-price-product
- dev-add/4965-product-image
- dev-chip-improvements
- dev-try/global-background-style-mini-cart
This package is auto-updated.
Last update: 2024-03-22 22:19:38 UTC
README
The documentation for WooCommerce Blocks has moved to the WooCommerce monorepo.
Please refer to the documentation in the new location as the files in this repository will no longer be updated and the repository will be archived.
WooCommerce Blocks
This is the feature plugin for WooCommerce + the Gutenberg. This plugin serves as a space to iterate and explore new Blocks and updates to existing blocks for WooCommerce, and how WooCommerce might work with the block editor.
Use this plugin if you want access to the bleeding edge of available blocks for WooCommerce. However, stable blocks are bundled into WooCommerce, and can be added from the "WooCommerce" section in the block inserter.
Table of Contents
- Documentation
- Installing the plugin version
- Installing the development version
- Getting started with block development
- Long-term vision
Documentation
To find out more about the blocks and how to use them, check out the documentation on WooCommerce.com.
If you want to see what we're working on for future versions, or want to help out, read on.
Code Documentation
- Blocks - Documentation for specific Blocks.
- Editor Components - Shared components used in WooCommerce blocks for the editor (Gutenberg) UI.
- WooCommerce Blocks Handbook - Documentation for designers and developers on how to extend or contribute to blocks, and how internal developers should handle new releases.
- WooCommerce Blocks Storybook - Contains a list and demo of components used in the plugin.
Installing the plugin version
We release a new version of WooCommerce Blocks onto WordPress.org every few weeks, which can be used as an easier way to preview the features.
Note: The plugin follows a policy of supporting the "L0" strategy for version support. What this means is that the plugin will require the most recent version of WordPress. It will also require the most recent version of WooCommerce core at the time of a release. You can read more about this policy here.
1.Ensure you have the latest available versions of WordPress and WooCommerce installed on your site. 2. The plugin version is available on WordPress.org. Download the plugin version here. 3. Activate the plugin.
Installing the development version
- Ensure you have the latest versions of WordPress and WooCommerce installed on your site.
- Get a copy of this plugin using the green "Clone or download" button on the right.
- Make sure you're using Node.js v16.15. If you use a Node version management tool such as
nvm
orn
, you can do so by runningnvm use
orn auto
, respectively. npm install
to install the dependencies.composer install
to install core dependencies.- To compile the code, run any of the following commands
npm run build
(production build).npm run dev
(development build).npm start
(development build + watching for changes).
- Activate the plugin.
The source code is in the assets/
folder, and the compiled code is stored into build/
.
Getting started with block development
Run through the "Writing Your First Block Type" tutorial for a quick course in block-building.
For deeper dive, try looking at the core blocks code, or see what components are available.
To begin contributing to the WooCommerce Blocks plugin, see our getting started guide and developer handbook.
Other useful docs to explore:
Long-term vision
WooCommerce Blocks are the easiest, most flexible way to build your store's user interface and showcase your products.