Product Feed PRO for WooCommerce - Version 7.5.2

Version Description

Solved a bug where the lowest level category of a product was not being added to the category path attribute. This issue has been solved now.

Download this release

Release Info

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

Code changes from version 7.5.0 to 7.5.2

classes/class-get-products.php CHANGED
@@ -348,7 +348,7 @@ class WooSEA_Get_Products {
348
  } else {
349
  $chain .= $separator.$name;
350
  }
351
- }
352
  return $chain;
353
  }
354
 
@@ -1989,7 +1989,7 @@ class WooSEA_Get_Products {
1989
  $parent_categories = get_ancestors($product_cat->term_id, 'product_cat');
1990
  $category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
1991
  $category_path_skroutz = str_replace(">",">",$category_path);
1992
-
1993
  if(!is_object($category_path)){
1994
  $product_data['category_path'] = $category_path;
1995
  $product_data['category_path_skroutz'] = $category_path_skroutz;
@@ -2009,16 +2009,15 @@ class WooSEA_Get_Products {
2009
  }
2010
  } else {
2011
  $product_cat = get_term($value, 'product_cat');
2012
-
2013
- $category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
2014
- $category_path_skroutz = str_replace(">",">",$category_path);
2015
-
2016
- if(!is_object($category_path)){
2017
- $product_data['category_path'] = $category_path;
2018
- $product_data['category_path_skroutz'] = $category_path_skroutz;
2019
- $product_data['category_path_skroutz'] = str_replace("Home >","",$product_data['category_path_skroutz']);
2020
- $product_data['category_path_skroutz'] = str_replace("&","&",$product_data['category_path_skroutz']);
2021
- }
2022
 
2023
  // Check if there are mother categories
2024
  $parent_categories = get_ancestors($product_cat->term_id, 'product_cat');
@@ -2920,7 +2919,6 @@ class WooSEA_Get_Products {
2920
  if($product_cat->parent > 0){
2921
  $set_parent = $product_cat->parent;
2922
  }
2923
-
2924
  $category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
2925
  if(!is_object($category_path)){
2926
  $product_data['category_path'] = $category_path;
@@ -2933,10 +2931,10 @@ class WooSEA_Get_Products {
2933
  $product_cat = get_term($value, 'product_cat');
2934
 
2935
  if($product_cat->parent > 0){
2936
- $category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
2937
- if(!is_object($category_path)){
2938
- $product_data['category_path'] = $category_path;
2939
- }
2940
  if(isset($product_cat->name)) {
2941
  $catname_concat = $product_cat->name;
2942
  $catlink_concat = get_term_link($value,'product_cat');
348
  } else {
349
  $chain .= $separator.$name;
350
  }
351
+ }
352
  return $chain;
353
  }
354
 
1989
  $parent_categories = get_ancestors($product_cat->term_id, 'product_cat');
1990
  $category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
1991
  $category_path_skroutz = str_replace(">",">",$category_path);
1992
+
1993
  if(!is_object($category_path)){
1994
  $product_data['category_path'] = $category_path;
1995
  $product_data['category_path_skroutz'] = $category_path_skroutz;
2009
  }
2010
  } else {
2011
  $product_cat = get_term($value, 'product_cat');
2012
+ // $category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
2013
+ // $category_path_skroutz = str_replace(">",">",$category_path);
2014
+ //
2015
+ // if(!is_object($category_path)){
2016
+ // $product_data['category_path'] = $category_path;
2017
+ // $product_data['category_path_skroutz'] = $category_path_skroutz;
2018
+ // $product_data['category_path_skroutz'] = str_replace("Home >","",$product_data['category_path_skroutz']);
2019
+ // $product_data['category_path_skroutz'] = str_replace("&","&",$product_data['category_path_skroutz']);
2020
+ // }
 
2021
 
2022
  // Check if there are mother categories
2023
  $parent_categories = get_ancestors($product_cat->term_id, 'product_cat');
2919
  if($product_cat->parent > 0){
2920
  $set_parent = $product_cat->parent;
2921
  }
 
2922
  $category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
2923
  if(!is_object($category_path)){
2924
  $product_data['category_path'] = $category_path;
2931
  $product_cat = get_term($value, 'product_cat');
2932
 
2933
  if($product_cat->parent > 0){
2934
+ //$category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
2935
+ //if(!is_object($category_path)){
2936
+ // $product_data['category_path'] = $category_path;
2937
+ //}
2938
  if(isset($product_cat->name)) {
2939
  $catname_concat = $product_cat->name;
2940
  $catlink_concat = get_term_link($value,'product_cat');
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=7.5.0',
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=7.5.2',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
pages/admin/woosea-generate-feed-step-0.php CHANGED
@@ -214,7 +214,7 @@ if (array_key_exists('project_hash', $_GET)){
214
  print "</td>";
215
  print "</tr>";
216
 
217
- if(count($wcml_currencies) > 0){
218
  print "<tr>";
219
  print "<td><span>WCML Currency:</span></td>";
220
  print "<td>";
@@ -246,7 +246,7 @@ if (array_key_exists('project_hash', $_GET)){
246
  print "</td>";
247
  print "</tr>";
248
 
249
- if(count($wcml_currencies) > 0){
250
  $my_currency = get_woocommerce_currency();
251
  print "<tr>";
252
  print "<td><span>WCML Currency:</span></td>";
214
  print "</td>";
215
  print "</tr>";
216
 
217
+ if((count($wcml_currencies) > 0) AND ($wcml_settings['enable_multi_currency'] > 0)){
218
  print "<tr>";
219
  print "<td><span>WCML Currency:</span></td>";
220
  print "<td>";
246
  print "</td>";
247
  print "</tr>";
248
 
249
+ if((count($wcml_currencies) > 0) AND ($wcml_settings['enable_multi_currency'] > 0)){
250
  $my_currency = get_woocommerce_currency();
251
  print "<tr>";
252
  print "<td><span>WCML Currency:</span></td>";
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.3
8
- Stable tag: 7.5.0
9
 
10
  == Description ==
11
 
@@ -312,6 +312,12 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
312
 
313
  === Changelog ===
314
 
 
 
 
 
 
 
315
  = 7.5.0 (2020-02-21) =
316
  * Added support for dynamic attributes for parent variable products (Skroutz and Google DSA only)
317
  * Added a new attribute named category path Skroutz which puts in the category path values according to Skroutz's requirements
@@ -2383,6 +2389,12 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2383
 
2384
  == Upgrade Notice ==
2385
 
 
 
 
 
 
 
2386
  = 7.5.0 =
2387
  Added support for dynamic attributes for parent variable products (Skroutz and Google DSA only)
2388
  Added a new attribute named category path Skroutz which puts in the category path values according to Skroutz's requirements
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.3
8
+ Stable tag: 7.5.2
9
 
10
  == Description ==
11
 
312
 
313
  === Changelog ===
314
 
315
+ = 7.5.2 (2020-02-22) =
316
+ * Solved a bug where the lowest level category of a product was not being added to the category path attribute. This issue has been solved now.
317
+
318
+ = 7.5.1 (2020-02-21) =
319
+ * When the multi-currency mode from WooCommerce Multilingual has been deactivated do not show the currencies upon configuration of the feed.
320
+
321
  = 7.5.0 (2020-02-21) =
322
  * Added support for dynamic attributes for parent variable products (Skroutz and Google DSA only)
323
  * Added a new attribute named category path Skroutz which puts in the category path values according to Skroutz's requirements
2389
 
2390
  == Upgrade Notice ==
2391
 
2392
+ = 7.5.2 =
2393
+ Solved a bug where the lowest level category of a product was not being added to the category path attribute. This issue has been solved now.
2394
+
2395
+ = 7.5.1 =
2396
+ When the multi-currency mode from WooCommerce Multilingual has been deactivated do not show the currencies upon configuration of the feed.
2397
+
2398
  = 7.5.0 =
2399
  Added support for dynamic attributes for parent variable products (Skroutz and Google DSA only)
2400
  Added a new attribute named category path Skroutz which puts in the category path values according to Skroutz's requirements
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 7.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, 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', '7.5.0' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -3833,7 +3833,7 @@ function woosea_license_valid(){
3833
 
3834
  if(!empty($license_information['license_key'])){
3835
  $curl = curl_init();
3836
- $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.5.0";
3837
 
3838
  curl_setopt_array($curl, array(
3839
  CURLOPT_RETURNTRANSFER => 1,
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 7.5.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', '7.5.2' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
3833
 
3834
  if(!empty($license_information['license_key'])){
3835
  $curl = curl_init();
3836
+ $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.5.2";
3837
 
3838
  curl_setopt_array($curl, array(
3839
  CURLOPT_RETURNTRANSFER => 1,