Skip to content

Commit e8c0928

Browse files
committed
chore: bump version to 2.0.11
1 parent 73c7ebc commit e8c0928

File tree

8 files changed

+1581
-2862
lines changed

8 files changed

+1581
-2862
lines changed

conversion-tracking.php

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
Plugin Name: WooCommerce Conversion Tracking
44
Plugin URI: https://wedevs.com/woocommerce-conversion-tracking/
55
Description: Adds various conversion tracking codes to cart, checkout, registration success and product page on WooCommerce
6-
Version: 2.0.10
6+
Version: 2.0.11
77
Author: weDevs
88
Author URI: https://wedevs.com/?utm_source=ORG_Author_URI_WCCT
99
License: GPL2
10-
WC requires at least: 2.3
11-
WC tested up to: 5.2
10+
WC requires at least: 5.0.0
11+
WC tested up to: 8.1.0
1212
*/
1313

1414
/**
@@ -54,7 +54,7 @@ class WeDevs_WC_Conversion_Tracking {
5454
*
5555
* @var string
5656
*/
57-
public $version = '2.0.10';
57+
public $version = '2.0.11';
5858

5959
/**
6060
* Holds various class instances
@@ -78,6 +78,9 @@ public function __construct() {
7878
$this->init_classes();
7979

8080
register_activation_hook( __FILE__, array( $this, 'activate' ) );
81+
// hpos support
82+
add_action( 'before_woocommerce_init', [ $this, 'add_hpos_support' ] );
83+
8184
do_action( 'wcct_loaded' );
8285
}
8386

@@ -253,6 +256,19 @@ public function init_tracker() {
253256
$client->insights()->init();
254257
}
255258

259+
/**
260+
* Add High Performance Order Storage Support
261+
*
262+
* @since 2.0.11
263+
*
264+
* @return void
265+
*/
266+
public function add_hpos_support() {
267+
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
268+
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
269+
}
270+
}
271+
256272
/**
257273
* Check the pro version
258274
*

includes/integrations/class-integration-facebook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function checkout( $order_id ) {
199199
return;
200200
}
201201

202-
$order = new WC_Order( $order_id );
202+
$order = wc_get_order( $order_id );
203203
$content_type = 'product';
204204
$product_ids = array();
205205

includes/integrations/class-integration-google.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function checkout( $order_id ) {
110110
return;
111111
}
112112

113-
$order = new WC_Order( $order_id );
113+
$order = wc_get_order( $order_id );
114114

115115
$code = $this->build_event( 'conversion', array(
116116
'send_to' => sprintf( "%s/%s", $account_id, $label ),

includes/integrations/class-integration-twitter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function checkout( $order_id ) {
9797
return;
9898
}
9999

100-
$order = new WC_Order( $order_id );
100+
$order = wc_get_order( $order_id );
101101
$content_type = 'product';
102102
$product_ids = array();
103103

languages/woocommerce-conversion-tracking.pot

Lines changed: 9 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
# Copyright (C) 2021 weDevs
1+
# Copyright (C) 2023 weDevs
22
# This file is distributed under the GPL2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: WooCommerce Conversion Tracking 2.0.9\n"
5+
"Project-Id-Version: WooCommerce Conversion Tracking 2.0.11\n"
66
"Report-Msgid-Bugs-To: https://example.com\n"
7-
"POT-Creation-Date: 2021-10-06 11:06:18+00:00\n"
7+
"POT-Creation-Date: 2023-09-15 11:33:43+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
11-
"PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
11+
"PO-Revision-Date: 2023-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
1414
"X-Generator: grunt-wp-i18n 0.5.4\n"
1515

16-
#: conversion-tracking.php:279
16+
#: conversion-tracking.php:293
1717
msgid "Get PRO"
1818
msgstr ""
1919

20-
#: conversion-tracking.php:282
20+
#: conversion-tracking.php:296
2121
msgid "Docs"
2222
msgstr ""
2323

24-
#: conversion-tracking.php:283
24+
#: conversion-tracking.php:297
2525
msgid "Settings"
2626
msgstr ""
2727

28-
#: conversion-tracking.php:296
28+
#: conversion-tracking.php:310
2929
msgid ""
3030
"<b>Woocommerce conversion tracking</b> requires <a target=\"_blank\" "
3131
"href=\"https://wordpress.org/plugins/woocommerce/\">Woocommerce</a>"
3232
msgstr ""
3333

34-
#: conversion-tracking.php:329
34+
#: conversion-tracking.php:343
3535
msgid ""
3636
"Reach beyond your imagination in creating web pages. <strong> Try Happy "
3737
"Addons for Elementor to shape your dream.</strong> 😊"
@@ -269,40 +269,6 @@ msgstr ""
269269
msgid "Microsoft Advertising"
270270
msgstr ""
271271

272-
#: lib/appsero/Insights.php:369
273-
msgid ""
274-
"Want to help make <strong>%1$s</strong> even more awesome? Allow %1$s to "
275-
"collect non-sensitive diagnostic data and usage information."
276-
msgstr ""
277-
278-
#: lib/appsero/Insights.php:374
279-
msgid "what we collect"
280-
msgstr ""
281-
282-
#: lib/appsero/Insights.php:381
283-
msgid "Allow"
284-
msgstr ""
285-
286-
#: lib/appsero/Insights.php:382
287-
msgid "No thanks"
288-
msgstr ""
289-
290-
#: lib/appsero/Insights.php:747
291-
msgid "If you have a moment, please let us know why you are deactivating:"
292-
msgstr ""
293-
294-
#: lib/appsero/Insights.php:762
295-
msgid "I rather wouldn't say"
296-
msgstr ""
297-
298-
#: lib/appsero/Insights.php:763
299-
msgid "Submit & Deactivate"
300-
msgstr ""
301-
302-
#: lib/appsero/Insights.php:764
303-
msgid "Cancel"
304-
msgstr ""
305-
306272
#. Plugin Name of the plugin/theme
307273
msgid "WooCommerce Conversion Tracking"
308274
msgstr ""

0 commit comments

Comments
 (0)