3c076b5187
* Improve required info for screen readers on checkout fields * Add style to inline error message on checkout fields * Add id attribute to terms error * Improve accessibility of checkout errors messages * Prevent screen readers from reading the asterisk on checkout fields * Revert spacing change * Revert spacing change * Add changelog file * Decrease line length * Lowercase the required term * Fix query methods in checkout tests * Add space before required text for screen readers * Fix query of shipping fields on legacy checkout tests * Remove asterisk from field name on legacy checkout test * Remove invalid character in Phone and Email fields on legacy checkout test * Add asterisk to get phone and email by label on legacy checkout test * Fix field labels for legacy checkout tests * Fix php lint errors * Add required tem to the Government ID input on tests * Revert changes on required fields label * Create checkout-inline-error-message mixin * Replace SCSS variable with a CSS one * Add checkout inline error message to T17 * Add checkout inline error message to T19 * Add checkout inline error message to TT * Add checkout inline error message to TT1 * Add checkout inline error message to TT2 * Add checkout inline error message to TT3 * Include notice banner block in the notice selectors * Add inline documentation to role attribute removal --------- Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com> |
||
---|---|---|
.. | ||
.wordpress-org | ||
assets | ||
bin | ||
changelog | ||
client | ||
i18n | ||
includes | ||
lib | ||
packages | ||
patterns | ||
sample-data | ||
src | ||
templates | ||
tests | ||
.distignore | ||
.eslintignore | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.phpunit-watcher.yml | ||
.wp-env.json | ||
NEXT_CHANGELOG.md | ||
README.md | ||
composer.json | ||
composer.lock | ||
license.txt | ||
package.json | ||
phpcs.xml | ||
phpunit.xml | ||
readme.txt | ||
tsconfig.json | ||
uninstall.php | ||
woocommerce.php |
README.md
This is the WooCommerce Core plugin. Here you can browse the source and keep track of development. We recommend all developers to follow the WooCommerce development blog to stay up to date about everything happening in the project. You can also follow @DevelopWC on Twitter for the latest development updates.
If you are not a developer, please use the WooCommerce plugin page on WordPress.org.
Getting Started
Please make sure you follow the repository's getting started guide first!
# Make sure that WooCommerce Core and all of its dependencies are built
pnpm --filter=@woocommerce/plugin-woocommerce build
# Make sure you're in the WooCommerce Core directory
cd plugins/woocommerce
# Start the development environment
pnpm -- wp-env start
You should now be able to visit http://localhost:8888/
and access WooCommerce environment.
Building Components
There are two major client-side components included in WooCommerce Core that can be built, linted, and tested independently. We've organized these components in this way to take advantage of caching to prevent unnecessarily performing expensive rebuilds when only working in one of them.
plugins/woocommerce/client/legacy
This directory contains the Classic CSS and jQuery code for WooCommerce.
# Build the assets.
pnpm --filter=@woocommerce/classic-assets build
# Lint the assets.
pnpm --filter=@woocommerce/classic-assets lint
plugins/woocommerce/client/admin
This directory contains the React-based admin interface.
# Build the React-based admin client.
pnpm --filter=@woocommerce/admin-library build
# Lint the React-based admin client.
pnpm --filter=@woocommerce/admin-library lint
# Test the React-based admin client.
pnpm --filter=@woocommerce/admin-library test
plugins/woocommerce-blocks
This directory contains the client for WooCommerce + Gutenberg.
# Build the Blocks client.
pnpm run --filter=@woocommerce/block-library build
# Lint the Blocks client.
pnpm run --filter=@woocommerce/block-library lint
# Test the Blocks client.
pnpm run --filter=@woocommerce/block-library test
Helper Scripts
Here is a collection of scripts that can help when developing the React-based admin interface.
# Create a development build of the React-based admin client.
pnpm --filter=@woocommerce/admin-library dev
# Create and watch a development build of the React-based admin client.
pnpm --filter=@woocommerce/admin-library start
# Watch the tests of the React-based admin client.
pnpm --filter=@woocommerce/admin-library test:watch
# Run a type check over the React-based admin client's TypeScript files.
pnpm --filter=@woocommerce/admin-library ts:check
Documentation
- WooCommerce Documentation
- WooCommerce Developer Documentation
- WooCommerce Code Reference
- WooCommerce REST API Docs
Reporting Security Issues
To disclose a security issue to our team, please submit a report via HackerOne here.