Roy Ho
e4502fe314
Merge pull request #29495 from woocommerce/fix/29472
...
Add "postcodes" and "cities" support for the REST API tax rate creation/update endpoint
2021-03-31 08:17:31 -07:00
Nestor Soriano
64e903f65f
Update REST API v3 taxes endpoint descriptions with deprecation/introduction information.
2021-03-31 12:41:53 +02:00
Nestor Soriano
8ff664e758
Fix "doing wrong wpdb::prepare" notice for REST API get taxes endpoint.
2021-03-31 12:09:20 +02:00
James Allan
09b5fb4691
Update the rate when recalculating and updating order tax items
2021-03-30 22:27:11 -03:00
Claudio Sanches
6dd707556b
Merge pull request #29534 from mehrshaddarzi/patch-2
...
Fix columm to column
2021-03-30 14:14:05 -03:00
Nestor Soriano
1b351a6685
Sanitize tax class and display errors in admin while creating tax classes
2021-03-30 11:08:35 +02:00
Nestor Soriano
b3d5930279
Check if is required a verified product owner before placing a review
2021-03-30 11:07:34 +02:00
Nestor Soriano
0045df2cb0
Make product name escaping consistent in the front-end
2021-03-30 11:04:44 +02:00
Mehrshad Darzi
027b335028
Fix columm to column
2021-03-30 12:43:41 +04:30
Néstor Soriano
8e57d58555
Merge pull request #29474 from woocommerce/fix/27290-take-2
...
Fix the REST API entry point to add coupons to an order.
2021-03-30 09:22:27 +02:00
Nestor Soriano
0f271b10ed
Apply coupon code instead of verified coupon to avoid caching issues
...
(in REST API endpoint to update order coupons)
2021-03-29 15:33:15 +02:00
Nestor Soriano
24973ec5eb
Don't check validity of coupons already present in the order
...
(REST API endpoint to update order taxes)
2021-03-29 12:55:56 +02:00
Nestor Soriano
e0dad77e49
Fix logic for including the "payments" task in onboarding wizard
...
The logic should be "if woo payments is installed and the country
is US then remove the payments task" but the check was mistakenly
being set to "or" so the task was removed whenever the country was US.
2021-03-29 11:25:39 +02:00
Claudio Sanches
50e036f934
Merge pull request #23188 from LuigiPulcini/master
...
Add $item to wc_downloadable_file_permission
2021-03-25 12:19:08 -03:00
Nestor Soriano
b5e13bd771
Add support for "postcodes" and "cities" (arrays) fields to the
...
REST API endpoints for creating and updating taxes.
2021-03-25 14:56:40 +01:00
Nestor Soriano
cd82c48a73
Fix: WC_REST_Taxes_V1_Controller::create_or_update_tax erroring when
...
no core fields were included in the request (e.g. only postcodes
or cities were specified)
2021-03-25 14:56:40 +01:00
Nestor Soriano
4c07ab6ae6
WC_REST_Taxes_V1_Controller::get_items: add 'priority' to the schema for 'orderby'
2021-03-25 09:41:10 +01:00
Nestor Soriano
c1427fc5ee
Improvements in WC_REST_Taxes_V1_Controller::get_items :
...
- Use wpdb->prepare to compose the queries.
- Actually make use of the 'order' parameter.
2021-03-25 09:38:23 +01:00
Nestor Soriano
0baa2d6314
Fix code sniffer errors in WC_REST_Taxes_V1_Controller
2021-03-25 09:36:21 +01:00
Nestor Soriano
2b8cac7cf2
Fix the REST API entry point to add coupons to an order.
...
- Check input (no 'id', has 'code') and throw an error if needed
before removing the existing coupons, so an invalid input
won't cause the loss of these existing coupons.
- Also, check that the coupon is actually valid as part of the
input check.
- Cache the coupon objects that are created during the input check,
and apply them directly.
- Don't check if 'coupon_lines' is an array and contains arrays,
that's already done by the REST API engine by looking at the schema.
- Adjust unit tests.
2021-03-24 15:19:34 +01:00
Timo Boyer
3e5d7418d9
Remove double space before concat operator
2021-03-23 23:29:30 +01:00
Timo Boyer
f31bc26b61
Correctly close <option>-tag in admin products/orders list table
2021-03-23 21:23:46 +01:00
Roy Ho
7fb346c5d1
Merge pull request #29447 from luizbills/patch-1
...
Add missing sectionend in email settings
2021-03-23 09:48:11 -07:00
jonathansadowski
2e60d47a01
Merge pull request #29181 from woocommerce/fix/27233
...
Use AJAX for Page Configuration
2021-03-23 11:46:00 -05:00
Luiz "Bills
3e48ca7c35
fix coding standard
2021-03-23 13:25:20 -03:00
Néstor Soriano
df78a5cba6
Merge pull request #27751 from mahmoudsaeed/fix-rest-tax
...
Fix taxes endpoint not returning multiple postcodes/cities
2021-03-23 17:04:09 +01:00
Roy Ho
2f2c07ead6
Merge pull request #29452 from Kudratullah/trunk
...
Fixed return type of $type in docblock
2021-03-23 08:30:56 -07:00
Luiz "Bills
df4b584a82
delele empty space
2021-03-23 12:06:10 -03:00
Néstor Soriano
886cd15016
Merge pull request #29378 from woocommerce/fix/code-sniff
...
Remove Travis and fix CI in GitHub Actions
2021-03-23 15:22:49 +01:00
roykho
c79fd6b7bf
Add excludes feature to exclude certain pages
2021-03-22 13:36:55 -07:00
roykho
e5380ac966
Add new function to handle single page search closes #27233
2021-03-22 13:20:16 -07:00
Nestor Soriano
0cdb1f74c1
Revert replacing wp_redirect with wp_safe_redirect
...
Following a code snippet suggestion the wp_redirect in
WC_Checkout::process_order_payment was replaced with wp_safe_redirect,
but this had unitended side effects. From issue #29387 :
You've changed wp_redirect to wp_safe_redirect in
WC_Checkout::process_order_payment. If a 3rd-party-plugin executes a
"non-AJAX-processing-order", wp_safe_redirect will be executed.
But your default PayPal interface will redirect to an URL that is
not allowed in wp_validate_redirect because your default PayPal Gateway
does not add the required PayPal URLs with the hook
"allowed_redirect_hosts". As a result, it could happen that a customer
is not redirected to PayPal but to wp-admin
(https://developer.wordpress.org/reference/functions/wp_safe_redirect/ ).
2021-03-22 16:11:11 +01:00
roykho
96463b7172
Update verbiage based on feedback
2021-03-22 05:42:34 -07:00
Kudratullah
8567b8611f
Fixed return type of $type in docblock
2021-03-21 09:08:36 +06:00
Luiz "Bills
f4565abccb
Add missing sectionend in email settings
2021-03-20 14:51:27 -03:00
roykho
01f949cc32
Update SSR db version tooltip to accurately describe the versioning closes #29430
2021-03-19 06:27:17 -07:00
Roy Ho
a46e889e37
Merge pull request #29396 from Spreeuw/issue-29395
...
check return type on log file fopen
2021-03-19 05:57:55 -07:00
Nestor Soriano
a5e4bad042
Update the WooCommerce version in (class-)woocommerce.php to 5.3
2021-03-19 11:08:37 +01:00
Ewout Fernhout
b0b2803989
removed excess indentation
2021-03-18 18:19:40 +01:00
Roy Ho
e62f20b9b3
Merge pull request #29049 from wppunk/master
...
Fix #29048
2021-03-17 13:46:19 -07:00
Roy Ho
f89b21488e
Merge pull request #29391 from woocommerce/fix/28516
...
Handles errors in fault installations of PHP Intl
2021-03-17 09:43:06 -07:00
Claudio Sanches
fc991ac418
Remove translation function
2021-03-17 12:50:52 -03:00
Peter Fabian
aa9b6ab691
Change got merged sooner than expected.
2021-03-17 10:13:28 +01:00
Néstor Soriano
17224d0ab1
Merge pull request #29345 from woocommerce/hw/low-stock-threshold-for-variations
...
Low stock threshold for variations
2021-03-17 08:59:32 +01:00
Claudio Sanches
5c6778a0dc
Fix coding standards
2021-03-16 11:46:34 -03:00
Claudio Sanches
b0dce9feff
Fixed coding standards
2021-03-16 11:42:28 -03:00
Peter Fabian
cb6e0d8201
Don't echo the strings, return them for later use.
2021-03-16 13:01:15 +01:00
Peter Fabian
a2e9c055d5
Make the inherited values explicit by stating where it comes from.
2021-03-16 12:39:25 +01:00
Ewout Fernhout
c51f748855
check return type on log file fopen
2021-03-16 12:05:06 +01:00
Peter Fabian
f33c80186f
Updated the wording of the tooltip.
2021-03-16 08:51:29 +01:00