Product Feed PRO for WooCommerce - Version 8.1.1

Version Description

Fixed several bugs in the Fruugo.nl templating

Download this release

Release Info

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

Code changes from version 8.1.0 to 8.1.1

classes/class-get-products.php CHANGED
@@ -1423,6 +1423,8 @@ class WooSEA_Get_Products {
1423
  $product = $xml->addChild('Offer');
1424
  } elseif ($feed_config['name'] == "Pinterest RSS Board") {
1425
  $product = $xml->channel->addChild('item');
 
 
1426
  } elseif ($feed_config['name'] == "Google Product Review") {
1427
 
1428
  } else {
@@ -1554,6 +1556,25 @@ class WooSEA_Get_Products {
1554
  $productp = $product->addChild($p,$v);
1555
  $productp->addAttribute('name', $pieces[1]);
1556
  } elseif ($feed_config['name'] == "Google Product Review") {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1557
  } else {
1558
  if(is_object($product)){
1559
  $product->addChild("$k");
@@ -2892,6 +2913,7 @@ class WooSEA_Get_Products {
2892
  /**
2893
  * Get Custom Attributes for this variable product
2894
  */
 
2895
  $custom_attributes = $this->get_custom_attributes( $product_data['id'] );
2896
 
2897
  if(!in_array("woosea optimized title", $custom_attributes)){
@@ -2970,14 +2992,29 @@ class WooSEA_Get_Products {
2970
  if(!array_key_exists($custom_kk_m, $product_data)){
2971
  $custom_value_m = get_post_meta( $product_data['item_group_id'], $custom_kk_m, true );
2972
  $new_key_m ="custom_attributes_" . $custom_kk_m;
2973
- // In order to make the mapping work again, replace var by product
2974
- $new_key_m = str_replace("var","product",$new_key_m);
2975
- if(!key_exists($new_key_m, $product_data) AND (!empty($custom_value_m))){
2976
- if(is_array($custom_value_m)){
2977
- // determine what to do with this later
2978
- } else {
2979
- $product_data[$new_key_m] = $custom_value_m;
 
 
 
 
 
 
 
 
 
 
 
 
 
2980
  }
 
 
2981
  }
2982
  }
2983
  }
1423
  $product = $xml->addChild('Offer');
1424
  } elseif ($feed_config['name'] == "Pinterest RSS Board") {
1425
  $product = $xml->channel->addChild('item');
1426
+ } elseif ($feed_config['name'] == "Fruugo.nl") {
1427
+ $product = $xml->addChild('Product');
1428
  } elseif ($feed_config['name'] == "Google Product Review") {
1429
 
1430
  } else {
1556
  $productp = $product->addChild($p,$v);
1557
  $productp->addAttribute('name', $pieces[1]);
1558
  } elseif ($feed_config['name'] == "Google Product Review") {
1559
+
1560
+ } elseif ($feed_config['name'] == "Fruugo.nl") {
1561
+ $desc_arr = array('Language','Title','Description');
1562
+ $price_arr = array('Currency','NormalPriceWithoutVAT','NormalPriceWithVAT','VATRate');
1563
+
1564
+ if(in_array($k, $desc_arr)){
1565
+ if(!isset($product->Description)){
1566
+ $productd = $product->addChild('Description');
1567
+ }
1568
+ $productd->$k = $v;
1569
+ } elseif (in_array($k, $price_arr)){
1570
+ if(!isset($product->Price)){
1571
+ $productp = $product->addChild('Price');
1572
+ }
1573
+ $productp->$k = $v;
1574
+ } else {
1575
+ $product->addChild("$k");
1576
+ $product->$k = $v;
1577
+ }
1578
  } else {
1579
  if(is_object($product)){
1580
  $product->addChild("$k");
2913
  /**
2914
  * Get Custom Attributes for this variable product
2915
  */
2916
+
2917
  $custom_attributes = $this->get_custom_attributes( $product_data['id'] );
2918
 
2919
  if(!in_array("woosea optimized title", $custom_attributes)){
2992
  if(!array_key_exists($custom_kk_m, $product_data)){
2993
  $custom_value_m = get_post_meta( $product_data['item_group_id'], $custom_kk_m, true );
2994
  $new_key_m ="custom_attributes_" . $custom_kk_m;
2995
+
2996
+ if(!is_array($custom_value_m)){
2997
+ // In order to make the mapping work again, replace var by product
2998
+ $new_key_m = str_replace("var","product",$new_key_m);
2999
+ if(!key_exists($new_key_m, $product_data) AND (!empty($custom_value_m))){
3000
+ if(is_array($custom_value_m)){
3001
+ // determine what to do with this later
3002
+ } else {
3003
+ $product_data[$new_key_m] = $custom_value_m;
3004
+ }
3005
+ }
3006
+ } else {
3007
+ $arr_value = "";
3008
+ foreach($custom_value_m as $key => $value){
3009
+ // not for multidimensional arrays
3010
+ if(!is_array($value)){
3011
+ if(!is_array($value)){
3012
+ $arr_value .= $value .",";
3013
+ }
3014
+ }
3015
  }
3016
+ $arr_value = rtrim($arr_value, ",");
3017
+ $product_data[$new_key_m] = $arr_value;
3018
  }
3019
  }
3020
  }
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.4
8
- Stable tag: 8.1.0
9
 
10
  == Description ==
11
 
@@ -313,6 +313,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
313
 
314
  === Changelog ===
315
 
 
 
 
316
  = 8.1.0 (2020-04-27) =
317
  * Added support for Advanced Custom Fields (ACF) that return array values such as checkboxes
318
 
@@ -2580,6 +2583,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2580
 
2581
  == Upgrade Notice ==
2582
 
 
 
 
2583
  = 8.1.0 =
2584
  Added support for Advanced Custom Fields (ACF) that return array values such as checkboxes
2585
 
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.4
8
+ Stable tag: 8.1.1
9
 
10
  == Description ==
11
 
313
 
314
  === Changelog ===
315
 
316
+ = 8.1.1 (2020-04-27) =
317
+ * Fixed several bugs in the Fruugo.nl templating
318
+
319
  = 8.1.0 (2020-04-27) =
320
  * Added support for Advanced Custom Fields (ACF) that return array values such as checkboxes
321
 
2583
 
2584
  == Upgrade Notice ==
2585
 
2586
+ = 8.1.1 =
2587
+ Fixed several bugs in the Fruugo.nl templating
2588
+
2589
  = 8.1.0 =
2590
  Added support for Advanced Custom Fields (ACF) that return array values such as checkboxes
2591
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 8.1.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, 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', '8.1.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: 8.1.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
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
+ define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.1.1' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54