Product Feed PRO for WooCommerce - Version 11.3.5

Version Description

Fixed an issue with the deduplication counters

Download this release

Release Info

Developer jorisverwater
Plugin Icon 128x128 Product Feed PRO for WooCommerce
Version 11.3.5
Comparing to
See all releases

Code changes from version 11.3.4 to 11.3.5

classes/class-get-products.php CHANGED
@@ -2383,16 +2383,16 @@ class WooSEA_Get_Products {
2383
  }
2384
 
2385
  // Make sure we do not process duplicate products that are already feed
2386
- $channel_hash = $project_config['channel_hash'];
2387
- $channel_duplicates = "woosea_duplicates_".$channel_hash;
2388
-
2389
- $prevent_duplicates = get_option($channel_duplicates);
2390
- if(empty($prevent_duplicates)){
2391
- $prevent_duplicates = array();
2392
- $fake_id = 99999999;
2393
- array_push($prevent_duplicates, $fake_id);
2394
- update_option($channel_duplicates, $prevent_duplicates, 'no');
2395
- }
2396
 
2397
  while ($prods->have_posts()) : $prods->the_post();
2398
  global $product;
@@ -2413,12 +2413,12 @@ class WooSEA_Get_Products {
2413
  $product_data['id'] = get_the_ID();
2414
 
2415
  // Add to the prevent duplication array
2416
- if(!in_array($product_data['id'], $prevent_duplicates)){
2417
- array_push($prevent_duplicates, $product_data['id']);
2418
- } else {
2419
- // duplicate product, do not add
2420
- continue;
2421
- }
2422
 
2423
  // Only products that have been sold are allowed to go through
2424
  if(isset($project_config['total_product_orders_lookback'])){
@@ -4799,9 +4799,9 @@ class WooSEA_Get_Products {
4799
  wp_reset_query();
4800
 
4801
  // Add processed products to array
4802
- if(get_option('woosea_duplicates')){
4803
- update_option($channel_duplicates, $prevent_duplicates, 'no');
4804
- }
4805
 
4806
  /**
4807
  * Write row to CSV/TXT or XML file
@@ -4914,8 +4914,8 @@ class WooSEA_Get_Products {
4914
  update_option('woosea_allow_update', 'no');
4915
 
4916
  // Delete processed product array for preventing duplicates
4917
- $channel_duplicates = "woosea_duplicates_".$project_hash;
4918
- delete_option($channel_duplicates);
4919
 
4920
  // In 2 minutes from now check the amount of products in the feed and update the history count
4921
  wp_schedule_single_event( time() + 120, 'woosea_update_project_stats', array($val['project_hash']) );
@@ -4968,8 +4968,8 @@ class WooSEA_Get_Products {
4968
  update_option('woosea_allow_update', 'no');
4969
 
4970
  // Delete processed product array for preventing duplicates
4971
- $channel_duplicates = "woosea_duplicates_".$project_hash;
4972
- delete_option($channel_duplicates);
4973
 
4974
  // In 2 minutes from now check the amount of products in the feed and update the history count
4975
  wp_schedule_single_event( time() + 120, 'woosea_update_project_stats', array($val['project_hash']) );
2383
  }
2384
 
2385
  // Make sure we do not process duplicate products that are already feed
2386
+ // $channel_hash = $project_config['channel_hash'];
2387
+ // $channel_duplicates = "woosea_duplicates_".$channel_hash;
2388
+
2389
+ // $prevent_duplicates = get_option($channel_duplicates);
2390
+ // if(empty($prevent_duplicates)){
2391
+ // $prevent_duplicates = array();
2392
+ // $fake_id = 99999999;
2393
+ // array_push($prevent_duplicates, $fake_id);
2394
+ // update_option($channel_duplicates, $prevent_duplicates, 'no');
2395
+ //}
2396
 
2397
  while ($prods->have_posts()) : $prods->the_post();
2398
  global $product;
2413
  $product_data['id'] = get_the_ID();
2414
 
2415
  // Add to the prevent duplication array
2416
+ // if(!in_array($product_data['id'], $prevent_duplicates)){
2417
+ // array_push($prevent_duplicates, $product_data['id']);
2418
+ //} else {
2419
+ // // duplicate product, do not add
2420
+ // continue;
2421
+ //}
2422
 
2423
  // Only products that have been sold are allowed to go through
2424
  if(isset($project_config['total_product_orders_lookback'])){
4799
  wp_reset_query();
4800
 
4801
  // Add processed products to array
4802
+ //if(get_option('woosea_duplicates')){
4803
+ // update_option($channel_duplicates, $prevent_duplicates, 'no');
4804
+ //}
4805
 
4806
  /**
4807
  * Write row to CSV/TXT or XML file
4914
  update_option('woosea_allow_update', 'no');
4915
 
4916
  // Delete processed product array for preventing duplicates
4917
+ // $channel_duplicates = "woosea_duplicates_".$project_hash;
4918
+ // delete_option($channel_duplicates);
4919
 
4920
  // In 2 minutes from now check the amount of products in the feed and update the history count
4921
  wp_schedule_single_event( time() + 120, 'woosea_update_project_stats', array($val['project_hash']) );
4968
  update_option('woosea_allow_update', 'no');
4969
 
4970
  // Delete processed product array for preventing duplicates
4971
+ // $channel_duplicates = "woosea_duplicates_".$project_hash;
4972
+ // delete_option($channel_duplicates);
4973
 
4974
  // In 2 minutes from now check the amount of products in the feed and update the history count
4975
  wp_schedule_single_event( time() + 120, 'woosea_update_project_stats', array($val['project_hash']) );
js/woosea_key.js CHANGED
@@ -26,7 +26,7 @@ jQuery(document).ready(function($) {
26
  var license_key = $('#license-key').val();
27
 
28
  jQuery.ajax({
29
- url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=11.3.4',
30
  jsonp: 'callback',
31
  dataType: 'jsonp',
32
  type: 'GET',
26
  var license_key = $('#license-key').val();
27
 
28
  jQuery.ajax({
29
+ url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=11.3.5',
30
  jsonp: 'callback',
31
  dataType: 'jsonp',
32
  type: 'GET',
readme.txt CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
5
  Tags: Google Shopping Feed, WooCommerce Product Feed, Facebook Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Facebook Pixel, Facebook Conversion API
6
  Requires at least: 4.5
7
  Tested up to: 5.9
8
- Stable tag: 11.3.4
9
 
10
  == Description ==
11
 
@@ -337,6 +337,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
337
 
338
  === Changelog ===
339
 
 
 
 
340
  = 11.3.4 (2022-02-22) =
341
  * Fixed an error, the _my_conversions table is being queried but did not always exist
342
  * Added an option to forcefully clean the dulication options
@@ -3623,6 +3626,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3623
 
3624
  == Upgrade Notice ==
3625
 
 
 
 
3626
  = 11.3.4 =
3627
  Fixed an error, the _my_conversions table is being queried but did not always exist
3628
  Added an option to forcefully clean the dulication options
5
  Tags: Google Shopping Feed, WooCommerce Product Feed, Facebook Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Facebook Pixel, Facebook Conversion API
6
  Requires at least: 4.5
7
  Tested up to: 5.9
8
+ Stable tag: 11.3.5
9
 
10
  == Description ==
11
 
337
 
338
  === Changelog ===
339
 
340
+ = 11.3.5 (2022-02-23) =
341
+ * Fixed an issue with the deduplication counters
342
+
343
  = 11.3.4 (2022-02-22) =
344
  * Fixed an error, the _my_conversions table is being queried but did not always exist
345
  * Added an option to forcefully clean the dulication options
3626
 
3627
  == Upgrade Notice ==
3628
 
3629
+ = 11.3.5 =
3630
+ Fixed an issue with the deduplication counters
3631
+
3632
  = 11.3.4 =
3633
  Fixed an error, the _my_conversions table is being queried but did not always exist
3634
  Added an option to forcefully clean the dulication options
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.3.4
5
  * Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
6
  * Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Facebook, Remarketing, Bing, Skroutz, Yandex, Comparison shopping websites and over a 100 channels more.
7
  * Author: AdTribes.io
@@ -48,7 +48,7 @@ if (!defined('ABSPATH')) {
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
- define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '11.3.4' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 11.3.5
5
  * Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
6
  * Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Facebook, Remarketing, Bing, Skroutz, Yandex, Comparison shopping websites and over a 100 channels more.
7
  * Author: AdTribes.io
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
+ define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '11.3.5' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54