Nestor Soriano
07f3d9dee6
Add unit tests for the WC_Checkout class.
2021-02-08 15:49:38 +01:00
Nestor Soriano
70202c35bd
Move country validation to 'validate_posted_data'.
...
Also, when shipping to billing address don't show the error twice,
and show the "we don't ship to X" error only if the country actually
exists (if it doesn't then we'll have shown the "X is not a valid
country code" already).
2021-02-08 15:37:50 +01:00
Nestor Soriano
ef9a11976c
WC_Countries::country_exists no longer throws an exception.
2021-01-22 10:57:25 +01:00
Nestor Soriano
aae44ac1cd
Fix code sniffer errors
2021-01-19 10:56:08 +01:00
Nestor Soriano
053a45e0b2
Validate checkout countries in the backend
2021-01-19 10:28:56 +01:00
Claudio Sanches
3a0bb38c9d
Merge pull request #28828 from woocommerce/revert-28401-patch-2
...
Revert "Use %1$s instead of %s on regen description"
2021-01-15 20:27:17 -03:00
Claudio Sanches
29ccfd961b
Revert "Use %1$s instead of %s on regen description"
2021-01-15 20:27:03 -03:00
Claudio Sanches
b462b3c8ee
Merge pull request #28401 from bordoni/patch-2
...
Use %1$s instead of %s on regen description
2021-01-15 20:21:03 -03:00
Ron Rennick
85a03584df
Merge pull request #28665 from woocommerce/e2e-shopper-checkout-apply-coupon
...
Add new e2e test shopper checkout apply coupon
2021-01-15 13:27:28 -04:00
Ron Rennick
3950f61f8f
fix merge conflict
2021-01-15 12:52:00 -04:00
Claudio Sanches
5ca7c51714
Merge pull request #28712 from woocommerce/add/config_merchant_email_notifications
...
Added merchant email note switch
2021-01-15 13:32:02 -03:00
Claudio Sanches
e698ed72fd
Merge pull request #28801 from liquidweb/refactor/shipping-zone-read
...
Refactor the WC_Shipping_Zone_Data_Store::read() method
2021-01-15 12:58:36 -03:00
Claudio Sanches
44b9ffbdd7
Merge pull request #28713 from joseagrc/master
...
Adding states for Dominican Republic
2021-01-15 12:50:14 -03:00
Veljko V
cce8983f14
Update test case to avoid conflict with master
2021-01-15 16:41:26 +01:00
Claudio Sanches
55cfa098d5
Merge pull request #28709 from kevinruscoe/fix/28707
...
Export sass vars to css var
2021-01-15 11:27:14 -03:00
Peter Fabian
84b647a65d
Merge pull request #28778 from AminulBD/master
...
Update states.php
2021-01-15 15:26:03 +01:00
Claudio Sanches
a9a7391fdd
Apply suggestions from code review
2021-01-15 11:25:36 -03:00
Claudio Sanches
d60ffa1e73
Merge pull request #28405 from szepeviktor/patch-5
...
Fix .gitignore
2021-01-15 11:19:37 -03:00
Peter Fabian
02a2bbad71
Merge pull request #28799 from woocommerce/fix/issue-27789
...
Add notice to deprecate old reports closes #27789
2021-01-14 19:05:44 +01:00
jonathansadowski
e8552094c2
Merge pull request #28809 from woocommerce/fix/issue-27791
...
Prevent duplicate new order email from being sent when changing order…
2021-01-14 09:36:30 -06:00
Ron Rennick
57d8a00682
Merge pull request #28684 from woocommerce/fix/28682
...
introduce evalAndClick() E2E utility function
2021-01-14 09:41:10 -04:00
roykho
5b4e3a2e2e
Add margin
2021-01-14 05:25:26 -08:00
Néstor Soriano
b36a06ca08
Merge pull request #27844 from woocommerce/php8/use-custom-phpunit-7
...
[PHP 8] Use a custom version of PHPUnit 7 for PHP 8 compatibility
2021-01-14 11:46:01 +01:00
Nestor Soriano
c9ea5922e2
Add a comment to wc_ascii_uasort_comparison explaining why setlocale is needed.
2021-01-14 11:16:42 +01:00
roykho
218c799811
Prevent duplicate new order email from being sent when changing order status closes #27791
2021-01-13 14:13:57 -08:00
Roy Ho
0d2f478eab
Merge pull request #28690 from kevinruscoe/fix/28652
...
Ensure the orders status is reverted correctly when restoring it.
2021-01-13 13:54:26 -08:00
Kevin Ruscoe
a78c1ec99e
wp_untrash_post_status should be static as pointed out by roykho
2021-01-13 21:22:30 +00:00
Claudio Sanches
1f321f4a79
Merge pull request #28719 from raicem/update/featured-products-endpoint
...
Add Auth token for search/featured extensions requests
2021-01-13 18:13:25 -03:00
raicem
eb3ba820da
Use "wp_safe_remote_get" for sending search requests
2021-01-13 23:53:53 +03:00
Claudio Sanches
889e83e64c
Merge pull request #28698 from woocommerce/fix/28697
...
Add transient and action for proxying WC plugin activation hook
2021-01-13 16:49:51 -03:00
Veljko V
d1150b25dc
Update changelog to include added parameter
2021-01-13 19:34:46 +01:00
roykho
8e7a59d959
Change location of the notice so it shows up in all reports
2021-01-13 07:00:37 -08:00
Ron Rennick
b477cb8d3a
only activate WooCommerce in E2E initialization ( #28588 )
...
* only activate WooCommerce in E2E initialization
* use project basename for default plugin path
2021-01-13 12:27:11 +01:00
Ilyas Foo
0e5596d1fc
Transient and action passes plugin filename
2021-01-13 09:52:17 +08:00
Roy Ho
b7e45c3073
Merge pull request #28607 from masteradhoc/masteradhoc-patch-speak-none
...
patch for css3 validation issue for speak property
2021-01-12 12:38:45 -08:00
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
Steve Grunwell
8d3803452d
Refactor the WC_Shipping_Zone_Data_Store::read() method
...
This commit re-works the `WC_Shipping_Zone_Data_Store::read()` method in the following ways:
1. Remove a confusing conditional (`if ( 0 !== $zone->get_id() || '0' !== $zone->get_id() ) { ... }`)
2. Return early if we're dealing with Zone 0, eliminating additional conditional steps
3. Add documentation for the "woocommerce_shipping_zone_loaded" action hook
2021-01-12 12:53:22 -05:00
roykho
6041c10ea3
Add notice to deprecate old reports closes #27789
2021-01-12 07:37:00 -08:00
jonathansadowski
9dac51f129
Merge pull request #28790 from woocommerce/fix/issue-28727
...
Adjust dismiss link of store notice banner closes #28727
2021-01-11 16:21:18 -06:00
jonathansadowski
7669de8fbc
Merge pull request #28787 from woocommerce/fix/ci-wp-versions-update-after-wp56
...
Bump WP versions in Travis after WP 5.6 release.
2021-01-11 14:28:50 -06:00
roykho
e0a722a642
Adjust dismiss link of store notice banner closes #28727
2021-01-11 12:24:49 -08:00
Peter Fabian
381f290302
Bump WP versions in Travis after WP 5.6 release.
2021-01-11 18:34:54 +01:00
Veljko V
8b85a73977
Fix white spaces issue
2021-01-11 16:40:40 +01:00
Veljko V
2e8b6cb0f1
Update test to include lower case method
2021-01-11 16:31:47 +01:00
Roy Ho
d8b0a8558e
Merge pull request #28586 from idofri/phpdoc
...
Corrected data-types in phpdoc @param
2021-01-11 06:52:11 -08:00
Aminul Islam
255b03ea04
Update states.php
...
Removed duplicate entry for "RS". See Line: 1506
2021-01-11 11:54:58 +06:00
Ido F
4be88bea4b
corrected token-id data-type
2021-01-10 16:40:24 +02:00
Veljko
2cf971486e
Update code to be more concise
2021-01-09 18:49:59 +01:00
Kevin Ruscoe
91ea67d94c
Clean array to make the list a little easier to understand
2021-01-09 15:11:25 +00:00
Kevin Ruscoe
0f7de7e7bf
Add 'product_variation' to the list of restored post types
2021-01-09 15:08:51 +00:00