Gerhard
4c6da744fe
PHPCS fixes
2019-01-11 14:30:13 +02:00
Gerhard
77537d2cd3
Update copy for processing order emails to not mention payment as some stores take payment after orders are placed.
2019-01-11 14:29:21 +02:00
Mike Jolley
96603720ca
Item subtotal rounding must match cart calc class
...
Fixes #21871
2019-01-11 11:41:22 +00:00
Rodrigo Primo
a7463c5535
Merge branch 'master' of github.com:woocommerce/woocommerce
2019-01-10 16:39:22 -02:00
Rodrigo Primo
3b3da24546
Fix typo in inline comment
2019-01-10 16:38:58 -02:00
Rodrigo Primo
c2b49dc6e3
fix phpcs violation
2019-01-10 16:38:26 -02:00
Rodrigo Primo
c82346b095
Restore code to delete wc_layered_nav_counts_* transients
...
Commit a9994feeea
removed the code to delete wc_layered_nav_counts_* transients whenever a product attribute is updated and moved it to wc_delete_product_transients(). This was done to make sure those transients are deleted whenever a product is updated and not only when a product attribute changes. But, as Claudiu pointed out (https://github.com/woocommerce/woocommerce/pull/22029#issuecomment-451473512 ), this change introduced a bug as if you remove an attribute from a product, by the time the code reaches wc_delete_product_transients() the changes have been applied already to the product, the attribute doesn't belong to it anymore, and thus the layered nav counts transient for that attribute is not deleted.
To work around this problem, this commit restores the code that deletes wc_layered_nav_counts_* transients inside WC_Product_Data_Store_CPT::update_attributes(). Now, in most cases, WC will try to delete the same transient twice, but I can't see any other way to implement a solution for the problem above without doing this.
2019-01-10 14:19:03 -02:00
Mike Jolley
96ba549b2b
Remove type hint
2019-01-10 13:23:49 +00:00
Mike Jolley
f67ab4e447
correct version
2019-01-10 13:20:02 +00:00
Mike Jolley
1815928208
Merge branch 'master' into pr/21217
2019-01-10 13:10:11 +00:00
Mike Jolley
f4ed56a894
Merge pull request #21153 from jamesckemp/patch-12
...
`woocommerce_variation_option_name` Parameters
2019-01-10 12:28:21 +00:00
Rodrigo Primo
519886838c
Merge pull request #21969 from woocommerce/add/21964
...
Add woocommerce_valid_location_types filter
2019-01-09 17:02:20 -02:00
Mike Jolley
bf5ea249b5
Merge pull request #21991 from johnbillion/21989/user-switching-support
...
User Switching support
2019-01-09 17:01:47 +00:00
Mike Jolley
fe02144d0a
Merge pull request #21927 from woocommerce/add/21925
...
Make links in order notes clickable.
2019-01-09 16:52:37 +00:00
Ron Rennick
1d05cf3d91
phpcs sniff fixes for class-wc-product-csv-exporter.php
2019-01-09 10:21:24 -04:00
Ron Rennick
74c9f16377
use slug sanitization on product export category slugs
2019-01-09 10:17:55 -04:00
Mike Jolley
b4427e0c25
Merge branch 'pr/22298'
2019-01-09 13:51:30 +00:00
Mike Jolley
06b5480f2d
Merge pull request #22071 from Prospress/fix/22060
...
don't html escape sku used in product lookup
2019-01-09 13:07:04 +00:00
Mike Jolley
5820faba78
Merge pull request #21986 from JPry/wc_customer_has_capability_return_doc
...
Use proper return value for wc_customer_has_capability() docblock
2019-01-09 12:10:34 +00:00
Mike Jolley
21d8f74cb3
Merge pull request #22389 from woocommerce/renovate/wp-cli-wp-cli-2.x
...
Update dependency wp-cli/wp-cli to v2
2019-01-09 11:54:11 +00:00
Mike Jolley
8edadae4df
Merge pull request #22123 from helgatheviking/additional-args-for-woocommerce_add_to_cart_redirect
...
Add param for woommerce_add_to_cart_redirect filter
2019-01-09 11:53:26 +00:00
Renovate Bot
d74ccb991f
Update dependency wp-cli/wp-cli to v2
2019-01-09 02:46:18 +00:00
Ron Rennick
e5b39f12c6
register order auto drafts post status
2019-01-08 16:35:54 -04:00
Ron Rennick
95af4c87f8
phpcs sniff fixes for class-wc-post-types.php
2019-01-08 16:34:24 -04:00
Claudiu Lodromanean
c3050db67c
Merge pull request #22337 from woocommerce/fix/22048
...
Restore non-cart notice printing opportunity during checkout
2019-01-08 12:16:20 -08:00
pierrebuet
9ca3ae3453
Check for customer before checking for VAT excemption
...
In the actual form, the check done in the function is_taxable() of a shipping method can only be done in the frontend, since WC()->customer must be defined. Checking for a customer before checking the excemption would make the function also callable in the backend for different pre-calculation. If a customer is not defined, an exemption can not exists.
2019-01-08 15:57:21 +00:00
Mike Jolley
ade1021eff
Merge pull request #22205 from woocommerce/fix/22200
...
Introduce wc_is_webhook_valid_status
2019-01-08 15:32:57 +00:00
Mike Jolley
6e5a4201cf
Merge branch 'pr/21635'
2019-01-08 15:30:31 +00:00
Mike Jolley
eef05fafe9
update from master
2019-01-08 15:00:23 +00:00
Mike Jolley
9644241cef
update from master
2019-01-08 14:51:05 +00:00
Mike Jolley
868e7841e6
Merge pull request #21860 from rellect/wc_case
...
Rename wc() to WC() for consistency
2019-01-08 14:29:59 +00:00
Mike Jolley
a69ce0bfcb
Merge pull request #21764 from leewillis77/wc_get_template_filter
...
Allow plugins to filter located template location before failing
2019-01-08 14:23:58 +00:00
Mike Jolley
b7e5c1b047
Merge pull request #21679 from amielucha/master
...
Fixes typos in class comments.
2019-01-08 11:11:42 +00:00
renovate[bot]
82397c2f7f
Pin dependencies ( #21842 )
2019-01-08 11:07:32 +00:00
claudiulodro
f9b4cced41
Correct number of items added logic in notif
2019-01-07 11:44:13 -08:00
Claudiu Lodromanean
9649759c04
Merge pull request #22331 from woocommerce/fix/22099
...
Check stock status when repopulating items in the cart from an order
2019-01-07 11:41:51 -08:00
Claudiu Lodromanean
2e1e77f6f0
Merge pull request #22330 from woocommerce/fix/21708
...
Add special button style for connect button
2019-01-07 11:40:31 -08:00
Claudiu Lodromanean
3b14bfb90b
Merge pull request #22270 from Prospress/fix/22149
...
strip slashes from tax classes on save
2019-01-07 11:39:35 -08:00
Mike Jolley
00a8972b68
Merge pull request #22230 from Prospress/fix/22129
...
add out of stock criteria to tax_query array instead of replacing it
2019-01-07 16:35:32 +00:00
Mike Jolley
9ce3f408a6
Merge pull request #22344 from woocommerce/fix/breadcrumbdata
...
Product structured data tweak to show both BreadcrumbList and Product structured data.
2019-01-07 13:49:54 +00:00
Mike Jolley
ba5c4c4fbd
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-01-07 13:36:13 +00:00
Mike Jolley
217c039262
Merge branch 'pr/21465'
2019-01-07 13:29:40 +00:00
Mike Jolley
f4dbd5a723
Define consistently
2019-01-07 13:29:09 +00:00
Mike Jolley
848eecf6a6
Merge pull request #21537 from jespervnielsen/patch-2
...
allow-filtering-on-wiget-get_current_page_url
2019-01-07 13:12:43 +00:00
Mike Jolley
6ccf385f8b
Merge pull request #22005 from woocommerce/add/21992
...
Add woocommerce_gallery_image_html_attachment_image_params filter
2019-01-07 13:05:53 +00:00
Mike Jolley
9e1f1f2255
Merge pull request #22160 from bordoni/lib-action-scheduler-php-52
...
Lib Action Scheduler PHP 5.2 Compatible
2019-01-07 12:56:10 +00:00
Mike Jolley
241cf4dece
Merge pull request #21442 from danielbitzer/master
...
Add coupon object param to get coupon data filter
2019-01-07 12:53:04 +00:00
Mike Jolley
4d0306b977
Merge pull request #21402 from xlplugins/master
...
Added new filter to modify order status during orders using cheque as a gateway.
2019-01-07 12:50:35 +00:00
Mike Jolley
0da7f9f06f
Merge pull request #21896 from jespervnielsen/patch-3
...
Add dependency to WC_Product_CSV_Importer_Controller
2019-01-07 12:48:45 +00:00
Mike Jolley
fb9847bcca
Merge pull request #21853 from rellect/incorrect_call
...
Remove non existent parameter
2019-01-07 12:47:40 +00:00
Mike Jolley
6dba8f3b05
Merge pull request #21498 from liquidweb/feature/sanitize-order-id-tests
...
Add tests for wc_sanitize_order_id()
2019-01-07 12:46:11 +00:00
Mike Jolley
83f46aca15
Merge pull request #21887 from hannahswain/patch-1
...
Update external/affiliate URL placeholder from http to https
2019-01-07 12:44:45 +00:00
Mike Jolley
05de936932
Merge pull request #21581 from codemascot/161018-131105-class-wc-ajax.php
...
Removed unnecessary variable.
2019-01-07 12:43:40 +00:00
Mike Jolley
981ddcfe34
Merge pull request #22167 from Prospress/fix/22161
...
Apply email usage restriction comparison to entire string
2019-01-07 12:31:12 +00:00
Mike Jolley
71ab4c78ed
Merge pull request #22168 from woocommerce/fix/rest-api-orderby-slug
...
[REST API] Fixed orderby slug
2019-01-07 12:19:35 +00:00
Mike Jolley
63bd02022f
Merge pull request #22084 from Prospress/fix/22075
...
Remove the stock data type on low stock threshold input which can be empty
2019-01-07 11:41:17 +00:00
Mike Jolley
8ad3491b99
Add option to control if remove personal data bulk action is allowed
2019-01-07 11:22:29 +00:00
Mike Jolley
9245687f6a
Merge remote-tracking branch 'origin/master' into enhancement/erasure-setting-22055
2019-01-07 11:07:12 +00:00
Miguel Pinto
0537145113
Add filter to hash location to change hash format
...
Ability to define a cache version only based on country, and not a region, city, etc.
Improve website performance by decreasing the number of different versions.
In my case, i was able to define v=[country_code] which is more URL friendly.
2019-01-06 13:58:12 +13:00
Claudiu Lodromanean
1612d2a230
Merge pull request #22074 from Prospress/fix/22068
...
ensure product parent exists before getting its image
2019-01-04 09:37:03 -08:00
Claudiu Lodromanean
99da8f4aa4
Merge pull request #22026 from Prospress/fix/21743
...
fix `0` value attribute permalink, property in REST api
2019-01-04 09:35:34 -08:00
Allen Snook
9efd543f73
Correct coding standard violations in pre-existing code
2019-01-04 08:39:57 -08:00
claudiulodro
5a005d9ee9
Product structured data tweak
2019-01-04 07:51:22 -08:00
Brent Shepherd
0593450ed3
Make webhooks scheduled actions unique
...
Fixes #22087
2019-01-04 14:27:08 +00:00
Brent Shepherd
b924e36f11
Fix WC_Action_Queue::get_next() return value
2019-01-04 14:27:01 +00:00
Mike Jolley
502a25a2fa
Merge pull request #22096 from woocommerce/fix/formatted_address_upper
...
Use wc_strtoupper on formatted address
2019-01-04 13:04:08 +00:00
JeroenSormani
f4775ccd90
Use shipping method instead of property through magic + doc return statements
2019-01-04 12:41:38 +00:00
Allen Snook
21441cc441
Restore non-cart notice printing opportunity during checkout
2019-01-03 15:52:45 -08:00
Mike Jolley
6e7e96c624
Check stock status before repopulating cart
2019-01-03 15:30:26 +00:00
Mike Jolley
6c9f9ea424
phpcs
2019-01-03 15:30:21 +00:00
Mike Jolley
58c3731030
Add special button style for connect button
2019-01-03 14:41:09 +00:00
claudiulodro
3c3894b676
Bump wc_version since 3.6 development has begun
2019-01-02 12:11:35 -08:00
Claudiu Lodromanean
89740f9583
Merge pull request #22204 from woocommerce/fix/22201
...
Restore empty schema support for register_rest_field
2019-01-02 12:03:41 -08:00
Claudiu Lodromanean
87a03b2331
Merge pull request #22189 from Prospress/fix/22186
...
Allow sale price to 23:59:59 on last sale date
2019-01-02 12:02:52 -08:00
Claudiu Lodromanean
34f472fdf2
Merge pull request #22185 from woocommerce/fix/21735
...
Don't wrap layered nav wp_json_encode string in quotes
2019-01-02 12:01:21 -08:00
Claudiu Lodromanean
d1964d5cb5
Merge pull request #22183 from codemascot/fix/22182
...
Fix for issue #22182
2019-01-02 12:00:35 -08:00
Claudiu Lodromanean
2f82039869
Merge pull request #21938 from Prospress/fix/21935
...
Unescape imported escaped CSV formulas in product attributes
2019-01-02 11:59:39 -08:00
ICT beheer
8eb9393e62
Support for Dutch postcodes
2018-12-30 20:02:59 +01:00
Ron Rennick
3083f05a0c
missed phpcs sniffs
2018-12-27 11:45:12 -04:00
Ron Rennick
9b200b213d
convert newlines to/from \n on export/import
2018-12-26 15:30:40 -04:00
Ron Rennick
c1cb73c00f
phpcs sniff fixes in class-wc-product-csv-exporter.php
2018-12-26 14:54:46 -04:00
Ron Rennick
0e9494ba50
phpcs sniff fixes in class-wc-product-csv-importer.php
2018-12-26 11:22:52 -04:00
John Rom
1055d79301
Add a filter, woocommerce_current_user_can_edit_customer_meta_fields, to bypass manage_woocommerce when editing customer meta fields
2018-12-20 11:06:33 -05:00
Rodrigo Primo
ff74ecec86
Fix orders list in the admin
...
WP 5.0.2, which was released yesterday, sets `$query_vars['post_status']` to an empty string instead of leaving it unset (https://core.trac.wordpress.org/ticket/45719 and https://core.trac.wordpress.org/changeset/44185 ). This change broke the WC orders list in the admin when listing orders of all post statuses as we were checking if `$query_vars['post_status']` was not set to add all order statuses to this variable (125eaaf241/includes/admin/list-tables/class-wc-admin-list-table-orders.php (L799)
).
To workaround this problem, this commit changes the check to verify if `$query_vars['post_status']` is empty instead of verifying if it is not set.
2018-12-20 09:56:02 -02:00
Rodrigo Primo
948a1dc300
Fix PHPCS violations automatically using PHPCBF
2018-12-20 09:48:14 -02:00
Ron Rennick
292c5c5dcc
strip slashes from tax classes on save
2018-12-19 15:22:04 -04:00
Rodrigo Primo
125eaaf241
Merge branch 'master' of github.com:woocommerce/woocommerce
2018-12-19 13:31:34 -02:00
Rodrigo Primo
941217719e
phpcs fixes using phpcbf
2018-12-19 13:31:11 -02:00
Rodrigo Primo
cb0c23d6ab
Merge pull request #22244 from faisal-alvi/fix-22234
...
Fix-22234
2018-12-19 12:42:48 -02:00
Rodrigo Primo
0cb992925d
phpcs fix using phpcbf
2018-12-19 12:40:02 -02:00
Sabuj Kundu
f329cb2d75
Add $orderby and $order params to filter woocommerce_get_catalog_ordering_args
...
Filter woocommerce_get_catalog_ordering_args has only one single argument $args, anyone filter this needs to detect the $orderby and $order value again which is already coded in the method where this filter returns. I hope adding two extra param $orderby and $order will make developer's life easier to hook this filter.
2018-12-18 11:07:18 +06:00
Diego
5970c9d0f5
Added new filter "woocommerce_get_min_max_price_meta_query"
2018-12-17 22:42:35 +00:00
Faisal Alvi
cbafb8e006
Fix-22234
2018-12-17 15:01:05 +05:30
Ron Rennick
771a615328
add out of stock criteria to tax_query array instead of replacing it
2018-12-14 14:52:26 -04:00
Ron Rennick
32ae40ffb0
phpcs sniff fixes for class-wc-widget-products.php
2018-12-14 14:50:58 -04:00
Gerhard
4daafd28e4
v2 API should also use wc_get_webhook_statuses for the enum in the schema status
2018-12-14 08:08:56 +02:00
Ron Rennick
aba43ae6de
phpcs sniff fixes for class-wc-rest-products-v2-controller.php
2018-12-13 16:04:53 -04:00
Gerhard
ac9b588147
Remove status check from schema, do checks when updating. Define status schema enum using the wc_get_webhook_statuses method.
2018-12-13 13:05:50 +02:00
Gerhard
189f346c2e
Add unit tests for wc_is_webhook_valid_status
2018-12-12 10:33:52 +02:00
Gerhard
1ac267992d
Add new wc_is_webhook_valid_status and use that for the schema check in the API.
2018-12-12 10:21:59 +02:00