vedanshujain
e62169a4b5
Cache return fields for perfromance
2020-12-18 14:40:20 +05:30
vedanshujain
2e65b8cec4
Fetch expensive fields only when required for performance
2020-12-18 14:40:20 +05:30
roykho
da82bea77c
Add command script to run the unit tests
2020-12-17 12:53:27 -08:00
vedanshujain
892b7caa37
Stock managment fixes:
...
1. Use $already_reduced_stock instead of also considering $refunded_item_quantity while deleting orders. This will bring back part of #27504 again, but for now this seems to be the best solution for countering #28605 . It needs discussion whether deleting a line item completely should also undo any refund related changes on it or not.
2. Also mark `stock_reduced` flag on order if any of the line item has any `_reduced_stock` flag. This will allow for stock restoring logic to work properly when order is cancelled.
3. Only adjust line item stock when order is in `processing`, `completed` or `on-hold` status state, because we need to reduce stocks on these status only. Stock adjustments in refunds or when changing statuses is already taken care of by their specific hooks.
2020-12-17 22:28:21 +05:30
vedanshujain
84d60e5fcf
Add unit tests for all status change ops.
...
This loops and tests stock changes through ALL supported WooCommerce statuses. Hopefully this will make our inventory tracking more robust.
2020-12-17 22:28:21 +05:30
Nestor Soriano
912f27264e
Use fork from downloaded zip instead of from GitHub,
...
since Travis can't clone GH repos without a SSH key.
2020-12-17 16:47:32 +01:00
Leif Singer
bc3e6a8532
Price calculation: fix documented return types
...
Fixes #26092 .
2020-12-17 15:35:07 +01:00
Brian
2f808a1868
speak none fix
2020-12-17 07:47:40 +01:00
Brian
10fb4a3c19
speak none fix
2020-12-17 07:47:17 +01:00
Brian
3270423772
speak none fix
2020-12-17 07:46:57 +01:00
Brian
9d42187039
speak: never
...
#28601 issue on woo github
2020-12-17 07:45:50 +01:00
Brian
d6f574c080
Merge pull request #1 from woocommerce/master
...
get new commits
2020-12-17 07:39:38 +01:00
zhongruige
b23d5db546
Typo fix
2020-12-16 15:00:13 -07:00
Claudio Sanches
6c132c1e25
Merge pull request #28543 from woocommerce/fix/27521
...
Fix issue where customer could checkout although mandatory field "Country" was not given
2020-12-16 17:01:10 -03:00
Claudio Sanches
d523f5aad2
Merge pull request #28538 from woocommerce/fix/remove-gb-from-eu-vat
...
Remove GB and IM from EU VAT countries
2020-12-16 16:59:02 -03:00
vedanshujain
6fa77b3d8e
Fixup for myaccount page logic, it should be > 0 ot be considered as set.
2020-12-16 19:48:09 +05:30
vedanshujain
981d494d52
Add unit tests for #28592
2020-12-16 19:37:01 +05:30
vedanshujain
9ca52ee73b
Fix unit test to use new coupon error messages.
...
This also removes some cart operations which are not needed anymore to since cart already has items that we were adding in those tests.
2020-12-16 16:21:33 +05:30
vedanshujain
6b550ffb23
Better error messages for when coupon are held in other transactions.
...
Earlier, we were just showing an "Usage limit reached message", however in some cases, specially when user is logged in, we can also ask them to go to MyAccount page and cancel order if they'd like to (to free up the coupon). This will hopefully make for a better user experience.
2020-12-16 15:19:40 +05:30
zhongruige
5131c922a2
Remove unneeded no-disabled-tests
2020-12-15 20:18:16 -07:00
zhongruige
e178017e0a
Added tests for the merchant order apply coupon flow
2020-12-15 20:14:02 -07:00
Tam Mullen
44d508e332
Merge pull request #28556 from woocommerce/add/e2e-merchant-orders-refund-order
...
Added new tests for the merchant order refund flow
2020-12-15 22:35:30 +00:00
roykho
9ffdfd3401
Check in package-lock
2020-12-15 14:21:05 -08:00
roykho
56c8c5dd41
Only uglify the changed file when Grunt watching
2020-12-15 12:40:05 -08:00
roykho
13d8adb257
Configure Grunt to run uglify on all JS assets
2020-12-15 12:28:22 -08:00
Ron Rennick
f74969f1a6
Merge pull request #28548 from woocommerce/travis-retry
...
Retry e2e tests automatically in case of failure
2020-12-15 09:38:50 -04:00
zhongruige
d8018cf28e
Add missing trailing semicolon
2020-12-15 06:33:55 -07:00
Rodrigo Primo
b18fb32aa9
Merge pull request #28565 from woocommerce/fix/issue-28260
...
Fix error tooltip misaligned on tax country field closes #28260
2020-12-15 09:48:22 -03:00
Rodrigo Primo
5842068cdf
Merge pull request #28587 from woocommerce/add/e2e-docker-image-delay
...
add 12 hour delay to pulling new docker tags
2020-12-15 09:17:12 -03:00
vedanshujain
507e7a27b2
Better error messages when coupons are stuck in a pending order.
...
We hold coupons when payment is failed if the setting "hold stock for checkout" is enabled for some minutes. This is to allow the customers to try again if they want, and to give time to complete payment for gateways where it could take some time.
Unfortunately this cause for some bad UX user retries by starting the order from scratch again, and then if they apply the coupon, usage limit gets hit because the earlier coupon is still held and is counted towards the usage. This commit improves the error message in these cases when usage is applied per customer and is hit, by stating to go to my account to complete/cancel payment (in case of logged in user) or to wait for some time in case of guest users.
2020-12-15 16:01:14 +05:30
Sam Seay
975388bfb3
Update wc-admin to 1.8.1
2020-12-15 15:00:08 +13:00
roykho
697e9a0c2f
Add woocommerce.zip to gitignore
2020-12-14 09:14:21 -08:00
roykho
ecbbf08203
Add select2 to Grunt minify process
2020-12-14 07:48:54 -08:00
roykho
cce5cbe985
Remove packaged minified files
2020-12-14 07:41:45 -08:00
roykho
f89355f821
Git ignore packaged min files
2020-12-14 07:32:54 -08:00
Ron Rennick
733157638b
update package changelog
2020-12-14 10:54:29 -04:00
Ron Rennick
ef61903822
add 12 hour delay to pulling new docker tags
2020-12-14 10:42:39 -04:00
Ido F
703d474e52
corrected data-types in phpdoc @param
2020-12-14 13:31:52 +02:00
Vedanshu Jain
4339aee35f
Merge pull request #27352 from juliquiron/fix/slow-wc-customer-get-operations
...
Added cache and filter for wc-customer get operations.
2020-12-14 09:43:04 +05:30
zhongruige
88630e2a32
Add delete issued refund test
2020-12-13 16:07:16 -07:00
zhongruige
46164b032d
Add config variable for simple product price and update tests to utilize it
2020-12-12 15:46:13 -07:00
roykho
83f327026f
Fix error tooltip misaligned on tax country field closes #28260
2020-12-11 12:34:31 -08:00
zhongruige
9d95a21f48
Cleanup unused no-standalone-expect
2020-12-11 10:54:42 -07:00
zhongruige
88ddefbcb3
Dynamically pull the currency symbol instead of hard-coding it
2020-12-11 10:48:20 -07:00
zhongruige
4ca6114476
Swap out currency symbol
2020-12-11 09:47:03 -07:00
Nestor Soriano
3139bd1842
Change PHPUnit version to 6.5.14 (compatible with PHP 7.x), but
...
switch to the fork in Travis for PHP 8.
2020-12-11 16:47:24 +01:00
Nestor Soriano
8167e5f3ad
Adjustments to composer files after merging from master
2020-12-11 11:22:48 +01:00
Nestor Soriano
1818406edd
Merge branch 'master' into php8/use-custom-phpunit-7
2020-12-11 09:03:38 +01:00
Philipp Bammes
19d978ce1c
Invert “if” statement to reduce nesting
2020-12-11 08:23:22 +01:00
zhongruige
2caac87d03
Added new tests for the merchant order refund flow
2020-12-10 21:27:04 -07:00