Commit Graph

4829 Commits

Author SHA1 Message Date
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
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
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
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 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 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 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 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
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 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 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 598ac86e95 Tests 2019-03-07 11:08:29 +00:00
Mike Jolley 89a4eba859 update from 22951 2019-03-07 10:58:14 +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
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 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 b07f3e21db Merge branch 'master' into experiment/product-sorting-index 2019-03-06 12:54:40 +00:00
Mike Jolley 99455cfe34 update text 2019-03-06 12:00:54 +00: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 a5e72cfc02 Re-order elements and add tabindex 2019-03-05 14:22:59 +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
haszari 6caaf80fa6 add a tooltip (Dismiss this suggestion) to clarify dismiss button 2019-03-05 12:20:13 +13:00
Paul Sealock d968b95b53 Add opt in/out to settings page 2019-03-05 11:06:45 +13: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
Joshua Flowers 10826c7bf0 Change wc_ prefix to woocommerce_ 2019-03-04 14:16:05 +08:00
Joshua Flowers 9128e8c4f5 Add scripts to wc setup footer 2019-03-04 14:14:45 +08:00
Mike Jolley 5af9d968e5 Update from master 2019-03-01 10:29:17 +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
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
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 611bf3b1dd Price filter + stock widget requires lookup table 2019-02-28 14:24:05 +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 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 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
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 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
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
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
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
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
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
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 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
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
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
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
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
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
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
haszari 07a1ac7868 (temporary) add hard-coded fake orders-list suggestion data 2019-02-22 10:55:19 +03:00
haszari 3fcdc65283 style orders list suggestions + remove debug code 2019-02-22 20:55:03 +13:00
haszari 4e42021578 render suggestions containers (& unstyled suggestions) in orders list 2019-02-22 16:13:37 +13:00
haszari 24bbb9267e allow suggestions on orders list + move logic into suggestions class 2019-02-22 16:11:34 +13:00
haszari 124e1a7b4a (temporary) add hard-coded fake orders-list suggestion data 2019-02-22 16:06:18 +13:00
haszari 37578aa5d4 Merge branch master into feature/marketplace-suggestions
# Conflicts:
#assets/css/admin.scss
2019-02-22 14:17:20 +13:00
haszari 163af89ab3 MIA suggestions data should be cached as a real array, not text 2019-02-22 12:34:43 +13:00