Product Feed PRO for WooCommerce - Version 11.4.0

Version Description

Added encoding for percentage characters Fixed a rounding error which one does on strings instead of int|floats

Download this release

Release Info

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

Code changes from version 11.3.9 to 11.4.0

classes/class-get-products.php CHANGED
@@ -47,7 +47,7 @@ class WooSEA_Get_Products {
47
  $string = str_replace("\r", '', $string); // --- replace with empty space
48
  $string = str_replace("\n", ' ', $string); // --- replace with space
49
  $string = str_replace("\t", ' ', $string); // --- replace with space
50
- $string = str_replace("%", ' ', $string); // --- replace with space
51
 
52
  // ----- remove multiple spaces -----
53
  $string = trim(preg_replace('/ {2,}/', ' ', $string));
@@ -2964,7 +2964,7 @@ class WooSEA_Get_Products {
2964
  $product_data['price_forced'] = $product->get_composite_price_including_tax();
2965
  $product_data['regular_price'] = $product->get_composite_regular_price();
2966
  $product_data['regular_price_forced'] = $product->get_composite_regular_price_including_tax();
2967
-
2968
  if($product_data['price'] != $product_data['regular_price']){
2969
  $product_data['sale_price'] = $product->get_composite_price();
2970
  $product_data['sale_price_forced'] = $product->get_composite_price_including_tax();
@@ -3198,7 +3198,7 @@ class WooSEA_Get_Products {
3198
  }
3199
  if($product->get_regular_price()){
3200
  $product_data['regular_price_forced'] = wc_format_localized_price($product_data['regular_price_forced']);
3201
- //$product_data['regular_price_forced'] = (float)$product_data['regular_price_forced'];
3202
  //$product_data['regular_price_forced_rounded'] = round($product_data['regular_price_forced'],0);
3203
  }
3204
  if($product->get_sale_price()){
47
  $string = str_replace("\r", '', $string); // --- replace with empty space
48
  $string = str_replace("\n", ' ', $string); // --- replace with space
49
  $string = str_replace("\t", ' ', $string); // --- replace with space
50
+ $string = str_replace("%", '%25', $string); // --- replace with space
51
 
52
  // ----- remove multiple spaces -----
53
  $string = trim(preg_replace('/ {2,}/', ' ', $string));
2964
  $product_data['price_forced'] = $product->get_composite_price_including_tax();
2965
  $product_data['regular_price'] = $product->get_composite_regular_price();
2966
  $product_data['regular_price_forced'] = $product->get_composite_regular_price_including_tax();
2967
+
2968
  if($product_data['price'] != $product_data['regular_price']){
2969
  $product_data['sale_price'] = $product->get_composite_price();
2970
  $product_data['sale_price_forced'] = $product->get_composite_price_including_tax();
3198
  }
3199
  if($product->get_regular_price()){
3200
  $product_data['regular_price_forced'] = wc_format_localized_price($product_data['regular_price_forced']);
3201
+ //$product_data['regular_price_forced'] = (float)$product_data['regular_price_forced'];
3202
  //$product_data['regular_price_forced_rounded'] = round($product_data['regular_price_forced'],0);
3203
  }
3204
  if($product->get_sale_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.9',
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.0',
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.9
9
 
10
  == Description ==
11
 
@@ -337,6 +337,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
337
 
338
  === Changelog ===
339
 
 
 
 
 
340
  = 11.3.9 (2022-03-10) =
341
  * Checked for compatibility with WooCommerce 6.3
342
  * Fixed a rounding error which one does on strings instead of int|floats
@@ -3639,6 +3643,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3639
 
3640
  == Upgrade Notice ==
3641
 
 
 
 
 
3642
  = 11.3.9 =
3643
  Checked for compatibility with WooCommerce 6.3
3644
  Fixed a rounding error which one does on strings instead of int|floats
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.0
9
 
10
  == Description ==
11
 
337
 
338
  === Changelog ===
339
 
340
+ = 11.4.0 (2022-03-14) =
341
+ * Added encoding for percentage characters
342
+ * Fixed a rounding error which one does on strings instead of int|floats
343
+
344
  = 11.3.9 (2022-03-10) =
345
  * Checked for compatibility with WooCommerce 6.3
346
  * Fixed a rounding error which one does on strings instead of int|floats
3643
 
3644
  == Upgrade Notice ==
3645
 
3646
+ = 11.4.0 =
3647
+ Added encoding for percentage characters
3648
+ Fixed a rounding error which one does on strings instead of int|floats
3649
+
3650
  = 11.3.9 =
3651
  Checked for compatibility with WooCommerce 6.3
3652
  Fixed a rounding error which one does on strings instead of int|floats
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.3.9
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.9' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -1409,7 +1409,7 @@ function woosea_product_delete_meta_price( $product = null ) {
1409
  // variation product. That is why we also put this in the JSON
1410
  // When there are no parameters in the URL (so for normal users, not coming via Google Shopping URL's) show the old WooCommwerce JSON
1411
  $product_price = wc_get_price_to_display($product);
1412
- if(!is_string){
1413
  $product_price = round($product_price,2);
1414
  }
1415
 
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 11.4.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, 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.0' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
1409
  // variation product. That is why we also put this in the JSON
1410
  // When there are no parameters in the URL (so for normal users, not coming via Google Shopping URL's) show the old WooCommwerce JSON
1411
  $product_price = wc_get_price_to_display($product);
1412
+ if(!is_string($product_price)){
1413
  $product_price = round($product_price,2);
1414
  }
1415