0a3cf74c06
* Removed deprecated WC_COUPON::is_valid() method usage from CartController.php
* Reverted wrongly changed line.
* Added validate_coupon_allowed_emails() to WC_Discounts
* Added soft validation for allowed emails coupons, with custom notice via WC_Coupon::add_coupon_message()
* Fixed log warning
* Refactored add_coupon_message()
* Prevent duplicate coupon notices.
* Changed coupon soft validation notice type.
* Tweaks
* Run coupon soft validations only on cart validation.
* Reverted soft validation, and added email information for coupon validation
* Removed unused coupon message
* PHP lint fixes.
* Added changelog.
* PHP lint fix
* Updated allowed coupon validation error message
* Updated PW tests
* Updated PW tests
* Updated email restricted coupon message.
* Small change for readability.
* Different error messages for shortcode cart and shortcode checkout
* Simplified CartApplyCoupon::get_post_route_response()
* Revert "Simplified CartApplyCoupon::get_post_route_response()"
This reverts commit
|
||
---|---|---|
.. | ||
.github | ||
.husky | ||
.sources | ||
.vscode | ||
.wordpress-org | ||
assets | ||
bin | ||
changelog | ||
docs | ||
packages | ||
patches | ||
storybook | ||
tests | ||
.distignore | ||
.editorconfig | ||
.env | ||
.eslintignore | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.markdownlint.json | ||
.markdownlintignore | ||
.prettierignore | ||
.prettierrc.js | ||
.stylelintrc.json | ||
.wp-env.json | ||
LICENSE | ||
README.md | ||
babel.config.js | ||
checkstyle.xml | ||
composer.json | ||
composer.lock | ||
docker-compose.yml | ||
global.d.ts | ||
package-lock.json | ||
package.json | ||
phpcs.xml | ||
phpunit.xml.dist | ||
postcss.config.js | ||
readme.txt | ||
tsconfig.base.json | ||
tsconfig.json | ||
webpack.config.js | ||
wp-cli.yml |
README.md
WooCommerce Blocks
This is the client for WooCommerce + Gutenberg. This package 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.
Table of Contents
Documentation
To find out more about the blocks and how to use them, check out the documentation on Woo.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.
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.
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.