Claudio Sanches
2e90e9ab65
Merge pull request #23743 from Sisanu/issue-23717-enhancement-hook
...
Implement the info & extra actions new filter for Product gallery
2019-05-28 18:22:33 -03:00
Claudio Sanches
2fdf6de827
Merge pull request #23764 from jorgept/patch-1
...
Update class-wc-countries.php
2019-05-28 18:19:41 -03:00
Claudio Sanches
c28af404ad
Merge pull request #23814 from woocommerce/add/x-sendfile-file-filter
...
Add filters to file paths passed to the different xsendfile like backends
2019-05-28 17:41:49 -03:00
Jonathan Moore
5d6574a00a
rating optional = generate_product_data incorrect
...
If rating is not mandatory on comments, generate_product_data() produces incorrect output.
For example items with comments but no reviews are output with rating of zero which is getting flagged in google webmasters tools under the heading "Rating is missing required best and/or worst values".
The output google is objecting to is eg:
"aggregateRating":{"@type":"AggregateRating","ratingValue":"0","reviewCount":1}}
postmeta in this case is:
_wc_average_rating 0
_wc_rating_count 0.0
_wc_review_count 1
product lookup table is reporting
rating_count 0
average_rating 0.00
the meta is correct and reflected in the product object, it is the test that is wrong since
if $product->get_review_count()
may be true even if there are no ratings.
This is solved by substituting get_rating_count() which has the correct number of ratings.
2019-05-28 07:38:07 +01:00
Rodrigo Primo
000c95ea88
Merge pull request #23659 from woocommerce/add/wc-admin-install-nudge
...
Add wc-admin notice.
2019-05-27 12:29:43 -03:00
Rodrigo Primo
ff1020a787
Merge pull request #23787 from woocommerce/fix/tracks-cookie-set-action
...
Tracks: set cookie on admin_init insead of wp_loaded
2019-05-27 12:16:27 -03:00
Rodrigo Primo
67663836c0
Merge pull request #23739 from woocommerce/fix/23737
...
Remove administrative message from refund reason
2019-05-27 12:12:07 -03:00
Rodrigo Primo
ce6f6a6ddb
Merge pull request #23772 from woocommerce/fix/OBW-tracks-not-enabled
...
Tracks: Add check for OBW is-opting-in
2019-05-27 12:09:00 -03:00
Gerhard Potgieter
b2ed079520
Manual orders coupon usage limits by email ( #23775 )
...
* Add functionality to wp-admin order to check for coupon usage based on email addresses, similar to how WC_Cart handles this seperately, included unit tests.
* Only do the coupon by email usage check if order is from a guest. Fix issue with unit test.
2019-05-27 11:45:29 -03:00
Gerhard
f5c5ced6b8
Update Emogirifier library
2019-05-27 11:39:33 +02:00
Peter Westwood
4448235a16
Coding Standards: Add missing space.
2019-05-24 18:15:24 -06:00
Peter Westwood
f70dcc6a01
Add filters to file paths passed to the different xsendfile like backends.
...
Different server configurations can require different paths to be sent and it isn't always possible for a plugin to know the correct path for a platform.
These filters will allow a hosting provider to install a platform level configuration via an `mu-plugin` to make sure things work in there configuration.
2019-05-24 17:10:17 -06:00
Claudio Sanches
3a79970289
Fixed a typo in customers endpoint
2019-05-24 15:34:25 -03:00
Claudio Sanches
61346720c7
Allow enforce password strength meter on checkout
2019-05-24 15:27:26 -03:00
Valerie
136613f539
OBW Shipping: Update labels description
...
- replace "Print shipping labels at home" heading with
"Did you know you can print shipping labels at home?"
- Use new description for WooCommerce Services:
"'Use WooCommerce Shipping (powered by WooCommerce Services & Jetpack)
to save time at the post office by printing your shipping labels
at home."
- do not capitalize post office
2019-05-23 22:17:17 -04:00
Valerie
b379739ea6
OBW Shipping: Switch label and zone sections
2019-05-23 22:17:13 -04:00
Valerie
6d77056e77
OBW: Fix stranded ul closing tag
2019-05-23 22:17:03 -04:00
Iulia Cazan
f49cec5108
Coding standard updates
2019-05-23 08:58:13 +03:00
Claudio Sanches
17da960abe
Merge pull request #23137 from woocommerce/fix/23051
...
Change coupon amount field type based on coupon type
2019-05-22 21:19:03 -03:00
Claudio Sanches
15aa298585
Merge pull request #23159 from woocommerce/fix/23157
...
If orderby is used on static homepage, force query to be a page query
2019-05-22 21:17:01 -03:00
Claudio Sanches
dc35b89df7
Merge pull request #23178 from davidofug/master
...
Uganda Billing/Shipping address
2019-05-22 21:07:09 -03:00
Claudio Sanches
793519137a
Merge pull request #23794 from woocommerce/update/23792
...
Introduce wc_load_cart to dynamically load the cart
2019-05-22 20:51:09 -03:00
Claudio Sanches
28d49031d3
Merge pull request #23695 from james-allan/calc-base-zip-city
...
Calculate base store taxes including the store's zip and city
2019-05-22 20:49:57 -03:00
Claudio Sanches
8ea6c7c80e
Merge pull request #23651 from woocommerce/update/register-rest-routes
...
Set register_rest_route override to TRUE in Blocks REST API
2019-05-22 20:49:15 -03:00
Claudio Sanches
359fd9d7d5
Merge pull request #23791 from woocommerce/fix/23630
...
Clear notices when calling cart-errors.php template
2019-05-22 20:40:21 -03:00
Claudio Sanches
91a8592ebb
Fixed conditional logic
2019-05-22 20:16:10 -03:00
Claudio Sanches
688d35e206
Merge pull request #23562 from benhuson/update/23558-related-product-order
...
Update/23558 Related product order
2019-05-22 19:59:25 -03:00
Claudio Sanches
3cc3565e61
Merge pull request #23774 from connorhu/patch-1
...
fixed availability schema protocol
2019-05-22 18:07:05 -03:00
Gerhard
f6d9faa062
Introducde wc_load_cart to dynamically load the cart, this allows for functionality outside of frontend to initialise the cart.
2019-05-22 12:24:31 +02:00
sergey.r
98586f10f4
Catch WC_REST_Exception while calling do_action( "woocommerce_rest_insert_{$this->post_type}_object"
2019-05-22 13:00:34 +03:00
Gerhard
3a49e7a53b
Clear notices after calling checkout/cart-errors.php to avoid duplicate notices on the cart page. cart-errors.php does not output notices but a general notice message yet error notices are still enqueued before calling the template.
2019-05-22 09:49:53 +02:00
Paul Sealock
f7e56be638
Tracks: set cookie on admin_init
2019-05-22 12:14:28 +12:00
Claudio Sanches
196d5e77cb
Merge pull request #23041 from woocommerce/update/21701
...
Add hooks for helper subscription changes
2019-05-21 18:27:15 -03:00
Paul Sealock
c74d5b30ca
Tracks: use woocommerce_apply_user_tracking and woocommerce_apply_tracking
2019-05-22 09:18:34 +12:00
Claudio Sanches
edd0e7de8c
Bump template versions
2019-05-21 17:53:03 -03:00
Claudio Sanches
22f9cdcb0d
Allow {woocommerce} placeholder in lowercase
2019-05-21 17:47:54 -03:00
Claudio Sanches
4a99a11009
Merge branch 'master' into update/22895
2019-05-21 17:46:16 -03:00
Rodrigo Primo
870ea9a935
Merge pull request #23704 from woocommerce/fix/23703
...
Fixed number of args for woocommerce_valid_order_statuses_for_cancel
2019-05-21 17:24:43 -03:00
Claudio Sanches
bd36434174
Use WP 5.0 determine_locale() function
2019-05-21 17:19:50 -03:00
Rodrigo Primo
fbdfb7b87f
Merge pull request #23468 from woocommerce/update/23366
...
Return WP_Error messages from wp_insert_user()
2019-05-21 17:10:32 -03:00
Rodrigo Primo
ae50379f7e
Merge pull request #23325 from woocommerce/fix/rest-api-purge-invalid-orders
...
[REST API] Stop orders being created if invalid data is sent
2019-05-21 16:36:04 -03:00
Rodrigo Primo
5a15713f95
Merge pull request #23207 from woocommerce/update/23205
...
Introduce `parse_published_field` in CSV importer
2019-05-21 16:24:03 -03:00
Rodrigo Primo
c21a69ff6d
Complement WC_Product_CSV_Importer::parse_published_field() phpdoc
...
Add a phrase to WC_Product_CSV_Importer::parse_published_field() phpdoc
to note that 'true' and 'false' are also supported to set product
published status.
2019-05-21 15:55:41 -03:00
Rodrigo Primo
3fed0d7cbc
Merge pull request #23112 from woocommerce/fix/persistent-cart-filter
...
Persistent cart improvements
2019-05-21 15:07:55 -03:00
Karoly Gossler
a135f02f41
fixed availability schema protocol
...
As you can see in the example, the scheme only can be on http:
https://schema.org/InStock
The Google Search console has also marked it invalid.
2019-05-21 09:10:56 +02:00
Iulia Cazan
051277d26e
Rename the hook
2019-05-21 09:20:46 +03:00
Iulia Cazan
1187563c93
Transform the filter into action, rewrite the piece of code to pass the coding standards, remove markup restriction.
2019-05-21 09:18:15 +03:00
Gerhard
70231461b2
Refactor logic for passing no_shipping, it should only be passed when no shipping items are available.
2019-05-21 08:11:36 +02:00
Paul Sealock
ca4e79bdd1
Tracks: Add check for OBW is-opting-in
2019-05-21 12:20:25 +12:00
Claudio Sanches
a2301dc0cb
Removed deprecated PHPCS flags
2019-05-20 17:06:41 -03:00
Claudio Sanches
5eaf71b483
Fixed coding standards
2019-05-20 17:04:24 -03:00
Claudio Sanches
cc6d7996fd
Restored WC_Shortcode_Products::order_by_rating_post_clauses
2019-05-20 16:57:14 -03:00
Gerhard
8332bed7bc
Do not pass no_shipping when not using send shipping address options in paypal, it still needs to use the billing details.
2019-05-20 14:59:48 +02:00
Peter Fabian
91839ce078
Moved the JS enqueue from get_instance_form_fields to admin_footer action hook.
...
This should prevent multiple enqueues.
2019-05-20 12:56:01 +02:00
Mindaugas Budreika
d67381148a
Forward query (GET) parameters when executing a batch REST API request.
2019-05-20 14:24:48 +04:00
jorgept
e214a85a8c
Update class-wc-countries.php
...
Add MZ array
postcode => false,
hidden => true
2019-05-19 22:23:36 +01:00
Ibrahim
0db84aec56
Fixes #23756
2019-05-18 21:04:13 +05:30
Timmy Crawford
01f1749684
Change version compare.
2019-05-17 13:53:38 -07:00
Timmy Crawford
43cd7dc04c
Add wc-admin notice.
2019-05-17 13:53:37 -07:00
Rodrigo Primo
f8642f2fbb
Remove code duplication from OBW payment gateway logic
...
In #23690 we implemented a few changes to the logic to decide which
payment gateways to display in the onboarding wizard. When working on
this code, we noticed that there was a bit of duplication in it that was
not necessary (see
https://github.com/woocommerce/woocommerce/pull/23690#discussion_r284004924 ).
We opted to remove this duplication in a different commit, since that PR
was included in a patch release.
2019-05-17 10:32:06 -03:00
Iulia Cazan
a1ac64aa30
Implement a new filter that allows for custom info or extra actions to be exposed for each of the attachments selected in the Product gallery
2019-05-17 12:03:40 +03:00
Claudio Sanches
d807119121
Introduced woocommerce_admin_order_buyer_name filter
2019-05-16 19:02:57 -03:00
Claudio Sanches
144f011065
Rename "Postcode / ZIP" to "Postal code" when select Canada
2019-05-16 18:27:08 -03:00
Claudio Sanches
f5bab51c6a
Improve refund reason when changing order status to refunded
...
Refund reasons are public, can be visualized on emails, and shall not
contain any sensitive data or administration information.
2019-05-16 17:57:28 -03:00
Gerhard Potgieter
afd7e72c03
Merge pull request #23690 from woocommerce/update/obw-stripe
...
Update OWB Payment Gateway structure
2019-05-16 18:26:29 +02:00
Gerhard
0eef8654f6
payapal enabled setting defaults to false
2019-05-16 16:08:46 +02:00
Gerhard
99b183e5bb
Refactor paypal and stripe combined logic, add fallback to specified settings when previously saved settings were detected by no option present for the enabled setting.
2019-05-16 15:35:29 +02:00
Gerhard
b0a831b64f
OWB: Check PayPal by default when Stripe not available.
2019-05-16 15:26:58 +02:00
Gerhard Potgieter
945330c219
Merge pull request #23634 from woocommerce/fix/23626
...
Update PayPal capture_payment method triggers
2019-05-16 15:17:58 +02:00
Gerhard Potgieter
173b706ccb
Merge pull request #23734 from woocommerce/fix/23676-2
...
Dashboard stock queries should only include published products
2019-05-16 15:16:18 +02:00
Rodrigo Primo
a247e08ad0
Fix query used to get the number of low stock products in the dashboard
...
This commits changes the query used to get the number of low stock
products in the WooCommerce Status widget in the admin dashboard. This
query should only count published products and ignore products with
other statuses to match the behavior used in the low stock report.
2019-05-16 09:45:44 -03:00
Gerhard Potgieter
10abe6d4be
Merge pull request #23731 from djboris88/fix/wc-order-wrong-param-type-phpdocs
...
get_formatted_line_subtotal takes Item object instead of an array
2019-05-16 14:43:30 +02:00
Rodrigo Primo
6e976c7f0c
Remove unnecessary conditions from out of stock query
...
In the query to get the number of out of stock products for the admin
dashboard widget, it is not necessary to use `1=1` and also not
necessary to use `posts.post_type IN ( 'product', 'product_variation' )`
as only products are added to wp_wc_product_meta_lookup.
2019-05-16 09:41:52 -03:00
Gerhard Potgieter
58a04d42e5
Merge pull request #23697 from sokolby/patch-1
...
Add Filter for wc_prices_include_tax() function return
2019-05-16 14:37:50 +02:00
Gerhard Potgieter
9f0e1a6e64
Merge pull request #23534 from woocommerce/fix/233880-alt
...
Revise update stock logic
2019-05-16 14:15:13 +02:00
Gerhard Potgieter
d8f145c2ca
Merge pull request #23714 from woocommerce/fix/23692
...
Add back backward compatibility for coupon expiry_date meta field
2019-05-16 14:10:03 +02:00
Gerhard Potgieter
2cfc7b64c1
Merge pull request #23713 from woocommerce/fix/webhooks-object-caching
...
Use WC_Cache_Helper::get_cache_prefix for webhook count cache
2019-05-16 14:07:27 +02:00
Gerhard Potgieter
f76cf57ce8
Merge pull request #23546 from woocommerce/fix/23533
...
Version template caching
2019-05-16 14:01:25 +02:00
Boris Djemrovski
c45e06a130
get_formatted_line_subtotal takes Item object instead of an array
2019-05-16 12:04:34 +02:00
Peter Fabian
207042f7df
Put back the manage stock check for lookup table.
2019-05-16 10:57:42 +02:00
parmarhardip
470b0a5424
I have updated the code with suggestion and tested it. Please review from your side.
2019-05-16 10:24:00 +05:30
Rodrigo Primo
33ee11dd62
Merge pull request #23638 from woocommerce/update/23632
...
woocommerce_product_post_type_link_parent_category_only filter
2019-05-15 15:59:12 -03:00
Peter Fabian
9f0fb0b404
Foxed the use to correct stock quantity parameter.
2019-05-15 16:18:24 +02:00
Peter Fabian
1d29b36c4c
Removed comments that are no longer relevant.
2019-05-15 15:46:53 +02:00
Gerhard Potgieter
30ce9ff6a3
Merge pull request #23689 from woocommerce/add/get_used_coupon_codes
...
Deprecate get_used_coupons in favor of get_coupon_codes
2019-05-15 15:34:40 +02:00
Peter Fabian
af7950910c
Removed the transaction and locking code.
...
NOWAIT is not supported on MySQL server 5.5,
SELECT ... FOR UPDATE can leave lingering locks on InnoDB ("When InnoDB performs a complete rollback of a transaction, all locks set by the transaction are released. However, if just a single SQL statement is rolled back as a result of an error, some of the locks set by the statement may be preserved. This happens because InnoDB stores row locks in a format such that it cannot know afterward which lock was set by which statement.", via https://dev.mysql.com/doc/refman/5.5/en/innodb-deadlock-detection.html )
2019-05-15 15:09:16 +02:00
Peter Fabian
68a325249f
Removed the extra parameter that didn't make sense.
...
Also get_data_for_lookup_table should not be checking db value of _manage_stock as that can be in the process of being changed.
2019-05-15 14:20:27 +02:00
parmarhardip
d5337fac70
fix- 23589 I have fixed pricing issue.
2019-05-15 17:49:46 +05:30
Gerhard
aadc7a1069
Add todo
2019-05-15 11:23:41 +02:00
Gerhard
8ed1a647bc
Restore backward compatibility meta_key for coupon date_expires. @todo: migrate expiry_date in next release to date_expires
2019-05-15 11:21:52 +02:00
Gerhard
3d57a4b474
Use WC_Cache_Helper::get_cache_prefix for prefixing webhook count cache, fixes issue with cache not clearing when incrementing the prefix.
2019-05-15 10:47:50 +02:00
sokolby
cb9f765eb2
Fix prefix filter name
2019-05-15 11:44:54 +03:00
James Allan
6069854d9f
Replace wc_get_base_location() with individual getters
2019-05-15 15:43:15 +10:00
Claudio Sanches
836083c064
Fixed number of args for woocommerce_valid_order_statuses_for_cancel
2019-05-14 12:52:54 -03:00
Andrey Barashkov
58132056bd
Add Filter for wc_prices_include_tax() function return
...
It's great to have a filter, because there are some scenarios when it is necessary to create custom logic for displaying prices.
2019-05-14 13:14:50 +03:00
Gerhard Potgieter
b7facc0674
Merge pull request #23663 from danielbitzer/add_get_coupons_method
...
Add WC_Abstract_Order::get_coupons()
2019-05-14 11:35:21 +02:00
Gerhard
486321161c
Update usage of get_used_coupon_codes to get_coupon_codes
2019-05-14 11:21:27 +02:00
Gerhard
efe3e4c5d6
Move get_used_coupons to WC_Abstract_Legacy_Order and renamed get_used_coupon_codes to get_coupon_codes.
2019-05-14 11:19:48 +02:00
Daniel Bitzer
0705730121
Add WC_Abstract_Order::get_coupons()
2019-05-14 15:46:48 +09:30
Gerhard
b694efcb63
Klarna should not be featured.
2019-05-14 07:36:15 +02:00
James Allan
45b461639e
Calculate base store taxes including the store's zip and city
2019-05-14 13:43:57 +10:00
Gerhard
e131b01133
Modify payment gateway placement, defaults and new logos.
2019-05-13 15:54:44 +02:00
Gerhard
31acfbcb4a
Deprecate WC_Abstract_Order::get_used_coupons in favor of WC_Abstract_Order::get_used_coupon_codes, this reflects the actual data being returned better.
2019-05-13 14:40:54 +02:00
Gerhard
36cab83d76
Update out of stock dashboard widget to use same query as in reporting, this only counts published products.
2019-05-13 11:02:50 +02:00
Hassan Yousefi
a50464d781
WC_Structured_Data::generate_product_data() no more hooked in to woocommerce_shop_loop ,which has been removed in #22912
2019-05-11 20:45:54 +04:30
Claudio Sanches
c96ed877af
Merge pull request #23660 from gocodebox/master
...
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-10 12:50:29 -03:00
Gerhard Potgieter
249ee5ecda
Merge pull request #23478 from woocommerce/fix/23476
...
Force delete rather than trash variations on product type change
2019-05-10 11:41:14 +02:00
Gerhard Potgieter
a228975801
Merge pull request #23671 from woocommerce/fix/wc-tracker-order-totals
...
Corrects WC Tracker's order total calculation.
2019-05-10 11:23:55 +02:00
Gerhard Potgieter
64a76ea0fa
Merge pull request #23666 from woocommerce/update/wc-update-cli-db-version
...
WC Update CLI DB Version
2019-05-10 11:21:58 +02:00
Gerhard Potgieter
b9a75c474a
Merge pull request #23579 from n-dawson/fix-23578
...
Fixes #23578 - Check taxes enabled before adding totals row to order
2019-05-10 11:21:19 +02:00
Gerhard Potgieter
32769d0d76
Merge pull request #23625 from woocommerce/fix/23549
...
Use attribute's orderby option to sort terms in product's edit screen
2019-05-10 11:19:08 +02:00
Gerhard Potgieter
18e2332cfc
Merge pull request #23590 from woocommerce/fix/23587
...
Stock sorting issue when Yoast installed
2019-05-10 11:17:26 +02:00
Gerhard Potgieter
8c665d6572
Merge pull request #23615 from parmarhardip/23596
...
#23596 - I have solve this issue.
2019-05-10 11:16:06 +02:00
Gerhard Potgieter
902cc1f0b0
Merge branch 'master' into fix/23606
2019-05-10 11:12:54 +02:00
Gerhard Potgieter
46bcf42559
Merge pull request #23611 from woocommerce/fix/23583
...
Prevents undefined offset for empty arrays in wc_change_get_terms_defaults
2019-05-10 11:02:13 +02:00
Gerhard Potgieter
364093056d
Merge pull request #23580 from woocommerce/report-bug-link
...
Change the link of the "Report a bug" button
2019-05-10 10:59:24 +02:00
Gerhard Potgieter
0e80030f0b
Merge pull request #23601 from woocommerce/fix/23547
...
Fix to show WC plugin updates in System status report
2019-05-10 10:57:47 +02:00
Gerhard Potgieter
984357fb41
Merge pull request #23597 from woocommerce/fix/23509
...
Added confirmation before saving empty list of countries to sell to.
2019-05-10 10:56:13 +02:00
Gerhard Potgieter
6fc498e0d9
Merge pull request #23528 from parmarhardip/23521
...
Fixes #23521 - Billing Email and Country now autofill for newly regis…
2019-05-10 10:48:13 +02:00
Gerhard Potgieter
d2c7d8c86e
Merge pull request #23535 from woocommerce/fix/23518
...
Fix: parameter values should be converted back as well when building form fields
2019-05-10 10:43:28 +02:00
Gerhard Potgieter
ab90cefad4
Merge pull request #23519 from woocommerce/fix/OBW-tracks-scripts
...
Tracks: Fix OBW scripts
2019-05-10 10:41:37 +02:00
Gerhard Potgieter
81bfb9cacb
Merge pull request #23529 from woocommerce/update/23512
...
Define $wpdb tables as early as possible, before init
2019-05-10 10:38:15 +02:00
Gerhard Potgieter
07ea25377a
Merge pull request #23517 from woocommerce/fix/23506
...
Fix dismiss button in two WC admin notices
2019-05-10 10:37:01 +02:00
Gerhard Potgieter
250d891c48
Merge pull request #23515 from woocommerce/fix/default-api-version-webhooks
...
Bump default WC API version used when creating webhook
2019-05-10 10:34:43 +02:00
Gerhard Potgieter
002b5ebade
Merge pull request #23499 from woocommerce/fix/23497
...
[3.6.x] Stop removing backslash from passwords
2019-05-10 10:30:13 +02:00
Gerhard Potgieter
af574f6484
Merge pull request #23456 from woocommerce/fix/23447
...
Disable export of scheduled action posts
2019-05-10 10:27:34 +02:00
Gerhard Potgieter
df7d82f744
Merge pull request #23429 from dimadin/rs/address-format
...
Add address format for Serbia
2019-05-10 10:23:06 +02:00
Gerhard Potgieter
5c630271c8
Merge pull request #23430 from dimadin/rs/no-states
...
Do not use state for Serbia
2019-05-10 10:18:11 +02:00
Thomas Patrick Levy
4e58b098e5
update filter
2019-05-09 15:49:03 -07:00
Claudio Sanches
04c598be09
Revert sanitization
2019-05-09 17:28:19 -03:00
Claudio Sanches
caf68b1405
Sets $new_user_args as array by default
2019-05-09 17:08:15 -03:00
Claudio Sanches
96c65d1a4d
Uses "." instead of empty spaces to join words and avoid illegal username
2019-05-09 17:04:48 -03:00
Claudio Sanches
fb8af18eb4
Sanitize only one time
2019-05-09 17:04:27 -03:00
Claudio Sanches
b8d86ccce3
Introduced new woocommerce_new_customer_username filter
2019-05-09 17:02:47 -03:00
Claudio Sanches
20cd0152e8
Improve woocommerce_generated_customer_username filter
2019-05-09 17:01:30 -03:00
Claudio Sanches
c2836c5e75
Try prevent errors caused by illegal logins
2019-05-09 16:56:47 -03:00
Dan Wyman
6123c6066d
Corrects WC Tracker's order total calculation.
...
Fixes #23669
2019-05-09 12:03:33 -07:00
Rodrigo Primo
84f0f4ebea
Bump WC version since 3.7.0 development has begun
2019-05-09 15:14:34 -03:00
Gerhard
84b75c31ad
Three equals
2019-05-09 12:57:25 +02:00
Gerhard
c633c46045
When no update is found then just call WC_Install::update_db_version(); to ensure db version is set to current WC version, same as per WC_Admin_Notices::update_notice
2019-05-09 11:24:49 +02:00
Thomas Patrick Levy
57bbcf94b7
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-08 17:35:28 -07:00
Mike Jolley
6c3e1bbd01
Set register_rest_route override to TRUE
2019-05-08 11:27:26 +01:00
Gerhard
48e0a25f2f
Add woocommerce_product_post_type_link_parent_category_only to only include the parent category in the slug instead of parent/child
2019-05-07 15:51:49 +02:00
Gerhard
af678dfc84
Switch paypal capture_payment method to use woocommerce_order_status_processing and woocommerce_order_status_completed instead to avoid issues with custom from status transitions.
...
Update get_post_meta usage with $order->get_meta instead.
2019-05-07 12:57:59 +02:00
Gerhard
6eb51a9047
WC_VERSION instead of WC()->version
2019-05-07 08:47:42 +02:00
Claudio Sanches
490219de7c
Use attributes orderby options to sort terms in product's edit screen
2019-05-06 20:39:36 -03:00
Claudio Sanches
27c3f5c7e5
Always return string
2019-05-06 19:49:02 -03:00
Claudio Sanches
77b96b5972
Get only the first item
2019-05-06 19:46:37 -03:00
Gerhard
4c80c6fd3b
Include version in the implode call.
2019-05-06 14:53:03 +02:00
Gerhard
48e6083adc
Restore param and return for backward compatibility.
2019-05-06 14:47:27 +02:00
Gerhard
b1e2a0119a
Fix system status connected to woocommerce.com status
2019-05-06 10:11:59 +02:00
parmarhardip
12985e107a
#23596 - I have solve this issue.
2019-05-06 11:43:56 +05:30
Claudio Sanches
36a99e2935
Prevent undefined offset for empty arrays in wc_change_get_terms_defaults
2019-05-03 22:21:10 -03:00
Peter Fabian
a601151ed0
Fixed use of available_updates variable.
2019-05-03 10:34:59 +02:00
Peter Fabian
98edbd2f78
Added confirmation before saving an empty list of countries to sell to in general WC settings.
2019-05-02 21:26:29 +02:00
Peter Fabian
3caee4451d
Fixed PHPCS.
2019-05-02 21:20:08 +02:00
Peter Fabian
35c63ee475
Added some comments to hopefully make the function a bit clearer.
2019-05-02 20:19:28 +02:00
Peter Fabian
375880e06b
Made the increase and decrease operations atomic, set is atomic as it's not fetch-and-update, just update.
2019-05-02 19:41:15 +02:00
Peter Fabian
44f1803c53
Tweaked update lookup table to add the possibility to ignore manage_stock value from the database.
...
E.g. if manage_stock property has been changed in the object/local copy of the product while updating it, but the product has not been saved to the db yet, the lookup table update would ignore stock quantity update.
2019-05-02 19:29:28 +02:00
Peter Fabian
b891bfe238
Removed unused variables.
2019-05-02 17:53:50 +02:00
Gerhard
48000e63a1
Move remove_ordering_args calls from the_posts filter to query_filters method, this avoids conflicts with other plugins also hooking in and modify the args.
2019-05-02 14:31:30 +02:00
Gerhard
6a6b58daf6
Wrap version appending inside sanitize_key
2019-05-02 14:13:16 +02:00
Gerhard
da00f93869
Make the version part of the cache key and not a value in the cache
2019-05-02 14:10:31 +02:00
Rodrigo Primo
5ed76fd067
Change the link of the "Report a bug" button
...
Changes the link of the "Report a bug" button from https://github.com/woocommerce/woocommerce/issues?state=open to https://github.com/woocommerce/woocommerce/issues/new?template=Bug_report.md . When users click on this button, they should go directly to the new issue page, instead of the page that list issues.
2019-05-01 22:58:55 -03:00
Nathan Dawson
6088f7c353
Fixes #23578 - Check taxes are enabled before adding totals row to orders
2019-05-01 22:05:46 +01:00
Ben Huson
d81fc1d26d
Allow ordering by ‘none’ when ordering a products array (avoids random ordering). #23558
...
This provides the same functionality as WP_Query. Shuffle/rand remains the default order for backward compatiblity.
2019-04-30 18:46:45 +01:00
Ben Huson
70064b5eb1
Allow disabling of shuffling related posts via `woocommerce_product_related_posts_shuffle` filter. #23558
...
This filter ensures backwards compatibility is maintained.
2019-04-30 18:36:02 +01:00
Gerhard
cbfea2ec24
Also apply version caching to wc_get_template
2019-04-29 15:37:50 +02:00
Gerhard
8a0cf500d6
Version template caching to avoid issues with symlinked plugins in versioned folders.
2019-04-29 15:04:08 +02:00
Rodrigo Primo
45c2c78ea2
Fix: parameter values should be converted back as well when building form fields
...
PR #23196 added a workaround to `parse_str()` limitation when dealing with full-stops, pluses, and spaces in the parameter key. This workaround involved temporarily replacing those three characters with placeholders before calling `parse_str()` and then replacing back to the original form. This commit fixes a bug in this logic that was replacing back only parameters keys and not parameters values.
For example, if the query string is `?query.parameter=foo.bar`, the resulting <input> field contained `foo{dot}bar`, instead of the expected `foo.bar`.
2019-04-26 13:58:27 -03:00
Mike Jolley
0cd5c1da66
Allow stock to be force read without a change
2019-04-26 17:24:11 +01:00
Mike Jolley
ae7436d37c
Select for update, returning the new stock value
2019-04-26 17:23:45 +01:00
Mike Jolley
1a1b3e7654
Improved wc_update_product_stock
...
Allow product object to be passed through, remove cache clearing which is done during save(), and allow the caller to define whether or not an update routine is already in progress.
2019-04-26 17:20:50 +01:00
Mike Jolley
a7279bd261
Revert double saving change
2019-04-26 17:19:41 +01:00
Mike Jolley
afdd2fe7b1
define wpdb tables as early as possible, before init
2019-04-26 14:03:23 +01:00
parmarhardip
6b92769626
Fixes #23521 - Billing Email and Country now autofill for newly registered customers
2019-04-26 17:21:40 +05:30
Paul Sealock
ef12058326
Tracks: Fix OBW scripts
2019-04-26 09:54:13 +12:00
Rodrigo Primo
00128fec58
Fix dismiss button in two WC admin notices
...
The dismiss button in the WC admin notices `legacy_shipping` and `no_shipping_methods` was not fully clickable due to a custom CSS applied to them. This custom CSS was used to add a background image to those notices. More specifically, the problem was caused by the use of `position: relative` applied to `<p>` elements. I couldn't find an easy way to fix this problem keeping the custom background image, so I opted to remove it to make the design of all notices identical (besides the background image, the custom CSS also added a few other differences to those to notices like the font size of the notice title).
2019-04-25 14:19:35 -03:00
Rodrigo Primo
5c1936bfdd
PHPCS fixes
2019-04-25 14:12:45 -03:00
Rodrigo Primo
0785f2b72a
Bump default WC API version used when creating webhook
...
This commit bumps the default WC API version used when users are creating a new webhook. Before this change the default version would be v2, and after this change it is v3 which is the latest API version.
In the future we might want to create a method in WC_API class or somewhere else that returns the latest WC API version and use it in `includes/class-wc-webhook.php` instead of hard-coding the version number.
2019-04-25 11:41:31 -03:00
Peter Fabian
abf1b7450d
Save the product before calling wc_update_product_stock to ensure data consistency and set quantity in local copy after saving it to db in wc_update_product_stock.
...
wc_update_product_stock reads product from the db twice, so if it's out of sync, strange things are happening.
Also, changes dependant on stock status might get reverted if local copy of $product is not updated after wc_update_product_stock.
2019-04-25 14:57:08 +02:00
Claudio Sanches
79ff1b10e7
Stop removing backslash from passwords
2019-04-24 19:37:07 -03:00
Mike Jolley
036a91d20c
Merge pull request #23484 from woocommerce/update/marketplace-queue-handling
...
Marketplace queue handling - avoid recurring event
2019-04-24 17:00:40 +01:00
Mike Jolley
7795ac53ff
Merge pull request #23486 from woocommerce/fix/23475
...
Improved batching for _wc_rating_count lookup table
2019-04-24 16:37:00 +01:00
Mike Jolley
9776e346b3
cancel_all
2019-04-24 16:28:28 +01:00
Mike Jolley
1efcecddc5
Merge pull request #23469 from dfeuster/master
...
corrected anchor href from old codex to new location
2019-04-24 16:11:32 +01:00
Mike Jolley
ac0229c68a
Merge pull request #23397 from oskosk/update/jetpack-tracks-client-library-filepath
...
Update Jetpack Tracks Client library reference to not have a hardcoded directory path.
2019-04-24 16:08:54 +01:00
Mike Jolley
9bf2081869
Merge pull request #23477 from woocommerce/fix/23466
...
Default category sorting order should be overwritten if defined by get_terms
2019-04-24 16:00:33 +01:00
Mike Jolley
37e362047c
Merge pull request #23483 from woocommerce/fix/23481
...
Correct postcode validation on account page
2019-04-24 15:57:05 +01:00
Mike Jolley
087f490b10
Merge pull request #23489 from woocommerce/fix/23414
...
update action scheduler to version 2.2.5
2019-04-24 15:48:58 +01:00
Mike Jolley
e7ea67da03
Merge pull request #23399 from woocommerce/renovate/woocommerce-block-library-2.x
...
Update dependency @woocommerce/block-library to v2.0.1
2019-04-24 15:42:16 +01:00
Mike Jolley
0962b447f6
Merge pull request #23482 from woocommerce/fix/23473
...
Fix attribute matching in `get_attribute_taxonomy_name`
2019-04-24 15:40:13 +01:00
Mike Jolley
4518bff6b1
Merge pull request #23444 from woocommerce/fix/23443
...
Order webhook check order type args if we should skip
2019-04-24 14:57:07 +01:00
Mike Jolley
98dfb8e8c2
Merge pull request #23446 from woocommerce/fix/23439
...
Product list table shipping class tax_query
2019-04-24 14:56:00 +01:00
Mike Jolley
c42750504d
Merge pull request #23377 from woocommerce/fix/23374
...
[3.6] Fix product class name theme conflict due to missing global
2019-04-24 14:54:34 +01:00
Mike Jolley
2810e6cdf3
Merge pull request #23451 from woocommerce/fix/23387
...
Array handling in `get_catalog_ordering_args` to prevent notices
2019-04-24 14:52:47 +01:00
Mike Jolley
b2e428d4cc
Merge pull request #23455 from woocommerce/update/23388
...
During initial product lookup table generation, set an option
2019-04-24 14:51:47 +01:00
Mike Jolley
fbdc06188a
Merge pull request #23449 from woocommerce/fix/23436
...
Wrap wc_terms_clauses query in brackets to group meta_key where clause
2019-04-24 14:50:41 +01:00
Mike Jolley
9d9f7bec59
Merge pull request #23383 from woocommerce/update/update-notices
...
[3.6] More useful update notices if cron is disabled
2019-04-24 14:49:44 +01:00
Mike Jolley
3d2be7a63f
Merge pull request #23465 from woocommerce/fix/23403
...
Updated the meta_key for average rating when generating lookup tables.
2019-04-24 14:47:47 +01:00
Mike Jolley
7e091b2a0d
Merge pull request #23457 from woocommerce/fix/23407-2
...
Fixed use of get_term_meta in REST API endpoints
2019-04-24 14:34:28 +01:00
Mike Jolley
ab5ff7576d
Merge pull request #23380 from woocommerce/fix/23378
...
Added missing wp_unslash to order data meta box save
2019-04-24 14:31:14 +01:00
Ron Rennick
fc86e574cd
update action scheduler to version 2.2.5
2019-04-24 10:08:06 -03:00
Mike Jolley
192fecc0d8
Remove filter only needs priority
...
Co-Authored-By: Dragoș Mocrii <dragosmocrii@users.noreply.github.com>
2019-04-24 13:54:12 +01:00
Mike Jolley
6176f565d7
Improved batching for _wc_rating_count lookup table
2019-04-24 13:37:15 +01:00
Mike Jolley
618e98f4e0
Avoid queue on init
2019-04-24 13:00:23 +01:00
Mike Jolley
db67172b75
Queue single event only as needed
2019-04-24 13:00:16 +01:00
Mike Jolley
c523c379b4
Correct postcode validation on account page
2019-04-24 12:23:48 +01:00
Mike Jolley
76f0c015dd
Fix attribute matching in get_attribute_taxonomy_name
2019-04-24 12:05:44 +01:00
Mike Jolley
f24a607842
Force delete rather than trash variations on product type change
2019-04-24 11:16:41 +01:00
Mike Jolley
121f06b030
Added way of telling if default is in use or not
2019-04-24 10:39:00 +01:00
oskosk
120fdb2028
Use jetpack_require_lib_dir() instead of JETPACK__PLUGIN_DIR
2019-04-23 20:40:25 -03:00
Daniel Feuster
dfe8ac43bf
corrected anchor href from old codex to new location
2019-04-23 16:54:44 -05:00
Claudio Sanches
59f63f1b22
Return WP_Error messages from wp_insert_user()
2019-04-23 18:52:22 -03:00
Claudio Sanches
02863a2b00
Merge branch 'fix/23407' of https://github.com/strelkovk/woocommerce into fix/23407-2
2019-04-23 16:20:36 -03:00
Claudio Sanches
eeb6f5d15c
Revert changes on includes/api/class-wc-rest-product-categories-controller.php
2019-04-23 16:19:41 -03:00
Peter Fabian
24a5c70b5b
Updated the meta_key for average rating when generating lookup tables.
2019-04-23 19:29:38 +02:00
Mike Jolley
04e51191c4
Pass $class
2019-04-23 18:06:09 +01:00
Mike Jolley
246596dec0
Put the post_class back to avoid breaking bw compat. Append core classes on top
2019-04-23 18:04:20 +01:00
Claudio Sanches
0fdf47294a
Fixed use of get_term_meta in REST API endpoints
...
Part of #23408
2019-04-23 12:48:03 -03:00
Ron Rennick
130ebf95cd
phpcs sniff fixes for class-wc-admin.php
2019-04-23 12:07:02 -03:00
Ron Rennick
d2d342f30e
disable export of scheduled action posts
2019-04-23 12:03:30 -03:00
Mike Jolley
57929f2b09
During initial lookup generation set option
2019-04-23 15:23:47 +01:00
Mike Jolley
f20a48b1e4
Merge pull request #23417 from szepeviktor/patch-1
...
get_total_refunded should return a float
2019-04-23 14:18:30 +01:00
Mike Jolley
867f6ce7ad
Merge pull request #23418 from szepeviktor/patch-2
...
Refunds are WC_Order_Refund
2019-04-23 12:24:20 +01:00
Mike Jolley
6c36c71a65
Remove red styling
2019-04-23 12:10:07 +01:00
Mike Jolley
6589c04dab
Merge branch 'update/update-notices' of https://github.com/woocommerce/woocommerce into update/update-notices
2019-04-23 12:01:18 +01:00
Mike Jolley
3cb3d5df4e
Prevent tab causing extra white space
2019-04-23 12:01:13 +01:00
Mike Jolley
5c07e38641
Array handling
2019-04-23 11:53:07 +01:00
Mike Jolley
49f79c9593
Wrap wc_terms_clauses query with brackets
2019-04-23 11:14:50 +01:00
Gerhard
0f00eb9a79
Fix product list table shipping class tax_query
2019-04-23 11:19:07 +02:00
Gerhard
53cabdf5fe
Include check for order type args when checking if webhook is valid resource.
2019-04-23 10:43:49 +02:00
Viktor Szépe
b1476ba497
Fix coding style
...
in class-wc-order-refund-data-store-cpt.php
2019-04-22 23:05:34 +02:00
Dovid Levine
3ad9fb32be
Add data-input-classes to state field
2019-04-22 19:18:48 +03:00
Rodrigo Primo
ac70d1e9b2
Fix copy and paste error in code documentation
2019-04-22 11:43:09 -03:00
Milan Dinić
9c8327bdaa
Do not use state for Serbia.
2019-04-21 22:43:47 +02:00
Viktor Szépe
babb5ab18e
Refunds are WC_Order_Refund
...
props. @phpstan
2019-04-21 21:55:13 +02:00
Viktor Szépe
4e4dad0581
get_total_refunded should return a float
...
props. @phpstan
2019-04-21 21:36:31 +02:00
Milan Dinić
67cf3062c0
Add address format for Serbia.
2019-04-21 20:28:58 +02:00
strelkov
63d6ded7aa
Fix for get categories endpoint
...
to get proper display mode, image and order
issue
https://github.com/woocommerce/woocommerce/issues/23407
2019-04-20 11:37:23 +02:00
Kelly Dwan
60752fd68b
Build blocks from `@woocommerce/block-library`
2019-04-19 13:20:14 -04:00
oskosk
d6c8c2f389
Rely on the JETPACK__PLUGIN_DIR to load the Jetpack Tracks client file
2019-04-19 12:24:29 -03:00
Mike Jolley
7ef1fd5ea6
More useful update notices
2019-04-18 20:06:17 +01:00
Mike Jolley
662af85bea
cleanup and docs
2019-04-18 19:33:48 +01:00
Mike Jolley
7737fc5928
remove post_class and implement woocommerce_post_class
2019-04-18 19:27:00 +01:00
Mike Jolley
d411f082d7
Added missing wp_unslash
2019-04-18 18:52:51 +01:00
Mike Jolley
3dc0fcb0c7
Merge pull request #23370 from woocommerce/fix/23368
...
Check isset rather than empty so cart title can be removed
2019-04-18 18:39:06 +01:00
Mike Jolley
f703c959e4
Merge pull request #23372 from woocommerce/fix/is_request_to_rest_api
...
is_request_to_rest_api check wc endpoints only
2019-04-18 18:36:48 +01:00
Mike Jolley
fbaaa319dd
Use global product if null
2019-04-18 17:25:13 +01:00
Mike Jolley
0738b332fc
Merge pull request #23349 from woocommerce/add/structured-data-offercount
...
Adds offerCount to variable product's structured data.
2019-04-18 14:29:57 +01:00