Commit Graph

97 Commits

Author SHA1 Message Date
Rua Haszard 7b55096288 fix logic errors in get_blocks_from_page:
- declare closure use (dependency) on $block_name from surrounding func
- re-index the filtered array so $blocks[0] returns first filtered block
2020-04-07 10:23:03 +12:00
Rua Haszard bc8553f3d5 refactor block tracker data into standard function:
- use parse_blocks to detect block instead of SQL match
- method is now generic, can get data about any block on any woo page
2020-04-07 09:40:22 +12:00
Rua Haszard 3f42fbbeba remove stale/redundant comments 2020-04-06 12:10:35 +12:00
Rua Haszard e93bb453e1 use anonymous functions for array_filter when finding cart etc blocks 2020-04-06 12:08:37 +12:00
Rua Haszard 029e27cc25 add customised cart & checkout block settings to wc-tracker snapshot 2020-04-06 11:59:31 +12:00
Rua Haszard 0b79a65829 fix various issues with post_contains_text:
- correct table name / prefix
- ensure search string has wildcards before & after
- return value is '0' or '1', fix return logic (was returning 'Yes' no
matter what)
2020-03-17 09:21:31 +13:00
Rua Haszard 8e6f5da2e1 add cart info to tracker:
- adds a new key 'cart_checkout'
- adds boolean props indicating if store cart & checkout use blocks or shortcodes
2020-03-16 17:21:58 +13:00
Peter Fabian 3dcb3e0106 Correct the fallback check logic for is_staging_site().
There are JP versions where \Automattic\Jetpack\Status exists, but does not
contain is_staging_site() function, so this commit should correctly handle
those cases as well.
2020-02-24 11:01:44 +01:00
Peter Fabian 88b8c006db Extracted the test to a function and fixed is_callable call. 2020-02-19 14:44:16 +01:00
Peter Fabian 80a5ee087c Replaced deprecated is_staging_site call. 2020-02-14 12:01:30 +01:00
Christopher Allford 6ad091a9b7 Changed all of the constant accesses into corresponding Automattic\Jetpack\Constants usages 2020-01-28 21:21:29 -08:00
Gerhard 3581a6c578 Include tracker fields for processing order totals and dates. 2019-11-19 15:10:43 +02:00
Dan Wyman 3edd30757b Tracker: apply coding standards. 2019-06-06 13:23:11 -07:00
Dan Wyman 7355fadfdd Tracker: fix review count.
Fixes #23848
2019-05-30 12:45:47 -07:00
Dan Wyman 6123c6066d Corrects WC Tracker's order total calculation.
Fixes #23669
2019-05-09 12:03:33 -07:00
Paul Sealock 712f06014d moar 2019-03-08 10:08:34 +13:00
Paul Sealock d968b95b53 Add opt in/out to settings page 2019-03-05 11:06:45 +13:00
Jeff Stieler fe841ecc0b Add gross revenue to Tracks base data. 2019-02-26 16:31:26 +13:00
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
JeroenSormani f4775ccd90 Use shipping method instead of property through magic + doc return statements 2019-01-04 12:41:38 +00:00
Gerhard Potgieter c572327ce9 Check if helper is connected to woocommerce.com 2018-09-10 15:47:46 +02:00
Gerhard Potgieter 1f2b028b0b Category counts 2018-09-10 15:35:44 +02:00
Gerhard Potgieter 58a2ae494d Review counts 2018-09-10 15:30:17 +02:00
Mike Jolley 0bfd675238 Wrapper function to get full mysql version string with mariadb handling 2018-05-25 11:15:30 +01:00
Gerhard Potgieter e6e03858a0 Add call to tracking API when opting out to comply with GDPR erasure. 2018-05-04 09:10:18 +02:00
Gerhard Potgieter 0d84bcc3eb Tweaks as per review 2018-04-20 15:20:43 +02:00
Gerhard Potgieter 03e60f105e Remove unused method 2018-04-20 12:38:25 +02:00
Gerhard Potgieter 3f785d8964 Remove unused variables and merge correct ones. 2018-04-18 16:10:37 +02:00
Gerhard Potgieter a15687470d Move fist and last date into one query 2018-04-18 16:07:54 +02:00
Gerhard Potgieter a7b4bcb31a Restore order counts 2018-04-18 09:04:34 +02:00
Gerhard Potgieter db57a67fde Use sql query to improve speed and only do gross 2018-04-18 08:59:34 +02:00
Gerhard Potgieter df5bfc5b6a Private not public 2018-04-13 14:18:39 +02:00
Gerhard Potgieter 8125797aad Remove counts variable from merge as it is now part of main method. 2018-04-11 10:35:43 +02:00
Gerhard Potgieter fa2f0add45 Make order status counts part of the main order method 2018-04-11 10:32:24 +02:00
Gerhard Potgieter 38a87b0ad2 Gross per gateway 2018-04-11 09:56:39 +02:00
Gerhard Potgieter 3e2f20adf6 Fix net and gross calculations 2018-04-11 08:48:32 +02:00
Gerhard Potgieter 25971b88b9 Format datetime 2018-04-11 08:41:57 +02:00
Gerhard Potgieter 19b7052a12 PHPCS fixes 2018-04-11 08:26:22 +02:00
Gerhard Potgieter af1de29536 Fix up main orders method 2018-04-11 08:14:20 +02:00
Gerhard Potgieter eb1dcff545 Convert to one order order loop 2018-04-11 08:12:55 +02:00
Gerhard Potgieter 59984654ec Add discount totals 2018-04-10 14:27:42 +02:00
Gerhard Potgieter 9e6fe4cad1 Add net total 2018-04-10 14:22:21 +02:00
Gerhard Potgieter 601c9910a9 Add first order date 2018-04-10 14:17:17 +02:00
Gerhard Potgieter d63b0018d8 Add tax total 2018-04-10 14:10:21 +02:00
Gerhard Potgieter 4a7ee19d18 Add shipping 2018-04-10 14:01:22 +02:00
Gerhard Potgieter 72d078452c Add last order and gross functions 2018-04-09 14:54:50 +02:00
Mike Jolley 6701917e5a Remove need for wc_get_core_supported_themes 2017-11-07 12:17:03 +00:00
Umangvaghela 10fe92cfc1 Fix-minor-changes 2017-10-16 16:33:12 +05:30
Akeda Bagus 0b416439c8
Fixed all typos of all files in includes/ directory.
Scanning and fixing were done automatically by codespell,
https://github.com/lucasdemarchi/codespell.
2017-03-29 00:58:51 +07:00
Claudio Sanches 375b6e9789 Remove legacy dependency code 2016-11-17 19:06:46 -02:00