Commit Graph

18463 Commits

Author SHA1 Message Date
Mike Jolley 0ae50509ce code standards 2019-03-15 11:25:04 +00:00
Timmy Crawford e1c09b4609
Merge pull request #22973 from woocommerce/update/22545
Revised sale start/end date save logic
2019-03-14 17:53:40 -07:00
Adrien Foulon 700d89f8ff
Fix missing parenthesis 2019-03-14 23:55:02 +01:00
Claudio Sanches d365497a66 Fixed coding standards 2019-03-14 19:48:47 -03:00
Adrien Foulon d53d6f6a7d
phpcs 2019-03-14 23:18:47 +01:00
Adrien Foulon 7a470fb117
Separating nocache and cache logic for clarity 2019-03-14 23:16:55 +01:00
Adrien Foulon 0391b11b20
Review 2019-03-14 23:05:54 +01:00
Timmy Crawford ade88ffc31
Merge pull request #23031 from woocommerce/update/update-routine-lookup-table
Lookup table updates over CLI
2019-03-14 12:45:09 -07:00
Daniel Kudwien 7702f773b9 Fixed WooCommerce writes current_theme_supports_woocommerce option on every page view. 2019-03-14 20:09:43 +01:00
Adrien Foulon 7d77241ed2
Move variable definitions in class 2019-03-14 16:44:26 +01:00
Mike Jolley 1e83864667 Improve updates of onsale/virtual 2019-03-14 12:57:48 +00:00
Renovate Bot b358278c62
Pin dependency wp-cli/wp-cli to 1.5.1 2019-03-14 11:52:54 +00:00
Mike Jolley 062d147b59 When using CLI, run queries without queue 2019-03-14 11:46:41 +00:00
Mike Jolley 520c517410
Merge pull request #23019 from woocommerce/update/onsale-lookup
onsale lookup table
2019-03-14 11:10:35 +00:00
Gerhard Potgieter fbb18db896
Merge pull request #22971 from woocommerce/fix/22958
Reword cancelled email
2019-03-14 10:07:12 +02:00
Gerhard Potgieter 8c09e28be4
Merge pull request #22994 from woocommerce/try/product-metabox-no-suggestions-polish
Show linkout to Marketplace when there are no product metabox suggestions to display
2019-03-14 09:35:15 +02:00
Gerhard Potgieter be926cd6ff
Merge pull request #23027 from dhavalgshah/feature/23026
Add $this context to woocommerce_email_styles filter.
2019-03-14 09:31:02 +02:00
Gerhard Potgieter d8f32ff209
Merge pull request #23001 from woocommerce/fix/22993
After logging in, update session customer ID
2019-03-14 09:26:00 +02:00
mindmantra 8cb0e42551 Add $this context to woocommerce_email_styles filter.
see: #23026
2019-03-14 12:13:55 +05:30
haszari 9f11374edf wrap button text label for translation 2019-03-14 14:56:35 +13:00
haszari cfa6f58b8f wrap no-suggestions strings for translation 2019-03-14 14:56:34 +13:00
haszari a751e6a054 content & icon for no-suggestions state in product edit metabox 2019-03-14 14:56:33 +13:00
Adrien Foulon 005d7491cf
Cleanup 2019-03-13 22:28:09 +01:00
Adrien Foulon 55339a2870
Cache setter and getter wrapper 2019-03-13 22:21:09 +01:00
Adrien Foulon 8d866d9df7
Fix error wpdb global 2019-03-13 21:19:21 +01:00
Adrien Foulon 322eed0b2c
Fix error 2019-03-13 19:06:47 +01:00
Mike Jolley 6995e6ec84
Merge pull request #22981 from woocommerce/update/22976
Updating geolocation download to avoid wp_upload_dir and direct filesystem access
2019-03-13 17:41:54 +00:00
Mike Jolley 8d0ec76cea Update the table on save 2019-03-13 17:33:44 +00:00
Adrien Foulon 11e8f087e8
Fix get cached query call 2019-03-13 18:18:59 +01:00
Mike Jolley 6de8a03f1a Merge branch 'master' into update_action_scheduler_2_2_1 2019-03-13 17:18:36 +00:00
Mike Jolley 53896e3149 onsale lookup 2019-03-13 17:14:20 +00:00
Mike Jolley 337b6cdc60 Link had wrong styling - it does not dismiss 2019-03-13 17:07:33 +00:00
Adrien Foulon 99358e7763
Remove whitespaces on empty lines 2019-03-13 18:00:13 +01:00
Adrien Foulon eefbaff3ea
Remove whitespaces on empty lines 2019-03-13 17:59:34 +01:00
Adrien Foulon cc65b2d856
Apply code review 2019-03-13 17:54:13 +01:00
Adrien Foulon 80435d779f
Apply code review 2019-03-13 17:52:28 +01:00
Ron Rennick 340bf79fda add 2 new files missed in original commit 2019-03-13 12:25:05 -03:00
Mike Jolley e2e124f365
Merge pull request #22083 from woocommerce/feature/variation-search
Added storing attribute values as post_excerpt for variations.
2019-03-13 15:09:19 +00:00
Rodrigo Primo f9cdab66eb
Merge pull request #22889 from woocommerce/fix/22817
Hide 'other' payment method from invoice
2019-03-13 12:01:56 -03:00
Mike Jolley 09d92875fa
Merge pull request #23010 from woocommerce/update/lookup-tables
Update stock reports to use lookup tables
2019-03-13 15:01:07 +00:00
Mike Jolley 16ff51ded3 Use lookup table ID 2019-03-13 15:00:12 +00:00
Mike Jolley 4b077a22e8 Remove customer name 2019-03-13 14:40:37 +00:00
Mike Jolley a44cba5923 Update subject 2019-03-13 14:38:04 +00:00
Mike Jolley 1dfb38c0a9
Merge pull request #23014 from woocommerce/update/add-caching-tracks-blog-details
Add transient caching to tracks blog data collection.
2019-03-13 14:28:10 +00:00
Mike Jolley 39e5de3324
Merge pull request #23007 from woocommerce/add/wc-blocks-v1/docblock-updates
REST API: Add Private REST API docblock and response headers.
2019-03-13 14:26:13 +00:00
Mike Jolley 955e91c5ef Use internal docblock comment 2019-03-13 14:24:11 +00:00
Ron Rennick 51afb3589b update version in action scheduler plugin header 2019-03-13 11:01:11 -03:00
Mike Jolley 4b2f7aedd4 Trigger sync after updating meta 2019-03-13 13:53:58 +00:00
Mike Jolley 0002463c61 child_has_stock_status use lookup 2019-03-13 13:48:38 +00:00
Ron Rennick 74789834fe update action scheduler to version 2.2.1 2019-03-13 10:45:39 -03:00
Mike Jolley d17dc119bc SKU lookup 2019-03-13 13:30:49 +00:00
Mike Jolley df0c432de2 update_product_stock should sync lookup table 2019-03-13 13:30:31 +00:00
Mike Jolley f6d9e7796f is_existing_sku use lookup 2019-03-13 13:25:55 +00:00
Gerhard e86fbf62cc Add transient caching to the blog_details values tracks collects. 2019-03-13 15:12:07 +02:00
Adrien Foulon fa9b08c9a4
Make the maybe_update_transients hook static so it's not constructor dependant
Because extended classes don't call the parent constructor and that would break BC
2019-03-13 13:47:00 +01:00
Mike Jolley e6c60dd6c2 Show notice when regeneration is taking place with link to AS 2019-03-13 12:25:20 +00:00
Rodrigo Primo 5d14d30b8c Remove outdated comment
Commit
be05eea5da (diff-133db5662c51f5686d87611121a05a3bL88)
changed how ajax events are stored and now an associative array is not used anymore for both private and non private events. Instead two different arrays are now used one for each type of event.
2019-03-13 09:21:29 -03:00
Rodrigo Primo ab89222cfa Fix typo
Typo added in be05eea5da (diff-133db5662c51f5686d87611121a05a3bR45)
2019-03-13 09:10:53 -03:00
Adrien Foulon bc34c6e3eb
Fix php5.2 support 2019-03-13 12:11:49 +01:00
Mike Jolley 2c14a8ddfb
Merge pull request #23006 from woocommerce/fix/phpcs-error
Fix error introduced by commit be05eea5da
2019-03-13 10:59:17 +00:00
Adrien Foulon a520cb5f44
Rename function 2019-03-13 11:55:18 +01:00
Adrien Foulon b2ad443db5
phpcs 2019-03-13 11:51:48 +01:00
Adrien Foulon 95cbe5c969
phpcs 2019-03-13 11:51:24 +01:00
Mike Jolley b4cfef95a2 Stop calling notice file 2019-03-13 10:40:38 +00:00
Mike Jolley 54fac746b3 Remove unused notice file 2019-03-13 10:40:11 +00:00
Mike Jolley 6f4eeef2fe Move deprecated notices to bottom of class and add deprecated tag 2019-03-13 10:37:30 +00:00
Adrien Foulon 13b5a07383
Update class-wc-admin-report.php 2019-03-13 11:35:42 +01:00
Adrien Foulon ee403d6000
Improve the speed of the admin dashboard by only updating transients once per class
While debugging the admin dashboard I found out that some transients where updated up to 5 times during the page load, reading is fast but writting is costy, so the query where adding a total of 200ms to the page load (because they are also huge transients)

