Product Feed PRO for WooCommerce - Version 11.3.2

Version Description

Fixed an issue that resulted in empty feeds when multiple feeds were configured and all at once were processing

Download this release

Release Info

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

Code changes from version 11.3.1 to 11.3.2

classes/class-get-products.php CHANGED
@@ -2382,14 +2382,17 @@ class WooSEA_Get_Products {
2382
  $logger->add('Product Feed Pro by AdTribes.io','<!-- START new QUERY -->');
2383
  }
2384
 
2385
- // Make sure we do not process duplicate products that are already feed
2386
- $prevent_duplicates = get_option('woosea_duplicates');
2387
- if(empty($prevent_duplicates)){
2388
- $prevent_duplicates = array();
2389
- $fake_id = 99999999;
2390
- array_push($prevent_duplicates, $fake_id);
2391
- update_option('woosea_duplicates', $prevent_duplicates, 'no');
2392
- }
 
 
 
2393
 
2394
  while ($prods->have_posts()) : $prods->the_post();
2395
  global $product;
@@ -4793,9 +4796,9 @@ class WooSEA_Get_Products {
4793
  endwhile;
4794
  wp_reset_query();
4795
 
4796
- // Add processed products to array
4797
  if(get_option('woosea_duplicates')){
4798
- update_option('woosea_duplicates', $prevent_duplicates, 'no');
4799
  }
4800
 
4801
  /**
@@ -4909,8 +4912,9 @@ class WooSEA_Get_Products {
4909
  // Feed should only refresh when product details have changed
4910
  update_option('woosea_allow_update', 'no');
4911
 
4912
- // Delete processed product array for preventing duplicates
4913
- delete_option('woosea_duplicates');
 
4914
 
4915
  // In 2 minutes from now check the amount of products in the feed and update the history count
4916
  wp_schedule_single_event( time() + 120, 'woosea_update_project_stats', array($val['project_hash']) );
@@ -4963,8 +4967,9 @@ class WooSEA_Get_Products {
4963
  update_option('woosea_allow_update', 'no');
4964
 
4965
  // Delete processed product array for preventing duplicates
4966
- delete_option('woosea_duplicates');
4967
-
 
4968
  // In 2 minutes from now check the amount of products in the feed and update the history count
4969
  wp_schedule_single_event( time() + 120, 'woosea_update_project_stats', array($val['project_hash']) );
4970
  }
2382
  $logger->add('Product Feed Pro by AdTribes.io','<!-- START new QUERY -->');
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;
4796
  endwhile;
4797
  wp_reset_query();
4798
 
4799
+ // Add processed products to array
4800
  if(get_option('woosea_duplicates')){
4801
+ update_option($channel_duplicates, $prevent_duplicates, 'no');
4802
  }
4803
 
4804
  /**
4912
  // Feed should only refresh when product details have changed
4913
  update_option('woosea_allow_update', 'no');
4914
 
4915
+ // Delete processed product array for preventing duplicates
4916
+ $channel_duplicates = "woosea_duplicates_".$project_hash;
4917
+ delete_option($channel_duplicates);
4918
 
4919
  // In 2 minutes from now check the amount of products in the feed and update the history count
4920
  wp_schedule_single_event( time() + 120, 'woosea_update_project_stats', array($val['project_hash']) );
4967
  update_option('woosea_allow_update', 'no');
4968
 
4969
  // Delete processed product array for preventing duplicates
4970
+ $channel_duplicates = "woosea_duplicates_".$project_hash;
4971
+ delete_option($channel_duplicates);
4972
+
4973
  // In 2 minutes from now check the amount of products in the feed and update the history count
4974
  wp_schedule_single_event( time() + 120, 'woosea_update_project_stats', array($val['project_hash']) );
4975
  }
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.1',
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.2',
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.1
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.1 (2022-02-20) =
341
  * Added three Pinterest / Vivino / TikTok price attributes excluding VAT
342
 
@@ -3613,6 +3616,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3613
 
3614
  == Upgrade Notice ==
3615
 
 
 
 
3616
  = 11.3.1 =
3617
  Added three Pinterest / Vivino / TikTok price attributes excluding VAT
3618
 
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.2
9
 
10
  == Description ==
11
 
337
 
338
  === Changelog ===
339
 
340
+ = 11.3.2 (2022-02-21) =
341
+ * Fixed an issue that resulted in empty feeds when multiple feeds were configured and all at once were processing
342
+
343
  = 11.3.1 (2022-02-20) =
344
  * Added three Pinterest / Vivino / TikTok price attributes excluding VAT
345
 
3616
 
3617
  == Upgrade Notice ==
3618
 
3619
+ = 11.3.2 =
3620
+ Fixed an issue that resulted in empty feeds when multiple feeds were configured and all at once were processing
3621
+
3622
  = 11.3.1 =
3623
  Added three Pinterest / Vivino / TikTok price attributes excluding VAT
3624
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.3.1
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.1' );
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.2
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.2' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54