Enhanced Ecommerce Google Analytics Plugin for WooCommerce - Version 4.5.5

Version Description

  • 27/12/2021 =

  • Some users were facing PHP warning issue. The issue is now fixed.

Download this release

Release Info

Developer Tatvic
Plugin Icon 128x128 Enhanced Ecommerce Google Analytics Plugin for WooCommerce
Version 4.5.5
Comparing to
See all releases

Code changes from version 4.5.4 to 4.5.5

admin/class-tvc-admin-helper.php CHANGED
@@ -37,8 +37,8 @@ Class TVC_Admin_Helper{
37
  * verstion auto updated
38
  */
39
  public function need_auto_update_db(){
40
- $old_ee_auto_update_id = esc_attr(sanitize_text_field("tvc_4.0.0"));
41
- $new_ee_auto_update_id = esc_attr(sanitize_text_field("tvc_4.5.1"));
42
  $ee_auto_update_id = get_option('ee_auto_update_id');
43
  if($ee_auto_update_id!=""){
44
  if( $ee_auto_update_id != $new_ee_auto_update_id){
@@ -51,7 +51,8 @@ Class TVC_Admin_Helper{
51
  $this->TVC_Admin_DB_Helper->tvc_safe_truncate_table($tablename);
52
  new TVC_Admin_Auto_Product_sync_Helper();
53
  update_option("ee_auto_update_id", sanitize_option("ee_auto_update_id", $new_ee_auto_update_id) );
54
-
 
55
  //tvc_4.5.1
56
  $this->update_subscription_details_api_to_db();
57
  }
37
  * verstion auto updated
38
  */
39
  public function need_auto_update_db(){
40
+ $old_ee_auto_update_id = esc_attr(sanitize_text_field("tvc_4.5.1"));
41
+ $new_ee_auto_update_id = esc_attr(sanitize_text_field("tvc_4.5.5"));
42
  $ee_auto_update_id = get_option('ee_auto_update_id');
43
  if($ee_auto_update_id!=""){
44
  if( $ee_auto_update_id != $new_ee_auto_update_id){
51
  $this->TVC_Admin_DB_Helper->tvc_safe_truncate_table($tablename);
52
  new TVC_Admin_Auto_Product_sync_Helper();
53
  update_option("ee_auto_update_id", sanitize_option("ee_auto_update_id", $new_ee_auto_update_id) );
54
+ }
55
+ if($ee_auto_update_id == "tvc_4.5.1"){
56
  //tvc_4.5.1
57
  $this->update_subscription_details_api_to_db();
58
  }
enhanced-ecommerce-google-analytics.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: Conversios.io - Google Analytics and Google Shopping plugin for WooCommerce
16
  * Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
17
  * Description: Automates eCommerce tracking in Google Analytics, dynamic remarkting in Google Ads, and provides complete Google Shopping features.
18
- * Version: 4.5.4
19
  * Author: Tatvic
20
  * Author URI: www.tatvic.com
21
  * License: GPL-2.0+
@@ -37,7 +37,7 @@ if ( ! defined( 'WPINC' ) ) {
37
  * Start at version 1.0.0 and use SemVer - https://semver.org
38
  * Rename this for your plugin and update it as you release new versions.
39
  */
40
- define( 'PLUGIN_TVC_VERSION', '4.5.4' );
41
  $fullName = plugin_basename( __FILE__ );
42
  $dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
43
  if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
15
  * Plugin Name: Conversios.io - Google Analytics and Google Shopping plugin for WooCommerce
16
  * Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
17
  * Description: Automates eCommerce tracking in Google Analytics, dynamic remarkting in Google Ads, and provides complete Google Shopping features.
18
+ * Version: 4.5.5
19
  * Author: Tatvic
20
  * Author URI: www.tatvic.com
21
  * License: GPL-2.0+
37
  * Start at version 1.0.0 and use SemVer - https://semver.org
38
  * Rename this for your plugin and update it as you release new versions.
39
  */
40
+ define( 'PLUGIN_TVC_VERSION', '4.5.5' );
41
  $fullName = plugin_basename( __FILE__ );
42
  $dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
43
  if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
includes/data/class-tvc-ajax-file.php CHANGED
@@ -61,7 +61,6 @@ class TVC_Ajax_File extends TVC_Ajax_Calls {
61
 
62
  $sync_produt = ""; $sync_produt_p = ""; $is_synced_up = ""; $sync_message = "";
63
  $sync_progressive_data = isset($_POST['sync_progressive_data'])?$_POST['sync_progressive_data']:"";
64
- $sync_progressive_data = $sync_progressive_data;
65
 
66
  $sync_produt = isset($sync_progressive_data['sync_produt'])?sanitize_text_field($sync_progressive_data['sync_produt']):"";
67
  $sync_produt = sanitize_text_field($sync_produt);
@@ -78,13 +77,16 @@ class TVC_Ajax_File extends TVC_Ajax_Calls {
78
  $skip_products =isset($sync_progressive_data['skip_products'])?sanitize_text_field($sync_progressive_data['skip_products']):"0";
79
  $skip_products = sanitize_text_field($skip_products);
80
 
81
- //print_r($_POST);
82
- //$merchant_id = esc_attr(isset($_POST['tvc_data'])?$_POST['tvc_data']:"");
83
  $account_id = esc_attr(isset($_POST['account_id'])?sanitize_text_field($_POST['account_id']):"");
84
  $customer_id = esc_attr(isset($_POST['customer_id'])?sanitize_text_field($_POST['customer_id']):"");
85
  $subscription_id = esc_attr(isset($_POST['subscription_id'])?sanitize_text_field($_POST['subscription_id']):"");
86
- $data = isset($_POST['tvc_data'])?$_POST['tvc_data']:"";
87
-
 
 
 
 
 
88
  if( $sync_progressive_data == "" && $TVC_Admin_DB_Helper->tvc_row_count("ee_prouct_pre_sync_data") > 0 ){
89
  $TVC_Admin_DB_Helper->tvc_safe_truncate_table($prouct_pre_sync_table);
90
  }
@@ -96,7 +98,7 @@ class TVC_Ajax_File extends TVC_Ajax_Calls {
96
  $sync_produt = 0;
97
  }
98
  if($sync_step == 1){
99
- parse_str($data, $formArray);
100
  $mappedCatsDB = [];
101
  $mappedCats = [];
102
  $mappedAttrs = [];
61
 
62
  $sync_produt = ""; $sync_produt_p = ""; $is_synced_up = ""; $sync_message = "";
63
  $sync_progressive_data = isset($_POST['sync_progressive_data'])?$_POST['sync_progressive_data']:"";
 
64
 
65
  $sync_produt = isset($sync_progressive_data['sync_produt'])?sanitize_text_field($sync_progressive_data['sync_produt']):"";
66
  $sync_produt = sanitize_text_field($sync_produt);
77
  $skip_products =isset($sync_progressive_data['skip_products'])?sanitize_text_field($sync_progressive_data['skip_products']):"0";
78
  $skip_products = sanitize_text_field($skip_products);
79
 
 
 
80
  $account_id = esc_attr(isset($_POST['account_id'])?sanitize_text_field($_POST['account_id']):"");
81
  $customer_id = esc_attr(isset($_POST['customer_id'])?sanitize_text_field($_POST['customer_id']):"");
82
  $subscription_id = esc_attr(isset($_POST['subscription_id'])?sanitize_text_field($_POST['subscription_id']):"");
83
+ $data = isset($_POST['tvc_data'])?$_POST['tvc_data']:"";
84
+ parse_str($data, $formArray);
85
+ if(!empty($formArray)){
86
+ foreach ($formArray as $key => $value) {
87
+ $formArray[$key] = sanitize_text_field($value);
88
+ }
89
+ }
90
  if( $sync_progressive_data == "" && $TVC_Admin_DB_Helper->tvc_row_count("ee_prouct_pre_sync_data") > 0 ){
91
  $TVC_Admin_DB_Helper->tvc_safe_truncate_table($prouct_pre_sync_table);
92
  }
98
  $sync_produt = 0;
99
  }
100
  if($sync_step == 1){
101
+ //parse_str($data, $formArray);
102
  $mappedCatsDB = [];
103
  $mappedCats = [];
104
  $mappedAttrs = [];
includes/setup/CustomApi.php CHANGED
@@ -497,7 +497,7 @@ class CustomApi{
497
  }
498
  public function getSyncProductList($postData) {
499
  try {
500
- $postData["maxResults"] = 100;
501
  $header = array(
502
  "Authorization: Bearer MTIzNA==",
503
  "content-type: application/json",
497
  }
498
  public function getSyncProductList($postData) {
499
  try {
500
+ $postData["maxResults"] = 25;
501
  $header = array(
502
  "Authorization: Bearer MTIzNA==",
503
  "content-type: application/json",
readme.txt CHANGED
@@ -8,8 +8,8 @@ Author: Tatvic
8
  Requires at least: 3.0.0
9
  Tested up to: 5.8.2
10
  Requires PHP: 5.6 or Higher
11
- Stable tag: 4.5.4
12
- Version: 4.5.4
13
  License: GPLv3
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
 
@@ -380,6 +380,10 @@ You can resolve the duplication of data by removing the manually implemented GA
380
 
381
  == Changelog ==
382
 
 
 
 
 
383
  = 4.5.4 - 24/12/2021 =
384
 
385
  * Resolved JS issue which was reported in earlier version 4.5.3
8
  Requires at least: 3.0.0
9
  Tested up to: 5.8.2
10
  Requires PHP: 5.6 or Higher
11
+ Stable tag: 4.5.5
12
+ Version: 4.5.5
13
  License: GPLv3
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
 
380
 
381
  == Changelog ==
382
 
383
+ = 4.5.5 - 27/12/2021 =
384
+
385
+ * Some users were facing PHP warning issue. The issue is now fixed.
386
+
387
  = 4.5.4 - 24/12/2021 =
388
 
389
  * Resolved JS issue which was reported in earlier version 4.5.3