Commit Graph

18908 Commits

Author SHA1 Message Date
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 b68b35336f Prevent negative prices for products 2019-05-14 13:22:06 -03:00
Claudio Sanches 9fd6e6d974 Added new $abs arg to wc_format_decimal() function 2019-05-14 13:15:42 -03: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
Tatu 968a0561bb
Add additional check for cart persistence 2019-05-14 12:47:06 +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
Tatu 44c6d0b36c
Compatibility for persistent cart disabled case
If woocommerce_persistent_cart_enabled filter was set to false the cart would be emptied while logged in. This fixes also that case. Now the guest session is removed from the woocommerce_sessions table after successful login whether the persistent cart is set enabled or disabled and the guest session cart is carried over to logged in user session.
2019-05-14 11:24:21 +03: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
Tatu 71e94e9c08
Add mention of $old_session_key parameter 2019-05-13 15:20:39 +03:00
Tatu bfad881f32
Removes the $old_session_key default value
Fix for the issue #23686
2019-05-13 14:27:28 +03:00
Tatu 4266cc9eaa
Update class-wc-session-handler.php 2019-05-13 12:27:01 +03: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
Tatu 4a725f3f3e
Delete guest session after user logs in
Logging in to the user account makes a copy of the guest session and possible cart content. This causes conflicts in situations where there are only single quantities of products left and real time product availability checks are in place. While this kind of single quantity items are at time in two carts for the same visitor the checking of product availability fails. Deleting the same visitors guest cart solves this issue.
2019-05-13 02:14:52 +03: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
Beka Rice 0e1a926721 Fire wc_paying_customer for completed orders, too 2019-04-29 13:06:32 -04: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
parmarhardip 8ffd78372f - coding standard improve 2019-04-25 10:25:17 +05:30
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
parmarhardip 7b8d7d7390 - autoload false and check Travis CI build 2019-04-24 19:03:19 +05:30
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
parmarhardip 4c90f566bb - Prevent the Cart, checkout and my account page from being set to the same page. 2019-04-24 17:31:20 +05:30
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
parmarhardip 2122a84d8b - coding standard check 2019-04-24 16:34:28 +05:30
parmarhardip f643c516d1 enhance #23381 Prevent the Cart, checkout and my account page from being set to the same page. 2019-04-24 15:59:14 +05:30
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
Beka Rice 84d03d3bf9 Tweak: update paying customer information on payment complete 2019-04-19 14:21:17 -04: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
Mike Jolley 9206d6f4dd
Merge pull request #23363 from woocommerce/fix/23361
Better iconv support handling in wc_ascii_uasort_comparison
2019-04-18 14:27:46 +01:00
Mike Jolley f0c30406a3 is_request_to_rest_api check wc endpoints only 2019-04-18 14:23:12 +01:00
Mike Jolley 1274136b32 Check isset rather than empty so cart title can be removed 2019-04-18 13:10:42 +01:00
Mike Jolley f306d3fc11
Merge pull request #23266 from woocommerce/fix/23234
Switch to subquery for sale product query
2019-04-18 12:36:22 +01:00
Mike Jolley b1ece1452c
Merge pull request #23365 from woocommerce/make-greece-state-optional
Make state/county optional for Greece
2019-04-18 12:17:44 +01:00
Mike Jolley e1e13dee91 merge conflict 2019-04-18 12:06:13 +01:00
Mike Jolley 2033a231a4 Update from master 2019-04-18 12:05:23 +01:00
Mike Jolley 8d5d7b2463 Update from master 2019-04-18 11:56:47 +01:00
Mike Jolley 44d129e452
Merge pull request #23334 from woocommerce/fix/23328
Revert selectWoo escaping change
2019-04-18 11:51:11 +01:00
Mike Jolley 3aff19afe7 version bump 2019-04-18 11:47:07 +01:00
Mike Jolley f66e523c5f
Merge pull request #23250 from Spreeuw/patch-7
Add $this parameter to email class filters
2019-04-18 11:35:51 +01:00
Mike Jolley ccc45852fc
Merge pull request #23272 from franticpsyx/optimize-get-available-variations
Prime post caches to reduce queries needed to populate variations data
2019-04-18 11:34:20 +01:00
Mike Jolley cafd81e6e5
Merge pull request #23329 from woocommerce/fix/23327
Non int value handling in wc_let_to_num
2019-04-18 11:30:57 +01:00
Mike Jolley ceefe98bd0
Merge pull request #23297 from dkjensen/master
Remove tags from product titles when building PayPal request URL
2019-04-18 11:23:55 +01:00
Gerhard c601d20b57 Fix alignment 2019-04-18 12:22:22 +02:00
Mike Jolley 5c91dac198
Merge pull request #23236 from woocommerce/fix/23219
Added is-active class to Orders when looking at individual order
2019-04-18 11:22:11 +01:00
Mike Jolley 2f850633a5
Merge pull request #23251 from woocommerce/fix/23239
CSV Import: Search for 'number' anywhere in cell, not just the end
2019-04-18 11:21:14 +01:00
thomas shellberg 6f4217e429 make state/county option for Greece 2019-04-18 12:21:06 +02:00
Gerhard 6026d2b9bf Typecast is sufficient enough 2019-04-18 12:20:59 +02:00
Mike Jolley 442ce26591
Merge pull request #23270 from jenkoian/fix-network-orders-widget
Bug - Fix for network orders widget when WooCommerce is network active.
2019-04-18 11:20:06 +01:00
Mike Jolley 180a0aaf8d
Merge pull request #23238 from woocommerce/fix/23224
Updated back to link for attribute terms.
2019-04-18 11:13:20 +01:00
Mike Jolley f0c5209f2b
Merge pull request #23249 from woocommerce/fix/23247
Avoid post update in `wc_update_product_stock`
2019-04-18 11:10:36 +01:00
Mike Jolley e7a6c51e61
Merge pull request #23201 from woocommerce/fix/23168
Add check for VAT exemption inside `display_prices_including_tax`
2019-04-18 11:03:52 +01:00
Mike Jolley b686150655
Merge pull request #23196 from woocommerce/fix/23195
Replace full stops before running through `parse_str`
2019-04-18 11:01:59 +01:00
Mike Jolley 19a1a7d7db
Merge pull request #23132 from woocommerce/fix/23127
Attribute renaming: Fix migration queries
2019-04-18 10:58:07 +01:00
Mike Jolley 262eef64f5
Merge pull request #23339 from woocommerce/fix/23337
Correctly handle images in v3 api
2019-04-18 10:55:24 +01:00
Mike Jolley e64e927aab
Merge pull request #23356 from leonaves/patch-1
Fix security check on email template preview page.
2019-04-18 10:51:01 +01:00
Gerhard f87df5c95a Swap flag around to ensure it tries TRANSLIT first, also silence notices should they pop up for some reason 2019-04-18 09:51:14 +02:00
Gerhard bedde9377c Better iconv support checking 2019-04-18 09:37:01 +02:00
Gerhard 10acd7a290 Use //IGNORE instead of //TRANSLIT due to it relying on server config which would ignore the flag and throw notices. 2019-04-18 09:26:39 +02:00
Leon Aves 60148d7f8f
Fix security check on email template preview page.
The nonce generated on the previous page was not being verified properly due to mismatched brackets (the second argument to wp_verify_nonce was not being passed).
2019-04-18 00:08:00 +01:00
Mike Jolley b697be51d4 Remove call to header_register_callback and revert to 3.5 cookie handling 2019-04-17 23:50:42 +01:00
Claudio Sanches 669542ed7d Adds offerCount to variable product's structured data 2019-04-17 14:04:52 -03:00
Mike Jolley 33b1c4205b Fix cart tests - move round so taxes are correct 2019-04-17 16:49:46 +01:00
Timmy Crawford 763d3aec33
Merge pull request #23332 from woocommerce/fix/tracks-cookie-save
Set tracks cookie on wp hook instead on when calling record event.
2019-04-17 06:20:24 -07:00
Gerhard 9ad8ef56da Be sure to also print the wp script since the OBW does not include those by default in the footer. 2019-04-17 14:56:51 +02:00
Gerhard fee86cd8cd Move JS to woocommerce_setup_footer and do not output wp scripts. 2019-04-17 14:54:59 +02:00
Gerhard 5c7b069d17 Use wp_loaded for cookie set 2019-04-17 14:23:19 +02:00
Gerhard f65f7a6d59 Remove wc_setcookie usage in WC_Tracks_Client::get_anon_id 2019-04-17 14:20:21 +02:00
Mike Jolley 111684ef32 Correctly handle images in v3 api 2019-04-17 13:18:33 +01:00
Mike Jolley 47eee0143f Restore order note on exception 2019-04-17 13:07:52 +01:00
Mike Jolley 6e5f1e2059 Switched conditon by accident 2019-04-17 12:57:02 +01:00
Mike Jolley e354bb90aa Pass objects to new/update actions 2019-04-17 12:50:46 +01:00
Mike Jolley a0d4f6174c Consistent CRUD classes with before/after save hooks 2019-04-17 12:47:35 +01:00
Mike Jolley f18542aa71 remove slash from currency code string 2019-04-17 12:06:57 +01:00
Mike Jolley 4e50a8f6dd Escape strings passed to selectwoo 2019-04-17 12:02:20 +01:00
Gerhard 00e8aeef60 Use __CLASS__ instead of self 2019-04-17 11:51:07 +02:00
Gerhard c74df4ca11 Set tracks cookie on wp hook instead on when calling record event. 2019-04-17 11:39:50 +02:00
Gerhard 8ca0bd7b4d Add logic to wc_let_to_num to handle non int values, added unit tests to cover these scenarios 2019-04-17 10:30:49 +02:00
Claudio Sanches 0f9ff3d70b [REST API] Stops order creating if returns any error
Prevents orders of been created if a WC_Data_Exception or a WC_REST_Exception was throwed.
2019-04-17 00:36:20 -03:00
Mike Jolley 9863362de3
Merge pull request #23315 from woocommerce/update/changes-from-3.5.8
Merge changes from 3.5.8
2019-04-16 14:57:50 +01:00
Mike Jolley d959758abe
Merge pull request #23311 from woocommerce/replace-deprecated-function
Replace call to deprecated function delete_woocommerce_term_meta()
2019-04-16 14:57:05 +01:00
Mike Jolley 7efe831e72
Merge pull request #23308 from webdados/patch-2
Stop using update_woocommerce_term_meta on class-wc-rest-product-categories-controller.php
2019-04-16 14:55:52 +01:00
Rodrigo Primo 20e9701583 Bump selectWoo.full.js version 2019-04-16 14:33:31 +01:00
Gerhard 86ec50f359 Update all *_woocommerce_term_meta calls to *_term_meta calls 2019-04-16 12:14:51 +02:00
Rodrigo Primo a18c44d76e Replace call to deprecated function delete_woocommerce_term_meta()
This commit replaces a call to deprecated function `delete_woocommerce_term_meta()` with its replacement `delete_term_meta()`. `delete_woocommerce_term_meta()` was deprecated by 32ae0192e5 and all calls removed, but PR #22553 that was created about the same time added a new call to this function.
2019-04-15 15:33:27 -03:00
Timmy Crawford bf151aee3e
Merge pull request #23303 from woocommerce/fix/23232
Refactor #23300
2019-04-15 11:21:00 -07:00
Timmy Crawford 08c7bee019
Merge pull request #23295 from woocommerce/fix/23291
Check `get_plugin_data` exists in `WC_REST_System_Status_V2_Controller`
2019-04-15 11:18:41 -07:00
Timmy Crawford acc1600594
Merge pull request #23302 from woocommerce/remove/tracks-total-revenue
[3.6] Blocker - remove total revenue from Tracks events.
2019-04-15 11:17:51 -07:00
Timmy Crawford e12e4aaa25
Merge pull request #23304 from woocommerce/fix/link-all-variations
[3.6] Fix logic in link all variations
2019-04-15 11:16:22 -07:00
Timmy Crawford f735883c80
Merge pull request #23306 from JPry/issue_23305
Update Action Scheduler library to 2.2.4
2019-04-15 11:10:42 -07:00
Timmy Crawford 438d22762e
Merge pull request #23246 from franticpsyx/issue-23245
Introduce IN and NOT IN clauses in `WC_Product_Data_Store_CPT::search_products
2019-04-15 11:08:32 -07:00
Marco Almeida 1a251c82ad
Stop using update_woocommerce_term_meta
Stop using the update_woocommerce_term_meta helper function as it has been deprecated on 3.6.0
2019-04-15 17:54:19 +01:00
Mike Jolley aaca13ee3d Map more fields, including special columns with custom data handling requirements 2019-04-15 16:05:29 +01:00
Mike Jolley 93535047fd Ability to parse tags with space separators 2019-04-15 15:55:42 +01:00
Jeremy Pry 745ebffbdd
Merge commit '98433d8c3095fa393389988d16e56fe1d302af63' into issue_23305
Updates the Action Scheduler library to version 2.2.4.

* commit '98433d8c3095fa393389988d16e56fe1d302af63':
  Squashed 'includes/libraries/action-scheduler/' changes from 4d221dc6d..f5643fe30
2019-04-15 10:47:01 -04:00
Mike Jolley 558e96fdb9 parse_tax_status_field 2019-04-15 15:08:25 +01:00
Mike Jolley b5f89e35d1 Remove localisation 2019-04-15 14:26:49 +01:00
Mike Jolley c5b7719697 Only map if this is looks like a Shopify export. 2019-04-15 14:24:56 +01:00
Mike Jolley 6c6785c844
Merge pull request #23269 from marcochiesi/patch-1
Added validation for Italian postcodes
2019-04-15 14:10:01 +01:00
Mike Jolley 1504f8af3e
Merge pull request #23011 from Tofandel/patch-2
Improve the speed of the admin dashboard by only updating transients once per class
2019-04-15 14:03:31 +01:00
Mike Jolley 58161c0ccc
Merge pull request #23122 from fpcuriosity/patch-1
Add taxonomy-specific classes to active filters widget
2019-04-15 13:31:35 +01:00
Mike Jolley c7412415e5
Merge pull request #23092 from woocommerce/fix/23089
Use version_compare for determining max version number
2019-04-15 13:29:29 +01:00
Mike Jolley 2152642146
Merge pull request #23152 from uok/patch-1
Format empty cart message as information notice
2019-04-15 13:27:17 +01:00
Mike Jolley 30129f00ff Fix issue in tests by disabling strict mode 2019-04-15 12:10:22 +01:00
Mike Jolley d0c6c54989 Moved link/create code to data store with new unit test
This code was not testable within ajax code, so moved to the data stores.
2019-04-15 11:59:57 +01:00
Gerhard 134f9c9c8e Fix PHPCS 2019-04-15 12:13:02 +02:00
Ralf 66540f1b5d Moved accessibility labels for checkout after woocommerce_checkout_fields filter 2019-04-15 12:09:33 +02:00
Jeff Stieler 13e40cdee7 Remove total revenue from Tracks events.
Query to calculate is far too expensive and doesn’t seem to ever get cached with large datasets.
2019-04-15 09:37:34 +02:00
David Jensen 9b58e68e85 Remove html tags from product name in request to PayPal 2019-04-12 12:36:30 -07:00
Mike Jolley 4e8342be38 Check get_plugin_data exists 2019-04-12 15:34:52 +01:00
Manos Psychogyiopoulos d4f8435106 Prime post caches before looping through variations
Should help when the AJAX variations threshold is set higher.
2019-04-11 10:59:34 +03:00
Ian Jenkins fa3637c4f1 Bug - Fix for network orders widget when WooCommerce is network active.
Network orders makes most sense when WooCommerce is installed as a
network wide plugin. This change fixes the widget when it is network
active.
2019-04-10 22:58:51 +01:00
Marco Chiesi e2dd7504d0
Added validation for Italian postcodes 2019-04-10 23:44:50 +02:00
Ewout Fernhout 794ba844b2 store tax rate percent in tax items 2019-04-10 17:35:43 +02:00
Ewout Fernhout 1ea6d7d3f8
separate getter for rate percent & percent value 2019-04-10 17:27:48 +02:00
Gerhard 96906d9efa PHPCS Fixes 2019-04-10 14:53:03 +02:00
Mike Jolley fe385c9f74 fix query by adding alias 2019-04-10 13:48:03 +01:00
Gerhard 8716c7451c PHPCS fixes 2019-04-10 14:29:40 +02:00
Mike Jolley 2e24cc7b0c Switch to subquery for sale product query 2019-04-10 12:43:22 +01:00
Mike Jolley dfcc5e16e5 update wording 2019-04-10 11:51:41 +01:00
Mike Jolley 945ff7958f
Merge pull request #23101 from woocommerce/update/23090
Add table ENGINE to system status report
2019-04-10 11:32:51 +01:00
Mike Jolley deaaa5d1d8 Remove two old moved-feature notices 2019-04-10 11:23:35 +01:00
Mike Jolley 91084f3e28 Add todo for legacy shipping notice 2019-04-10 11:23:04 +01:00
Mike Jolley 244156c0be check if sku or id column exists when updating products from csv 2019-04-10 11:11:40 +01:00
David Wampamba 1e09a7cfb6 Errors fixed 2019-04-10 13:03:30 +03:00
haszari 7ede25add7 use admin_url to generate manage suggestions url (support multisite etc) 2019-04-10 12:16:49 +12:00
haszari cd9101bb58 fix target url of 'Manage Suggestions', settings are now in 'Advanced' 2019-04-10 12:02:09 +12:00
John Coy 0bd52938ab Mapping for default Shopify fields
Helps to improve assigning the default Shopify columns upon upload.
2019-04-09 14:09:09 -05:00
Timmy Crawford 8bccfcca1a more phpcs fixes. 2019-04-09 11:34:34 -07:00
Timmy Crawford 81c679181c PHPCS fixes. 2019-04-09 10:18:47 -07:00
Timmy Crawford f2b55bf060 Move suggestions/tracks settings to new Advanced | WooCommerce.com page. 2019-04-09 09:38:26 -07:00
Mike Jolley 91e21644cf Style descriptions after select2 boxes 2019-04-09 15:02:05 +01:00
Mike Jolley cb27b40c67 Search for 'number' anywhere in cell, not just the end 2019-04-09 14:37:46 +01:00
Ewout Fernhout ca00798dd1
add $this to invoice email filters 2019-04-09 15:24:17 +02:00
Ewout Fernhout 6e2f1736ce
add $this to refunded order email filters 2019-04-09 15:22:26 +02:00
Ewout Fernhout fafc829c4d
Add $this parameter to email class hooks
see #23209
2019-04-09 15:19:21 +02:00
Mike Jolley 0cd429dad9 Avoid post update in wc_update_product_stock 2019-04-09 12:47:51 +01:00
David Wampamba bc6cbfcadc Spaces fixed 2019-04-09 13:59:49 +03:00
Manos Psychogyiopoulos 861d42f368 Fix IN type 2019-04-09 05:48:08 +03:00
Manos Psychogyiopoulos b1d7b2c6d0 Refactor json_search_downloadable_products_and_variations 2019-04-09 05:41:49 +03:00
Manos Psychogyiopoulos f6c560d684 Introduce IN and NOT IN clauses in `WC_Product_Data_Store_CPT::search_products`
closes #23245
2019-04-09 05:33:50 +03:00
haszari 36f1dbf7fb ensure no-suggestions state "manage" link triggers tracks event 2019-04-09 13:53:25 +12:00
Timmy Crawford b35945c5f5 PHPCS fix. 2019-04-08 17:21:50 -07:00
Timmy Crawford e4552c571d Only show suggestions setting when current user can install_plugins 2019-04-08 16:27:32 -07:00
Timmy Crawford ae66f195a5 Add link to manage suggestions in default/empty view 2019-04-08 16:24:52 -07:00
Timmy Crawford 4a2c706cc0 Add setting to control display of marketplace suggestions. 2019-04-08 16:24:52 -07:00
Timmy Crawford 616af5c28d
Merge pull request #23216 from woocommerce/update/tracks-opt-out
[3.6] Update opt-out usage tracking text.
2019-04-08 14:27:08 -07:00
Timmy Crawford 7ac179f7b8
Merge pull request #23229 from woocommerce/add/manage-suggestions-metabox-link
[3.6] Add manage suggestions link into browse-all metabox footer
2019-04-08 13:59:35 -07:00
Timmy Crawford b4352c8b32
Merge pull request #23203 from woocommerce/update/23199
[3.6] Prevent removal of the wc- prefix from non core order statuses
2019-04-08 12:13:11 -07:00
Timmy Crawford 886d1acca5 Updates to usage tracking text per feedback. 2019-04-08 12:00:11 -07:00
Timmy Crawford 57de03a7d0
Merge pull request #23231 from woocommerce/fix/tracks-issues
[3.6]Tracks: various fixes
2019-04-08 11:09:38 -07:00
Timmy Crawford 06bec2e845
Merge pull request #23210 from woocommerce/update/fb-recommendation-end-date
[3.6] OBW: Display FB recommendation until removed
2019-04-08 10:32:32 -07:00
Timmy Crawford ef4f0f0c0f
Merge pull request #23197 from woocommerce/fix/23182
[3.6] Fix backwards compatibility issues for wc_get_template function w/ tests
2019-04-08 10:19:16 -07:00
Peter Fabian eb99d0f152 Updated back to link for attribute terms. 2019-04-08 18:37:23 +02:00
Peter Fabian 36d2c96faa Added is-active class to Orders when looking at individual order under My Account. 2019-04-08 16:49:44 +02:00
Peter Fabian f757c6c60d PHPCS fixed. 2019-04-08 16:48:57 +02:00
Paul Sealock 1d7cd1722a Tracks: various fixes 2019-04-08 15:58:03 +12:00
haszari d2ff99189c enqueue translatable string for `Manage suggestions` link 2019-04-08 15:45:41 +12:00
Mark Senff 0185795319
Update html-product-attribute.php 2019-04-07 09:42:27 -04:00
Timmy Crawford 72b9555706 Update opt-out usage tracking text. 2019-04-05 12:59:32 -07:00
Valerie 0d1c1ec7b6 OBW: Display FB recommendation until removed
Instead of ending the FB recommendation on
a specific date we'll remove it when needed.
2019-04-04 13:34:40 -04:00
Mike Jolley 7e3eec3ed6 Added parse_published_field 2019-04-04 12:21:38 +01:00
Mike Jolley 1cd2959087 unset rather than prevent the template being included. 2019-04-03 16:08:12 +01:00
Mike Jolley 274a471167
Merge pull request #23194 from woocommerce/fix/23171
[3.6] Fix results from wp_term_counts when sorting by menu_order
2019-04-03 15:46:01 +01:00
Mike Jolley 9ea63486e6 Add get_post_status helper method and ensure prefix gets added for most statuses 2019-04-03 14:21:38 +01:00
Mike Jolley b1a811ca46 Replace spaces 2019-04-03 11:58:08 +01:00
Mike Jolley 11db10807d Add check for VAT excemption inside display_prices_including_tax 2019-04-03 11:36:43 +01:00
Mike Jolley 5ed25e1734 Notice if args are attempted to replace 2019-04-02 15:17:52 +01:00
Mike Jolley 51b3e4f213 Use action_args rather than $template variable which could have been overwritten
Co-Authored-By: dinhtungdu <dinhtungdu@gmail.com>
2019-04-02 14:07:48 +01:00
Mike Jolley a66adf0829 Replace full stops before parse_str 2019-04-02 13:58:37 +01:00
Mike Jolley 2f0b8cced5 Flip logic so counts ignore sorting rules 2019-04-02 11:56:47 +01:00
David Wampamba 5de3d4d18b
Merge branch 'master' into master 2019-04-02 13:40:27 +03:00
Paul Sealock 2d244a8047 Tracks: Status page events 2019-04-02 16:51:48 +13:00
Mike Jolley b1e71074b2
Merge pull request #23174 from szepeviktor/patch-2
Fix stray char in PHPDoc of WC_Coupon
2019-04-01 12:46:28 +01:00
David Wampamba 96c53643bb
Update class-wc-countries.php
Uganda locale
2019-03-30 16:49:44 +03:00
David Wampamba 6588a67fa4
Update class-wc-countries.php
Line 422: Uganda(UG) address format
2019-03-30 16:45:54 +03:00
Iskander (Alex) Sharipov 00f5b24e33
fix strpos arguments order
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-03-30 03:39:50 +03:00
Viktor Szépe 9e7fc0a35d
Fix stray char in PHPDoc of WC_Coupon
`|`
2019-03-30 00:48:17 +01:00
Viktor Szépe bd6a348af5
Fix PHPDoc in WC_Product_Importer
old stuff
2019-03-30 00:35:32 +01:00
Timmy Crawford ae1841a82c
Merge pull request #23162 from thenbrent/fix/23121
Update Action Scheduler to v2.2.3
2019-03-28 07:42:55 -07:00
Brent Shepherd f450c8d92a Remove Action Scheduler development files 2019-03-28 15:33:41 +10:00
Brent Shepherd fbfd91f6b9 Merge commit '2492f1e0ed366694059091f434743f52a6e5202d' as 'includes/libraries/action-scheduler' 2019-03-28 15:31:13 +10:00
Brent Shepherd 3e3d15e6cc Remove non-subtree'd /action-scheduler/ 2019-03-28 15:30:35 +10:00
Timmy Crawford 800ad318e3 OBW: Ensure tracker opt-in is always shown. 2019-03-27 15:29:55 -07:00
Timmy Crawford 4cad501098
Merge pull request #23146 from woocommerce/fix/22695
Update fallback download URL in helper
2019-03-27 15:01:10 -07:00
Timmy Crawford 0b113621a6
Merge pull request #23145 from woocommerce/fix/23107
Introduce `wc_create_new_customer_username` function
2019-03-27 14:59:24 -07:00
Timmy Crawford 9601bc64d1
Merge pull request #23138 from woocommerce/fix/23103
REST API: Adds future status to list of allowed statuses
2019-03-27 13:19:32 -07:00
Timmy Crawford 91d412f150
Merge pull request #23149 from woocommerce/update/23144
Update refund reason to make it clear refunding is manual
2019-03-27 13:18:53 -07:00
Timmy Crawford eb106853c5
Merge pull request #23156 from woocommerce/fix/23121
5.2 fix from ActionScheduler
2019-03-27 13:18:14 -07:00
Rodrigo Primo cbf6149cb9
Merge pull request #23069 from woocommerce/fix/23061
Variation stock status field handling (displaying/hiding when needed)
2019-03-27 14:51:26 -03:00
Rodrigo Primo 5d8ca32789
Merge pull request #23131 from woocommerce/fix/23118
`WC_Ajax::add_variation` force variable product type
2019-03-27 14:20:35 -03:00
Mike Jolley 0a61912a31 If orderby is used on static homepage, force page 2019-03-27 16:38:18 +00:00
Mike Jolley 4d5cda49c2 Hotfix for AS
Pulls in the fix from https://github.com/Prospress/action-scheduler/pull/268
2019-03-27 14:45:36 +00:00
Timmy Crawford 5a33e13432
Merge pull request #23151 from woocommerce/fix/emogrifier-conflict
Update Emogrifier class and usage
2019-03-27 07:27:14 -07:00
Mike Jolley ad49085571 Append random number to reduce recusion 2019-03-27 12:22:15 +00:00
Mike Jolley ded4f8bf3e Use string to avoid 5.2 warning 2019-03-27 11:35:45 +00:00
Timmy Crawford 8b24528b16
Merge pull request #23102 from woocommerce/update/prevent-fatal-errors-when-extending-rest-api
If someone tries to load WC_REST class to early, throw notice
2019-03-26 17:19:06 -07:00
Ben S c1a6cdb873
Format empty cart message as information notice 2019-03-26 18:35:21 +01:00
Mike Jolley ea19f732fd min/max functions instead of orderby 2019-03-26 14:41:27 +00:00
Mike Jolley b09a5f8003 Update Emogrifier 2019-03-26 14:24:21 +00:00
Mike Jolley a2576943a2 compare string 2019-03-26 14:08:14 +00:00
Mike Jolley c79e3ad8f1 Detect all rest endpoints, not just wc/ 2019-03-26 14:06:22 +00:00
Mike Jolley 8d3978e26b wc_translate_user_roles 2019-03-26 13:56:06 +00:00
Mike Jolley bdc009cfbf Update refund reason to make it clear refunding is manual 2019-03-26 12:46:27 +00:00
Mike Jolley 3a8c3b3813 Update download URL in helper 2019-03-26 11:36:41 +00:00
Mike Jolley 2b8f8e38d1 wc_create_new_customer_username function 2019-03-26 11:09:37 +00:00
Mike Jolley 8aeff9bb2f Adds future status to list of allowed statuses 2019-03-25 15:19:48 +00:00
Mike Jolley eb45b94edb Switch data_type 2019-03-25 15:10:56 +00:00
Mike Jolley 58651e8a2a When moving data for lookup tables, avoid orderby 2019-03-25 14:23:36 +00:00
Mike Jolley 9907a25ff6 Append notice if variations are invalid 2019-03-25 13:30:04 +00:00
Mike Jolley cb3134a563 phpcs 2019-03-25 12:45:38 +00:00
Mike Jolley 8e4807ac92 Correct keys when migrating attribute data 2019-03-25 12:27:18 +00:00
Mike Jolley 174ca94b79 WC_Ajax::add_variation - force variable product type 2019-03-25 11:56:48 +00:00
Francesco Pinto 69d4d9b221
Fixed Coding Standard 2019-03-23 20:58:36 +01:00
Francesco Pinto d1df273f9e
Fixed Coding Standards 2019-03-23 20:28:58 +01:00
Francesco Pinto c2bd9bcdf5
Add taxonomy-specific classes to active filters 2019-03-23 18:03:01 +01:00
Kelly Dwan 8c109f7925 Shortcut out if we see the feature plugin, v1.4 or below 2019-03-22 10:48:06 -04:00
Mike Jolley a4ef8cccd2 Update persistent cart only when cart items are modified 2019-03-22 13:05:09 +00:00
Mike Jolley 921cc754b9 Improved usefulness of set_quantity
Due to the way set_quantity works there are multiple paths that can be taken and multiple hooks to monitor for updates. woocommerce_before_cart_item_quantity_zero for example was only fired when qty hits zero, however, there are other hooks to monitor which do the same thing (remove from cart) e.g. woocommerce_cart_item_removed.

This uses the `remove_cart_item` method so that hook is always fired, and zero hook is no longer needed.

Added woocommerce_after_cart_item_quantity_update action to capture the other cases (when  qty is updated).
2019-03-22 13:04:47 +00:00
Mike Jolley 59c51fbebe Only clear persistent cart if persistent cart is enabled 2019-03-22 11:44:27 +00:00
Mike Jolley 8ad8a4efa5 Deprecation functions should not output errors during REST requests. 2019-03-21 16:26:33 +00:00
Mike Jolley 3ff2c2f053 If someone tries to load WC_REST class to early, throw notice and include rest api classes 2019-03-21 15:38:29 +00:00