Product Feed PRO for WooCommerce - Version 9.1.9

Version Description

Added a performance feature. Users can now select to only refresh their product feeds when products have been changed or new products have been added to WooCommerce.

Download this release

Release Info

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

Code changes from version 9.1.8 to 9.1.9

classes/class-get-products.php CHANGED
@@ -4442,7 +4442,7 @@ class WooSEA_Get_Products {
4442
  $product_data[$pr_array['attribute']] = $newvalue;
4443
  break;
4444
  case($pr_array['condition'] = "findreplace"):
4445
- if (strpos($pd_value, $pr_array['criteria']) !== false){
4446
  // Make sure that a new value has been set
4447
  if(!empty($pr_array['newvalue'])){
4448
  // Find and replace only work on same attribute field, otherwise create a contains rule
@@ -4450,7 +4450,6 @@ class WooSEA_Get_Products {
4450
  $newvalue = str_replace($pr_array['criteria'],$pr_array['newvalue'], $pd_value);
4451
  $product_data[$pr_array['than_attribute']] = ucfirst($newvalue);
4452
  }
4453
-
4454
  }
4455
  }
4456
  break;
4442
  $product_data[$pr_array['attribute']] = $newvalue;
4443
  break;
4444
  case($pr_array['condition'] = "findreplace"):
4445
+ if (strpos($pd_value, $pr_array['criteria']) !== false){
4446
  // Make sure that a new value has been set
4447
  if(!empty($pr_array['newvalue'])){
4448
  // Find and replace only work on same attribute field, otherwise create a contains rule
4450
  $newvalue = str_replace($pr_array['criteria'],$pr_array['newvalue'], $pd_value);
4451
  $product_data[$pr_array['than_attribute']] = ucfirst($newvalue);
4452
  }
 
4453
  }
4454
  }
4455
  break;
js/woosea_key.js CHANGED
@@ -27,7 +27,7 @@ jQuery(document).ready(function($) {
27
  var license_key = $('#license-key').val();
28
 
29
  jQuery.ajax({
30
- url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=9.1.8',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
27
  var license_key = $('#license-key').val();
28
 
29
  jQuery.ajax({
30
+ url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=9.1.9',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
pages/admin/woosea-generate-feed-step-0.php CHANGED
@@ -493,7 +493,6 @@ if (array_key_exists('project_hash', $_GET)){
493
  </td>
494
  </tr>
495
 
496
- <!--
497
  <tr>
498
  <td><span><?php _e( 'Refresh only when products changed','woo-product-feed-pro' );?>:</span></td>
499
  <td>
@@ -506,7 +505,6 @@ if (array_key_exists('project_hash', $_GET)){
506
  ?>
507
  </td>
508
  </tr>
509
- -->
510
 
511
  <tr>
512
  <td colspan="2">
493
  </td>
494
  </tr>
495
 
 
496
  <tr>
497
  <td><span><?php _e( 'Refresh only when products changed','woo-product-feed-pro' );?>:</span></td>
498
  <td>
505
  ?>
506
  </td>
507
  </tr>
 
508
 
509
  <tr>
510
  <td colspan="2">
readme.txt CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
5
  Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
6
  Requires at least: 4.5
7
  Tested up to: 5.5
8
- Stable tag: 9.1.8
9
 
10
  == Description ==
11
 
@@ -321,6 +321,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
321
 
322
  === Changelog ===
323
 
 
 
 
324
  = 9.1.8 (2020-11-25) =
325
  * Fixed an issue where table rate shipping costs did not make it to custom feeds.
326
 
@@ -2925,6 +2928,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2925
 
2926
  == Upgrade Notice ==
2927
 
 
 
 
2928
  = 9.1.8 =
2929
  Fixed an issue where table rate shipping costs did not make it to custom feeds.
2930
 
5
  Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
6
  Requires at least: 4.5
7
  Tested up to: 5.5
8
+ Stable tag: 9.1.9
9
 
10
  == Description ==
11
 
321
 
322
  === Changelog ===
323
 
324
+ = 9.1.9 (2020-11-26) =
325
+ * Added a performance feature. Users can now select to only refresh their product feeds when products have been changed or new products have been added to WooCommerce.
326
+
327
  = 9.1.8 (2020-11-25) =
328
  * Fixed an issue where table rate shipping costs did not make it to custom feeds.
329
 
2928
 
2929
  == Upgrade Notice ==
2930
 
2931
+ = 9.1.9 =
2932
+ Added a performance feature. Users can now select to only refresh their product feeds when products have been changed or new products have been added to WooCommerce.
2933
+
2934
  = 9.1.8 =
2935
  Fixed an issue where table rate shipping costs did not make it to custom feeds.
2936
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 9.1.8
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, 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', '9.1.8' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -4216,22 +4216,22 @@ function woosea_create_all_feeds(){
4216
  $products_changes = "no"; // default value
4217
  $products_changes = get_option('woosea_allow_update');
4218
 
4219
- if($products_changes == "no"){
4220
- // error_log("No changes were made to products so no product refresh is needed");
4221
- } else {
4222
- // error_log("Yes, a product was changed. We need to refresh our product feeds");
4223
- }
4224
-
4225
  if(!empty($feed_config)){
4226
  foreach ( $feed_config as $key => $val ) {
4227
 
 
 
 
 
 
 
4228
  // Force garbage collection dump
4229
  gc_enable();
4230
  gc_collect_cycles();
4231
 
4232
  // Only process projects that are active
4233
- if(($val['active'] == "true") AND (!empty($val)) AND (isset($val['cron']))){
4234
-
4235
  if (($val['cron'] == "daily") AND ($hour == 07)){
4236
  $batch_project = "batch_project_".$val['project_hash'];
4237
  if (!get_option( $batch_project )){
@@ -4275,6 +4275,8 @@ function woosea_create_all_feeds(){
4275
  }
4276
  }
4277
  }
 
 
4278
  }
4279
 
4280
  /**
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 9.1.9
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, 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', '9.1.9' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
4216
  $products_changes = "no"; // default value
4217
  $products_changes = get_option('woosea_allow_update');
4218
 
 
 
 
 
 
 
4219
  if(!empty($feed_config)){
4220
  foreach ( $feed_config as $key => $val ) {
4221
 
4222
+ // When no products changed and user enabled the option to only update the feed when products changed
4223
+ $update_this_feed = "yes";
4224
+ if((isset($val['products_changed'])) AND ($products_changes == "no")){
4225
+ $update_this_feed = "no";
4226
+ }
4227
+
4228
  // Force garbage collection dump
4229
  gc_enable();
4230
  gc_collect_cycles();
4231
 
4232
  // Only process projects that are active
4233
+ if(($val['active'] == "true") AND (!empty($val)) AND($update_this_feed == "yes") AND (isset($val['cron']))){
4234
+
4235
  if (($val['cron'] == "daily") AND ($hour == 07)){
4236
  $batch_project = "batch_project_".$val['project_hash'];
4237
  if (!get_option( $batch_project )){
4275
  }
4276
  }
4277
  }
4278
+ // set products update flag back to no
4279
+ update_option('woosea_allow_update', 'no');
4280
  }
4281
 
4282
  /**