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
Mauricio Urrego
26c7e238f6
Avoids redirect caused by some custom permalink structures.
2021-03-18 14:51:09 +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
3a629efc4b
Check if order exists while check if COD is available
2021-03-17 13:20:46 -03: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
Claudio Sanches
3f50ab3278
Handles errors in fault installations of PHP Intl
2021-03-15 17:48:49 -03:00
Mahmoud Saeed
0e13eb1320
Fix taxes endpoint not returning multiple postcodes/cities
2021-03-15 22:16:36 +02:00
Peter Fabian
bb5c56c148
Set correct placeholder value for variation--first the parent, then the store-wide default.
2021-03-15 18:41:55 +01:00
Peter Fabian
e6cdd74a79
Add parent's default for low stock if notthing is set on individual variation.
...
I.e. use variation low stock amount value, if not available, use parent product's value, if not available, use the store-wide default.
2021-03-15 18:31:31 +01:00
Roy Ho
57569c5168
Merge pull request #29232 from Dartui/trunk
...
Pass checkout submit result to triggered handler
2021-03-15 09:46:31 -07:00
Peter Fabian
2ae5ec59ba
Improve the description of the low stock threshold tooltip.
2021-03-15 12:42:10 +01:00
Peter Fabian
8bfa97d633
Use null rather than empty string to signify unset value.
2021-03-15 12:37:39 +01:00
Claudio Sanches
32baae989d
Fixed just one PHPCS error to trigger messages in PR
2021-03-13 21:08:20 -03:00
Krzysztof Grabania
aebdf869d9
Add order_id to checkout result response
2021-03-13 10:52:08 +01:00
roykho
efdf76634b
Fix docblock defaults to false closes #29367
2021-03-12 11:59:18 -08:00
Roy Ho
ee90c02f63
Merge pull request #29218 from wywarren/fix/27553
...
Fix for issue #27553 - REST API v3 not supporting settings type `order` and `class` for settings type on shipping zone methods
2021-03-11 09:22:34 -08:00
Peter Fabian
aac4ecc943
Added comment documenting the history of the function.
2021-03-11 16:58:51 +01:00
Peter Fabian
1f8f8580d1
Better wording of the tooltip--being more specific about what the amount relates to.
2021-03-11 16:26:41 +01:00
Peter Fabian
b48a389264
Add support for low stock amount to REST API v3. Ref #27371 .
2021-03-11 16:21:43 +01:00
Néstor Soriano
b446417be6
Merge pull request #29281 from woocommerce/fix/issue-25375-cache
...
Fix/issue 25375 cache
2021-03-11 08:30:41 +01:00
roykho
1df38c2f6b
Refactor and moved filter to _wc_recount_terms function
2021-03-10 12:33:46 -08:00
Peter Fabian
f7755f123e
Enable bulk updates of variations with low stock amount.
2021-03-10 18:15:31 +01:00
Peter Fabian
e2e589b049
Don't take the low stock amount info from the parent of the variation, but the variation itself.
...
Potentially bw incompatible.
2021-03-10 17:57:56 +01:00
Peter Fabian
685be2a791
Connect the UI to the db to allow updates of the values.
2021-03-10 17:24:52 +01:00
Peter Fabian
b92d1d1391
Harmonize the id and name with simple product.
2021-03-10 15:38:49 +01:00
Daniel Rey López
1fc1b604b9
IE 11 compatibility for the site tracking enable function
2021-03-10 11:52:01 +00:00
Peter Fabian
a6b45d08bf
Added low stock threshold input to the Admin UI.
2021-03-10 11:47:22 +01:00
Claudio Sanches
f6b4614225
Return 0 if order isn't available
2021-03-09 16:57:08 -03:00
roykho
cf634987b4
Prepare default branch
2021-03-09 06:11:41 -08:00
Jacob Arriola
5b02c440d7
New filter: stock check message
...
Adds a new filter to allow customization of the stock check message when a product is out of stock, but accounting for what's already in the cart. It mimics the existing woocommerce_cart_product_not_enough_stock_message filter.
2021-03-08 10:38:23 -08:00
Saggre
24167a5eed
Fix typos in docs
2021-03-05 11:19:58 +02:00
roykho
71d8f760b0
Apply recount term per product with filter to product data store
2021-03-04 13:54:09 -08:00
roykho
cb0b92750b
Extract recount terms logic into own function closes #25375
2021-03-04 09:06:03 -08:00
Roy Ho
20c8cbee0c
Merge pull request #29008 from inc2734/patch-1
...
The order of the full name returned by WC_Countries::get_formatted_address()
2021-03-04 07:31:45 -08:00
Claudio Sanches
d8735d7225
Merge pull request #29151 from woocommerce/hide_coupon_on_incomplete_checkout
...
Prevent displaying coupon form on checkout requiring login
2021-03-03 17:05:53 -03:00
Roy Ho
9ba49a0e4b
Merge pull request #29117 from tyler-paulson/docs
...
Fixes to documentation of WC_Shipping_Rate
2021-03-03 11:54:02 -08: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
Moon
d013d7f765
Move init logic to should_display_widget
2021-03-02 16:06:10 -08:00
Néstor Soriano
1181c4be4a
Merge pull request #28535 from woocommerce/add/disable_wc_admin_tracking
...
Tracker: Add tracking of woocommerce_admin_disabled usage.
2021-03-02 09:35:38 +01:00
Claudio Sanches
6df220c2cc
Merge pull request #29121 from hsingyuc/fix/28868
...
Remove extra content wrapper
2021-03-01 14:09:13 -03:00
Claudio Sanches
df191037c6
Merge pull request #29241 from woocommerce/update/28936
...
Merging 28936
2021-02-26 20:55:45 -03:00
Claudio Sanches
d133ee9d08
Fixed docblock
2021-02-26 20:54:40 -03:00
Claudio Sanches
3ed9e4b259
Merge pull request #28936 from Mindsize/wc-26857-add-action-remove-order-item
...
WC Issue: 26857 - Add action remove order item
2021-02-26 20:53:23 -03:00
Claudio Sanches
bcdfe3cb68
Merge pull request #29182 from woocommerce/fix/26973-get-customer-location
...
Avoid/minimize wc-ajax requests when `geolocation_ajax` is enabled | #26973
2021-02-26 20:33:29 -03:00
roykho
503a218e85
Revert "Flush term cache when saving product and settings closes #25375 "
...
This reverts commit 8b0915c4e0
.
2021-02-26 12:42:23 -08:00
Roy Ho
f6d77c206d
Merge pull request #29228 from woocommerce/fix/28238
...
Update default GIT branch
2021-02-26 11:59:09 -08:00
Vedanshu Jain
422002a2a8
Merge pull request #29200 from woocommerce/fix/upgrade-notices-major-version
...
Remove compatibility checks for major version
2021-02-26 14:55:30 +05:30
Warren Wang
d6b2e91c9d
Minor adjustments to fit coding standards
...
Added periods to comments and proper spacing and capitalization to comments.
2021-02-26 13:45:20 +08:00
Claudio Sanches
d6e3cf6de9
Update default GIT branch
2021-02-25 20:51:14 -03: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
23710744c0
Merge pull request #29208 from woocommerce/fix/add-to-cart-variation-id
...
Validate variation ID while adding products to the cart
2021-02-25 19:13:32 -03:00
Peter Fabian
47bfca58b0
Merge pull request #29052 from woocommerce/add/install_wcpay_addon_tracks
...
Add tracks event for WooCommerce Payments install via wc-addons page
2021-02-25 15:04:36 +01:00
louwie17
893fe6cc24
Merge pull request #29149 from woocommerce/update/28569_status_widget_net_sales_link
...
Woocommerce dashboard status widget net sales link and logic
2021-02-25 09:09:29 -04:00
Warren Wang
8605ada7cf
Fix for issue #27553
...
REST API v3 shipping method zone endpoint input payload not allowing settings type to be of type `class` or `order`. Added missing item schema.
2021-02-25 18:01:49 +08:00
Peter Fabian
8566a79da0
Pull out the constant to a globally accessible place so that it can be reused.
2021-02-24 14:29:45 +01:00
Claudio Sanches
e2478b7c76
Use product already loaded
2021-02-23 21:10:34 -03:00
Claudio Sanches
76e1ba4bf0
Validate variation ID while adding products to the cart
2021-02-23 16:27:57 -03:00
Peter Fabian
313ea8541c
Remove compatibility checks for major version.
...
In addition to #28840 , there are other places where we make use of compatibility check with major versions. I've discovered 2:
- update through /wp-admin/update-core.php
- force disabling auto-updates if there are any extensions that haven't declared their compatibility with WC 5.0
This change updates both places to be in line with the changes done in #28840 .
2021-02-23 13:27:06 +01:00
Peter Fabian
35d4ee4073
Merge pull request #28699 from woocommerce/fix/absolute-download-paths
...
Prevent local relative downloadable products to be treated as "absolute"
2021-02-23 11:50:34 +01: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
Rasmy Nguyen
7a4b54ad38
Add section to tracks event props
...
This adds the Extenstions tab to the event props so we can determine
which tab merchants are installing wcpay from.
2021-02-23 12:25:40 +09:00
Rasmy Nguyen
cbb1a540bd
Change hook name and add id param to track method
...
This changes the addon install hook to match the other hooks in the
extensions tracking class. This also adds an addon_id param to the
callback associated with this hook so we can extend this to other
plugins in the future.
2021-02-23 11:34:28 +09:00
Rasmy Nguyen
4ad1465fe3
Add tracks event for WCPay install via addons page
...
This adds a tracks event for WooCommerce Payments installs via the
wc-addons page.
2021-02-23 11:34:28 +09: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
Néstor Soriano
68dd901b65
Merge pull request #29051 from nielslange/update/#28724
2021-02-22 16:02:58 +01:00
Fernando
f613bbaeba
Merge pull request #29105 from woocommerce/fix/disable-merchant-email-notes
...
Merchant email notes now are turned off by default
2021-02-22 09:48:00 -03:00