woocommerce/plugins/woocommerce
Peter Fabian 23e3c066a3
Pass cart item data to the deprecated filter to better support validation (#52486)
* Pass cart item data to the deprecated filter to support validation better.

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-08 00:01:45 +00:00
..
.wordpress-org
assets Add Kliken to default OBW extension list (#52295) 2024-10-29 11:56:07 +08:00
bin [dev] CI: install core composer dependencies synchronously in CI-environment. (#52395) 2024-10-29 09:16:11 +01:00
changelog Pass cart item data to the deprecated filter to better support validation (#52486) 2024-11-08 00:01:45 +00:00
client Remove shipping modal fonts (#52521) 2024-11-08 10:48:06 +13:00
i18n Update symbol and formatting of the XPF currency (#46960) 2024-05-15 04:50:55 +07:00
includes Add global prop to Tracks events for user role (#52533) 2024-11-07 11:12:23 +08:00
lib [Accessibility] Fix typos in inline documentation in woocommerce client, includes, and lib folders (#50739) 2024-08-27 16:23:04 +02:00
packages [dev] pnpm install: speedup postinstall hooks a bit (#51538) 2024-09-24 08:34:46 +02:00
patterns Hide AbstractProductGrid blocks from inserter (soft-deprecation) (#52209) 2024-11-04 18:57:51 +01:00
sample-data Update @woo.com email addresses to @woocommerce.com (#46387) 2024-04-19 21:11:01 +00:00
src Pass cart item data to the deprecated filter to better support validation (#52486) 2024-11-08 00:01:45 +00:00
templates Fix block theming doc links (#52230) 2024-10-24 12:19:59 +02:00
tests Add frontend metric tests (#52347) 2024-11-07 17:10:30 -05:00
.distignore Update the `.distignore` file to exclude the ./client/admin folder from zip (#52052) 2024-10-16 20:46:35 +08:00
.eslintignore Merge React Admin (#49647) 2024-10-11 11:31:11 +08:00
.eslintrc.js Add JS lint scripts for woocommerce plugin (#46214) 2024-04-12 07:30:17 +03:00
.gitattributes
.gitignore Merge React Admin (#49647) 2024-10-11 11:31:11 +08:00
.phpunit-watcher.yml Add php unit watcher and update unit test docs (#44681) 2024-02-19 16:40:29 +08:00
.wp-env.json [dev] Monorepo: bypass git clone for WordPress core when spinning off wp-env (#51457) 2024-09-19 10:33:57 +02:00
NEXT_CHANGELOG.md
README.md Merge React Admin (#49647) 2024-10-11 11:31:11 +08:00
composer.json [Navigation] Gracefully handle deprecation of classes (#52248) 2024-10-29 10:46:24 +13:00
composer.lock Update Action Scheduler to 3.8.2 (#51353) 2024-09-13 09:37:13 +02:00
license.txt
package.json Checkout: Collapsible Order Summary in mobile view (#52253) 2024-11-01 05:48:54 +13:00
phpcs.xml Merge React Admin (#49647) 2024-10-11 11:31:11 +08:00
phpunit.xml PHPUnit: report slow tests. (#51253) 2024-09-10 12:37:23 +02:00
readme.txt Update readme.txt, fix WP CLI link. (#52351) 2024-10-25 14:32:01 -07:00
tsconfig.json
uninstall.php
woocommerce.php Prep trunk for 9.5 cycle (#51529) 2024-09-24 17:59:48 +07:00

README.md

WooCommerce

License WordPress.org downloads WordPress.org rating Build Status codecov

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

Reporting Security Issues

To disclose a security issue to our team, please submit a report via HackerOne here.