I've rewritten the transient storage procedure so that per class a transient is only written once at the end of the request

I also found that a continue was changed for a break line 139 for php7.3 and the new warning it incurs, the problem is it was changed the  wrong way, it should have been a "continue 2" to continue the foreach and not a break.

That makes me wonder if some others like this may have slipped in the code.
2019-03-13 11:33:03 +01:00
Mike Jolley ef352c2b48 Outofstock lookup 2019-03-13 10:10:24 +00:00
Mike Jolley b4aa0c3915 use found rows 2019-03-13 10:06:49 +00:00
Mike Jolley f5bd3be2c2 most stocked lookup table 2019-03-13 09:59:14 +00:00
Timmy Crawford f7b58862f0 Fix phpcs issues. 2019-03-12 17:10:48 -07:00
Timmy Crawford 6c22bfb96a REST API: Add Private REST API docblock and response headers. 2019-03-12 16:26:10 -07:00
Rodrigo Primo a41e29e05f Fix error introduced by commit be05eea5da
Commit be05eea5da (diff-133db5662c51f5686d87611121a05a3bR1420) fixed all the PHPCS violations in includes/class-wc-ajax.php, but it unintentionally changed that the logic of WC_Ajax::json_search_products(). This commit reverts the changes to the old logic while keeping the PHPCS fixes.

