Product Feed PRO for WooCommerce - Version 9.2.1

Version Description

Fixed an issue where when no tax rates where defined the plugin showed a PHP warning when processing bundled products

Download this release

Release Info

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

Code changes from version 9.2.0 to 9.2.1

classes/class-get-products.php CHANGED
@@ -2453,9 +2453,15 @@ class WooSEA_Get_Products {
2453
  if($product->get_type() == "bundle"){
2454
  if ($this->woosea_is_plugin_active('woocommerce-product-bundles/woocommerce-product-bundles.php')){
2455
  $product_data['price'] = round(get_post_meta($product_data['id'], '_price', true));
2456
- $product_data['price_forced'] = round(get_post_meta($product_data['id'], '_price', true) * (100+$tax_rates[1]['rate'])/100,2);
 
 
 
 
 
 
 
2457
  $product_data['net_price'] = get_post_meta($product_data['id'], '_price', true);
2458
- $product_data['regular_price'] = round(get_post_meta($product_data['id'], '_regular_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2459
  $product_data['net_regular_price'] = get_post_meta($product_data['id'], '_regular_price', true);
2460
  if($product_data['price'] != $product_data['regular_price']){
2461
  $product_data['net_sale_price'] = get_post_meta($product_data['id'], '_sale_price', true);
2453
  if($product->get_type() == "bundle"){
2454
  if ($this->woosea_is_plugin_active('woocommerce-product-bundles/woocommerce-product-bundles.php')){
2455
  $product_data['price'] = round(get_post_meta($product_data['id'], '_price', true));
2456
+ if(is_numeric($tax_rates[1]['rate'])){
2457
+ $product_data['price_forced'] = round(get_post_meta($product_data['id'], '_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2458
+ $product_data['regular_price'] = round(get_post_meta($product_data['id'], '_regular_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2459
+ } else {
2460
+ $product_data['price_forced'] = $product_data['price'];
2461
+ $product_data['regular_price'] = $product_data['price'];
2462
+ }
2463
+
2464
  $product_data['net_price'] = get_post_meta($product_data['id'], '_price', true);
 
2465
  $product_data['net_regular_price'] = get_post_meta($product_data['id'], '_regular_price', true);
2466
  if($product_data['price'] != $product_data['regular_price']){
2467
  $product_data['net_sale_price'] = get_post_meta($product_data['id'], '_sale_price', true);
classes/class-update-channel.php CHANGED
@@ -61,7 +61,7 @@ class WooSEA_Update_Project {
61
  if(!empty($val)){
62
  if($val['project_hash'] === $project['project_hash']){
63
  $cron_projects[$key] = $project;
64
- update_option('cron_projects', $cron_projects, 'no');
65
  }
66
  }
67
  }
@@ -277,11 +277,11 @@ class WooSEA_Update_Project {
277
  } else {
278
  array_push($cron_projects, $project_data);
279
  }
280
- update_option( 'cron_projects', $cron_projects, 'no');
281
  } else {
282
  $cron_projects = array (); // Create a new multidimensional array for the cron projects
283
  array_push($cron_projects, $project_data);
284
- update_option( 'cron_projects', $cron_projects, 'no');
285
  }
286
 
287
  // Clear channel_project option
61
  if(!empty($val)){
62
  if($val['project_hash'] === $project['project_hash']){
63
  $cron_projects[$key] = $project;
64
+ update_option('cron_projects', $cron_projects);
65
  }
66
  }
67
  }
277
  } else {
278
  array_push($cron_projects, $project_data);
279
  }
280
+ update_option( 'cron_projects', $cron_projects);
281
  } else {
282
  $cron_projects = array (); // Create a new multidimensional array for the cron projects
283
  array_push($cron_projects, $project_data);
284
+ update_option( 'cron_projects', $cron_projects);
285
  }
286
 
287
  // Clear channel_project option
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.2.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.2.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.2.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.2.0 (2020-11-30) =
325
  * Option cron_projects set to autoload no as there is no need to have it autoloaded
326
 
@@ -2931,6 +2934,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2931
 
2932
  == Upgrade Notice ==
2933
 
 
 
 
2934
  = 9.2.0 =
2935
  Option cron_projects set to autoload no as there is no need to have it autoloaded
2936
 
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.2.1
9
 
10
  == Description ==
11
 
321
 
322
  === Changelog ===
323
 
324
+ = 9.2.1 (2020-12-01) =
325
+ * Fixed an issue where when no tax rates where defined the plugin showed a PHP warning when processing bundled products
326
+
327
  = 9.2.0 (2020-11-30) =
328
  * Option cron_projects set to autoload no as there is no need to have it autoloaded
329
 
2934
 
2935
  == Upgrade Notice ==
2936
 
2937
+ = 9.2.1 =
2938
+ Fixed an issue where when no tax rates where defined the plugin showed a PHP warning when processing bundled products
2939
+
2940
  = 9.2.0 =
2941
  Option cron_projects set to autoload no as there is no need to have it autoloaded
2942
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 9.2.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.2.0' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -1906,7 +1906,7 @@ function woosea_project_delete(){
1906
  unset($feed_config[$found_key]);
1907
 
1908
  # Update cron
1909
- update_option('cron_projects', $feed_config, 'no');
1910
 
1911
  # Remove project file
1912
  @unlink($file);
@@ -1938,7 +1938,7 @@ function woosea_project_cancel(){
1938
  wp_schedule_single_event( time() + 60, 'woosea_update_project_stats', array($val['project_hash']) );
1939
  }
1940
  }
1941
- update_option( 'cron_projects', $feed_config, 'no');
1942
  }
1943
  add_action( 'wp_ajax_woosea_project_cancel', 'woosea_project_cancel' );
1944
 
@@ -2022,7 +2022,7 @@ function woosea_project_copy(){
2022
  $new_key = $max_key+1;
2023
  $add_project[$new_key] = $val;
2024
  array_push($feed_config, $add_project[$new_key]);
2025
- update_option( 'cron_projects', $feed_config, 'no');
2026
 
2027
  // Do not start processing, user wants to make changes to the copied project
2028
  $copy_status = "true";
@@ -2136,7 +2136,7 @@ function woosea_project_status() {
2136
  }
2137
 
2138
  // Update cron with new project status
2139
- update_option( 'cron_projects', $feed_config, 'no');
2140
  }
2141
  add_action( 'wp_ajax_woosea_project_status', 'woosea_project_status' );
2142
 
@@ -3820,7 +3820,7 @@ function woosea_update_project_history($project_hash){
3820
  }
3821
  }
3822
  }
3823
- update_option( 'cron_projects', $feed_config, 'no');
3824
  }
3825
  }
3826
  }
@@ -4319,7 +4319,7 @@ function woosea_last_updated($project_hash){
4319
  }
4320
  }
4321
 
4322
- update_option( 'cron_projects', $feed_config,'no');
4323
  return $last_updated;
4324
  }
