Commit Graph

31049 Commits

Author SHA1 Message Date
Jeff Stieler 5c414507f9
Add Tracks events for product import start and finish. (#22787)
* Add Tracks events for product import start and finish.

* Move tracks event firing code into classes grouped by category/kind.

* Fix PHPCS warnings/errors with product and importer event tracking.

* Include products count in base Tracks data. (#22791)

* Add extensions page view tracking. (#22803)

* Add extensions page view tracking.

* Add tracking for extension searches. (#22804)
2019-02-21 15:45:43 -07:00
haszari 9ed6f591d3 use updated tracks API wcSettings.recordEvent => wcTracks.recordEvent 2019-02-22 11:38:55 +13:00
Claudio Sanches 9ca8f97de3
Merge pull request #22792 from woocommerce/fix/product_edit-name
Fixt product_edit to match the event in the spreadsheet
2019-02-21 19:37:15 -03:00
Claudio Sanches 8f2efbfef3
Merge pull request #22808 from woocommerce/renovate/mocha-6.x
Update dependency mocha to v6.0.1
2019-02-21 19:29:53 -03:00
haszari a7dd094b3a frontload suggestion data as script data, remove ajax request 2019-02-22 11:23:09 +13:00
Paul Sealock 7ada5210a5
Merge pull request #22746 from woocommerce/add/w-js
Tracks: enqueue w.js
2019-02-22 10:12:24 +13:00
Paul Sealock 49f601cc75 Tracks: Add a PHP client 2019-02-22 10:11:39 +13:00
Renovate Bot d30221b256
Update dependency mocha to v6.0.1 2019-02-21 20:15:06 +00:00
Mike Jolley e982e4027a unused variables 2019-02-21 17:37:16 +00:00
Mike Jolley 78ebe9496f Move caching 2019-02-21 17:35:41 +00:00
Mike Jolley a4ac312854 Correct docblock 2019-02-21 17:15:37 +00:00
Mike Jolley d7c2aaaadb Avoid get post 2019-02-21 17:15:24 +00:00
Mike Jolley 54c1ef8615 Avoid trying to resize small images 2019-02-21 16:58:40 +00:00
Mike Jolley 287d65ab65 Add caching to get image size 2019-02-21 16:58:28 +00:00
Mike Jolley e830bd739a Use taxable address when adding/removing coupons 2019-02-21 16:23:20 +00:00
Gerhard 0f771bf4fe 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. 2019-02-21 12:50:12 +02:00
haszari f2deef861e prefix AJAX actions to reduce chance of collision 2019-02-21 15:56:26 +13:00
haszari b4a36dc620 document all js methods 2019-02-21 15:51:41 +13:00
haszari 950b873583 only display suggestions for Englishish locales 2019-02-21 15:20:16 +13:00
haszari ea5d3870ba support global opt-out of suggestions via user option 'woocommerce_allow_marketplace_suggestions' 2019-02-21 15:04:38 +13:00
haszari a9b7bfc513 move products list suggestions container render into module behind hook + move template near module, don't use wc_get_template to render 2019-02-21 14:38:04 +13:00
Paul Sealock e4cf8a632b Fixt product_edit to match the event in the spreadsheet 2019-02-21 14:05:35 +13:00
haszari 4c8436122f move suggestions class into admin/ and require from admin::includes 2019-02-21 12:44:21 +13:00
haszari 71250c30a2 tidy up main marketplace suggestions module, make it a real class +
+ require it for admin only
+ fix issue with retrieving dismissed suggestions user meta value
2019-02-21 12:37:10 +13:00
haszari 5c1e20c7d1 store dismissed suggestions in user meta, don't manually json-encode 2019-02-21 11:50:03 +13:00
haszari e53f92ae0d move woo-plugin slugs into a helper routine + cache installed woo plugins in a transient 2019-02-21 11:27:53 +13:00
haszari eaa1108df6 fix client side data access after change to `wp_send_json_success` 2019-02-21 10:50:43 +13:00
haszari 9986c4482c remove some extra whitespace 2019-02-21 10:21:23 +13:00
haszari dd27bf278b cache empty suggestions if API fails, to reduce congestion/thrashing +
+ don't use wp_remote_safe_get – overkill
+ use wp_send_json_success to streamline/simplify API data ajax handler
2019-02-21 10:20:58 +13:00
haszari e37583bb2b remove dismissed suggestions from DOM so styling updates accordingly 2019-02-21 09:52:37 +13:00
Claudio Sanches 271c48e3af
Merge pull request #22780 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.4.8
2019-02-20 16:40:44 -03:00
Claudio Sanches 79847ccb93 Fixed coding standards 2019-02-20 16:30:46 -03:00
Claudio Sanches 5302434057 Fill user first and last name during checkout 2019-02-20 16:29:34 -03:00
Claudio Sanches 3ac5f32a8b Updated tests for wc_create_new_customer 2019-02-20 16:29:10 -03:00
Claudio Sanches 8b8498a37a Included extra argument into wc_create_new_customer
Allows passing extra arguments to wp_insert_user() function
2019-02-20 16:18:43 -03:00
Mike Jolley fc1a274fcb Check for hover after timeout 2019-02-20 17:22:43 +00:00
Claudio Sanches efaa723a5b Only set user first and last names when those fields are empty 2019-02-20 13:55:51 -03:00
Mike Jolley 76b7a4facf cs 2019-02-20 16:37:40 +00:00
Mike Jolley 9529d6eee7 Use total, not amount, when calculating fees 2019-02-20 16:22:20 +00:00
Claudio Sanches 7fb12465dd Updated changelog 2019-02-20 13:17:52 -03:00
Martin Snajdr 1c678372d4 Shipping cost filters removed & added two additional parameters get_option function filters 2019-02-20 15:59:40 +01:00
Mike Jolley b65f93c756 Merge branch 'master' of https://github.com/woocommerce/woocommerce 2019-02-20 12:45:34 +00:00
Mike Jolley 6b41041883
Merge pull request #22777 from woocommerce/fix/22730
check low_stock for empty string vs isset
2019-02-20 12:44:17 +00:00
Mike Jolley 7def966e4f Impoved JSON handling 2019-02-20 12:00:47 +00:00
Mike Jolley ffa230de90 Escape html entities before passing to WP/photoswipe 2019-02-20 11:49:55 +00:00
Mike Jolley 1caeb43baf Update photoswipe 2019-02-20 11:49:55 +00:00
Martin Snajdr 89016f1e70 WP coding standards fix. 2019-02-20 11:57:03 +01:00
Martin Snajdr dfd4f4ea6d Filters added to shipping method function get_option 2019-02-20 11:54:59 +01:00
haszari 6b8366eef9 pull real suggestions data from S3, remove hard-coded test data 2019-02-20 20:24:05 +13:00
haszari f6299cc512 send tracks events when suggestions are displayed, clicked or dismissed:
- Using temporary stand-in tracks API until PR is merged.
- Also fixed logic so table-view suggestion is not "displayed" if
  empty-state suggestions are shown.
2019-02-20 15:33:57 +13:00