Product Feed PRO for WooCommerce - Version 11.4.6

Version Description

The WooCommerce Composite plugin returned sale prices of 0.00. When this happens our plugin removes that sale price from the feeds

Download this release

Release Info

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

Code changes from version 11.4.5 to 11.4.6

classes/class-get-products.php CHANGED
@@ -2969,7 +2969,12 @@ class WooSEA_Get_Products {
2969
  if($product_data['price'] != $product_data['regular_price']){
2970
  $product_data['sale_price'] = $product->get_composite_price();
2971
  $product_data['sale_price_forced'] = $product->get_composite_price_including_tax();
2972
- }
 
 
 
 
 
2973
  }
2974
  }
2975
  }
@@ -3378,7 +3383,9 @@ class WooSEA_Get_Products {
3378
  $product_data['vivino_regular_price'] = floatval(str_replace(',', '.', str_replace(',', '.', $product_data['regular_price'])));
3379
  if($product_data['sale_price'] > 0){
3380
  $product_data['vivino_sale_price'] = floatval(str_replace(',', '.', str_replace(',', '.', $product_data['sale_price'])));
3381
- $product_data['vivino_net_sale_price'] = floatval(str_replace(',', '.', str_replace(',', '.', $product_data['net_sale_price'])));
 
 
3382
  }
3383
  $product_data['vivino_net_price'] = floatval(str_replace(',', '.', str_replace(',', '.', $product_data['net_price'])));
3384
  if(isset($product_data['net_regular_price'])){
2969
  if($product_data['price'] != $product_data['regular_price']){
2970
  $product_data['sale_price'] = $product->get_composite_price();
2971
  $product_data['sale_price_forced'] = $product->get_composite_price_including_tax();
2972
+ }
2973
+
2974
+ // Unset sale price when it is 0.00
2975
+ if($product_data['sale_price'] == "0.00"){
2976
+ unset($product_data['sale_price']);
2977
+ }
2978
  }
2979
  }
2980
  }
3383
  $product_data['vivino_regular_price'] = floatval(str_replace(',', '.', str_replace(',', '.', $product_data['regular_price'])));
3384
  if($product_data['sale_price'] > 0){
3385
  $product_data['vivino_sale_price'] = floatval(str_replace(',', '.', str_replace(',', '.', $product_data['sale_price'])));
3386
+ if(isset($product_data['net_sale_price'])){
3387
+ $product_data['vivino_net_sale_price'] = floatval(str_replace(',', '.', str_replace(',', '.', $product_data['net_sale_price'])));
3388
+ }
3389
  }
3390
  $product_data['vivino_net_price'] = floatval(str_replace(',', '.', str_replace(',', '.', $product_data['net_price'])));
3391
  if(isset($product_data['net_regular_price'])){
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.4.5',
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.4.6',
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.4.5
9
 
10
  == Description ==
11
 
@@ -342,6 +342,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
342
 
343
  === Changelog ===
344
 
 
 
 
345
  = 11.4.5 (2022-03-22) =
346
  * Reverting the rounding on two decimals for bundled products as WooCommerce is not always returning int|float values
347
 
@@ -3664,6 +3667,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3664
 
3665
  == Upgrade Notice ==
3666
 
 
 
 
3667
  = 11.4.5 =
3668
  Reverting the rounding on two decimals for bundled products as WooCommerce is not always returning int|float values
3669
 
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.4.6
9
 
10
  == Description ==
11
 
342
 
343
  === Changelog ===
344
 
345
+ = 11.4.6 (2022-03-23) =
346
+ * The WooCommerce Composite plugin returned sale prices of 0.00. When this happens our plugin removes that sale price from the feeds
347
+
348
  = 11.4.5 (2022-03-22) =
349
  * Reverting the rounding on two decimals for bundled products as WooCommerce is not always returning int|float values
350
 
3667
 
3668
  == Upgrade Notice ==
3669
 
3670
+ = 11.4.6 =
3671
+ The WooCommerce Composite plugin returned sale prices of 0.00. When this happens our plugin removes that sale price from the feeds
3672
+
3673
  = 11.4.5 =
3674
  Reverting the rounding on two decimals for bundled products as WooCommerce is not always returning int|float values
3675
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.4.5
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.4.5' );
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.4.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, 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.4.6' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54