Product Feed PRO for WooCommerce - Version 9.1.7

Version Description

Fixed an issue where SimpleXML did not return an object and caused the plugin to get stuck

Download this release

Release Info

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

Code changes from version 9.1.6 to 9.1.7

classes/class-get-products.php CHANGED
@@ -1704,7 +1704,10 @@ class WooSEA_Get_Products {
1704
  }
1705
  }
1706
  }
1707
- $xml->asXML($file);
 
 
 
1708
  unset($product);
1709
  }
1710
  unset($products);
@@ -3397,16 +3400,18 @@ class WooSEA_Get_Products {
3397
  }
3398
 
3399
  // Check if the sale price is effective
3400
- if((strtotime($product_data['sale_price_start_date'])) AND (strtotime($product_data['sale_price_end_date']))){
3401
- $current_date = date('Y-m-d');
3402
- if(($current_date < $product_data['sale_price_start_date'])){
3403
- unset($product_data['sale_price']);
3404
- }
 
3405
 
3406
- if(($current_date > $product_data['sale_price_end_date'])){
3407
- unset($product_data['sale_price']);
3408
- }
3409
- }
 
3410
 
3411
  /**
3412
  * When a product is a variable product we need to delete the original product from the feed, only the originals are allowed
1704
  }
1705
  }
1706
  }
1707
+
1708
+ if(is_object($xml)){
1709
+ $xml->asXML($file);
1710
+ }
1711
  unset($product);
1712
  }
1713
  unset($products);
3400
  }
3401
 
3402
  // Check if the sale price is effective
3403
+ if(isset($product_data['sale_price_start_date'])){
3404
+ if((strtotime($product_data['sale_price_start_date'])) AND (strtotime($product_data['sale_price_end_date']))){
3405
+ $current_date = date('Y-m-d');
3406
+ if(($current_date < $product_data['sale_price_start_date'])){
3407
+ unset($product_data['sale_price']);
3408
+ }
3409
 
3410
+ if(($current_date > $product_data['sale_price_end_date'])){
3411
+ unset($product_data['sale_price']);
3412
+ }
3413
+ }
3414
+ }
3415
 
3416
  /**
3417
  * When a product is a variable product we need to delete the original product from the feed, only the originals are allowed
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.6',
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.7',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
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.6
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.6 (2020-11-19) =
325
  * Fixed an issue, all of a sudden "Object of class WP_Errors" showed on a str_replace. Issue is fixed now.
326
 
@@ -2919,6 +2922,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2919
 
2920
  == Upgrade Notice ==
2921
 
 
 
 
2922
  = 9.1.6 =
2923
  Fixed an issue, all of a sudden "Object of class WP_Errors" showed on a str_replace. Issue is fixed now.
2924
 
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.7
9
 
10
  == Description ==
11
 
321
 
322
  === Changelog ===
323
 
324
+ = 9.1.7 (2020-11-19) =
325
+ * Fixed an issue where SimpleXML did not return an object and caused the plugin to get stuck
326
+
327
  = 9.1.6 (2020-11-19) =
328
  * Fixed an issue, all of a sudden "Object of class WP_Errors" showed on a str_replace. Issue is fixed now.
329
 
2922
 
2923
  == Upgrade Notice ==
2924
 
2925
+ = 9.1.7 =
2926
+ Fixed an issue where SimpleXML did not return an object and caused the plugin to get stuck
2927
+
2928
  = 9.1.6 =
2929
  Fixed an issue, all of a sudden "Object of class WP_Errors" showed on a str_replace. Issue is fixed now.
2930
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 9.1.6
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.6' );
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: 9.1.7
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.7' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54