Mike Jolley
e9f0490829
Merge pull request #21719 from vyskoczilova/master
...
Custom settings on shipping section (#13463 , #13461 )
2019-01-23 17:07:13 +00:00
Mike Jolley
6a89a76c11
Merge 17796
2019-01-23 16:39:21 +00:00
Mike Jolley
613a095362
Exclude paged from price slider
2019-01-23 15:31:26 +00:00
Mike Jolley
9cdcc3f1e5
Merge pull request #21817 from woocommerce/feature/pages-gutenberg-support
...
Use shortcode block for WooCommerce default pages
2019-01-23 15:25:28 +00:00
Mike Jolley
f96d59ac2b
Merge branch 'pr/21043'
2019-01-23 15:16:50 +00:00
Mike Jolley
987a24afdc
Timeout param
2019-01-23 15:16:40 +00:00
Ron Rennick
a6b1c45740
phpcs sniff fixes for class-wc-rest-products-v2-controller.php
2019-01-23 11:13:25 -04:00
Gerhard Potgieter
f77e2d7316
Handle full refunds in the taxes by code report ( #21843 )
...
* Add full refund support to the taxes by code report.
* Some PHPCS fixes
* Do not include refund in initial tax lookup for report.
* Correct logic which loops orders
* match date report
2019-01-23 15:12:58 +00:00
Ron Rennick
8709351994
update function name to `wc_attribute_taxonomy_slug`
2019-01-23 11:11:27 -04:00
Ron Rennick
b868b484f7
fix merge conflicts
2019-01-23 10:53:42 -04:00
Refael Iliaguyev
8f0f22c11b
Fix ssl check in case shop page does not exists.
2019-01-23 16:08:13 +02:00
Luigi
548b00c660
Improve the way we do queries ( #22043 )
...
* Improve the way we do queries
* PHP legacy compatible
* Update aproach to filter queries with empty values
* Fixing Unit Tests
* Moving Unit Test to its the correct test function
* Filter missing the new param, allow_empty, also simplifiying unit test.
* Helper function to create counpon does not support empty coupon codes
* Helper function does not need to allot empty search
* Wrong code standard
* Fixing Code Standard Unit Test
2019-01-23 13:46:32 +00:00
Mike Jolley
e8710e4ad6
Merge pull request #22530 from treibalen/master
...
Change footer wording for WooCommerce emails
2019-01-23 13:28:31 +00:00
Mike Jolley
99f663ad5c
Merge pull request #22131 from willgorham/improve-shipping-zone-continents
...
Improve shipping zone continents [Fixes #22130 ]
2019-01-23 13:27:16 +00:00
Mike Jolley
57ae0bec9d
Merge pull request #22073 from bekarice/fix/partial-refund-webhooks
...
Send webhooks for partial refund creation
2019-01-23 13:02:44 +00:00
treibalen
178c7a7a9c
Change wording for WooCommerce emails
...
Change emails footer from "Powered by WooCommerce" to "Built with WooCommerce"
2019-01-23 13:50:08 +05:30
James Allan
767abb3a8a
Keep count of the number of times custom coupons apply
2019-01-23 16:47:52 +10:00
Ron Rennick
8e12f9607d
use WP standard datetime format for installs where timezone_string setting is not set
2019-01-22 15:47:56 -04:00
Mike Jolley
7cd20021e0
Sort terms by parent and work back from bottommost term
...
Fixes the issue described in #21299 by sorting terms by parent ID.
Remove the extra get_term call because we already have a term object.
Since we support 4.7+, also removed function exists for wp_list_sort function.
2019-01-22 19:06:58 +00:00
Will Gorham
45e7f344b1
Use shipping countries instead of selling countries
2019-01-22 13:51:35 -05:00
Mike Jolley
2a2863c5ba
Merge pull request #21648 from EmranAhmed/master
...
Add 3rd param on `woocommerce_product_option_terms` action to use custom attribute types on product attribute create
2019-01-22 18:28:24 +00:00
Mike Jolley
9b2866a310
Merge branch 'pr/21722'
2019-01-22 18:20:45 +00:00
Ron Rennick
343a217939
move add order tax to get_object_subtotal()
2019-01-22 13:42:37 -04:00
Mike Jolley
43ba62dc86
Merge pull request #22067 from Prospress/fix/22046
...
populate default variation attributes when it is the first variation
2019-01-22 17:29:54 +00:00
Mike Jolley
ed95fe2cd3
Merge pull request #22066 from Prospress/fix/22065
...
add is_array check to catalog ordering orderby
2019-01-22 16:25:20 +00:00
Mike Jolley
c99495488b
Merge pull request #22458 from woocommerce/fix/22456
...
Set order vat exempt status to that of customer on checkout.
2019-01-22 16:13:36 +00:00
Mike Jolley
581d3c3195
Merge branch 'pr/22290'
2019-01-22 16:05:56 +00:00
Mike Jolley
11b172d583
phpcs
2019-01-22 16:04:16 +00:00
Mike Jolley
9b6694341f
Fix code and improve indenting
2019-01-22 16:01:17 +00:00
Mike Jolley
e3a1c1c3c0
Merge pull request #22475 from woocommerce/add/22474
...
Add stock qty increase/decrease option to bulk edit
2019-01-22 15:20:44 +00:00
Mike Jolley
380201be33
Merge pull request #22417 from woocommerce/fix/21175
...
Sort countries using new ascii comparison function
2019-01-22 14:47:41 +00:00
Mike Jolley
34a3d77080
Merge pull request #22303 from Prospress/fix/22063
...
only hide price filter widget when archive has no products
2019-01-22 14:44:48 +00:00
Mike Jolley
10518228aa
Merge pull request #22318 from Prospress/fix/21202
...
Only include the network orders widget on the main site dashboard
2019-01-22 14:38:46 +00:00
Mike Jolley
d7f768f779
Merge pull request #21069 from tomaskavalek/patch-1
...
Added missing HTML filter for quantity
2019-01-22 14:36:20 +00:00
Mike Jolley
1a18297aa2
Merge pull request #22398 from Prospress/fix/22382
...
update default attribute slug when attribute term slug is changed
2019-01-22 14:32:56 +00:00
Gerhard
4fa2856d86
Renamed vars so need to used the new vars.
2019-01-22 15:39:17 +02:00
Mike Jolley
084dab4553
Merge pull request #22476 from woocommerce/fix/22470
...
Hide ratings when reviews are disabled
2019-01-22 13:32:22 +00:00
Mike Jolley
7ac26ce893
Merge pull request #22518 from Prospress/fix/21779_redux
...
Fix/21779 redux
2019-01-22 13:29:40 +00:00
Gerhard
1664181a63
Wrap iconv usage in function_exists for compatibility.
2019-01-22 15:26:40 +02:00
Gerhard
0beadb3bab
Upate function @since to 3.6.0
2019-01-22 15:22:14 +02:00
Gerhard
bfda9c0ac8
Use wc_update_product_stock instead of manually adding and subtracting.
2019-01-22 15:14:41 +02:00
Mike Jolley
afbdd06e83
Merge branch 'pr/22409'
2019-01-22 13:12:34 +00:00
Mike Jolley
892ec24fed
correct version
2019-01-22 13:12:26 +00:00
Mike Jolley
ebac35e2c5
Merge pull request #22324 from Prospress/fix/21380
...
update variation guid with the id after creation
2019-01-22 13:07:42 +00:00
Mike Jolley
ee158ae044
Merge pull request #22411 from Gator92/order_item_meta_filter
...
pass all arguments to woocommerce_order_item_display_meta_value filter
2019-01-22 13:04:02 +00:00
Mike Jolley
83aa070654
Merge pull request #22412 from woocommerce/fix-minor-issues-in-webhook-class
...
Fix minor issues in WC_Webhook_Data_Store class
2019-01-22 12:51:42 +00:00
Mike Jolley
4d4d34a2d1
Merge pull request #22514 from woocommerce/update/mailchimp-branding-setup-wizard
...
Updates Mailchimp branding in setup wizard
2019-01-22 12:39:24 +00:00
Mike Jolley
5cb60b840c
Merge pull request #21859 from ChromeOrange/master
...
Add filter to save_payment_method_checkbox
2019-01-22 12:05:42 +00:00
Mike Jolley
4c28ba612c
Merge pull request #21884 from woocommerce/add/wc-admin-taxonomy-instance/21883
...
Add WC_Admin_Taxonomies instance method
2019-01-22 12:01:33 +00:00
Ron Rennick
c3879f0d63
only deduct refunded shipping, taxes once from gross to get net sales by date CSV
2019-01-21 15:44:53 -04:00
Ron Rennick
aa9961695f
phpcs sniff fixes for class-wc-report-orders-by-date.php
2019-01-21 15:36:29 -04:00
Mike Jolley
e5af25e994
Merge pull request #21341 from kinging123/patch-2
...
Added action 'woocommerce_variation_header' after actions in variations list
2019-01-21 16:59:48 +00:00
Mike Jolley
6367d19615
phpcs
2019-01-21 08:11:40 -08:00
Mike Jolley
759424a5fb
Merge pull request #22394 from fitimvata/master
...
Add filters for mail callback in WC_Email::send method.
2019-01-21 16:00:10 +00:00
Alessandro Morelli
be0f4b45e3
Fix coding standard violations
2019-01-21 16:54:49 +01:00
Mike Jolley
d096d17d25
Merge branch 'pr/22488'
2019-01-21 15:39:00 +00:00
Mike Jolley
2d14315f3d
woocommerce_cart_totals_get_item_tax_rates
2019-01-21 15:38:48 +00:00
Mike Jolley
0c9de00b74
Merge pull request #22425 from helgatheviking/issue-21845-b
...
switch woocommerce_ordered_again hook to ref_array
2019-01-21 15:15:54 +00:00
Mike Jolley
c830d429ef
Merge pull request #22435 from zJesusJavier/patch-2
...
Updating Venezuelan Currency
2019-01-21 15:01:18 +00:00
Mike Jolley
944ece0fad
Merge pull request #22414 from woocommerce/update/22406
...
Add a fallback to cURL version check in system status
2019-01-21 15:00:35 +00:00
Mike Jolley
7433dfe6f3
Merge pull request #22424 from Prospress/fix/22422
...
return coupon error messages as text message for alert()
2019-01-21 14:57:34 +00:00
Mike Jolley
120add0bff
Merge pull request #22487 from woocommerce/fix/22485
...
Made municipality address field optional for Latvia.
2019-01-21 14:54:05 +00:00
Gareth Allison
2dcc823e46
Updates mentions of "MailChimp"
...
Updates mentions of "MailChimp" to "Mailchimp" as per their branding guidelines: https://mailchimp.com/about/brand-assets/
2019-01-21 16:34:31 +02:00
Mike Jolley
e91f3b88f5
Merge pull request #22448 from woocommerce/fix/21580
...
Multisite - Load customer data for logged in users regardless of being member of sub-site
2019-01-21 14:21:21 +00:00
Mike Jolley
0c70945bcb
Merge branch 'fix/21580' of https://github.com/woocommerce/woocommerce into fix/21580
2019-01-21 14:05:50 +00:00
Mike Jolley
7db783d7a1
revert admin bar change
2019-01-21 14:05:48 +00:00
Mike Jolley
dc01d1de76
Deprecate delete_version_transients
2019-01-21 13:08:01 +00:00
Mike Jolley
d3ac50d47f
Remove heavy queries from transient cleanup function
...
Remove heavy queries from transient cleanup function
Removes unneccessary loops and heavy queries.
There is a parent update and cache clear which was added in #17141 . This cleanup is handled in `update_attributes` so doing it again here should be unneccessary.
Finally, the layered nav cleanup here can be moved. #22029 notes that this was needed in case of a stock change affecting product visibility. If we move to the data store, we can avoid getting the product here which is slower.
2019-01-21 13:02:31 +00:00
Mike Jolley
7744879326
wc_delete_product_transients for parent
2019-01-21 13:01:18 +00:00
Mike Jolley
8ede6bcb74
Added helpers to clean transients during shutdown and clean layered nav counts
2019-01-21 13:00:21 +00:00
Mike Jolley
c5da2dbcde
Remove unrelated transient
...
wc_count_comments is completely unrelated to products. This can be moved to the transient cleanup tool, because code already exists to clear this cache when needed in WC_Comments.
2019-01-21 12:59:39 +00:00
Rodrigo Primo
eea4810c49
Revert change to defer transient cleanup
...
This commit reverts commits 2f8a3eae49
and 17e97c2580
that were created to defer transient cleanup (see #20537 ) and avoid deadlocks on the wp_options table (see #20528 and #17632 ). The problem is that deferring transient cleanup to a cron job created an issue when creating or importing multiple products at once (see #21100 and https://github.com/woocommerce/wc-smooth-generator/issues/14#issuecomment-413342136 ) and has the potential to impact the checkout as well if we start using more versioned transients for orders.
This problem is happening because when importing or creating multiple products at once, for each product that is created or imported, WooCommerce core enqueues a few 'delete_version_transients' cron events. Events are enqueued faster than they are executed and after a few hundred products are generated, the size of the cron queue, which is stored in a single wp_options entry, starts to impact WordPress performance in general.
To reduce the chance of deadlocks happening again after this change, I already created another PR to optimize the query used to delete transients (#21274 ) by avoiding an unnecessary filesort, and I'm planning, on a subsequent commit, to improve it further by prefixing the transient name with its version instead of suffixing it as it is currently done. But the ultimate solution for high traffic stores is to use a persistent cache plugin.
2019-01-21 12:58:19 +00:00
Mike Jolley
08d7e319b6
Version handling for var prices
2019-01-21 12:56:55 +00:00
Mike Jolley
eabc30be5e
wc_customer_bought_product - move version within transient
2019-01-21 12:38:40 +00:00
Mike Jolley
452bb5b5e7
Include version within transient
2019-01-21 12:31:48 +00:00
Mike Jolley
0cf82b8937
Use fixed transient naming in wc_get_shipping_method_count
2019-01-21 12:05:58 +00:00
Mike Jolley
5280ceb8d9
Improve inline docs in calculate_shipping_for_package
2019-01-21 11:49:44 +00:00
Ron Rennick
b774968c81
set refund prices_include_tax meta to be the same as the order receiving the refund
2019-01-18 23:38:36 -04:00
Ron Rennick
d826aba858
phpcs sniff fixes for wc-order-functions.php
2019-01-18 23:36:46 -04:00
Claudiu Lodromanean
7f78cc3acc
Merge pull request #22334 from Prospress/fix/22326
...
add gutenberg block preprocessor filter to shop page content
2019-01-18 09:29:28 -08:00
Ron Rennick
dad1ffb4c9
use function_exists instead of version_compare
2019-01-17 16:14:53 -04:00
Claudiu Lodromanean
3bb5d2ee79
Merge pull request #22446 from woocommerce/fix/22285
...
Hide 0 costs for local pickup
2019-01-17 12:10:37 -08:00
Rodrigo Primo
29ff0b9b88
fix phpcs errors
2019-01-17 14:55:24 -02:00
Mike Jolley
fa6e2536db
Tweak cost display logic
2019-01-17 13:56:11 +00:00
RobertoDonPedro
3a2b3d10ad
Filter get_item_tax_rates in class-wc-cart-totals.php
...
Adds filter on the return value of function 'get_item_tax_rates' to prevent the mandatory caching of tax rates, described in https://github.com/woocommerce/woocommerce/issues/21855
2019-01-17 13:57:31 +01:00
Peter Fabian
ede86d8307
Made municipality address field optional for Latvia.
2019-01-17 13:18:31 +01:00
Gerhard
98948a2faf
PHPCS fixes
2019-01-17 08:32:42 +02:00
Gerhard
f3d9eeeef3
Introduce wc_reviews_enabled, wc_review_ratings_enabled and wc_review_ratings_required as helper functions and update all places where options are accessed directly.
2019-01-17 08:04:57 +02:00
Gerhard
8a685c3303
is_vat_exempt check on orders expect a yes/no and not a bool, save values as string.
2019-01-17 07:46:45 +02:00
Jesús Ramirez
4c8662c7f1
Update wc-core-functions.php
2019-01-16 16:51:07 -04:00
Claudiu Lodromanean
3dee72eddc
Merge pull request #22452 from woocommerce/fix/21700
...
[REST API] Variations endpoint - Removed extra inherited filters from product endpoint
2019-01-16 09:41:40 -08:00
Claudiu Lodromanean
6540e89425
Merge pull request #22445 from woocommerce/fix/21996
...
Change priority of notices on the account page
2019-01-16 09:40:51 -08:00
Claudiu Lodromanean
c2c7cbeccb
Merge pull request #22444 from woocommerce/fix/22119
...
Fix checkout field locales on first load
2019-01-16 09:39:42 -08:00
Claudiu Lodromanean
df2cd4b232
Merge pull request #22439 from woocommerce/fix/22430
...
Make sure WC active before running queries for MS widget
2019-01-16 09:38:24 -08:00
Claudiu Lodromanean
f4d1587652
Merge pull request #22419 from woocommerce/fix/22010
...
Remove on-hold orders from tax reports
2019-01-16 09:37:09 -08:00
Claudiu Lodromanean
989865469e
Merge pull request #22416 from woocommerce/fix/21871
...
Incorrect rounding of multiple tax rates per location
2019-01-16 09:32:51 -08:00
Claudiu Lodromanean
86f05bbd7a
Merge pull request #22320 from Prospress/fix/22197
...
use slug sanitization on product export category slugs
2019-01-16 09:31:43 -08:00
Ron Rennick
9337ca51e4
add WP version check for short description block filter
2019-01-16 12:49:25 -04:00
Mike Jolley
ca3623fa41
Merge pull request #22461 from woocommerce/fix/21761
...
Bail if getimagesize fails in filter_image_sizes_to_only_missing_thumbnails
2019-01-16 16:37:09 +00:00
Mike Jolley
78ca5c0290
Merge pull request #22277 from johnrom/fix/22276
...
Add a filter, woocommerce_current_user_can_edit_customer_meta_fields
2019-01-16 16:31:18 +00:00
John Rom
741435d816
Switch user meta permissions filter from user data to user id
2019-01-16 11:20:42 -05:00
John Rom
130a36107c
Added filter to the save method so it is not bypassable
2019-01-16 11:00:46 -05:00
John Rom
186a1d5b7e
Combine permission conditions into a single filter provided the default value
2019-01-16 10:56:26 -05:00
plexus admin
9acc7ced5d
Add function wc_get_is_pending_statuses
2019-01-16 09:54:02 -06:00
Mike Jolley
4fc197c67d
Merge pull request #21003 from Chunkford/patch-2
...
Giving the ability to add custom pricing data - read_price_data()
2019-01-16 15:22:40 +00:00
Mike Jolley
1125a5d76d
Merge pull request #22380 from Prospress/fix/22261
...
register order auto drafts post status
2019-01-16 15:11:48 +00:00
Mike Jolley
c70bef3e9c
Merge branch 'pr/22350'
2019-01-16 14:48:14 +00:00
Mike Jolley
2d44e90542
CS
2019-01-16 14:47:59 +00:00
Ron Rennick
bc33f19630
add order draft status filter to allow resuming editing
2019-01-16 09:52:18 -04:00
Mike Jolley
213ba99664
Merge pull request #21961 from sebastianpisula/patch-1
...
New params for woocommerce_shipping_zone_*_methods_table actions
2019-01-16 13:01:45 +00:00
Jesús Ramirez
7e1ef44b02
Update wc-core-functions.php
2019-01-16 08:49:17 -04:00
Mike Jolley
2ea7e4fb6a
woocommerce_display_product_attributes filter
2019-01-16 12:25:19 +00:00
Mike Jolley
766dea1125
Merge pull request #22316 from ictbeheer/master
...
Support for Dutch postcodes
2019-01-16 11:38:21 +00:00
Mike Jolley
50a86a1a33
Merge pull request #21562 from terence1990/feature/rest-api-crud-params-filter
...
Add a filter to WC_REST_CRUD_Controller::get_collection_params method to allow developers to change params
2019-01-16 11:32:03 +00:00
Gerhard
683111b4a5
PHPCS fixes
2019-01-16 11:32:00 +02:00
Gerhard
6b211ab25b
Add increase and decrease stock qty option to bulk product edit.
2019-01-16 11:22:11 +02:00
Gerhard
26f9aad65c
add_meta_data not add_meta
2019-01-16 09:18:54 +02:00
Mike Jolley
f68a547f53
Don't mix session and customer data
2019-01-15 16:49:01 +00:00
Ron Rennick
0f94bed1ec
only add tax when comparing coupon against order
2019-01-15 11:33:44 -04:00
Mike Jolley
d3d1864b4e
Select an option vs state
2019-01-15 15:24:17 +00:00
Ron Rennick
d654107cb0
include taxes in subtotal when validating tax inclusive coupon maximum as well
2019-01-15 10:33:57 -04:00
Ron Rennick
acf46fa28d
phpcs sniff fixes for class-wc-discounts.php
2019-01-15 10:21:21 -04:00
Ron Rennick
5f2bc29e3d
include taxes in subtotal when coupon price includes taxes
2019-01-15 10:17:31 -04:00
Gerhard
6e428e6c58
PHPCS fixes
2019-01-15 15:24:53 +02:00
Gerhard
3e06d94115
If getimagesize fails for some reason, ie plugin using offsite images, just return the original image sizes.
2019-01-15 15:22:12 +02:00
Gerhard
f11613c5e9
Set order vat exempt status to that of customer on checkout.
2019-01-15 13:20:07 +02:00
Claudio Sanches
fbcbd55bf7
[REST API] Removed extra inherited filters from product endpoint
...
Closes #21700
2019-01-14 17:15:23 -02:00
Rodrigo Primo
507f67cb38
Merge pull request #22029 from woocommerce/fix/21429
...
FIx: Delete wc_layered_nav_counts_* transients whenever a product is updated
2019-01-14 15:26:15 -02:00
Mike Jolley
696d042c0e
Merge pull request #22255 from aelia-co/Tweak-wc_get_min_max_price_meta_query-filter
...
Added new filter "woocommerce_get_min_max_price_meta_query"
2019-01-14 17:04:59 +00:00
Mike Jolley
4dbee72c65
Merge pull request #22165 from woocommerce/fix/22089
...
Add new pre query filter to WC_Product_Data_Store_CPT::search_products()
2019-01-14 17:02:51 +00:00
Mike Jolley
1f63d59244
Merge pull request #22257 from manchumahara/patch-1
...
Add $orderby and $order params to filter woocommerce_get_catalog_ordering_args
2019-01-14 17:00:37 +00:00
Mike Jolley
4f4d7e6c9c
API - Rather than error, add users to blog like the checkout does
2019-01-14 16:31:52 +00:00
Mike Jolley
668c078bcf
This check is not needed - super admin should see it only
2019-01-14 16:31:05 +00:00
Mike Jolley
1b337dea64
Load customer data regardless of current blog
2019-01-14 16:30:47 +00:00
Mike Jolley
bd611172c2
Hide 0 costs for local pickup
2019-01-14 15:14:44 +00:00
Mike Jolley
47bd97862a
Change priority of notices on the account page so they appear above forms/content
2019-01-14 15:09:07 +00:00
Mike Jolley
9799301b0a
Add script dep
2019-01-14 14:43:53 +00:00
Mike Jolley
1e563aea29
Use wp_get_attachment_image if we have an attachment based placeholder
2019-01-14 13:55:12 +00:00
Mike Jolley
198fdce1bf
Larger placeholder to allow more resizing
2019-01-14 13:54:01 +00:00
Mike Jolley
549a0f01c0
Placeholders need srcset and sizes
2019-01-14 12:54:54 +00:00
Mike Jolley
510ed70d1e
Fix check during install to create placeholder image.
2019-01-14 11:32:57 +00:00
Gerhard
dc0f8fb696
PHPCS fixes
2019-01-14 09:41:24 +02:00
Gerhard
9d3053ce9a
Check if WooCommerce is active on blog before running WooCommerce queries for the MS widget.
2019-01-14 09:40:04 +02:00
Gerhard
6220399163
Switch to use v3 of the API for network orders.
2019-01-14 09:15:20 +02:00
Jesús Ramirez
88335691cd
Updating Venezuelan Currency
...
The new Venezuelan currency is Bs S
2019-01-13 10:01:37 -04:00
Kathy Daring
1e51bf3e69
switch ordered_again hook to ref_array
2019-01-11 12:14:29 -05:00
Ron Rennick
6b1341138f
phpcs sniff fixes for class-wc-ajax.php
2019-01-11 12:57:33 -04:00
Ron Rennick
641884b71b
return coupon error messages as text message for alert()
2019-01-11 12:50:44 -04:00
Mike Jolley
12a73d4f8d
Clarify how discount is applied
2019-01-11 14:43:32 +00:00
Mike Jolley
14b0e87301
Fixes edge case due to orders screen expecting unrounded values.
2019-01-11 14:07:41 +00:00
Gerhard
cf38ed4aba
Remove on-hold orders from tax reports as they are not paid yet. Tax reports should only contain paid orders.
2019-01-11 14:44:09 +02:00
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
Gerhard
0a5d3b1675
Sort countries based on wc_ascii_uasort_comparison
2019-01-11 13:40:38 +02:00
Gerhard
f8dfac9f48
Add wc_ascii_uasort_comparison function to compare values based on ascii values
2019-01-11 13:18:59 +02:00
Gerhard
11b9f49d18
Add a fallback to cURL version check in system status so it still shows if cURL is installed when the version function is disabled by the host.
2019-01-11 10:38:21 +02:00
Ron Rennick
7657783409
use DateTime function instead of implicit toString
2019-01-10 16:21:43 -04:00
Rodrigo Primo
c15d622dd2
WC_Data::get_id() does not take any parameters
...
This commit removes a parameter from a call to WC_Data::get_id() as this method does not take any parameters
2019-01-10 17:10:13 -02:00
Rodrigo Primo
609430a8f1
Remove unused parameter from WC_Webhook_Data_Store::delete()
2019-01-10 17:08:41 -02:00
Rodrigo Primo
3cf945d5d9
Fix PHPCS errors automatically using phpcbf
2019-01-10 17:07:53 -02: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
Ron Rennick
6618d1e626
fix merge conflict
2019-01-10 11:22:31 -04:00
Ron Rennick
951b68be48
phpcs sniff fixes for class-wc-widget-price-filter.php
2019-01-10 11:13:50 -04:00
Ron Rennick
1033217860
only hide price filter widget when archive has no products
2019-01-10 11:12:09 -04: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
Gator92
a240623f47
pass all arguments to woocommerce_order_item_display_meta_value filter
2019-01-10 07:21:34 -05:00
Mike Jolley
9d381d456b
Remove simplify commerce gateway
2019-01-10 12:01:27 +00:00
Ron Rennick
0d0f004c66
update default attribute slug when atribute term slug is changed
2019-01-09 15:10:24 -04: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
Will Gorham
56fa520b8e
Tests for get_shipping_continents()
2019-01-09 13:31:30 -05:00
Will Gorham
1fc4ef6c59
Clean up docblocks and unused vars
2019-01-09 12:54:37 -05:00
Will Gorham
da6f425488
phpcs
2019-01-09 12:49:11 -05:00
Will Gorham
8051a0b0fc
Only show available shipping continents in zone regions
2019-01-09 12:48:18 -05: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
Fitim
a50f279816
Add filters for mail callback and mail callback params in WC_Email::send method
2019-01-09 12:28:32 +01:00
Mike Jolley
2dbdc9d356
Load address from stored customer data for first time, not session.
2019-01-09 11:14:57 +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
Mike Jolley
15979d975a
phpcs
2019-01-08 16:56:23 +00: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