Peter Fabian
0d7e5d1596
Merge pull request #28584 from woocommerce/add_orders_count_by_gateway
...
Track order counts by payment method
2021-01-19 11:45:02 +01:00
Peter Fabian
31a3b6a7ba
Fixed the deprecation version
2021-01-19 11:10:58 +01:00
Menaka S
950bfcdf39
Deprecate public function and remove private functions
2021-01-11 18:38:17 +05:30
Menaka S
415e1e7bbf
Use site's posts_per_page size
2021-01-10 15:21:06 +05:30
Menaka S
003f4a0acb
Paginate while getting orders to calculate tracker data
2021-01-10 15:17:21 +05:30
Menaka S
baace44f19
Remove the functio to get orders count by payment method
2021-01-08 19:45:46 +05:30
budzanowski
29837c42ff
Refactor.
2021-01-06 11:33:28 +01:00
Menaka S
88dd6473d4
Some fixes for coding standards
2020-12-23 17:05:17 +05:30
Menaka S
092c36b71b
Get order total values
2020-12-23 17:05:10 +05:30
Menaka S
e9804ea717
Add order counts by gateway
2020-12-23 17:05:03 +05:30
Menaka S
1a6835019a
Add order counts by status
2020-12-23 17:04:54 +05:30
Menaka S
0aee0a0848
Use wc_get_orders() to add order dates for tracker
2020-12-23 17:04:32 +05:30
Menaka S
8d83b47c27
Check if post_type is shop_order
2020-12-23 17:04:14 +05:30
Menaka S
36d6ff4c52
Add a function to get order counts by payment method
2020-12-23 17:04:02 +05:30
Peter Fabian
ed9c1e2f93
Update includes/class-wc-tracker.php
...
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2020-09-18 14:30:39 +02:00
Peter Fabian
b8670162a7
Added environment type var to WC tracker.
2020-09-16 13:44:36 +02:00
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
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