woocommerce/plugins/woocommerce
Vedanshu Jain 8848e4aa47
Check before getting order classname to see if it exists. (#35207)
2022-10-20 14:47:58 +05:30
..
.wordpress-org git mv a few folders 2021-10-19 10:35:45 +13:00
assets Add a header for the "Add store details" task in woocommerce admin (#34712) 2022-09-26 15:19:47 +03:00
bin Update pnpm command to run makepot (#34733) 2022-09-19 07:38:40 -07:00
changelog Check before getting order classname to see if it exists. (#35207) 2022-10-20 14:47:58 +05:30
client Fix and consolidate linting across the monorepo (#35012) 2022-10-12 15:05:01 +13:00
i18n Update New Zealand subdivisions in states.php (#35011) 2022-10-11 15:33:28 -07:00
includes Check before getting order classname to see if it exists. (#35207) 2022-10-20 14:47:58 +05:30
lib Add a namespace prefix to the Psr/Container package (#33703) 2022-08-02 09:59:32 -07:00
packages Remove PHP 8.1 warnings and errors (#34336) 2022-08-16 10:22:53 -07:00
sample-data Suppressing warnings for malformed metadata in product template downloads #32971 #32971 2022-05-24 11:12:02 -07:00
src Use correct datastore when backfilling orders. (#35176) 2022-10-20 13:22:22 +05:30
templates Make qty input box visible when min_qty = max_qty (#34282) 2022-10-13 09:48:08 -07:00
tests Check before getting order classname to see if it exists. (#35207) 2022-10-20 14:47:58 +05:30
.distignore Remove/assets (#34633) 2022-09-09 10:20:25 -07:00
.eslintignore remove zeroclipboard 2022-02-09 08:06:25 -08:00
.eslintrc.js Update CI to use wp-env for api, e2e and performance tests (#34311) 2022-08-15 11:47:53 -07:00
.gitattributes git mv a few folders 2021-10-19 10:35:45 +13:00
.gitignore Add/a2p create customers crud api core tests (#34945) 2022-10-05 12:45:26 -06:00
.wp-env.json Fix a bug crashing wp-env 5.1.0 in CI (#34274) 2022-08-16 13:21:52 +12:00
NEXT_CHANGELOG.md Empty next changelog 2022-04-15 17:10:45 -03:00
README.md Remove latest stable version from README (#35056) 2022-10-14 15:22:27 -05:00
composer.json Update WooCommerce Blocks package to 8.7.2 (#35101) 2022-10-18 10:36:05 +01:00
composer.lock Update WooCommerce Blocks package to 8.7.2 (#35101) 2022-10-18 10:36:05 +01:00
license.txt git mv a few folders 2021-10-19 10:35:45 +13:00
package.json Fix and consolidate linting across the monorepo (#35012) 2022-10-12 15:05:01 +13:00
phpunit.xml Move phpunit.xml into plugins/woocommerce structure 2021-10-19 10:35:46 +13:00
readme.txt Prep trunk post 7.0 release (#35038) 2022-10-11 11:38:53 -07:00
tsconfig.json Converted Spaces To Tabs In JSON 2022-05-10 13:31:01 -07:00
uninstall.php Prevent fatal errors during uninstall (#34469) 2022-09-14 08:44:01 -07:00
woocommerce.php Prep trunk post 7.0 release (#35038) 2022-10-11 11:38:53 -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 run --filter=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 CSS and jQuery code for WooCommerce.

# Build the assets.
pnpm run --filter=woocommerce/client/legacy build 
# Lint the assets.
pnpm run --filter=woocommerce/client/legacy lint 

plugins/woocommerce-admin

This directory contains the React-based admin interface.

# Build the React-based admin client.
pnpm run --filter=woocommerce/client/admin build 
# Lint the React-based admin client.
pnpm run --filter=woocommerce/client/admin lint 
# Test the React-based admin client.
pnpm run --filter=woocommerce/client/admin test 

Helper Scripts

Here is a collection of scripts that can help when developing the React-based admin interface.

# Create a develoment build of the React-based admin client.
pnpm --filter=woocommerce/client/admin dev 
# Create and watch a development build of the React-based admin client.
pnpm --filter=woocommerce/client/admin start 
# Watch the tests of the React-based admin client.
pnpm --filter=woocommerce/client/admin test:watch 
# Run a type check over the React-based admin client's TypeScript files.
pnpm --filter=woocommerce/client/admin ts:check 

Documentation

Reporting Security Issues

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