Dan Wyman
721fee7064
Add periods to comments.
2021-05-12 14:23:07 -07:00
Menaka S
e20223f63e
Make the restored function private
2021-05-12 06:48:36 +05:30
Menaka S
ffd6bd4163
Make the new function private
2021-05-12 06:43:36 +05:30
Dan Wyman
d13ce85b66
Set default value for variable
2021-05-12 06:40:53 +05:30
Menaka S
5dfac89d80
Add function to get order details by gateway
2021-05-12 06:40:53 +05:30
Menaka S
20b39bedac
Restore direct SQL queries and functions from WC 5.0
2021-05-12 06:40:53 +05:30
Timmy Crawford
c7a19b538a
Updates per feedback.
2021-02-25 15:19:27 -08:00
Timmy Crawford
47a3d1bfb3
Tracker: Add tracking of woocommerce_admin_disabled usage.
2021-02-25 15:19:27 -08:00
Menaka S
778c4e2907
Typecast instead of using strval()
2021-01-27 20:39:41 +05:30
Menaka S
203e5ff2a8
Convert all values collected to string
2021-01-27 18:39:52 +05:30
Menaka S
3a53c31aea
Do not return default values for first/last order times
2021-01-22 10:31:22 +05:30
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