Version Description
- 15/09/2022 =
- Improvements and product optimization of auto scheduler for product sync. Users with sizable products will now have good time while running scheduler.
Download this release
Release Info
Developer | ramniktatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 4.9.1 |
Comparing to | |
See all releases |
Code changes from version 4.9.0 to 4.9.1
admin/class-tvc-admin-auto-product-sync-helper.php
CHANGED
@@ -158,6 +158,34 @@ if ( ! class_exists( 'TVC_Admin_Auto_Product_sync_Helper' ) ) {
|
|
158 |
}
|
159 |
}
|
160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
public function tvc_get_map_product_attribute($products, $tvc_currency, $merchantId){
|
162 |
if(!empty($products)){
|
163 |
global $wpdb;
|
158 |
}
|
159 |
}
|
160 |
|
161 |
+
/*
|
162 |
+
* update batch wise product sync data in DB table "ee_product_sync_data"
|
163 |
+
*/
|
164 |
+
public function update_last_sync_in_db_batch_wise($products){
|
165 |
+
$ee_prod_mapped_attrs = unserialize(get_option('ee_prod_mapped_attrs'));
|
166 |
+
if( $ee_prod_mapped_attrs != "" ){
|
167 |
+
global $wpdb;
|
168 |
+
$product_ids = implode(',', array_column($products, 'w_product_id'));
|
169 |
+
$where ='`w_product_id` in ('.$product_ids.')';
|
170 |
+
$pids = $this->TVC_Admin_DB_Helper->tvc_get_results_in_array('ee_product_sync_data', $where, array('w_product_id'), true);
|
171 |
+
foreach($products as $key => $product) {
|
172 |
+
$t_data = array(
|
173 |
+
'w_product_id'=>esc_sql($product->w_product_id),
|
174 |
+
'w_cat_id'=>esc_sql($product->w_cat_id),
|
175 |
+
'g_cat_id'=>esc_sql($product->g_cat_id),
|
176 |
+
'g_attribute_mapping'=> json_encode($ee_prod_mapped_attrs),
|
177 |
+
'update_date'=>esc_sql(date('Y-m-d'))
|
178 |
+
);
|
179 |
+
if(!in_array($product->w_product_id, $pids)){
|
180 |
+
$this->TVC_Admin_DB_Helper->tvc_add_row('ee_product_sync_data', $t_data, array("%d", "%d", "%d", "%s", "%s") );
|
181 |
+
}else{
|
182 |
+
$this->TVC_Admin_DB_Helper->tvc_update_row('ee_product_sync_data', $t_data, array('w_product_id'=> esc_sql($product->w_product_id), 'w_cat_id'=> esc_sql($product->w_cat_id) ));
|
183 |
+
}
|
184 |
+
}
|
185 |
+
wp_reset_postdata();
|
186 |
+
}
|
187 |
+
}
|
188 |
+
|
189 |
public function tvc_get_map_product_attribute($products, $tvc_currency, $merchantId){
|
190 |
if(!empty($products)){
|
191 |
global $wpdb;
|
admin/partials/general-fields.php
CHANGED
@@ -312,6 +312,7 @@ if(isset($google_detail['setting'])){
|
|
312 |
<img src="<?php echo esc_url_raw(ENHANCAD_PLUGIN_URL."/admin/images/icon/informationI.svg"); ?>" alt=""/>
|
313 |
</div>
|
314 |
</span>
|
|
|
315 |
</th></tr>
|
316 |
<tr>
|
317 |
<th style="padding: 0 1rem; width: 35%;">
|
312 |
<img src="<?php echo esc_url_raw(ENHANCAD_PLUGIN_URL."/admin/images/icon/informationI.svg"); ?>" alt=""/>
|
313 |
</div>
|
314 |
</span>
|
315 |
+
<span style="float: right;"><a href="<?php echo esc_url_raw("https://".TVC_AUTH_CONNECT_URL."/help-center/event-tracking-custom-integration.pdf"); ?>" target="_blank">Detail document</a></span>
|
316 |
</th></tr>
|
317 |
<tr>
|
318 |
<th style="padding: 0 1rem; width: 35%;">
|
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.9.
|
19 |
* Author: Conversios
|
20 |
* Author URI: conversios.io
|
21 |
* License: GPL-2.0+
|
@@ -23,7 +23,7 @@
|
|
23 |
* Text Domain: conversios
|
24 |
* Domain Path: /languages
|
25 |
* WC requires at least: 3.5.0
|
26 |
-
* WC tested up to: 6.
|
27 |
*/
|
28 |
|
29 |
/**
|
@@ -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.9.
|
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.9.1
|
19 |
* Author: Conversios
|
20 |
* Author URI: conversios.io
|
21 |
* License: GPL-2.0+
|
23 |
* Text Domain: conversios
|
24 |
* Domain Path: /languages
|
25 |
* WC requires at least: 3.5.0
|
26 |
+
* WC tested up to: 6.9.1
|
27 |
*/
|
28 |
|
29 |
/**
|
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.9.1' );
|
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
@@ -245,9 +245,7 @@ class TVC_Ajax_File extends TVC_Ajax_Calls {
|
|
245 |
$sync_message = esc_html__("Initiated, products are being synced to Merchant Center.Do not refresh..","conversios");
|
246 |
if($total_product <= $sync_produt){
|
247 |
//$customObj->setGmcCategoryMapping($catMapRequest);
|
248 |
-
//$customObj->setGmcAttributeMapping($attrMapRequest);
|
249 |
-
$TVC_Admin_Auto_Product_sync_Helper = new TVC_Admin_Auto_Product_sync_Helper();
|
250 |
-
$TVC_Admin_Auto_Product_sync_Helper->update_last_sync_in_db();
|
251 |
$sync_message = esc_html__("Initiated, products are being synced to Merchant Center.Do not refresh..","conversios");
|
252 |
$TVC_Admin_DB_Helper->tvc_safe_truncate_table($prouct_pre_sync_table);
|
253 |
}
|
245 |
$sync_message = esc_html__("Initiated, products are being synced to Merchant Center.Do not refresh..","conversios");
|
246 |
if($total_product <= $sync_produt){
|
247 |
//$customObj->setGmcCategoryMapping($catMapRequest);
|
248 |
+
//$customObj->setGmcAttributeMapping($attrMapRequest);
|
|
|
|
|
249 |
$sync_message = esc_html__("Initiated, products are being synced to Merchant Center.Do not refresh..","conversios");
|
250 |
$TVC_Admin_DB_Helper->tvc_safe_truncate_table($prouct_pre_sync_table);
|
251 |
}
|
includes/setup/class-tvc-product-sync-helper.php
CHANGED
@@ -370,6 +370,8 @@ if ( ! class_exists( 'TVCProductSyncHelper' ) ) {
|
|
370 |
$products = $wpdb->get_results( $wpdb->prepare("select * from `$tablename` where `id` > %d LIMIT %d", $last_sync_product_id, $product_batch_size), OBJECT);
|
371 |
$entries = [];
|
372 |
if(!empty($products)){
|
|
|
|
|
373 |
$p_map_attribute = $this->tvc_get_map_product_attribute($products, $tvc_currency, $merchantId, $product_batch_size);
|
374 |
if(!empty($p_map_attribute) && isset($p_map_attribute['items']) && !empty($p_map_attribute['items'])){
|
375 |
// call product sync API
|
370 |
$products = $wpdb->get_results( $wpdb->prepare("select * from `$tablename` where `id` > %d LIMIT %d", $last_sync_product_id, $product_batch_size), OBJECT);
|
371 |
$entries = [];
|
372 |
if(!empty($products)){
|
373 |
+
$TVC_Admin_Auto_Product_sync_Helper = new TVC_Admin_Auto_Product_sync_Helper();
|
374 |
+
$TVC_Admin_Auto_Product_sync_Helper->update_last_sync_in_db_batch_wise($products);
|
375 |
$p_map_attribute = $this->tvc_get_map_product_attribute($products, $tvc_currency, $merchantId, $product_batch_size);
|
376 |
if(!empty($p_map_attribute) && isset($p_map_attribute['items']) && !empty($p_map_attribute['items'])){
|
377 |
// call product sync API
|
readme.txt
CHANGED
@@ -6,10 +6,10 @@ Tags: Google Analytics tracking, Dynamic Remarketing, Google Shopping automation
|
|
6 |
Author URI: https://conversios.io/
|
7 |
Author: Tatvic
|
8 |
Requires at least: 3.5.0
|
9 |
-
Tested up to: 6.0.
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
-
Stable tag: 4.9.
|
12 |
-
Version: 4.9.
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
@@ -416,6 +416,9 @@ In GA3 (Universal Analytics) usually, it takes 0 to 45 mins and in GA4 it can ta
|
|
416 |
|
417 |
|
418 |
== Changelog ==
|
|
|
|
|
|
|
419 |
= 4.9.0 - 08/09/2022 =
|
420 |
* The implemented feature will give Conversios users, the capability to customize "Google Analytics Event tracking" for their custom implementations on the WooCommerce store pages, which will help them not lose tracking on page events.
|
421 |
|
6 |
Author URI: https://conversios.io/
|
7 |
Author: Tatvic
|
8 |
Requires at least: 3.5.0
|
9 |
+
Tested up to: 6.0.2
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
+
Stable tag: 4.9.1
|
12 |
+
Version: 4.9.1
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
416 |
|
417 |
|
418 |
== Changelog ==
|
419 |
+
= 4.9.1 - 15/09/2022 =
|
420 |
+
* Improvements and product optimization of auto scheduler for product sync. Users with sizable products will now have good time while running scheduler.
|
421 |
+
|
422 |
= 4.9.0 - 08/09/2022 =
|
423 |
* The implemented feature will give Conversios users, the capability to customize "Google Analytics Event tracking" for their custom implementations on the WooCommerce store pages, which will help them not lose tracking on page events.
|
424 |
|