Product Feed PRO for WooCommerce - Version 8.0.8

Version Description

Added a more strict check on "is equal to" filters for category filters

Download this release

Release Info

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

Code changes from version 8.0.7 to 8.0.8

classes/class-get-products.php CHANGED
@@ -755,7 +755,7 @@ class WooSEA_Get_Products {
755
  $quantity = 1;
756
 
757
  if(!empty($code_from_config)){
758
- if(!is_null($code_from_config)){
759
 
760
  WC()->customer->set_shipping_country(wc_clean( $code_from_config ));
761
  if(isset($zone_details['region'])){
@@ -4779,7 +4779,6 @@ class WooSEA_Get_Products {
4779
  }
4780
  } else {
4781
  // Filters for string values
4782
-
4783
  // If case-sensitve is off than lowercase both the criteria and attribute value
4784
  if (array_key_exists('cs', $pr_array)){
4785
  if ($pr_array['cs'] != "on"){
@@ -4821,8 +4820,22 @@ class WooSEA_Get_Products {
4821
  } elseif (($pr_array['criteria'] != "$pd_value") && ($pr_array['than'] == "include_only")){
4822
  $found = strpos($pd_value,$pr_array['criteria']);
4823
  if ($found !== false) {
4824
- if($allowed <> 0){
4825
- $allowed = 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4826
  }
4827
  } else {
4828
  $allowed = 0;
@@ -4832,7 +4845,7 @@ class WooSEA_Get_Products {
4832
  $allowed = 1;
4833
  }
4834
  } elseif ((preg_match('/'.$pr_array['criteria'].'/', $pd_value)) && ($pr_array['than'] == "exclude")){
4835
- $allowed = 0;
4836
  } elseif ((preg_match('/'.$pr_array['criteria'].'/', $pd_value)) && ($pr_array['than'] == "include_only")){
4837
  $allowed = 1;
4838
  }
755
  $quantity = 1;
756
 
757
  if(!empty($code_from_config)){
758
+ if($code_from_config == null){
759
 
760
  WC()->customer->set_shipping_country(wc_clean( $code_from_config ));
761
  if(isset($zone_details['region'])){
4779
  }
4780
  } else {
4781
  // Filters for string values
 
4782
  // If case-sensitve is off than lowercase both the criteria and attribute value
4783
  if (array_key_exists('cs', $pr_array)){
4784
  if ($pr_array['cs'] != "on"){
4820
  } elseif (($pr_array['criteria'] != "$pd_value") && ($pr_array['than'] == "include_only")){
4821
  $found = strpos($pd_value,$pr_array['criteria']);
4822
  if ($found !== false) {
4823
+ //for category mapping check if its an array
4824
+ if($pr_array['attribute'] == "raw_categories"){
4825
+ $raw_cats_arr = explode("||",$pd_value);
4826
+ if(is_array($raw_cats_arr)){
4827
+ if(in_array($pr_array['criteria'],$raw_cats_arr, TRUE)){
4828
+ if($allowed <> 0){
4829
+ $allowed = 1;
4830
+ }
4831
+ } else {
4832
+ $allowed = 0;
4833
+ }
4834
+ }
4835
+ } else {
4836
+ if($allowed <> 0){
4837
+ $allowed = 1;
4838
+ }
4839
  }
4840
  } else {
4841
  $allowed = 0;
4845
  $allowed = 1;
4846
  }
4847
  } elseif ((preg_match('/'.$pr_array['criteria'].'/', $pd_value)) && ($pr_array['than'] == "exclude")){
4848
+ $allowed = 0;
4849
  } elseif ((preg_match('/'.$pr_array['criteria'].'/', $pd_value)) && ($pr_array['than'] == "include_only")){
4850
  $allowed = 1;
4851
  }
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.0.7
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.0.7 (2020-04-26) =
317
  * Fixed a bug when user did not configure a shipping country in its WooCommerce shipping zones and methods
318
 
@@ -2571,6 +2574,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2571
 
2572
  == Upgrade Notice ==
2573
 
 
 
 
2574
  = 8.0.7 =
2575
  Fixed a bug when user did not configure a shipping country in its WooCommerce shipping zones and methods
2576
 
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.0.8
9
 
10
  == Description ==
11
 
313
 
314
  === Changelog ===
315
 
316
+ = 8.0.8 (2020-04-26) =
317
+ * Added a more strict check on "is equal to" filters for category filters
318
+
319
  = 8.0.7 (2020-04-26) =
320
  * Fixed a bug when user did not configure a shipping country in its WooCommerce shipping zones and methods
321
 
2574
 
2575
  == Upgrade Notice ==
2576
 
2577
+ = 8.0.8 =
2578
+ Added a more strict check on "is equal to" filters for category filters
2579
+
2580
  = 8.0.7 =
2581
  Fixed a bug when user did not configure a shipping country in its WooCommerce shipping zones and methods
2582
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 8.0.7
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.0.7' );
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.0.8
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.0.8' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54