4325
 
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 9.2.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.2.1' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
1906
  unset($feed_config[$found_key]);
1907
 
1908
  # Update cron
1909
+ update_option('cron_projects', $feed_config);
1910
 
1911
  # Remove project file
1912
  @unlink($file);
1938
  wp_schedule_single_event( time() + 60, 'woosea_update_project_stats', array($val['project_hash']) );
1939
  }
1940
  }
1941
+ update_option( 'cron_projects', $feed_config);
1942
  }
1943
  add_action( 'wp_ajax_woosea_project_cancel', 'woosea_project_cancel' );
1944
 
2022
  $new_key = $max_key+1;
2023
  $add_project[$new_key] = $val;
2024
  array_push($feed_config, $add_project[$new_key]);
2025
+ update_option( 'cron_projects', $feed_config);
2026
 
2027
  // Do not start processing, user wants to make changes to the copied project
2028
  $copy_status = "true";
2136
  }
2137
 
2138
  // Update cron with new project status
2139
+ update_option( 'cron_projects', $feed_config);
2140
  }
2141
  add_action( 'wp_ajax_woosea_project_status', 'woosea_project_status' );
2142
 
3820
  }
3821
  }
3822
  }
3823
+ update_option( 'cron_projects', $feed_config);
3824
  }
3825
  }
3826
  }
4319
  }
4320
  }
4321
 
4322
+ update_option( 'cron_projects', $feed_config);
4323
  return $last_updated;
4324
  }
4325