Saggre
24167a5eed
Fix typos in docs
2021-03-05 11:19:58 +02:00
Moon
00a272fa85
Merge pull request #29174 from woocommerce/add/28568-dashboard-widget-finish-setup
...
Add/28568 dashboard widget - setup
2021-03-02 16:46:51 -08:00
Timmy Crawford
64e934e79b
Remove debug code in tests.
2021-02-25 15:19:27 -08:00
Timmy Crawford
5cf3c6be8c
Fix tests.
2021-02-25 15:19:27 -08:00
Timmy Crawford
c7a19b538a
Updates per feedback.
2021-02-25 15:19:27 -08:00
Timmy Crawford
47a3d1bfb3
Tracker: Add tracking of woocommerce_admin_disabled usage.
2021-02-25 15:19:27 -08:00
Claudio Sanches
c86b0c578a
Fixed copy and paste
2021-02-23 19:55:54 -03:00
Claudio Sanches
76e1ba4bf0
Validate variation ID while adding products to the cart
2021-02-23 16:27:57 -03:00
Moon
5c99233905
Minor fixes
...
* Removed extra double quotation from the image tag
* Fixed typo in the init() method
* Moved init() method body into the constructor -- a separate method is not necessary
2021-02-22 20:33:02 -08:00
Moon
781c5e24d7
Status dashboard widget should be rendered only if onboarding tasks have been completed or hidden
2021-02-22 15:29:47 -08:00
Claudio Sanches
f41250df39
Added unit test for cart validation
2021-02-22 13:14:43 -03:00
Moon
bc3219e22e
Add tests for the finish setup dashboard widget and clean up code
2021-02-17 16:07:50 -08:00
Nestor Soriano
436a3db6e4
Fix code standards errors
2021-02-16 09:23:50 +01:00
Nestor Soriano
00d6dc40f7
Fix wrong caching of taxonomy in terms and attributes controllers.
...
The WC_REST_Terms_Controller and WC_REST_Product_Attributes_V1_Controller
classes have a get_taxonomy method that gets the name of the taxonomy
to process from a taxonomy id passed in the request, but once the
taxonomy name has been obtained it's cached and sbsequently reused.
The problem is that these controller instances are reused if more than
one request is processed programmatically, and thus the taxonomy that
was cached once is always used even if the new request specifies a
different taxonomy id.
The fix consists of using a dictionary of taxonomy id - taxonomy name
instead of one single taxonomy for caching.
In the case of WC_REST_Terms_Controller there's a protected $taxonomy
property that needs to be kept for compatibility, it's now set to
the last taxonomy name that has been introduced in the dictionary.
2021-02-12 15:12:58 +01:00
Vedanshu Jain
5a707f3e74
Merge pull request #28849 from woocommerce/fix/27521-2
...
Verify country code on checkout
2021-02-11 18:59:04 +05:30
Nestor Soriano
e82ab487b6
validate_posted_data: check if we actually need to validate the shipping country.
2021-02-10 10:05:24 +01:00
Nestor Soriano
07f3d9dee6
Add unit tests for the WC_Checkout class.
2021-02-08 15:49:38 +01:00
Nestor Soriano
3976abffd6
Fix price filtering when there are variations.
...
The price filtering query wasn't working properly when there are
variations with different prices: if at least one variation was
outside of the price range but other were inside, the product wasn't
being listed.
2021-02-05 16:34:42 +01:00
Claudio Sanches
6701ce9c9d
Merge pull request #26983 from woocommerce/fix/25082
...
Use tax location from order while computing tax in discount.
2021-01-28 16:59:59 -03:00
Roy Ho
56e67b1ef8
Merge pull request #28814 from woocommerce/fix/migration/27688
...
Add migration to fix incorrect product review count.
2021-01-18 06:48:46 -08:00
vedanshujain
2240d3a6e4
Fix typos.
2021-01-18 19:52:20 +05:30
vedanshujain
1758c2b58c
Add tests for #28835
2021-01-18 17:26:19 +05:30
vedanshujain
2dce182cf8
Add unit tests for review count methods.
2021-01-14 18:31:02 +05:30
Steve Grunwell
e32dd6c4d3
Add a new WC_Shipping_Zone_Data_Store_CPT_Test class to support the refactoring of WC_Shipping_Zone_Data_Store_CPT::read()
2021-01-12 18:26:00 +00:00
Roy Ho
d4849c598c
Merge pull request #28692 from woocommerce/fix/28582
...
Add protective check to make sure WC()->session is initialized before loading the data store.
2021-01-08 07:55:35 -08:00
vedanshujain
b0cc43a188
More for individual fields in responses for V2 and V3 products and orders endpoints.
2021-01-06 16:04:56 +05:30
vedanshujain
e546c237b7
Add tests for checking all fields are returned even requested individually.
2021-01-06 15:12:55 +05:30
vedanshujain
1fdc24daa9
Add unit test for verifying that all expected fields are present.
2021-01-06 14:19:26 +05:30
jonathansadowski
1e267980e8
Merge pull request #28723 from woocommerce/feature/issue-27208
...
Feature/issue 27208
2021-01-05 14:00:55 -06:00
roykho
b25f01d2f3
Add unit tests
2021-01-05 08:14:39 -08:00
vedanshujain
9e3cdd4ae7
Add tests for #28692
2020-12-30 19:29:22 +05:30
vedanshujain
818e24d5c5
Add protection around `func_get_arg` method for backward compatibility.
...
We are using func_get_arg method to receive argument in a backward compatible way since we cannot modify function signature to add more params even with default params. Earlier I was hoping to use DI to create another child class with modified signature and load it depending upon where we are executing from, however since we had to revert DI, we add this workaround to unblock #27735 .
2020-12-28 14:10:22 +05:30
Vedanshu Jain
800c6a61b7
Merge pull request #28620 from woocommerce/fix/28505
...
Stock management regression fixes
2020-12-21 22:36:53 +05:30
Claudio Sanches
8568a9b9ff
Fixed coding standards
2020-12-21 12:46:01 -03:00
vedanshujain
5171108967
Better docs for test functions to specify expectations.
2020-12-21 15:51:07 +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
vedanshujain
981d494d52
Add unit tests for #28592
2020-12-16 19:37:01 +05:30
Vedanshu Jain
ae163eb28b
Merge pull request #27734 from woocommerce/enhancement/optimize-wc-order
...
Optimize function `wc_get_orders` by priming caches beforehand
2020-11-14 12:37:44 +05:30
vedanshujain
13f2dd6be9
Add unit tests towards issue #28100
2020-11-13 01:02:16 +05:30
vedanshujain
a2231c4387
Add unit test
2020-11-12 22:58:05 +05:30
vedanshujain
04fe12b5fb
Add proper params because otherwise this query will not set caches.
2020-11-12 15:10:16 +05:30
vedanshujain
fdceac9866
Delete refund cache for parent order when its deleted.
2020-11-12 10:01:15 +05:30
roykho
4ec270b93d
Add unit tests for the fix
2020-11-11 15:28:06 -06:00
vedanshujain
62ae94d93e
Add shipping, tax and fee lines to refund response for better information.
2020-11-11 18:47:48 +05:30
roykho
996d206ce5
Add unit test for #27756
2020-10-26 12:32:15 -07:00
vedanshujain
d51dd26816
Add unit tests.
2020-09-25 19:41:20 +05:30
Rodrigo Primo
197e8d274c
Merge pull request #27616 from woocommerce/fix/26960
...
Paypal gateway: protect code against a fatal error if WooCommerce is unable to communicate with PayPal
2020-09-18 09:34:57 -03:00
vedanshujain
140dafb704
Add unit tests for when PayPal API will return error
2020-09-18 17:12:33 +05:30
Claudio Sanches
ed1a59b39b
Merge pull request #27416 from woocommerce/fix/27415
...
Fixed country list sorting
2020-09-17 10:35:43 -03:00
Claudio Sanches
b5d8d94bc8
Use reference in wc_asort_by_locale
2020-09-10 16:02:39 -03:00