Product Feed PRO for WooCommerce - Version 9.2.2

Version Description

Solved a PHP warning notification that showed on the manage feeds page when a user did not create any WooCommerce custom attributes Solved a Facebook pixel price localization issue for the AddToCart and Purchase event

Download this release

Release Info

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

Code changes from version 9.2.1 to 9.2.2

classes/class-get-products.php CHANGED
@@ -1413,7 +1413,9 @@ class WooSEA_Get_Products {
1413
  $proper_order = array("product_name","gtin","mpn","sku","brand","product_url","review_url","reviews");
1414
  $order_sorted = array();
1415
  foreach ($proper_order as &$order_value){
1416
- $order_sorted[$order_value] = $value[$order_value];
 
 
1417
  }
1418
  // End
1419
 
@@ -3954,7 +3956,6 @@ class WooSEA_Get_Products {
3954
  $tmp_file = $path . "/" . sanitize_file_name($feed_config[$key]['filename']) . "_tmp." . $feed_config[$key]['fileformat'];
3955
  $new_file = $path . "/" . sanitize_file_name($feed_config[$key]['filename']) . "." . $feed_config[$key]['fileformat'];
3956
 
3957
-
3958
  if (!copy($tmp_file, $new_file)) {
3959
  error_log("Copy of file failed");
3960
  } else {
1413
  $proper_order = array("product_name","gtin","mpn","sku","brand","product_url","review_url","reviews");
1414
  $order_sorted = array();
1415
  foreach ($proper_order as &$order_value){
1416
+ if(isset($value[$order_value])){
1417
+ $order_sorted[$order_value] = $value[$order_value];
1418
+ }
1419
  }
1420
  // End
1421
 
3956
  $tmp_file = $path . "/" . sanitize_file_name($feed_config[$key]['filename']) . "_tmp." . $feed_config[$key]['fileformat'];
3957
  $new_file = $path . "/" . sanitize_file_name($feed_config[$key]['filename']) . "." . $feed_config[$key]['fileformat'];
3958
 
 
3959
  if (!copy($tmp_file, $new_file)) {
3960
  error_log("Copy of file failed");
3961
  } else {
js/woosea_key.js CHANGED
@@ -27,7 +27,7 @@ jQuery(document).ready(function($) {
27
  var license_key = $('#license-key').val();
28
 
29
  jQuery.ajax({
30
- url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=9.2.1',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
27
  var license_key = $('#license-key').val();
28
 
29
  jQuery.ajax({
30
+ url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=9.2.2',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
readme.txt CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
5
  Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
6
  Requires at least: 4.5
7
  Tested up to: 5.5
8
- Stable tag: 9.2.1
9
 
10
  == Description ==
11
 
@@ -321,6 +321,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
321
 
322
  === Changelog ===
323
 
 
 
 
 
324
  = 9.2.1 (2020-12-01) =
325
  * Fixed an issue where when no tax rates where defined the plugin showed a PHP warning when processing bundled products
326
 
@@ -2934,6 +2938,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2934
 
2935
  == Upgrade Notice ==
2936
 
 
 
 
 
2937
  = 9.2.1 =
2938
  Fixed an issue where when no tax rates where defined the plugin showed a PHP warning when processing bundled products
2939
 
5
  Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
6
  Requires at least: 4.5
7
  Tested up to: 5.5
8
+ Stable tag: 9.2.2
9
 
10
  == Description ==
11
 
321
 
322
  === Changelog ===
323
 
324
+ = 9.2.2 (2020-12-02) =
325
+ * Solved a PHP warning notification that showed on the manage feeds page when a user did not create any WooCommerce custom attributes
326
+ * Solved a Facebook pixel price localization issue for the AddToCart and Purchase event
327
+
328
  = 9.2.1 (2020-12-01) =
329
  * Fixed an issue where when no tax rates where defined the plugin showed a PHP warning when processing bundled products
330
 
2938
 
2939
  == Upgrade Notice ==
2940
 
2941
+ = 9.2.2 =
2942
+ Solved a PHP warning notification that showed on the manage feeds page when a user did not create any WooCommerce custom attributes
2943
+ Solved a Facebook pixel price localization issue for the AddToCart and Purchase event
2944
+
2945
  = 9.2.1 =
2946
  Fixed an issue where when no tax rates where defined the plugin showed a PHP warning when processing bundled products
2947
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 9.2.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, 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', '9.2.1' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -377,10 +377,10 @@ function woosea_add_facebook_pixel( $product = null ){
377
  $highest = end( $prices['price'] );
378
 
379
  if ( $lowest === $highest ) {
380
- $fb_price = wc_format_decimal( $lowest, wc_get_price_decimals() );
381
  } else {
382
- $fb_lowprice = wc_format_decimal( $lowest, wc_get_price_decimals() );
383
- $fb_highprice = wc_format_decimal( $highest, wc_get_price_decimals() );
384
  $fb_price = $fb_lowprice;
385
  }
386
  }
@@ -409,17 +409,17 @@ function woosea_add_facebook_pixel( $product = null ){
409
  $highest = end( $prices['price'] );
410
 
411
  if ( $lowest === $highest ) {
412
- $fb_price = wc_format_decimal( $lowest, wc_get_price_decimals());
413
  } else {
414
- $fb_lowprice = wc_format_decimal( $lowest, wc_get_price_decimals() );
415
- $fb_highprice = wc_format_decimal( $highest, wc_get_price_decimals() );
416
  $fb_price = $fb_lowprice;
417
  }
418
  $viewContent = "fbq(\"track\",\"ViewContent\",{content_category:\"$cats\", content_name:\"$product_name\", content_type:\"product_group\", content_ids:[$content], value:\"$fb_price\", currency:\"$currency\"});";
419
  }
420
  } else {
421
  // This is a simple product page
422
- $fb_price = wc_format_decimal( $product->get_price(), wc_get_price_decimals() );
423
  $viewContent = "fbq(\"track\",\"ViewContent\",{content_category:\"$cats\", content_name:\"$product_name\", content_type:\"product\", content_ids:[\"$fb_prodid\"], value:\"$fb_price\", currency:\"$currency\"});";
424
  }
425
  }
@@ -445,10 +445,11 @@ function woosea_add_facebook_pixel( $product = null ){
445
  }
446
 
447
  $prod_quantity = $order_item->get_quantity();
448
- $order_total = $order_item->get_total();
449
- $order_subtotal = number_format(($order_item->get_subtotal()),2, '.', '');
450
- $order_subtotal_tax= number_format(($order_item->get_subtotal_tax()),2, '.', '');
451
- $order_real = number_format(($order_subtotal+$order_subtotal_tax+$order_real),2,',','');
 
452
  $contents .= "{'id': '$prod_id', 'quantity': $prod_quantity},";
453
  }
454
  }
@@ -473,12 +474,14 @@ function woosea_add_facebook_pixel( $product = null ){
473
  $prod_id = $cart_item['variation_id'];
474
  }
475
  $contents .= '\''.$prod_id.'\',';
476
- //$contents .= "$prod_id,";
477
- $line_total = number_format(($cart_item['line_total']),2, '.','');
478
- $line_tax = number_format(($cart_item['line_tax']),2, '.','');
479
- $cart_real = number_format($cart_real,2, '.','');
480
- $cart_real = number_format(($line_total+$line_tax+$cart_real),2,',','');
481
-
 
 
482
  }
483
  $contents = rtrim($contents, ",");
484
 
@@ -556,7 +559,7 @@ function woosea_add_facebook_pixel( $product = null ){
556
  $viewContent = "";
557
  }
558
  ?>
559
- <!-- Facebook Pixel Code added Product Feed Pro for WooCommerce by AdTribes.io -->
560
  <!------------------------------------------------------------------------------
561
  Make sure the g:id value in your Facebook catalogue feed matched with
562
  the content of the content_ids parameter in the Facebook Pixel Code
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 9.2.2
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, 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', '9.2.2' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
377
  $highest = end( $prices['price'] );
378
 
379
  if ( $lowest === $highest ) {
380
+ $fb_price = wc_format_localized_price( $lowest );
381
  } else {
382
+ $fb_lowprice = wc_format_localized_price( $lowest );
383
+ $fb_highprice = wc_format_localized_price( $highest );
384
  $fb_price = $fb_lowprice;
385
  }
386
  }
409
  $highest = end( $prices['price'] );
410
 
411
  if ( $lowest === $highest ) {
412
+ $fb_price = wc_format_localized_price( $lowest );
413
  } else {
414
+ $fb_lowprice = wc_format_localized_price( $lowest );
415
+ $fb_highprice = wc_format_localized_price( $highest );
416
  $fb_price = $fb_lowprice;
417
  }
418
  $viewContent = "fbq(\"track\",\"ViewContent\",{content_category:\"$cats\", content_name:\"$product_name\", content_type:\"product_group\", content_ids:[$content], value:\"$fb_price\", currency:\"$currency\"});";
419
  }
420
  } else {
421
  // This is a simple product page
422
+ $fb_price = wc_format_localized_price( $product->get_price() );
423
  $viewContent = "fbq(\"track\",\"ViewContent\",{content_category:\"$cats\", content_name:\"$product_name\", content_type:\"product\", content_ids:[\"$fb_prodid\"], value:\"$fb_price\", currency:\"$currency\"});";
424
  }
425
  }
