Product Feed PRO for WooCommerce - Version 7.7.3

Version Description

Fixed a bug where static values are added to feeds for products that are filtered out

Download this release

Release Info

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

Code changes from version 7.7.2 to 7.7.3

TODO.txt CHANGED
@@ -5,9 +5,10 @@ Tutorial / Blog posts:
5
  - Explain all the different fields/attributes that can be selected from the drop-downs
6
 
7
  Priority issues:
 
8
  - Make category path primary (Yoast) category
9
  - Add possibility to copy feed configuration from one WooCommerce instance to the other instance
10
- - Add support for Polylang
11
  - Add a filter on review score (and amount of reviews)
12
  - Change XML header for Elite users (so it doesn't say its free for example)
13
  - Make extra woosea fields available for front-end usage
5
  - Explain all the different fields/attributes that can be selected from the drop-downs
6
 
7
  Priority issues:
8
+ - Add support for Polylang
9
  - Make category path primary (Yoast) category
10
  - Add possibility to copy feed configuration from one WooCommerce instance to the other instance
11
+ - Add support for Multisites
12
  - Add a filter on review score (and amount of reviews)
13
  - Change XML header for Elite users (so it doesn't say its free for example)
14
  - Make extra woosea fields available for front-end usage
classes/class-get-products.php CHANGED
@@ -2983,6 +2983,11 @@ class WooSEA_Get_Products {
2983
  }
2984
  }
2985
 
 
 
 
 
 
2986
  /**
2987
  * Filter execution
2988
  */
@@ -3014,11 +3019,6 @@ class WooSEA_Get_Products {
3014
  }
3015
  }
3016
 
3017
- /**
3018
- * Get product reviews for Google Product Review Feeds
3019
- */
3020
- $product_data['reviews'] = $this->woosea_get_reviews( $product_data, $product );
3021
-
3022
  /**
3023
  * When a product is a variable product we need to delete the original product from the feed, only the originals are allowed
3024
  */
@@ -3054,10 +3054,12 @@ class WooSEA_Get_Products {
3054
  /**
3055
  * Truncate length of product title when it is over 150 characters (requirement for Google Shopping, Pinterest and Facebook
3056
  */
3057
- $length_title = strlen($product_data['title']);
3058
- if($length_title > 149){
3059
- $product_data['title'] = mb_substr($product_data['title'],0,150);
3060
- }
 
 
3061
 
3062
  /**
3063
  * When product has passed the filter rules it can continue with the rest
@@ -4384,7 +4386,7 @@ class WooSEA_Get_Products {
4384
  if(array_key_exists($pr_array['attribute'], $product_data)){
4385
  foreach ($product_data as $pd_key => $pd_value){
4386
  // Check is there is a rule on specific attributes
4387
-
4388
  if(in_array($pd_key, $pr_array, TRUE)){
4389
 
4390
  if($pd_key == "price"){
@@ -4647,82 +4649,6 @@ class WooSEA_Get_Products {
4647
  break;
4648
  }
4649
  }
4650
- } elseif ($pr_array['attribute'] == "reviews"){
4651
- // Filters on reviews
4652
- foreach ($pd_value as $k => $v){
4653
- foreach ($v as $kk => $vv){
4654
- if($kk == "review_ratings"){
4655
-
4656
- switch ($pr_array['condition']) {
4657
- case($pr_array['condition'] = "contains"):
4658
- if($pr_array['than'] == "include_only"){
4659
- // $allowed = 0;
4660
- } else {
4661
- // $allowed = 1;
4662
- }
4663
- break;
4664
- case($pr_array['condition'] = "containsnot"):
4665
- if($pr_array['than'] == "include_only"){
4666
- // $allowed = 1;
4667
- } else {
4668
- // $allowed = 0;
4669
- }
4670
- break;
4671
- case($pr_array['condition'] = "="):
4672
- if($pr_array['than'] == "include_only"){
4673
- // $allowed = 0;
4674
- } else {
4675
- // $allowed = 1;
4676
- }
4677
- break;
4678
- case($pr_array['condition'] = "!="):
4679
- if($pr_array['than'] == "include_only"){
4680
- // $allowed = 1;
4681
- } else {
4682
- // $allowed = 0;
4683
- }
4684
- break;
4685
- case($pr_array['condition'] = ">"):
4686
- if($pr_array['than'] == "include_only"){
4687
- // $allowed = 0;
4688
- } else {
4689
- // $allowed = 0;
4690
- }
4691
- break;
4692
- case($pr_array['condition'] = ">="):
4693
- if($pr_array['than'] == "include_only"){
4694
- // $allowed = 0;
4695
- } else {
4696
- // $allowed = 0;
4697
- }
4698
- break;
4699
- case($pr_array['condition'] = "<"):
4700
- if($pr_array['than'] == "include_only"){
4701
- $allowed = 0;
4702
- } else {
4703
- $allowed = 0;
4704
- }
4705
- break;
4706
- case($pr_array['condition'] = "=<"):
4707
- if($pr_array['than'] == "include_only"){
4708
- // $allowed = 0;
4709
- } else {
4710
- // $allowed = 0;
4711
- }
4712
- break;
4713
- case($pr_array['condition'] = "empty"):
4714
- if($pr_array['than'] == "include_only"){
4715
- // $allowed = 1;
4716
- } else {
4717
- // $allowed = 0;
4718
- }
4719
- break;
4720
- default:
4721
- break;
4722
- }
4723
- }
4724
- }
4725
- }
4726
  } else {
4727
  // For now only shipping details are in an array
4728
  foreach ($pd_value as $k => $v){
2983
  }
2984
  }
2985
 
2986
+ /**
2987
+ * Get product reviews for Google Product Review Feeds
2988
+ */
2989
+ $product_data['reviews'] = $this->woosea_get_reviews( $product_data, $product );
2990
+
2991
  /**
2992
  * Filter execution
2993
  */
3019
  }
