Product Feed PRO for WooCommerce - Version 11.3.6

Version Description

Fixed a floatval issue that occured when calculating prices for bundled products

Download this release

Release Info

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

Code changes from version 11.3.5 to 11.3.6

classes/class-get-products.php CHANGED
@@ -2937,10 +2937,14 @@ class WooSEA_Get_Products {
2937
  $product_data['price'] = get_post_meta($product_data['id'], '_price', true);
2938
  $product_data['sale_price'] = get_post_meta($product_data['id'], '_sale_price', true);
2939
 
2940
- if(is_numeric($tax_rates[1]['rate'])){
2941
- $product_data['price'] = round(get_post_meta($product_data['id'], '_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2942
- $product_data['sale_price'] = round(get_post_meta($product_data['id'], '_sale_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2943
- $product_data['regular_price'] = round(get_post_meta($product_data['id'], '_regular_price', true) * (100+$tax_rates[1]['rate'])/100,2);
 
 
 
 
2944
  } else {
2945
  $product_data['price_forced'] = $product_data['price'];
2946
  $product_data['regular_price'] = $product_data['price'];
2937
  $product_data['price'] = get_post_meta($product_data['id'], '_price', true);
2938
  $product_data['sale_price'] = get_post_meta($product_data['id'], '_sale_price', true);
2939
 
2940
+ if(is_numeric($tax_rates[1]['rate'])){
2941
+ $rounded_price = floatval(get_post_meta($product_data['id'], '_price', true));
2942
+ $rounded_sale_price = floatval(get_post_meta($product_data['id'], '_sale_price', true));
2943
+ $rounded_regular_price = floatval(get_post_meta($product_data['id'], '_regular_price', true));
2944
+
2945
+ $product_data['price'] = round($rounded_price * (100+$tax_rates[1]['rate'])/100,2);
2946
+ $product_data['sale_price'] = round($rounded_sale_price * (100+$tax_rates[1]['rate'])/100,2);
2947
+ $product_data['regular_price'] = round($rounded_regular_price * (100+$tax_rates[1]['rate'])/100,2);
2948
  } else {
2949
  $product_data['price_forced'] = $product_data['price'];
2950
  $product_data['regular_price'] = $product_data['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.3.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.3.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.3.5
9
 
10
  == Description ==
11
 
@@ -337,6 +337,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
337
 
338
  === Changelog ===
339
 
 
 
 
340
  = 11.3.5 (2022-02-23) =
341
  * Fixed an issue with the deduplication counters
342
 
@@ -3626,6 +3629,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3626
 
3627
  == Upgrade Notice ==
3628
 
 
 
 
3629
  = 11.3.5 =
3630
  Fixed an issue with the deduplication counters
3631
 
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.3.6
9
 
10
  == Description ==
11
 
337
 
338
  === Changelog ===
339
 
340
+ = 11.3.6 (2022-02-24) =
341
+ * Fixed a floatval issue that occured when calculating prices for bundled products
342
+
343
  = 11.3.5 (2022-02-23) =
344
  * Fixed an issue with the deduplication counters
345
 
3629
 
3630
  == Upgrade Notice ==
3631
 
3632
+ = 11.3.6 =
3633
+ Fixed a floatval issue that occured when calculating prices for bundled products
3634
+
3635
  = 11.3.5 =
3636
  Fixed an issue with the deduplication counters
3637
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.3.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.3.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.3.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.3.6' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54