A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
Go to file
Rodrigo Primo 44ecb0ec9e Only display the "Paid by customer" section if the order has been paid
This commit changes the condition in the if the statement that decides
whether or not to display the "Paid by customer" section in the order admin
page. Before it, this section was displayed for all orders that
contained one of the following statuses: 'processing', 'completed' or 'refunded'.

The problem with this approach is that offline payment gateways, like
'Cash on Delivery', set the order status to processing when the order is
placed but before the customer pays for it. So the "Paid by customer"
section was being displayed in some cases where the order was not
actually paid yet creating a confusing experience to store managers.

To fix this, this commit also checks for the presence of the
`_date_paid` order meta. If this order meta is present and the order
status corresponds to one of the three statuses listed above, it means that
the order has been paid and we can display the "Paid by customer"
section. If this order meta is not present, we don't display the "Paid
by customer" section.
2020-02-05 16:08:13 -03:00
.github Add link to naming conventions wiki page 2019-12-20 10:02:49 -03:00
.wordpress-org Update screenshots 2019-04-24 12:27:53 -03:00
assets Merge pull request #25289 from rafdizzle86/feature/add-checkout-place-order-success-triggerhandler 2020-01-20 15:25:46 -03:00
bin Introduced GIT post-merge hook to update NPM and Composer dependencies 2019-11-20 19:18:39 -03:00
i18n Merge pull request #24765 from woocommerce/add-laos-subdivisions 2019-12-05 12:50:27 -03:00
includes Only display the "Paid by customer" section if the order has been paid 2020-02-05 16:08:13 -03:00
packages Add note on unit tests 2019-06-26 15:17:52 +01:00
sample-data Update shopmanager display name 2019-01-16 16:01:39 +02:00
src Fix Generic.Arrays.DisallowShortArraySyntax violations 2019-12-20 14:18:04 -03:00
templates Fix missing closing tag (#25226) 2019-12-25 23:45:28 +08:00
tests Add test to make sure that negative fees never make order total negative 2020-02-04 15:33:21 -03:00
.codeclimate.yml Remove references to apigen from configuration files 2019-06-28 10:20:30 -03:00
.codecov.yml Disable Codecov checks for each PR 2020-01-22 16:17:45 -03:00
.editorconfig HTTPS for everybody 2016-05-26 22:48:49 -03:00
.eslintignore Ignore vendor files 2018-11-06 15:31:12 -05:00
.eslintrc Remove legacy e2e test scripts & `babel-jest` package 2019-08-26 15:00:23 +01:00
.gitattributes Merge pull request #25159 from woocommerce/ignore-bin 2019-12-03 15:30:01 -03:00
.gitignore Removed the jquery-ui compilation 2019-11-20 09:44:03 -08:00
.jshintrc Grunt dev 2019-03-15 12:21:51 +00:00
.scrutinizer.yml Remove references to apigen from configuration files 2019-06-28 10:20:30 -03:00
.stylelintrc Updated .stylelintrc config 2018-11-19 19:08:08 -02:00
.travis.yml Remove PHP 7.2 Travis build job from allow_failures list 2019-12-20 09:24:04 -03:00
CHANGELOG.txt Fixed incorrect entry in changelog 2020-01-30 13:09:11 -03:00
CODE_OF_CONDUCT.md Fixed a typo 2017-06-19 16:22:40 -03:00
Dockerfile Mount plugin directory instead of copy. 2019-12-23 13:17:58 -05:00
Gruntfile.js Merge pull request #25074 from woocommerce/fix/24959 2019-12-03 17:59:51 -03:00
README.md Add a link to the wiki in the README.md file 2019-07-26 15:08:29 -03:00
babel.config.js Implement Puppeteer architecture & add basic test 2019-08-23 11:34:07 +01:00
composer.json Update dependency woocommerce/woocommerce-rest-api to v1.0.7 2020-01-28 21:55:26 +00:00
composer.lock Update dependency woocommerce/woocommerce-rest-api to v1.0.7 2020-01-28 21:55:26 +00:00
docker-compose.yaml Mount plugin directory instead of copy. 2019-12-23 13:17:58 -05:00
license.txt update license/readme URLs to HTTPS where appropriate 2019-05-16 09:32:06 -03:00
package-lock.json Update jest monorepo to v25 2020-01-22 01:36:42 +00:00
package.json Merge pull request #25087 from woocommerce/add/post-merge 2020-01-29 18:24:08 -03:00
phpcs.xml Fix spacing 2019-12-20 12:46:57 -03:00
phpunit.xml Exclude new packages and vendor folders from unit tests 2019-07-29 11:20:58 +02:00
readme.txt Version 3.9.0 2020-01-21 21:13:54 -03:00
renovate.json Corrected the format for the dev dependency schedule 2019-12-31 14:06:26 -08:00
uninstall.php Merge branch 'master' into update/erasure-requests 2018-05-02 14:06:47 +01:00
woocommerce.php Version 3.9.0 2020-01-21 21:13:54 -03:00

README.md

WooCommerce

license Latest Stable Version WordPress.org downloads WordPress.org rating Build Status Scrutinizer Code Quality codecov

Welcome to the WooCommerce repository on GitHub. Here you can browse the source, look at open issues 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.

Documentation

Reporting Security Issues

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

Support

This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core WooCommerce issues only. Support can take place through the appropriate channels:

Support requests in issues on this repository will be closed on sight.

Contributing to WooCommerce

If you have a patch or have stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our contributor guidelines for more information how you can do this.