Product Feed PRO for WooCommerce - Version 11.5.1

Version Description

Fixed a multiply issue for price, regular price and sale price attributes that used a komma as decimal separator

Download this release

Release Info

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

Code changes from version 11.5.0 to 11.5.1

classes/class-get-products.php CHANGED
@@ -2934,6 +2934,7 @@ class WooSEA_Get_Products {
2934
 
2935
  $fullrate = 100+$tax_rates[1]['rate'];
2936
 
 
2937
  // Override price when bundled or composite product
2938
  if(($product->get_type() == "bundle") OR ($product->get_type() == "composite")){
2939
  $meta = get_post_meta($product_data['id']);
@@ -5347,7 +5348,6 @@ class WooSEA_Get_Products {
5347
  $pd_value = strtr($pd_value, ',', '.');
5348
  }
5349
 
5350
-
5351
  // Make sure the price or sale price is numeric
5352
  if(($pr_array['attribute'] == "sale_price") OR ($pr_array['attribute'] == "price")){
5353
  settype($pd_value, "double");
@@ -5406,20 +5406,28 @@ class WooSEA_Get_Products {
5406
  }
5407
  }
5408
  break;
5409
- case($pr_array['condition'] = "multiply"):
5410
  $pr_array['criteria'] = strtr($pr_array['criteria'], ',', '.');
5411
  $convert_back = "false";
5412
  $pos = strpos($pd_value, ',');
5413
  if($pos !== false){
5414
- $convert_back = "true";
5415
  }
5416
  $pd_value = strtr($pd_value, ',', '.');
5417
  $newvalue = $pd_value*$pr_array['criteria'];
5418
  $newvalue = round($newvalue, 2);
5419
- if($convert_back == "true"){
5420
  $newvalue = strtr($newvalue, '.',',');
5421
- }
5422
- $product_data[$pr_array['attribute']] = $newvalue;
 
 
 
 
 
 
 
 
5423
  break;
5424
  case($pr_array['condition'] = "divide"):
5425
  $newvalue = ($pd_value / $pr_array['criteria']);
2934
 
2935
  $fullrate = 100+$tax_rates[1]['rate'];
2936
 
2937
+
2938
  // Override price when bundled or composite product
2939
  if(($product->get_type() == "bundle") OR ($product->get_type() == "composite")){
2940
  $meta = get_post_meta($product_data['id']);
5348
  $pd_value = strtr($pd_value, ',', '.');
5349
  }
5350
 
 
5351
  // Make sure the price or sale price is numeric
5352
  if(($pr_array['attribute'] == "sale_price") OR ($pr_array['attribute'] == "price")){
5353
  settype($pd_value, "double");
5406
  }
5407
  }
5408
  break;
5409
+ case($pr_array['condition'] = "multiply"):
5410
  $pr_array['criteria'] = strtr($pr_array['criteria'], ',', '.');
5411
  $convert_back = "false";
5412
  $pos = strpos($pd_value, ',');
5413
  if($pos !== false){
5414
+ $convert_back = "true";
5415
  }
5416
  $pd_value = strtr($pd_value, ',', '.');
5417
  $newvalue = $pd_value*$pr_array['criteria'];
5418
  $newvalue = round($newvalue, 2);
5419
+ if($convert_back == "true"){
5420
  $newvalue = strtr($newvalue, '.',',');
5421
+ }
5422
+
5423
+ $decimal_separator = wc_get_price_decimal_separator();
5424
+ $price_array = array("price", "regular_price", "sale_price");
5425
+ if(in_array($pr_array['attribute'], $price_array, TRUE)){
5426
+ if($decimal_separator == ","){
5427
+ $newvalue = strtr($newvalue, '.', ',');
5428
+ }
5429
+ }
5430
+ $product_data[$pr_array['attribute']] = $newvalue;
5431
  break;
5432
  case($pr_array['condition'] = "divide"):
5433
  $newvalue = ($pd_value / $pr_array['criteria']);
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.5.0',
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.5.1',
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.5.0
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.5.0 (2022-04-04) =
346
  * Added the Glami templates for Slovakia and the Czech Republic
347
 
@@ -3679,6 +3682,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3679
 
3680
  == Upgrade Notice ==
3681
 
 
 
 
3682
  = 11.5.0 =
3683
  Added the Glami templates for Slovakia and the Czech Republic
3684
 
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.5.1
9
 
10
  == Description ==
11
 
342
 
343
  === Changelog ===
344
 
345
+ = 11.5.1 (2022-04-07) =
346
+ * Fixed a multiply issue for price, regular price and sale price attributes that used a komma as decimal separator
347
+
348
  = 11.5.0 (2022-04-04) =
349
  * Added the Glami templates for Slovakia and the Czech Republic
350
 
3682
 
3683
  == Upgrade Notice ==
3684
 
3685
+ = 11.5.1 =
3686
+ Fixed a multiply issue for price, regular price and sale price attributes that used a komma as decimal separator
3687
+
3688
  = 11.5.0 =
3689
  Added the Glami templates for Slovakia and the Czech Republic
3690
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.5.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,7 +48,7 @@ if (!defined('ABSPATH')) {
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
- define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '11.5.0' );
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.5.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, 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.5.1' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54