445
  }
446
 
447
  $prod_quantity = $order_item->get_quantity();
448
+ $order_real = wc_format_localized_price( $order_item->get_total() );
449
+
450
+ // $order_subtotal = number_format(($order_item->get_subtotal()),2, '.', '');
451
+ // $order_subtotal_tax= number_format(($order_item->get_subtotal_tax()),2, '.', '');
452
+ // $order_real = number_format(($order_subtotal+$order_subtotal_tax+$order_real),2,',','');
453
  $contents .= "{'id': '$prod_id', 'quantity': $prod_quantity},";
454
  }
455
  }
474
  $prod_id = $cart_item['variation_id'];
475
  }
476
  $contents .= '\''.$prod_id.'\',';
477
+ //$contents .= "$prod_id,";
478
+
479
+ $cart_real = wc_format_localized_price( $cart_item['line_total'] );
480
+
481
+ // $line_total = number_format(($cart_item['line_total']),2, '.','');
482
+ // $line_tax = number_format(($cart_item['line_tax']),2, '.','');
483
+ // $cart_real = number_format($cart_real,2, '.','');
484
+ // $cart_real = number_format(($line_total+$line_tax+$cart_real),2,',','');
485
  }
486
  $contents = rtrim($contents, ",");
487
 
559
  $viewContent = "";
560
  }
561
  ?>
562
+ <!-- Facebook Pixel Code - Product Feed Pro for WooCommerce by AdTribes.io -->
563
  <!------------------------------------------------------------------------------
564
  Make sure the g:id value in your Facebook catalogue feed matched with
565
  the content of the content_ids parameter in the Facebook Pixel Code