3020
  }
3021
 
 
 
 
 
 
3022
  /**
3023
  * When a product is a variable product we need to delete the original product from the feed, only the originals are allowed
3024
  */
3054
  /**
3055
  * Truncate length of product title when it is over 150 characters (requirement for Google Shopping, Pinterest and Facebook
3056
  */
3057
+ if(isset($product_data['title'])){
3058
+ $length_title = strlen($product_data['title']);
3059
+ if($length_title > 149){
3060
+ $product_data['title'] = mb_substr($product_data['title'],0,150);
3061
+ }
3062
+ }
3063
 
3064
  /**
3065
  * When product has passed the filter rules it can continue with the rest
4386
  if(array_key_exists($pr_array['attribute'], $product_data)){
4387
  foreach ($product_data as $pd_key => $pd_value){
4388
  // Check is there is a rule on specific attributes
4389
+
4390
  if(in_array($pd_key, $pr_array, TRUE)){
4391
 
4392
  if($pd_key == "price"){
4649
  break;
4650
  }
4651
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4652
  } else {
4653
  // For now only shipping details are in an array
4654
  foreach ($pd_value as $k => $v){
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.7.2',
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.7.3',
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.3
8
- Stable tag: 7.7.2
9
 
10
  == Description ==
11
 
@@ -312,6 +312,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
312
 
313
  === Changelog ===
314
 
 
 
 
315
  = 7.7.2 (2020-03-11) =
316
  * Checked for compatibility with WooCommerce 4.0
317
  * Fixed a shipping issue for shipping zones with postcodes
@@ -2459,6 +2462,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2459
 
2460
  == Upgrade Notice ==
2461
 
 
 
 
2462
  = 7.7.2 =
2463
  Checked for compatibility with WooCommerce 4.0
2464
  Fixed a shipping issue for shipping zones with postcodes
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.7.3
9
 
10
  == Description ==
11
 
312
 
313
  === Changelog ===
314
 
315
+ = 7.7.3 (2020-03-13) =
316
+ * Fixed a bug where static values are added to feeds for products that are filtered out
317
+
318
  = 7.7.2 (2020-03-11) =
319
  * Checked for compatibility with WooCommerce 4.0
320
  * Fixed a shipping issue for shipping zones with postcodes
2462
 
2463
  == Upgrade Notice ==
2464
 
2465
+ = 7.7.3 =
2466
+ Fixed a bug where static values are added to feeds for products that are filtered out
2467
+
2468
  = 7.7.2 =
2469
  Checked for compatibility with WooCommerce 4.0
2470
  Fixed a shipping issue for shipping zones with postcodes
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 7.7.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,7 +48,7 @@ if (!defined('ABSPATH')) {
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
- define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '7.7.2' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -4215,7 +4215,7 @@ function woosea_license_valid(){
4215
 
4216
  if(!empty($license_information['license_key'])){
4217
  $curl = curl_init();
4218
- $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.7.2";
4219
 
4220
  curl_setopt_array($curl, array(
4221
  CURLOPT_RETURNTRANSFER => 1,
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 7.7.3
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.7.3' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
4215
 
4216
  if(!empty($license_information['license_key'])){
4217
  $curl = curl_init();
4218
+ $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.7.3";
4219
 
4220
  curl_setopt_array($curl, array(
4221
  CURLOPT_RETURNTRANSFER => 1,