Product Feed PRO for WooCommerce - Version 9.1.1

Version Description

When simple products are switched to variable products WooCommerce leaves some "simple" traces in the database causing issues for our plugin. This has been solved now.

Download this release

Release Info

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

Code changes from version 9.1.0 to 9.1.1

classes/class-get-products.php CHANGED
@@ -3000,23 +3000,24 @@ class WooSEA_Get_Products {
3000
  if((isset($project_config['lowest_price_variations'])) OR (isset($project_config['default_variations']))){
3001
 
3002
  // Determine the default variation product
3003
- $mother_product = wc_get_product($product_data['item_group_id']);
3004
- $def_attributes = $mother_product->get_default_attributes();
 
3005
 
3006
- if(isset($project_config['lowest_price_variations'])){
3007
 
3008
- // Determine lowest priced variation
3009
- $variation_min_price = $mother_product->get_variation_price('min');
3010
- $variation_min_price = wc_format_decimal($variation_min_price,2);
3011
- $variation_min_price = wc_format_localized_price($variation_min_price);
3012
 
3013
- if($product_data['system_net_price'] == $variation_min_price){
3014
- $variation_pass = "true";
3015
- } else {
3016
- $variation_pass = "false";
 
3017
  }
3018
  }
3019
-
3020
  // Get review rating and count for parent product
3021
  $product_data['rating_total'] = $mother_product->get_rating_count();
3022
  $product_data['rating_average'] = $mother_product->get_average_rating();
@@ -3382,7 +3383,7 @@ class WooSEA_Get_Products {
3382
  }
3383
  }
3384
 
3385
- // Check if the sale price is effective
3386
  if((strtotime($product_data['sale_price_start_date'])) AND (strtotime($product_data['sale_price_end_date']))){
3387
  $current_date = date('Y-m-d');
3388
  if(($current_date < $product_data['sale_price_start_date'])){
3000
  if((isset($project_config['lowest_price_variations'])) OR (isset($project_config['default_variations']))){
3001
 
3002
  // Determine the default variation product
3003
+ if($product_data['item_group_id'] > 0){
3004
+ $mother_product = wc_get_product($product_data['item_group_id']);
3005
+ $def_attributes = $mother_product->get_default_attributes();
3006
 
3007
+ if(isset($project_config['lowest_price_variations'])){
3008
 
3009
+ // Determine lowest priced variation
3010
+ $variation_min_price = $mother_product->get_variation_price('min');
3011
+ $variation_min_price = wc_format_decimal($variation_min_price,2);
3012
+ $variation_min_price = wc_format_localized_price($variation_min_price);
3013
 
3014
+ if($product_data['system_net_price'] == $variation_min_price){
3015
+ $variation_pass = "true";
3016
+ } else {
3017
+ $variation_pass = "false";
3018
+ }
3019
  }
3020
  }
 
3021
  // Get review rating and count for parent product
3022
  $product_data['rating_total'] = $mother_product->get_rating_count();
3023
  $product_data['rating_average'] = $mother_product->get_average_rating();
3383
  }
3384
  }
3385
 
3386
+ // Check if the sale price is effective
3387
  if((strtotime($product_data['sale_price_start_date'])) AND (strtotime($product_data['sale_price_end_date']))){
3388
  $current_date = date('Y-m-d');
3389
  if(($current_date < $product_data['sale_price_start_date'])){
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.0',
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.1',
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.0
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.0 (2020-11-15) =
325
  * Fixed an issue where the "Exclude from feeds" product feature did not fully work for CSV feeds (Thanks @Yana!)
326
 
@@ -2900,6 +2903,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2900
 
2901
  == Upgrade Notice ==
2902
 
 
 
 
2903
  = 9.1.0 =
2904
  Fixed an issue where the "Exclude from feeds" product feature did not fully work for CSV feeds
2905
 
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.1
9
 
10
  == Description ==
11
 
321
 
322
  === Changelog ===
323
 
324
+ = 9.1.1 (2020-11-15) =
325
+ * When simple products are switched to variable products WooCommerce leaves some "simple" traces in the database causing issues for our plugin. This has been solved now.
326
+
327
  = 9.1.0 (2020-11-15) =
328
  * Fixed an issue where the "Exclude from feeds" product feature did not fully work for CSV feeds (Thanks @Yana!)
329
 
2903
 
2904
  == Upgrade Notice ==
2905
 
2906
+ = 9.1.1 =
2907
+ When simple products are switched to variable products WooCommerce leaves some "simple" traces in the database causing issues for our plugin. This has been solved now.
2908
+
2909
  = 9.1.0 =
2910
  Fixed an issue where the "Exclude from feeds" product feature did not fully work for CSV feeds
2911
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 9.1.0
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.0' );
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.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, 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.1' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54