Before the modification mentioned above, `$_GET['term']` would be used only if `$term` was empty. After this modification, `$_GET['term']` is used whenever it is set and `$term` (the parameter passed to the method) stopped being used. This commit restores the original logic in that what is passed in the first parameter as `$term` is used by default, and `$_GET['term']` is only used if `$term` is empty.
2019-03-12 20:23:28 -03:00
Mike Jolley ac21a4bc33 phpcs 2019-03-12 22:26:53 +00:00
Mike Jolley 3b98d2de8d Switch low stock report to lookup table
Baseline page load time down from 60s to 0.7s
2019-03-12 22:26:46 +00:00
Mike Jolley a6a035ec92 Fix low stock query to ref correct lookup table column 2019-03-12 22:16:42 +00:00
Mike Jolley c52eac2871 check updated props for variables 2019-03-12 19:22:30 +00:00
Rodrigo Primo 47135c6a68
Merge pull request #22997 from woocommerce/fix/22992
Add stock to search results manually
2019-03-12 15:12:43 -03:00
Mike Jolley 203dba5a1f After logging in, migrate session data 2019-03-12 16:36:15 +00:00
Mike Jolley 5b1814016b Add stock with different function 2019-03-12 14:48:05 +00:00
Rodrigo Primo c4d6f3dac3 Replace deprecated WPCS rule
This commit replaces all the instances where the WPCS rule `WordPress.VIP.SlowDBQuery` was used with `WordPress.DB.SlowDBQuery`. `WordPress.VIP.SlowDBQuery` was deprecated in WPCS 2.0 and `WordPress.DB.SlowDBQuery` was added as a replacement (see 5f27d8e3a4/CHANGELOG.md (L130)).
2019-03-12 11:24:09 -03:00
Mike Jolley f8dded8b49 merge refactor/22762 into master 2019-03-12 13:49:10 +00:00
Mike Jolley 20d7603dd6 Merge branch 'fix/21034' 2019-03-12 13:47:08 +00:00
Mike Jolley 4ab3cc2204 Merge branch 'update/21017' 2019-03-12 13:45:48 +00:00
Mike Jolley 561afbabbd
Merge pull request #22949 from woocommerce/update/22929
Update order discount display
2019-03-12 13:35:42 +00:00
Mike Jolley 925ef8a8f5
Merge pull request #22979 from woocommerce/fix/22952
Set reply-to address for all emails
2019-03-12 13:34:41 +00:00
Mike Jolley c39f447ff4 Merge branch 'fix/22937' 2019-03-12 13:27:13 +00:00
Mike Jolley a5e956e7bf
Merge pull request #22980 from woocommerce/fix/22968
Pass user ID when adding coupons via admin
2019-03-12 13:22:40 +00:00
Mike Jolley 638812cdd3
Merge pull request #22904 from woocommerce/update/20577
Updates - Docs and ActionScheduler implementation
2019-03-12 13:21:48 +00:00
Peter Fabian fb0f112c6d Update the db only once if both title and attributes got updated. 2019-03-12 12:55:15 +01:00
Gerhard 10557868dd Missing space after != 2019-03-12 12:04:26 +02:00
Mike Jolley d8f665bb89
Merge pull request #22936 from woocommerce/fix/21814
Setup Wizard: Add keyboard events for custom input toggles
2019-03-12 09:28:37 +00:00
Mike Jolley 72870d808c
Merge pull request #22890 from woocommerce/fix/21785
Avoid changing tracking preferences when disconnecting helper
2019-03-11 17:04:29 +00:00
Mike Jolley 1d7059ec90 Add other check in order totals too 2019-03-11 16:59:38 +00:00
Mike Jolley 0211757e47
Merge pull request #22988 from woocommerce/fix/payment-custom-section-saving
Refactor WC_Settings_Payment_Gateways::save
2019-03-11 16:08:24 +00:00
Mike Jolley dbfd06222a tweak logic to only save ordering when section is empty 2019-03-11 16:06:53 +00:00
Mike Jolley 749493b4f4
Merge pull request #22867 from woocommerce/fix/22838
Refactor delete zone/delete zone method data store to remove settings
2019-03-11 15:55:53 +00:00
Mike Jolley 587f792868 Dupe line 2019-03-11 15:55:25 +00:00
Mike Jolley 0877e7d8f7
Merge pull request #22954 from woocommerce/add/blocks-rest-api
Merge blocks branch: add 8 product blocks and related API endpoints
2019-03-11 15:18:20 +00:00
Mike Jolley fbda3a91d8 Merge feature/add-tracks into master 2019-03-11 15:15:50 +00:00
Mike Jolley cd92c68476 fix offset check 2019-03-11 15:00:42 +00:00
Mike Jolley b95bf94092
Merge pull request #22984 from woocommerce/fix/skip-order-count-query-when-filtered
Don’t query for an order count unnecessarily
2019-03-11 13:28:16 +00:00
Mike Jolley de509ef041
Merge pull request #22982 from woocommerce/remove/blocks-notice
Remove Blocks Plugin Notif
2019-03-11 13:27:49 +00:00
Mike Jolley e55bb84e8b
Merge pull request #22718 from woocommerce/experiment/product-sorting-index
Performance: product sorting lookup table
2019-03-11 13:27:10 +00:00
Mike Jolley 76bbc89c59
Merge pull request #22916 from woocommerce/update/22836
Add try catch block to pay_action
2019-03-11 13:25:22 +00:00
Peter Fabian be292f0209 Removed superfluous filter. 2019-03-11 13:34:31 +01:00
Gerhard f40692003b Rework payment gateway settings save functionality so it falls back to saving the current section. 2019-03-11 13:27:17 +02:00
Mike Jolley 9bd38c496e Delete method 2019-03-11 10:46:57 +00:00
Mike Jolley b71a7ac4ee Stray 1 2019-03-11 10:29:14 +00:00
Paul Sealock 6e2c67aef6 dont escape 2019-03-11 11:59:05 +13:00
Paul Sealock 60d478b642 wc_clean 2019-03-11 11:49:56 +13:00
Peter Fabian d3dfee7353 Updated docs. 2019-03-09 12:09:50 +01:00
Peter Fabian ec0767b3ce Added attribute summary prop getters and setters. 2019-03-09 12:09:09 +01:00
Peter Fabian 5256daec07 PHPCS 2019-03-09 12:06:36 +01:00
Caleb Burks afaf3482c4 Don’t query for an order count unnecessarily 2019-03-08 16:18:31 -06:00
Timmy Crawford 0ebefa53fd Remove Blocks Plugin Notif 2019-03-08 11:09:15 -08:00
Mike Jolley 87bce1f4a2 Reduce inital delay for geo data 2019-03-08 18:20:31 +00:00
Mike Jolley 15f0d2566d Use filesystem and hardcoded upload dir 2019-03-08 18:20:17 +00:00
Mike Jolley 143068332d Pass user ID when adding coupons via admin 2019-03-08 16:14:49 +00:00
Mike Jolley ff7a941235 Set reply-to address for all emails 2019-03-08 15:55:56 +00:00
Mike Jolley ddb134fe45 Redirection improvements 2019-03-08 15:11:23 +00:00
Mike Jolley bea53ebf4f Handle date offsets on save 2019-03-08 13:36:55 +00:00
Mike Jolley d9ab3b106e Clean up date lookup 2019-03-08 13:36:22 +00:00
Mike Jolley c56d3ede9f Remove day offsets 2019-03-08 13:35:30 +00:00
Mike Jolley 0e1986df7a Fix include 2019-03-08 13:11:30 +00:00
Mike Jolley 6f35239a26 Move activate/deactivate hooks to main WC class 2019-03-08 12:50:06 +00:00
Mike Jolley fcf2a1d027 Move helper includes into helper class 2019-03-08 12:48:40 +00:00
Mike Jolley 574de2e90c Move helper headers into wc_enable_wc_plugin_headers so they always exist. 2019-03-08 12:44:33 +00:00
Mike Jolley 30d3f1f49e Filter get_available_payment_gateways for valid results 2019-03-08 11:37:47 +00:00
Mike Jolley 30c58b66cc woocommerce_payment_gateways - ensure class is valid 2019-03-08 11:32:36 +00:00
Mike Jolley 3b8256414f
Merge pull request #22818 from woocommerce/fix/21800-edge-cases
Performance: Image regeneration edge cases
2019-03-08 11:01:30 +00:00
Mike Jolley 15ca2144d3
Merge pull request #22773 from woocommerce/performance/delete-empty-meta
Performance: delete empty meta
2019-03-08 10:22:31 +00:00
Mike Jolley e7c8db0796
Merge pull request #22887 from woocommerce/update/22882-additional-system-status-values
Additional System Status Options
2019-03-08 10:15:45 +00:00
Mike Jolley 1e243b43dd
Merge pull request #22962 from woocommerce/update/format-phone-function
Phone number sanitize function
2019-03-08 10:08:02 +00:00
Mike Jolley a3c2dcd8f2 Update from master 2019-03-08 09:50:56 +00:00
Paul Sealock 14d9678513 admin 2019-03-08 10:48:26 +13:00
Paul Sealock ea4407de99 dione 2019-03-08 10:42:23 +13:00
Paul Sealock 09dec90831 getting there 2019-03-08 10:20:50 +13:00
Paul Sealock 9ee0912104 even more 2019-03-08 10:11:43 +13:00
Paul Sealock 712f06014d moar 2019-03-08 10:08:34 +13:00
Paul Sealock e9d02699c4 phpcs 2019-03-08 10:05:59 +13:00
Rodrigo Primo 9574762e8b
Merge pull request #22915 from woocommerce/fix/22894
Add woocommerce_get_product_subcategories_cache_key filter
2019-03-07 16:49:17 -03:00
Claudio Sanches c892ed51a8 Better description 2019-03-07 14:15:10 -03:00
Claudio Sanches e5e64d1618 Apply wc_sanitize_phone_number in WC_Gateway_Paypal_Request 2019-03-07 14:08:40 -03:00
Claudio Sanches 82aeb2a7f4 Introduced new wc_sanitize_phone_number function 2019-03-07 14:07:32 -03:00
Claudio Sanches 8c3ef28d07 Fixed coding standards 2019-03-07 14:07:14 -03:00
Mike Jolley 5492369fe9
Merge pull request #22857 from woocommerce/feature/marketplace-suggestions
Feature/marketplace suggestions
2019-03-07 16:39:14 +00:00
Mike Jolley 3e23010ad6
Merge pull request #22693 from woocommerce/fix/21110
Send calling code to PayPal
2019-03-07 16:36:19 +00:00
Mike Jolley 33c576a2fd
Merge pull request #22570 from woocommerce/performance/slow-term-queries
Improve slow term ordering queries
2019-03-07 16:33:01 +00:00
Mike Jolley 03863c3316
Merge pull request #22950 from woocommerce/fix/22947
Use day, not time, in status widget for caching
2019-03-07 16:31:02 +00:00
Mike Jolley c0c520442c Queue events in order 2019-03-07 16:24:52 +00:00
Mike Jolley f0037ea643 split updates 2019-03-07 16:13:47 +00:00
Mike Jolley 663f724bdd Cleanup methods 2019-03-07 15:08:22 +00:00
Mike Jolley 3173167e7e Update indexes 2019-03-07 14:47:46 +00:00
Mike Jolley dc635b9561 Update search_products to use lookup table 2019-03-07 14:46:01 +00:00
Mike Jolley 0782d39a55 Stock status 2019-03-07 14:32:20 +00:00
Mike Jolley 1ab455ec09 virtual and downloadable 2019-03-07 14:07:51 +00:00
Mike Jolley 94b19dc3ca SKU and price sorting using lookup table in admin 2019-03-07 13:47:15 +00:00
Mike Jolley 91aa1b92e5 Tool to regen lookup tables 2019-03-07 13:40:12 +00:00
Mike Jolley dfc539c051 SKU column 2019-03-07 13:34:28 +00:00
Mike Jolley 122eeda7ff Avoid step rounding on query 2019-03-07 13:01:45 +00:00
Mike Jolley f6c6c18242 Update from master 2019-03-07 12:50:38 +00:00
Mike Jolley e7bb5a8f41 Merge branch 'master' into experiment/product-sorting-index 2019-03-07 12:49:25 +00:00
Mike Jolley 434c9b5815 Improve transient 2019-03-07 11:47:19 +00:00
Mike Jolley 236d9827ee fix transient 2019-03-07 11:33:23 +00:00
Mike Jolley bb7aa99d4b Add transients to post tests 2019-03-07 11:21:42 +00:00
Mike Jolley 598ac86e95 Tests 2019-03-07 11:08:29 +00:00
Mike Jolley 89a4eba859 update from 22951 2019-03-07 10:58:14 +00:00
Mike Jolley c78098c248 Version 2019-03-07 10:15:49 +00:00
Jeff Stieler 68573f6ed5
Increase Tracks performance (perhaps..) (#22829)
* Don’t block on Tracks requests and lower timeout to 1s.

* Where possible, render Tracks pixels in the page footer instead of making a blocking HTTP request from the server.

* Add direct API call fallback for Tracks event pixels.
2019-03-06 15:55:49 -07:00
Kelly Dwan b360643582 Add average rating to the products API response 2019-03-06 17:32:31 -05:00
Kelly Dwan fdefe5feac Update with latest changes from block-library 2019-03-06 17:32:29 -05:00
Kelly Dwan ea1b7d9730 Pull in changes from woo blocks PR 2019-03-06 17:28:51 -05:00
Kelly Dwan 5491d6ea55 Add note about source of file 2019-03-06 17:28:50 -05:00
Kelly Dwan 619527bb89 Fix phpcs issue 2019-03-06 17:28:49 -05:00
Kelly Dwan 148b605dbe Update copying process, copy over minified files 2019-03-06 17:28:49 -05:00
Kelly Dwan 75b5e78561 Import file to register blocks 2019-03-06 17:28:48 -05:00
Kelly Dwan 2b5ab03a2d Add the built files 2019-03-06 17:28:46 -05:00
Claudio Sanches f38e877ee4 Updated sanitize callback and fixed coding standards 2019-03-06 17:26:19 -05:00
Timmy Crawford 85713c4c1a Updates per feedback. 2019-03-06 17:26:18 -05:00
Timmy Crawford da4867e755 Update text domain. 2019-03-06 17:26:17 -05:00
Timmy Crawford 2b59c5db64 REST API: Add Blocks Products Controller 2019-03-06 17:26:17 -05:00
Timmy Crawford e17d835e66 REST API: Add wc-blocks/v1/products/categories 2019-03-06 17:26:16 -05:00
Timmy Crawford f4e17ddcee REST API: Add wc-blocks/v1/products/attributes controller. 2019-03-06 17:26:15 -05:00
Timmy Crawford f2fa01d585 PHPCS fixes. 2019-03-06 17:26:15 -05:00
Timmy Crawford c1313d433c Updates per feedback. 2019-03-06 17:26:14 -05:00
Timmy Crawford 4311670956 REST API: wc-blocks/v1/products/attributes/%d/terms 2019-03-06 17:26:13 -05:00
Mike Jolley 56fbcfd8af Include inactive plugins in system status 2019-03-06 18:29:44 +00:00
Mike Jolley 7aa82a1829 Use day, not time, in status widget for caching 2019-03-06 17:25:35 +00:00
Mike Jolley 6f983fb4eb
Merge pull request #22802 from woocommerce/fix/22643
Use taxable address when adding/removing coupons
2019-03-06 16:49:34 +00:00
Mike Jolley 95c5d145bb
Merge pull request #22540 from woocommerce/update/price-slider-improvements
Make the price filter widget tax aware redux
2019-03-06 16:47:21 +00:00
Mike Jolley 556bfd127f
Merge pull request #22909 from woocommerce/refactor/comment-rating-functions
Refactor comment/rating update functions
2019-03-06 16:46:33 +00:00
Mike Jolley 38816eb2ce Update wording and presentation of discount amount 2019-03-06 16:39:28 +00:00
Mike Jolley 0f3be9fce4 phpcs 2019-03-06 16:17:33 +00:00
Mike Jolley 48a2660f8e Queue based count population 2019-03-06 14:04:38 +00:00
Mike Jolley a697c97472 Add rating_count to lookup table 2019-03-06 14:03:44 +00:00
Mike Jolley b07f3e21db Merge branch 'master' into experiment/product-sorting-index 2019-03-06 12:54:40 +00:00
Mike Jolley b6e53d9109 PHP_INT_MAX 2019-03-06 12:46:58 +00:00
Mike Jolley e1ff1bfae9 Update from master 2019-03-06 12:37:24 +00:00
Mike Jolley 55b27a2afc Adjust calling code prefix logic in paypal 2019-03-06 12:33:46 +00:00
Mike Jolley 65c0169726 Merge branch 'master' into fix/21110 2019-03-06 12:25:12 +00:00
Mike Jolley 4330b2eb38 Update calling code handling 2019-03-06 12:25:06 +00:00
Mike Jolley 2bb39a4c79 Update from master 2019-03-06 12:08:07 +00:00
Mike Jolley 99455cfe34 update text 2019-03-06 12:00:54 +00:00
Mike Jolley ea27a3e889 Merge branch 'master' into fix/22937 2019-03-06 11:46:37 +00:00
Mike Jolley 557530e43a Use wc_format_coupon_code when handling posted values 2019-03-06 11:44:54 +00:00
Mike Jolley e8aecdb824 Use wc_format_coupon_code when handling posted values
wc_clean and other functions strip characters - using wc_format_coupon_code keeps it consistent with post_title formatting.
2019-03-06 11:44:27 +00:00
Mike Jolley 96efb7a93b Use wc_sanitize_coupon_code 2019-03-06 11:42:07 +00:00
Mike Jolley 315b79c5ac phpcs 2019-03-06 11:41:58 +00:00
Mike Jolley 39bb476db2 Introduce wc_sanitize_coupon_code 2019-03-06 11:41:52 +00:00
Mike Jolley cb9edfc9f9
Merge pull request #22751 from woocommerce/fix/21544
Fix cart widget in Safari when using browser back button
2019-03-06 11:40:23 +00:00
Joshua Flowers 795b571147 Add scripts to wc setup footer 2019-03-06 11:55:19 +13:00
haszari 1ed027bb09 snooze suggestions in product list (for 24 hours) after a suggestion is dismissed 2019-03-06 10:50:22 +13:00
Mike Jolley 16a0a3e27e Update from master 2019-03-05 19:03:01 +00:00
Mike Jolley cc6ca5bdbd Add deprecated 2019-03-05 19:00:37 +00:00
Mike Jolley 8cb385e3db Cleanup/test 2019-03-05 18:23:51 +00:00
Mike Jolley aba2f4713c Clear caches in api 2019-03-05 18:16:05 +00:00
Mike Jolley 0e943a38d7 Fix wc_get_attribute 2019-03-05 17:02:58 +00:00
Mike Jolley a42bdf94d0 avoid query in wc_attribute_orderby 2019-03-05 16:53:58 +00:00
Mike Jolley d03f5d4373 Index by ID and cache 2019-03-05 16:49:45 +00:00
Mike Jolley ed6c02b8ec wc_get_attribute caching 2019-03-05 16:21:10 +00:00
Mike Jolley 9452616a7f wc_get_attribute_taxonomy_labels with cache 2019-03-05 16:19:00 +00:00
Mike Jolley abc3b6ca47 Use cache helper for invalidation 2019-03-05 16:16:46 +00:00
Mike Jolley b2a136bfb8 wc_get_attribute_taxonomy_ids function, with cache 2019-03-05 16:10:31 +00:00
Mike Jolley 46bdad07e9 Array init code was wrong 2019-03-05 14:51:58 +00:00
Mike Jolley a5e72cfc02 Re-order elements and add tabindex 2019-03-05 14:22:59 +00:00
Mike Jolley 2c2891c17a
Merge pull request #22925 from woocommerce/fix/22896
Remove structured data from archives and include some recommended fields on single product pages
2019-03-05 14:02:07 +00:00
Mike Jolley add1765234 Inline docs 2019-03-05 13:49:02 +00:00
Mike Jolley 6d5f5be164 sync_rating_count before average in deprecated method 2019-03-05 13:47:56 +00:00
Mike Jolley f707eeda3e Update from master 2019-03-05 13:31:14 +00:00
Mike Jolley a49d4a04a1 Update throws tags 2019-03-05 13:05:55 +00:00
Mike Jolley ac6763d0d0
Merge pull request #22820 from woocommerce/fix/22496
Make 'refund amount' read-only
2019-03-05 12:56:59 +00:00
Mike Jolley 2d394a2b26
Merge pull request #22888 from woocommerce/fix/22870
Add precision to tax in discount class
2019-03-05 12:54:11 +00:00
Gerhard e36ffaa6f0 Use correct meta key _stock for updating lookup table stock. 2019-03-05 14:38:22 +02:00
Gerhard Potgieter 5a6cc36fce
Merge branch 'master' into experiment/product-sorting-index 2019-03-05 14:04:11 +02:00
Gerhard 0b6e8351d6 PHPCS fixes 2019-03-05 13:59:42 +02:00
Mike Jolley 545cbbb79c Check for required fields or bail 2019-03-05 11:44:26 +00:00
Mike Jolley bf11dbf76f If there is no url on last breadcrumb trail, use current url
Fixes #22923
2019-03-05 11:38:53 +00:00
Jeff Stieler 7caba832f6
Refactor Tracks classes to remove singletons and static methods. (#22930) 2019-03-04 17:30:01 -07:00
haszari 6caaf80fa6 add a tooltip (Dismiss this suggestion) to clarify dismiss button 2019-03-05 12:20:13 +13:00
Jeff Stieler c22c3aafa2
Track settings changes. (#22810)
* Track settings changes.
2019-03-04 15:37:59 -07:00
Paul Sealock d968b95b53 Add opt in/out to settings page 2019-03-05 11:06:45 +13:00
Mike Jolley 5b07ded976 Update from master 2019-03-04 18:00:14 +00:00
Jeff Stieler 1072d1a275 Tracks: Use wp_doing_ajax() instead of checking constant. 2019-03-04 10:04:48 -07:00
Jeff Stieler 262afba502 Add direct API call fallback for Tracks event pixels.
Handles cases where wp_redirect() is called.
2019-03-04 09:59:49 -07:00
Jeff Stieler 22c20b0d32 Where possible, render Tracks pixels in the page footer instead of making a blocking HTTP request from the server. 2019-03-04 08:59:21 -07:00
Jeff Stieler 2e2b3b9bba Don’t block on Tracks requests and lower timeout to 1s. 2019-03-04 08:59:21 -07:00
Mike Jolley 8147b82b88 Feedback 2019-03-04 14:17:11 +00:00
Mike Jolley f18f4082b2
Merge pull request #22906 from woocommerce/add/downloadable_product_permissions_index
get_downloads_for_customer performance improvement via index
2019-03-04 14:15:11 +00:00
Mike Jolley 76fabc9b7e
Merge pull request #22771 from martinsnajdr/flatrate-shipping-cost-filters
Shipping method get_option function filters
2019-03-04 13:49:22 +00:00
Mike Jolley 857c5cbc5e
Merge pull request #22855 from woocommerce/fix/22772
shop_messages shortcode requires wc_print_notices
2019-03-04 13:44:25 +00:00
Mike Jolley 5937625b5e Include priceValidUntil 2019-03-04 13:17:27 +00:00
Peter Fabian 224ea5d8af
Merge pull request #22776 from woocommerce/fix/orders-statuses-param-description
[REST API] Better description for order's status collection param
2019-03-04 14:14:04 +01:00
Mike Jolley 246c78db73 Add a review to product schema 2019-03-04 13:05:29 +00:00
Mike Jolley d104bb7d3f Add SKU with ID fallback 2019-03-04 12:47:40 +00:00
Mike Jolley 52533d9da6 Add URL field 2019-03-04 12:47:31 +00:00
Mike Jolley 6caa0fab61 Tidy data 2019-03-04 12:47:24 +00:00
Mike Jolley 60d8a10bcf Remove woocommerce_structured_data_product_limit
With the removal of generation on archives, the filters `woocommerce_structured_data_product_limit` and `woocommerce_structured_data_product_limited` have no context nor purpose. This commit removes them so full schema is generated when used.
2019-03-04 11:44:52 +00:00
Tim Howe 41de832580 #22912 2019-03-04 11:11:04 +00:00
Joshua Flowers 10826c7bf0 Change wc_ prefix to woocommerce_ 2019-03-04 14:16:05 +08:00
Joshua T Flowers 17b786e500 Tracks: Move tracking script to make available on page load (#22914)
* Filter wc queued js to add tracking script outside of jQuery

* Add tracking script directly to footer

* Move empty tracking function to admin footer hook
2019-03-04 14:16:05 +08:00
Joshua Flowers 9e6836e3a0 Use get_current_step() inside step tracking method 2019-03-04 14:14:45 +08:00
Joshua Flowers 919785bce8 Whitelist specific footer scripts 2019-03-04 14:14:45 +08:00
Joshua Flowers 123940b2ac Only add marketing tracking on next_step step of OBW 2019-03-04 14:14:45 +08:00
Joshua Flowers 3ab791843d Track marketing signup on form submission 2019-03-04 14:14:45 +08:00
Joshua Flowers 9128e8c4f5 Add scripts to wc setup footer 2019-03-04 14:14:45 +08:00
Paul Sealock 37d3fff3d6
Merge pull request #22807 from woocommerce/add/tracks-gross-revenue
Add gross revenue to Tracks base data.
2019-03-04 09:35:37 +13:00
Claudio Sanches e131ba5358 Updated per feedback 2019-03-01 20:01:03 -03:00
Mike Jolley b12f549533 Add try catch block to pay_action 2019-03-01 11:25:31 +00:00
Mike Jolley 7c9932da6d woocommerce_get_product_subcategories_cache_key filter 2019-03-01 10:55:11 +00:00
Mike Jolley 5af9d968e5 Update from master 2019-03-01 10:29:17 +00:00
Mike Jolley 32417e1017 Unused result vars 2019-03-01 10:28:30 +00:00
Mike Jolley b08842d45c Update cache key to handle arrays 2019-03-01 10:22:27 +00:00
Mike Jolley 51dbbac32d Update from master 2019-03-01 10:19:40 +00:00
Mike Jolley e845d6ced9
Merge pull request #22885 from yaroslawww/patch-1
Update class-wc-regenerate-images.php
2019-03-01 10:17:55 +00:00
Mike Jolley efb8704f05 If both dimensions are smaller, do not scale 2019-03-01 10:15:01 +00:00
Mike Jolley c655c2e38a
Merge pull request #22846 from teloconf/master
[ADD] Do Action before cart is emptied
2019-03-01 10:04:25 +00:00
Joshua T Flowers e53724832d
Tracks: Add tracking event when OBW is started (#22877)
* Check if current step matches event before firing

* Move step check to switch statement

* Track when the OBW has started

* Rename Jetpack activation tracking method

* Remove duplicate tracking optin check

* Track when option to track is udpated in OBW

* Check if tracking is actively being opted into in is_tracking_enabled()

* Move tracking start check into WC_Admin_Setup_Wizard_Tracking

* Clean up tracking opt-in check logic
2019-03-01 11:12:30 +08:00
Joshua T Flowers 234f3a1bb9
Tracks: Add tracking event for skipped step in OBW (#22879)
* Check if current step matches event before firing

* Move step check to switch statement

* Add ability to get steps from setup wizard

* Track last completed step in options

* Track skipped step name if bypassing the save process

* Track skipped step prior to current instead of step after last completed step
2019-03-01 10:58:11 +08:00
haszari 023579cc17 localise default CTA text + code-style improvements:
- else style, fix stale/presumptuous variable names
- localise default CTA text
- use `Learn More` for default, more in line with our latest content
- switch CTA default to button - link style is less common
2019-03-01 14:22:02 +13:00
Gabriel e442f46db3
Update class-wc-cart.php 2019-02-28 21:56:43 +01:00
Rodrigo Primo dc40e8e062
Merge pull request #22908 from woocommerce/fix/obsolete-code
remove some obsolete code
2019-02-28 14:01:03 -03:00
Mike Jolley caf3ff61e7
Merge pull request #22218 from woocommerce/add/fb-in-obw
Add Facebook to Recommended Step in OBW
2019-02-28 16:45:41 +00:00
Mike Jolley f9567583a7
Merge pull request #22901 from mihaigrigori/master
Change exception string to facilitate translating
2019-02-28 16:13:28 +00:00
Mike Jolley 81767385d6 Tidy up deprecated methods 2019-02-28 14:54:23 +00:00
Mike Jolley 55c49b661e Missing cache flush when updating sales 2019-02-28 14:51:55 +00:00
yaroslawww 5f9225a1cb
Update class-wc-regenerate-images.php
Fix coding styles and naming error
2019-02-28 16:48:18 +02:00
Mike Jolley a2606a3f1f Avoid updates on read - this is for legacy where meta was missing and shouldn't be ran for all products 2019-02-28 14:47:06 +00:00
Mike Jolley 4f7941b174 fix method name 2019-02-28 14:46:56 +00:00
Mike Jolley 1c7c6246e9 Comment rating functions should not update the object themselves 2019-02-28 14:46:11 +00:00
Mike Jolley b7f59b4596 wc_ln_count_ no longer exists 2019-02-28 14:41:07 +00:00
Mike Jolley 04b333484a These transient no longer exist 2019-02-28 14:38:40 +00:00
Mike Jolley 611bf3b1dd Price filter + stock widget requires lookup table 2019-02-28 14:24:05 +00:00
Mike Jolley d407581618 Update types of decimal fields 2019-02-28 14:01:13 +00:00
Gerhard 36f0041673 PHPCS fixes 2019-02-28 15:37:37 +02:00
Gerhard b8a5a9ec55 Add update routine to add user_order_remaining_expires index and hook it up to the installer for 3.6.0 2019-02-28 15:36:55 +02:00
Gerhard 207a5ef4b3 Add user_order_remaining_expires index to woocommerce_downloadable_product_permissions create table statement. 2019-02-28 15:30:17 +02:00
Mike Jolley 9948c63185 Revise index 2019-02-28 13:12:12 +00:00
Mike Jolley 25117aa77b
Merge pull request #22892 from woocommerce/fix/22886
PayPal: Add meta data, before changing order status
2019-02-28 12:10:03 +00:00
Mike Jolley b903086251 Fix callbacks and remove logging 2019-02-28 11:52:56 +00:00
Mike Jolley 71afa5e590 Update notice wording 2019-02-28 11:16:09 +00:00
Mike Jolley d59b1c39d7 Remove force link - it can be done in AS 2019-02-28 11:15:58 +00:00
Mike Jolley dbcfd7dcdc Update functions may re-run - handle in CLI 2019-02-28 11:11:25 +00:00
Mike Jolley d990b5192f Switch to action scheduler 2019-02-28 11:11:08 +00:00
Mike Jolley f81791dab9 Update notice text + docs links 2019-02-28 10:45:38 +00:00
Joshua T Flowers 64b565465f
Tracks: Add tracking for Jetpack activation in OBW (#22875)
* Check if current step matches event before firing

* Move step check to switch statement

* Track when Jetpack is activated
2019-02-28 14:33:00 +08:00
Joshua T Flowers 53f1f5c095
Tracks: Add selected recommended plugins in OBW (#22874)
* Add tracking to store setup OBW

* Check if current step matches event before firing

* Move step check to switch statement

* Track selected plugins recommended for install
2019-02-28 14:27:05 +08:00
Joshua T Flowers f48ec6deec
Tracks: Add tracking for shipping units and labels (#22873)
* Check if current step matches event before firing

* Move step check to switch statement

* Track shipping units and labels
2019-02-28 14:22:13 +08:00
Mihai Grigori 8cf31c3c3d Change exception string to facilitate translating 2019-02-28 07:07:26 +02:00
Joshua T Flowers a91adfa087
Tracks: Add selected payment gateways in OBW (#22872)
* Check if current step matches event before firing

* Move step check to switch statement

* Track payment gateways in OBW

* Combine arrays into comma separate strings
2019-02-28 11:58:08 +08:00
Joshua T Flowers 9f1b111692
Tracks: Add store setup event in OBW (#22860)
* Add tracking to store setup OBW

* Check if current step matches event before firing

* Move step check to switch statement

* Extract save events into separate method
2019-02-28 11:28:07 +08:00
Mike Jolley 9749f5a2a9 Add progress bar to CLI command 2019-02-27 16:46:53 +00:00
Martin Šnajdr 4f9d47ea25 PR requested changes: shipping instance option filter moved to get_instance_option function, filters renamed. 2019-02-27 17:31:51 +01:00
Mike Jolley dc49afc251 Update group by clause 2019-02-27 15:45:05 +00:00
Mike Jolley 2e4bcebfb8 Ignore specific rules 2019-02-27 15:33:51 +00:00
Mike Jolley a89caf0b89 Add wrapper for is_plugin_active 2019-02-27 15:25:27 +00:00
Mike Jolley 49065c0d1a Add meta data, before changing order status 2019-02-27 14:50:37 +00:00
Mike Jolley 0b3a57c96f Avoid changing tracking preferences when disconnecting helper 2019-02-27 14:04:50 +00:00
Mike Jolley fd3173f63a Hide 'other' payment method from invoice 2019-02-27 13:56:15 +00:00
Mike Jolley 0469bbe8b0
Merge pull request #22884 from woocommerce/fix/22861
Remember tracking setting when going through the OWB again
2019-02-27 13:46:31 +00:00
Mike Jolley 807878692b Add precision to tax 2019-02-27 13:43:01 +00:00
Gerhard 5cfa6fc3db PHPCS fixes 2019-02-27 15:24:50 +02:00
Gerhard 497d082b03 Refine Dropin and MU Plugin report functionality a bit. Added option to show if connected to WooCommerce.com. 2019-02-27 15:19:12 +02:00
Mike Jolley 1908daf2b4
Merge pull request #22774 from sasagar/fixing-order-of-jp-address
Fixing order of JP address.
2019-02-27 12:59:02 +00:00
Mike Jolley cc8e516f7a
Merge pull request #22786 from woocommerce/improve/user-registration
Improve user's display_name generation during checkout
2019-02-27 12:55:56 +00:00
Mike Jolley c3033247ba
Merge pull request #22783 from woocommerce/fix/22765
Only set user first and last names when those fields are empty
2019-02-27 12:37:42 +00:00
Mike Jolley 504e457c31
Merge pull request #22852 from woocommerce/fix/22842
Prevent a few structured data warnings on product catalog
2019-02-27 12:32:28 +00:00
Gerhard 70f4935236 Fix logic to avoid setting to no again 2019-02-27 14:30:00 +02:00
Gerhard bf57a037c6 First go at adding dropins and mu plugins to system status report 2019-02-27 14:27:53 +02:00
Mike Jolley 7369ffdf42
Merge pull request #22853 from Dartui/fix-select2-tooltip
Remove whitespace characters from Select2 option title
2019-02-27 12:25:10 +00:00
Mike Jolley 2d5e834cf2 Merge branch 'pr/22822' 2019-02-27 11:56:08 +00:00
Mike Jolley c854e74471 Spacing 2019-02-27 11:56:00 +00:00
yaroslawww bb8bf5f749
Update class-wc-regenerate-images.php
Sometimes imagedata has not $imagedata['sizes']['full'] params. In my case, due to the fact that I am loading the SVG picture.
Therefore, an error is visible *Undefined index: height in class-wc-regenerate-images.php on line 222*
Therefore, a check for the emptiness of these parameters is added.
2019-02-27 13:53:32 +02:00
Gerhard 72ea7b05e7 Move tracking check to the if statement to avoid writing to the DB when it already has a value stored. 2019-02-27 13:38:36 +02:00
Mike Jolley f90daea1d5
Merge pull request #22799 from woocommerce/remove/cron-plugin-theme-installer
Remove old plugin/theme background installer hooks
2019-02-27 11:38:32 +00:00
Gerhard a1c3048318 Keep tracking enabled if already enabled when saving the wizard. 2019-02-27 12:55:49 +02:00
Konstantin Kovshenin 9447afbc47 Update Marketplace suggestions endpoint URL 2019-02-27 12:26:14 +03:00
haszari d5287b3f07 switch in WCCOM new (versioned) suggestions host/URL 2019-02-27 16:12:38 +13:00
Paul Sealock e2697629b9
Merge pull request #22794 from woocommerce/add/tracks-orders_edit_status_change
Tracks: Orders edit status change
2019-02-27 12:43:02 +13:00
Claudio Sanches f95f0f519e Fixed coding standards 2019-02-26 19:59:04 -03:00
haszari 0dcc87110b Merge branch feature/marketplace-suggestions into add/product-edit-suggestions
# Conflicts:
#assets/css/admin-rtl.css
#assets/css/admin.css
#assets/css/marketplace-suggestions-rtl.css
#assets/css/marketplace-suggestions.css
#assets/css/marketplace-suggestions.scss
#assets/js/admin/marketplace-suggestions.js
#includes/admin/class-wc-admin-assets.php
#includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php
2019-02-27 10:56:13 +13:00
haszari 8dbda1b9c9 revert suggestion-related changes in helper:
- no longer required, now using active plugins for suggestions
- get_local_woo_plugins needs to not be cached
- left plugin `slug` in get_local_woo_plugins values, may be useful
2019-02-27 10:19:56 +13:00
haszari 69e3856188 show/hide suggestions based on which extensions are active:
- was previously based on folder names of installed plugins
2019-02-27 10:13:48 +13:00
Mike Jolley d5ab20d1a5 get ID before running actions 2019-02-26 20:29:17 +00:00
Mike Jolley 937e0f22f0 Refactor delete zone/delete zone method data store to remove settings 2019-02-26 16:53:52 +00:00
Gerhard Potgieter 8722317956
Merge pull request #22775 from woocommerce/update/22525
Set no-transform cache header to opt out of weblight
2019-02-26 18:22:57 +02:00
Gerhard Potgieter cc857be201
Merge pull request #22811 from woocommerce/add/orders-list-suggestions
Show marketplace suggestions in orders list empty state
2019-02-26 18:22:02 +02:00
Gerhard Potgieter dbe93b96c4
Merge pull request #22865 from woocommerce/fix/22863
Add alt text to gallery thumbnail
2019-02-26 18:20:35 +02:00
Gerhard Potgieter 3455b2c1cb
Merge pull request #22830 from woocommerce/add/marketplace-updater-wc-queue
Update Marketplace suggestions data using WC_Queue
2019-02-26 17:55:33 +02:00
Mike Jolley 017f0e5e0d
Merge pull request #22834 from nishitlangaliya/issue-22757
feat: wc_product_stock_status_options filter added for stock status options
2019-02-26 14:06:02 +00:00
Mike Jolley 20eb503128 Add alt text to gallery thumbnail 2019-02-26 14:03:25 +00:00
Naveen giri 913b8e84bf Fix wpcs error and avoid unnecessary checks 2019-02-26 18:31:34 +05:30
Gerhard 3dde01570a Remove wp_clear_scheduled_hook for the plugin and theme background installer that does not run via cron anymore. 2019-02-26 12:44:27 +02:00
Gerhard 1e21ebe367 Remove the callbacks only 2019-02-26 12:25:12 +02:00
Mike Jolley 176965d139
Merge pull request #22825 from thatwasnotme/fix/data-stores-docs-param-type
Correct invalid param type from id to int
2019-02-26 10:24:58 +00:00
Gerhard ccbb8313b6 Revert "Remove old hooks for woocommerce_theme_background_installer and woocommerce_plugin_background_installer. There are no scheduled events for these anymore and the Wizard has it's own theme/plugin installer that uses the shutdown hook instead of cron."
This reverts commit 0f771bf4fe.
2019-02-26 12:24:56 +02:00
Mike Jolley 68c1ec6763
Merge pull request #22826 from woocommerce/fix/22708
Calculate shipping before totals during checkout update
2019-02-26 10:24:02 +00:00
Peter Fabian 4e177d264d Corrected comment. 2019-02-26 11:15:16 +01:00
Peter Fabian 06118db3d5 Added lazy-update of post_excerpt for variations to avoid the need for db update routine. 2019-02-26 11:11:45 +01:00
Paul Sealock 260481522e better return comment 2019-02-26 16:34:43 +13:00
Jeff Stieler fe841ecc0b Add gross revenue to Tracks base data. 2019-02-26 16:31:26 +13:00
Mike Jolley 6c35df1551 Return string 2019-02-25 22:01:22 +00:00
Mike Jolley 8792b53ecb shop_messages shortcode requires wc_print_notices 2019-02-25 22:01:07 +00:00
haszari c45a39676c use safe get for API request, linter fixes, doc comments 2019-02-26 10:07:42 +13:00
Krzysztof Grabania 946b1e2469 Remove whitespace characters from Select2 option title 2019-02-25 20:12:54 +01:00
Paul Sealock bf2561270a remove check 2019-02-26 07:59:12 +13:00
Paul Sealock 0763edaeea Change prefix to wcadmin 2019-02-26 07:57:44 +13:00
Claudio Sanches 80aee99fee Prevent a few structured data warnings
This prevents warnings about 'image', 'description' and 'sku'.
'brand' included as empty fields just to register.

Note that warnings still comes for empty fields like 'sku' or 'brand'.
This is the message that should throw from Google Console:

> The brand field is recommended. Please provide a value if available.

Since is recommended, this PR should solve the max warnings as possible.

Fixes #22842
2019-02-25 15:49:14 -03:00
nishitlangaliya ee621eec8a fix: filter prefix changed and unit test added for fn:wc_get_product_stock_status_options 2019-02-25 19:03:57 +05:30
Gabriel 8a9990f98d
[ADD] Do Action before cart is emptied 2019-02-25 06:01:38 +01:00
haszari 97524aab16 Merge branch 'feature/marketplace-suggestions' into add/product-edit-suggestions
# Conflicts:
#	includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php

+ fix linter errors / warnings
2019-02-25 16:12:24 +13:00
haszari 1aff17f0b9 Merge branch 'feature/marketplace-suggestions' into add/orders-list-suggestions 2019-02-25 16:05:04 +13:00
haszari 556bd1b372 remove hard-coded test suggestion data 2019-02-25 13:34:59 +13:00
Jeff Stieler 41e79ace80 Add Tracks events for product import start and finish. 2019-02-25 11:36:39 +13:00
haszari 764926f30c rename product edit suggestions contexts for consistency 2019-02-25 10:21:22 +13:00
Valerie 8a796138ef OBW: Add Facebook to recommended step
The end date for the Facebook recommendation
is October 8, 2019.

When the option is checked, this will install the extension
'Facebook for WooCommerce' on the user's site.
2019-02-23 17:40:37 -05:00
haszari 041068a705 use full path when including container template, rename folder 'views' 2019-02-24 09:37:33 +13:00
nishitlangaliya 53b5be7e83 feat: wc_product_stock_status_options filter added for stock status options for variable product 2019-02-23 11:10:22 +05:30
Valerie ca316d8933 OBW: Remove customized blurb on recommended step 2019-02-22 21:14:22 -05:00
Konstantin Kovshenin 1dad53d5e0 Update Marketplace suggestions data using WC_Queue
Schedules an update task to run as soon as possible to fetch the
suggestions data, and cache it for a week. Failures are cached for
a day.
2019-02-22 22:34:18 +03:00
Konstantin Kovshenin a0af355a45 Change marketplace suggestions label to "Get more options" 2019-02-22 21:16:13 +03:00
Claudio Sanches 14fa222347
Merge pull request #22676 from woocommerce/add/woo-identity
Tracks: add Woo identity
2019-02-22 15:10:22 -03:00
Claudio Sanches 8ae61b75e3 Clean up 2019-02-22 15:08:23 -03:00
Claudio Sanches 9250ff0df5 Better check for Jetpack 2019-02-22 15:01:13 -03:00
Claudio Sanches bad7860e7e Check if file exists before loading 2019-02-22 15:00:33 -03:00
Mike Jolley e21912294a calc shipping before totals 2019-02-22 16:43:42 +00:00
Tarik Causevic 5f87fa49e1 Correct invalid param type from id to int 2019-02-22 17:39:58 +01:00
Naveen giri f741d507ba Bugfix/#22821: Add Fix for Warning and Notices on save attribute button click 2019-02-22 19:27:16 +05:30
Mike Jolley 27ac2e1577 phpcs 2019-02-22 13:33:41 +00:00
Mike Jolley d07d1cf0b0 If taxes are enabled, make the refund box readonly 2019-02-22 13:30:49 +00:00
Mike Jolley 0c2bc16bc1 Improved ratio and size matching code to prevent false positives 2019-02-22 12:10:54 +00:00
Mike Jolley d31fbb5bf3 Helper to get full size dimensions 2019-02-22 12:10:28 +00:00
Mike Jolley 4a383fa832 When resizing, avoid extra checks via our filter 2019-02-22 12:10:16 +00:00
Mike Jolley 21f98555dc Image downsize without filters 2019-02-22 12:09:59 +00:00
Konstantin Kovshenin 86d8065f3b Remove debug code 2019-02-22 12:11:54 +03:00
Konstantin Kovshenin 25a72cc5f3 Add missing HTML template that renders the product data panel content 2019-02-22 12:03:58 +03:00
Konstantin Kovshenin 559409bccb Remove hard-coded JSON test data 2019-02-22 11:55:56 +03:00
Konstantin Kovshenin 901d41bdfa Marketplace suggestions in Edit Product screen
Adds a new tab to Woo's product data metabox and renders the
appropriate containers for JS to inject some Marketplace
suggestions.
2019-02-22 11:52:17 +03:00
haszari 4af4ce5783 allow suggestions on orders list + move logic into suggestions class 2019-02-22 10:55:37 +03:00