Product Feed PRO for WooCommerce - Version 11.4.8

Version Description

Implemented a rounding feature for WooCommerce bundled products

Download this release

Release Info

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

Code changes from version 11.4.7 to 11.4.8

classes/class-get-products.php CHANGED
@@ -2938,6 +2938,20 @@ class WooSEA_Get_Products {
2938
  $product_data['regular_price'] = get_post_meta($product_data['id'], '_regular_price', true);
2939
  $product_data['sale_price'] = get_post_meta($product_data['id'], '_sale_price', true);
2940
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2941
  if(is_numeric($tax_rates[1]['rate'])){
2942
  $rounded_price = floatval(get_post_meta($product_data['id'], '_price', true));
2943
  $rounded_sale_price = floatval(get_post_meta($product_data['id'], '_sale_price', true));
2938
  $product_data['regular_price'] = get_post_meta($product_data['id'], '_regular_price', true);
2939
  $product_data['sale_price'] = get_post_meta($product_data['id'], '_sale_price', true);
2940
 
2941
+ // make float when prices are strings
2942
+ $type = gettype($product_data['regular_price']);
2943
+ if($type == "string"){
2944
+ $product_data['price'] = floatval($product_data['price']);
2945
+ $product_data['regular_price'] = floatval($product_data['regular_price']);
2946
+ $product_data['sale_price'] = floatval($product_data['sale_price']);
2947
+ }
2948
+
2949
+ if(is_float($product_data['regular_price'])){
2950
+ $product_data['price'] = round($product_data['price'],2);
2951
+ $product_data['regular_price'] = round($product_data['regular_price'],2);
2952
+ $product_data['sale_price'] = round($product_data['sale_price'],2);
2953
+ }
2954
+
2955
  if(is_numeric($tax_rates[1]['rate'])){
2956
  $rounded_price = floatval(get_post_meta($product_data['id'], '_price', true));
2957
  $rounded_sale_price = floatval(get_post_meta($product_data['id'], '_sale_price', true));
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.7',
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.8',
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.7
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.7 (2022-03-28) =
346
  * Added two new fields to the Google Shopping template: Short title and Excluded countries for Shopping ads
347
 
@@ -3670,6 +3673,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3670
 
3671
  == Upgrade Notice ==
3672
 
 
 
 
3673
  = 11.4.7 =
3674
  Added two new fields to the Google Shopping template: Short title and Excluded countries for Shopping ads
3675
 
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.8
9
 
10
  == Description ==
11
 
342
 
343
  === Changelog ===
344
 
345
+ = 11.4.8 (2022-03-29) =
346
+ * Implemented a rounding feature for WooCommerce bundled products
347
+
348
  = 11.4.7 (2022-03-28) =
349
  * Added two new fields to the Google Shopping template: Short title and Excluded countries for Shopping ads
350
 
3673
 
3674
  == Upgrade Notice ==
3675
 
3676
+ = 11.4.8 =
3677
+ Implemented a rounding feature for WooCommerce bundled products
3678
+
3679
  = 11.4.7 =
3680
  Added two new fields to the Google Shopping template: Short title and Excluded countries for Shopping ads
3681
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.4.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, 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.7' );
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.8
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.8' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54