Commit Graph

37792 Commits

Author SHA1 Message Date
vedanshujain f248276a89 Use correct syntax for translators comments. 2020-12-21 15:33:10 +05:30
vedanshujain 39c200bf2d Merge branch 'master' into fix/27673 2020-12-21 15:29:55 +05:30
vedanshujain 16a81d2c5b Add changelog for 4.9. 2020-12-21 15:09:41 +05:30
Omkar Bhagat 00831c707c Revert functon's @since version num back to 3.0 2020-12-21 09:48:34 +05:30
Vedanshu Jain 3e82cd6d51
Merge pull request #28517 from woocommerce/update/woocommerce-blocks-4.0.0
Update WooCommerce Blocks package to 4.0.0
2020-12-21 01:31:05 +05:30
vedanshujain f1b0da9a20 Merge branch 'master' into update/woocommerce-blocks-4.0.0 2020-12-21 01:09:02 +05:30
Vedanshu Jain d2c5fc0750
Merge pull request #28635 from woocommerce/packages/core-tests/setup-shipping
use xpath to find onboarding set up shipping task
2020-12-21 01:05:46 +05:30
Ron Rennick 4774297e15 use xpath to find onboarding set up shipping task 2020-12-19 23:00:32 -04:00
Christopher Allford 1bec2b9172 Updated the Jetpack Autoloader to v2.7.1
This includes a number of improvements but also requires that we set the `optimize-autoloader` configuration key to compensate for some classes that don't comply with PSR-4.
2020-12-18 14:52:39 -08:00
Tam Mullen 5be0b57bb4
Merge pull request #28599 from woocommerce/add/e2e-merchant-orders-apply-coupon
Add e2e test for merchant orders > apply coupon
2020-12-18 21:37:49 +00:00
mfs-mindsize 8c0b94619c removed - is declared but not used. 2020-12-18 13:05:31 -05:00
mfs-mindsize 6496e00428 method: remove_order_item(), added: do_action( 'woocommerce_ajax_order_items_removed', , , , ); 2020-12-18 13:04:05 -05:00
Ron Rennick 33d28ee83a Merge branch 'master' into fix/28012 2020-12-18 13:44:32 -04:00
Ron Rennick 6509addabf merge master 2020-12-18 13:40:49 -04:00
Timmy Crawford dc6b44fc6f Add woo version as global track prop. 2020-12-18 09:37:10 -08:00
vedanshujain 293849ac53 Merge branch 'master' into update/woocommerce-blocks-4.0.0 2020-12-18 20:02:00 +05:30
Vedanshu Jain 218636e339
Merge pull request #28590 from woocommerce/update/wc-admin-1.8.1
Update wc-admin to 1.8.1
2020-12-18 19:42:20 +05:30
vedanshujain 1bc2ea8754 Also include empty string and comment types for backward compat. 2020-12-18 18:08:33 +05:30
Omkar Bhagat 34563c22bb Inline doc for the new filter
Updated @since to 4.9 and added an inline doc for the new filter
'woocommerce_delete_variations_on_product_type_change'
2020-12-18 17:04:27 +05:30
Peter Fabian 75754d5281
Update CONTRIBUTING.md
Fixed the link to GH ideas board.
2020-12-18 12:28:50 +01:00
vedanshujain 934b10fb8c Use wc_get_orders for consistency intead of custom query 2020-12-18 14:40:20 +05:30
vedanshujain 089994c618 Dont fetch optional fields unless asked to improve performance 2020-12-18 14:40:20 +05:30
vedanshujain 04f948951a Fetch product attrs only when needed 2020-12-18 14:40:20 +05:30
vedanshujain 13bee82ed9 Cover missed cases 2020-12-18 14:40:20 +05:30
vedanshujain 54dd5550e5 Pass request in backward compatible way 2020-12-18 14:40:20 +05:30
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
mfs-mindsize 361d0acc46 also added filter: woocommerce_cancel_unpaid_orders_interval_minutes to wc_format_option_hold_stock_minutes() which is used while the admin settings form is saved 2020-12-17 12:55:07 -05: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
mfs-mindsize cd725af6e2 also added filter: woocommerce_cancel_unpaid_orders_interval_minutes to wc install process 2020-12-17 11:44:53 -05:00
mfs-mindsize 9dc87f629a added filter: woocommerce_cancel_unpaid_orders_interval_minutes (default 5 mins) that separates interval for checking cancelsfrom option: woocommerce_hold_stock_minutes 2020-12-17 11:41:50 -05:00
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