Product Feed PRO for WooCommerce - Version 9.4.7

Version Description

Solved an issue that shipping costs to the first product in a custom feed where empty

Download this release

Release Info

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

Code changes from version 9.3.7 to 9.4.7

classes/channels/class-google_shopping.php CHANGED
@@ -356,6 +356,11 @@ class WooSEA_google_shopping {
356
  "feed_name" => "g:max_handling_time",
357
  "format" => "optional",
358
  ),
 
 
 
 
 
359
  ),
360
  "Tax" => array(
361
  "Tax" => array(
356
  "feed_name" => "g:max_handling_time",
357
  "format" => "optional",
358
  ),
359
+ "Ships from country" => array(
360
+ "name" => "ships_from_country",
361
+ "feed_name" => "g:ships_from_country",
362
+ "format" => "optional",
363
+ ),
364
  ),
365
  "Tax" => array(
366
  "Tax" => array(
classes/class-activate.php CHANGED
@@ -1112,6 +1112,13 @@ class WooSEA_Activation {
1112
  "taxonomy" => "none",
1113
  "utm_source" => "Tweakers.nl",
1114
  "type" => "Comparison shopping engine" ),
 
 
 
 
 
 
 
1115
  "Fashionchick.nl" => array (
1116
  "channel_hash" => md5("Fashionchick.nl"),
1117
  "name" => "Fashionchick.nl",
1112
  "taxonomy" => "none",
1113
  "utm_source" => "Tweakers.nl",
1114
  "type" => "Comparison shopping engine" ),
1115
+ "Boetiek.nl" => array (
1116
+ "channel_hash" => md5("Boetiek.nl"),
1117
+ "name" => "Boetiek.nl",
1118
+ "fields" => "boetiek",
1119
+ "taxonomy" => "none",
1120
+ "utm_source" => "Boetiek.nl",
1121
+ "type" => "Comparison shopping engine" ),
1122
  "Fashionchick.nl" => array (
1123
  "channel_hash" => md5("Fashionchick.nl"),
1124
  "name" => "Fashionchick.nl",
classes/class-attributes.php CHANGED
@@ -48,7 +48,7 @@ private function get_dynamic_attributes(){
48
  global $wpdb;
49
  $list = array();
50
 
51
- $no_taxonomies = array("portfolio_category","portfolio_skills","portfolio_tags","nav_menu","post_format","slide-page","element_category","template_category","portfolio_category","portfolio_skills","portfolio_tags","faq_category","slide-page","yst_prominent_words","category","post_tag","nav_menu","link_category","post_format","product_type","product_visibility","product_cat","product_shipping_class","product_tag");
52
  $taxonomies = get_taxonomies();
53
  $diff_taxonomies = array_diff($taxonomies, $no_taxonomies);
54
 
@@ -212,6 +212,8 @@ public function get_mapping_attributes_dropdown() {
212
  "short_description" => "Product short description",
213
  "raw_description" => "Unfiltered product description",
214
  "raw_short_description" => "Unfiltered product short description",
 
 
215
  "price" => "Price",
216
  "regular_price" => "Regular price",
217
  "sale_price" => "Sale price",
@@ -406,7 +408,9 @@ public function get_mapping_attributes_dropdown() {
406
  "short_description" => "Product short description",
407
  "raw_description" => "Unfiltered product description",
408
  "raw_short_description" => "Unfiltered product short description",
409
- "link" => "Link",
 
 
410
  "variable_link" => "Product variable link",
411
  "add_to_cart_link" => "Add to cart link",
412
  "image" => "Main image",
48
  global $wpdb;
49
  $list = array();
50
 
51
+ $no_taxonomies = array("portfolio_category","portfolio_skills","portfolio_tags","nav_menu","post_format","slide-page","element_category","template_category","portfolio_category","portfolio_skills","portfolio_tags","faq_category","slide-page","category","post_tag","nav_menu","link_category","post_format","product_type","product_visibility","product_cat","product_shipping_class","product_tag");
52
  $taxonomies = get_taxonomies();
53
  $diff_taxonomies = array_diff($taxonomies, $no_taxonomies);
54
 
212
  "short_description" => "Product short description",
213
  "raw_description" => "Unfiltered product description",
214
  "raw_short_description" => "Unfiltered product short description",
215
+ "mother_description" => "Product description parent product",
216
+ "mother_short_description" => "Product short description parent product",
217
  "price" => "Price",
218
  "regular_price" => "Regular price",
219
  "sale_price" => "Sale price",
408
  "short_description" => "Product short description",
409
  "raw_description" => "Unfiltered product description",
410
  "raw_short_description" => "Unfiltered product short description",
411
+ "mother_description" => "Product description parent product",
412
+ "mother_short_description" => "Product short description parent product",
413
+ "link" => "Link",
414
  "variable_link" => "Product variable link",
415
  "add_to_cart_link" => "Add to cart link",
416
  "image" => "Main image",
classes/class-get-products.php CHANGED
@@ -84,8 +84,10 @@ class WooSEA_Get_Products {
84
  $cnt = 0;
85
  $name = "";
86
  foreach($name_pieces as $n_piece){
 
 
87
  if($cnt > 0){
88
- $n_piece = substr($n_piece, 0, 1);
89
  }
90
  $name .= $n_piece." ";
91
  $cnt++;
@@ -96,7 +98,7 @@ class WooSEA_Get_Products {
96
  $review['reviewer_name'] = html_entity_decode((str_replace("\r", "", $review['reviewer_name'])), ENT_QUOTES | ENT_XML1, 'UTF-8');
97
  $review['reviewer_name'] = preg_replace( '/\[(.*?)\]/', ' ', $review['reviewer_name'] );
98
  $review['reviewer_name'] = str_replace(" ", "", $review['reviewer_name']);
99
- $review['reviewer_name'] = $this->woosea_utf8_for_xml( $review['reviewer_name'] );
100
 
101
  $review['reviewer_id'] = $review_raw->user_id;
102
  $review['review_timestamp'] = $review_raw->comment_date;
@@ -1993,7 +1995,7 @@ class WooSEA_Get_Products {
1993
  $xml_piece = "";
1994
 
1995
  // Get taxonomies
1996
- $no_taxonomies = array("element_category","template_category","portfolio_category","portfolio_skills","portfolio_tags","faq_category","slide-page","yst_prominent_words","category","post_tag","nav_menu","link_category","post_format","product_type","product_visibility","product_cat","product_shipping_class","product_tag");
1997
  $taxonomies = get_taxonomies();
1998
  $diff_taxonomies = array_diff($taxonomies, $no_taxonomies);
1999
 
@@ -2325,6 +2327,10 @@ class WooSEA_Get_Products {
2325
  $product_data['raw_description'] = substr($product_data['raw_description'], 0, 5000);
2326
  $product_data['raw_short_description'] = substr($product_data['raw_short_description'], 0, 5000);
2327
 
 
 
 
 
2328
  /**
2329
  * Check of we need to add Google Analytics UTM parameters
2330
  */
@@ -2742,7 +2748,7 @@ class WooSEA_Get_Products {
2742
  }
2743
  }
2744
 
2745
- if ((array_key_exists('shipping', $project_config['attributes'])) OR (array_key_exists('shipping_price', $project_config['attributes'])) OR ($project_config['fields'] == "trovaprezzi")){
2746
  $product_data['shipping'] = $this->woosea_get_shipping_cost($class_cost_id, $project_config, $product_data['price'], $tax_rates, $shipping_zones, $product_data['id'], $product_data['item_group_id']);
2747
  $shipping_str = $product_data['shipping'];
2748
  }
@@ -3028,9 +3034,9 @@ class WooSEA_Get_Products {
3028
  $product_variations = new WC_Product_Variation( $product_data['id'] );
3029
  $variations = $product_variations->get_variation_attributes();
3030
 
3031
- // For Skroutz apparal products we can only append colours to the product name
3032
  // When a product has both a size and color attribute we assume its an apparal product
3033
- if($project_config['fields'] == "skroutz"){
3034
  $size_found = "no";
3035
  $color_found = "no";
3036
 
@@ -3448,6 +3454,17 @@ class WooSEA_Get_Products {
3448
  */
3449
  $product_data['reviews'] = $this->woosea_get_reviews( $product_data, $product );
3450
 
 
 
 
 
 
 
 
 
 
 
 
3451
  /**
3452
  * Check if individual products need to be excluded
3453
  */
@@ -3513,6 +3530,7 @@ class WooSEA_Get_Products {
3513
  // For these channels parent products are allowed
3514
  $allowed_channel_parents = array(
3515
  "skroutz",
 
3516
  "google_dsa",
3517
  "google_product_review",
3518
  );
@@ -4926,7 +4944,6 @@ class WooSEA_Get_Products {
4926
 
4927
  foreach ($product_data as $pd_key => $pd_value){
4928
  // Check is there is a rule on specific attributes
4929
-
4930
  if(in_array($pd_key, $pr_array, TRUE)){
4931
 
4932
  if($pd_key == "price"){
@@ -5026,11 +5043,10 @@ class WooSEA_Get_Products {
5026
  $in_tag_array = "yes";
5027
  }
5028
  }
5029
-
5030
  if($in_tag_array == "yes"){
5031
  //if(in_array($pr_array['criteria'], $pd_value, TRUE)) {
5032
  $v = $pr_array['criteria'];
5033
-
5034
  switch ($pr_array['condition']) {
5035
  case($pr_array['condition'] = "contains"):
5036
  if ((preg_match('/'.$pr_array['criteria'].'/', $v))){
@@ -5132,8 +5148,12 @@ class WooSEA_Get_Products {
5132
  if($allowed <> 0){
5133
  $allowed = 1;
5134
  }
5135
- } else {
5136
- $allowed = 0;
 
 
 
 
5137
  }
5138
  }
5139
  break;
84
  $cnt = 0;
85
  $name = "";
86
  foreach($name_pieces as $n_piece){
87
+ $n_piece = str_replace("&amp;", "", $n_piece);
88
+
89
  if($cnt > 0){
90
+ $n_piece = ucfirst(substr($n_piece, 0, 1));
91
  }
92
  $name .= $n_piece." ";
93
  $cnt++;
98
  $review['reviewer_name'] = html_entity_decode((str_replace("\r", "", $review['reviewer_name'])), ENT_QUOTES | ENT_XML1, 'UTF-8');
99
  $review['reviewer_name'] = preg_replace( '/\[(.*?)\]/', ' ', $review['reviewer_name'] );
100
  $review['reviewer_name'] = str_replace("&#xa0;", "", $review['reviewer_name']);
101
+ $review['reviewer_name'] = $this->woosea_utf8_for_xml( $review['reviewer_name'] );
102
 
103
  $review['reviewer_id'] = $review_raw->user_id;
104
  $review['review_timestamp'] = $review_raw->comment_date;
1995
  $xml_piece = "";
1996
 
1997
  // Get taxonomies
1998
+ $no_taxonomies = array("element_category","template_category","portfolio_category","portfolio_skills","portfolio_tags","faq_category","slide-page","category","post_tag","nav_menu","link_category","post_format","product_type","product_visibility","product_cat","product_shipping_class","product_tag");
1999
  $taxonomies = get_taxonomies();
2000
  $diff_taxonomies = array_diff($taxonomies, $no_taxonomies);
2001
 
2327
  $product_data['raw_description'] = substr($product_data['raw_description'], 0, 5000);
2328
  $product_data['raw_short_description'] = substr($product_data['raw_short_description'], 0, 5000);
2329
 
2330
+ // Parent variable description
2331
+ $product_data['mother_description'] = $product_data['description'];
2332
+ $product_data['mother_short_description'] = $product_data['short_description'];
2333
+
2334
  /**
2335
  * Check of we need to add Google Analytics UTM parameters
2336
  */
2748
  }
2749
  }
2750
 
2751
+ if ((array_key_exists('shipping', $project_config['attributes'])) OR (array_key_exists('shipping_price', $project_config['attributes'])) OR ($project_config['fields'] == "trovaprezzi") OR ($project_config['fields'] == "customfeed")){
2752
  $product_data['shipping'] = $this->woosea_get_shipping_cost($class_cost_id, $project_config, $product_data['price'], $tax_rates, $shipping_zones, $product_data['id'], $product_data['item_group_id']);
2753
  $shipping_str = $product_data['shipping'];
2754
  }
3034
  $product_variations = new WC_Product_Variation( $product_data['id'] );
3035
  $variations = $product_variations->get_variation_attributes();
3036
 
3037
+ // For Skroutz and Bestprice apparal products we can only append colours to the product name
3038
  // When a product has both a size and color attribute we assume its an apparal product
3039
+ if(($project_config['fields'] == "skroutz") OR ($project_config['fields'] == "bestprice")){
3040
  $size_found = "no";
3041
  $color_found = "no";
3042
 
3454
  */
3455
  $product_data['reviews'] = $this->woosea_get_reviews( $product_data, $product );
3456
 
3457
+ /**
3458
+ * Filter out reviews that do not have text
3459
+ */
3460
+ if(!empty($product_data['reviews'])){
3461
+ foreach($product_data['reviews'] as $review_id => $review_details){
3462
+ if(empty($review_details['content'])){
3463
+ unset($product_data['reviews'][$review_id]);
3464
+ }
3465
+ }
3466
+ }
3467
+
3468
  /**
3469
  * Check if individual products need to be excluded
3470
  */
3530
  // For these channels parent products are allowed
3531
  $allowed_channel_parents = array(
3532
  "skroutz",
3533
+ "bestprice",
3534
  "google_dsa",
3535
  "google_product_review",
3536
  );
4944
 
4945
  foreach ($product_data as $pd_key => $pd_value){
4946
  // Check is there is a rule on specific attributes
 
4947
  if(in_array($pd_key, $pr_array, TRUE)){
4948
 
4949
  if($pd_key == "price"){
5043
  $in_tag_array = "yes";
5044
  }
5045
  }
5046
+
5047
  if($in_tag_array == "yes"){
5048
  //if(in_array($pr_array['criteria'], $pd_value, TRUE)) {
5049
  $v = $pr_array['criteria'];
 
5050
  switch ($pr_array['condition']) {
5051
  case($pr_array['condition'] = "contains"):
5052
  if ((preg_match('/'.$pr_array['criteria'].'/', $v))){
5148
  if($allowed <> 0){
5149
  $allowed = 1;
5150
  }
5151
+ } else {
5152
+ if(!empty($pt_value)){
5153
+ $allowed = 1;
5154
+ } else {
5155
+ $allowed = 0;
5156
+ }
5157
  }
5158
  }
5159
  break;
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.3.7',
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.4.7',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
pages/admin/woosea-manage-feed.php CHANGED
@@ -67,6 +67,7 @@ if(!empty($license_information)){
67
  if (!wp_next_scheduled( 'woosea_cron_hook' ) ) {
68
  $notifications_box = $notifications_obj->get_admin_notifications ( '12', 'false' );
69
  }
 
70
  ?>
71
  <div class="wrap">
72
  <div class="woo-product-feed-pro-form-style-2">
@@ -124,6 +125,18 @@ if (!wp_next_scheduled( 'woosea_cron_hook' ) ) {
124
  <?php
125
  }
126
  }
 
 
 
 
 
 
 
 
 
 
 
 
127
  ?>
128
 
129
  <div class="woo-product-feed-pro-form-style-2-heading"><?php _e( 'Manage feeds','woo-product-feed-pro' );?></div>
67
  if (!wp_next_scheduled( 'woosea_cron_hook' ) ) {
68
  $notifications_box = $notifications_obj->get_admin_notifications ( '12', 'false' );
69
  }
70
+
71
  ?>
72
  <div class="wrap">
73
  <div class="woo-product-feed-pro-form-style-2">
125
  <?php
126
  }
127
  }
128
+
129
+
130
+ if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) {
131
+ ?>
132
+ <div class="notice notice-error is-dismissible">
133
+ <p>
134
+ <strong><?php _e( 'WARNING: Your WP-Cron is disabled', 'woo-product-feed-pro' );?></strong><br/></br/>
135
+ We detected that your WP-cron has been disabled in your wp-config.php file. Our plugin heavily depends on the WP-cron being active otherwise it cannot update and generate your product feeds. <a href="https://adtribes.io/help-my-feed-processing-is-stuck/?utm_source=<?php print"$host";?>&utm_medium=manage-feed&utm_campaign=cron-warning&utm_content=notification" target="_blank"><strong>Please enable your WP-cron first</strong></a>.
136
+ </p>
137
+ </div>
138
+ <?php
139
+ }
140
  ?>
141
 
142
  <div class="woo-product-feed-pro-form-style-2-heading"><?php _e( 'Manage feeds','woo-product-feed-pro' );?></div>
pages/admin/woosea-manage-settings.php CHANGED
@@ -101,6 +101,20 @@ if(isset($_GET["tab"])) {
101
  ?>
102
  </span>
103
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
  <!-- wordpress provides the styling for tabs. -->
106
  <h2 class="nav-tab-wrapper">
@@ -515,6 +529,10 @@ if(isset($_GET["tab"])) {
515
  $cron_enabled = "True";
516
  }
517
 
 
 
 
 
518
  print "<table class=\"woo-product-feed-pro-table\">";
519
  print "<tr><td><strong>System check</strong></td><td><strong>Status</strong></td></tr>";
520
  print "<tr><td>WP-Cron enabled</td><td>$cron_enabled</td></tr>";
101
  ?>
102
  </span>
103
  </div>
104
+
105
+ <?php
106
+ if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) {
107
+ ?>
108
+ <div class="notice notice-error is-dismissible">
109
+ <p>
110
+ <strong><?php _e( 'WARNING: Your WP-Cron is disabled', 'woo-product-feed-pro' );?></strong><br/></br/>
111
+ We detected that your WP-cron has been disabled in your wp-config.php file. Our plugin heavily depends on the WP-cron being active for it to be able to update and generate your product feeds. More information on the inner workings of our plugin and instructions on how to enable your WP-Cron can be found here: <a href="https://adtribes.io/help-my-feed-processing-is-stuck/?utm_source=<?php print"$host";?>&utm_medium=manage-feed&utm_campaign=cron-warning&utm_content=notification" target="_blank"><strong>My feed won't update or is stuck processing</strong></a>.
112
+ </p>
113
+ </div>
114
+ <?php
115
+ }
116
+ ?>
117
+
118
 
119
  <!-- wordpress provides the styling for tabs. -->
120
  <h2 class="nav-tab-wrapper">
529
  $cron_enabled = "True";
530
  }
531
 
532
+ if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) {
533
+ $cron_enabled = "<strong>False</strong>";
534
+ }
535
+
536
  print "<table class=\"woo-product-feed-pro-table\">";
537
  print "<tr><td><strong>System check</strong></td><td><strong>Status</strong></td></tr>";
538
  print "<tr><td>WP-Cron enabled</td><td>$cron_enabled</td></tr>";
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.6
8
- Stable tag: 9.3.7
9
 
10
  == Description ==
11
 
@@ -175,6 +175,7 @@ Some of the above mentioned feature can only be used by users who upgraded to th
175
  * <a href="https://www.beslist.nl" target="_blank" rel="nofollow">Beslist.nl</a>
176
  * <a href="https://www.beslist.be" target="_blank" rel="nofollow">Beslist.be</a>
177
  * <a href="https://www.fashionchick.nl" target="_blank">Fashionchick.nl</a>
 
178
  * Bol.com
179
  * Stylight
180
  * Incurvy
@@ -322,6 +323,37 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
322
 
323
  === Changelog ===
324
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
325
  = 9.3.7 (2021-01-12) =
326
  * Added the Bestprice.gr template
327
 
@@ -2988,6 +3020,37 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2988
 
2989
  == Upgrade Notice ==
2990
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2991
  = 9.3.7 =
2992
  Added the Bestprice.gr template
2993
 
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.6
8
+ Stable tag: 9.4.7
9
 
10
  == Description ==
11
 
175
  * <a href="https://www.beslist.nl" target="_blank" rel="nofollow">Beslist.nl</a>
176
  * <a href="https://www.beslist.be" target="_blank" rel="nofollow">Beslist.be</a>
177
  * <a href="https://www.fashionchick.nl" target="_blank">Fashionchick.nl</a>
178
+ * <a href="https://www.boetiek.nl" target="_blank">Boetiek.nl</a>
179
  * Bol.com
180
  * Stylight
181
  * Incurvy
323
 
324
  === Changelog ===
325
 
326
+ = 9.4.7 (2021-01-29) =
327
+ * Solved an issue that shipping costs to the first product in a custom feed where empty
328
+
329
+ = 9.4.6 (2021-01-28) =
330
+ * Added a new attribute: product description parent product
331
+
332
+ = 9.4.5 (2021-01-28) =
333
+ * Added a Google Shopping field to their template: g:ship_from_country
334
+ * Stripping & characters from review names as it breaks the review feeds
335
+
336
+ = 9.4.4 (2021-01-27) =
337
+ * Fixed an issue where reviews without review text caused the feed to be disapproved by Google. We now remove reviews from feeds that have no review texts.
338
+
339
+ = 9.4.3 (2021-01-27) =
340
+ * Fixed an issue with an undefined ecomm_price variable on product variable pages
341
+
342
+ = 9.4.2 (2021-01-26) =
343
+ * Added the Dutch Boetiek.nl template
344
+
345
+ = 9.4.1 (2021-01-19) =
346
+ * Fixed a bug: exclude filters on empty product tags were broken. This is fixed now.
347
+
348
+ = 9.4.0 (2021-01-14) =
349
+ * Added a WP-cron check and notifications
350
+
351
+ = 9.3.9 (2021-01-14) =
352
+ * Bestprice.gr apparel products are now grouped by color
353
+
354
+ = 9.3.8 (2021-01-13) =
355
+ * Tested for compatibility with WooCommerce 4.9
356
+
357
  = 9.3.7 (2021-01-12) =
358
  * Added the Bestprice.gr template
359
 
3020
 
3021
  == Upgrade Notice ==
3022
 
3023
+ = 9.4.7 =
3024
+ Solved an issue that shipping costs to the first product in a custom feed where empty
3025
+
3026
+ = 9.4.6 =
3027
+ Added a new attribute: product description parent product
3028
+
3029
+ = 9.4.5 =
3030
+ Added a Google Shopping field to their template: g:ship_from_country
3031
+ Stripping & characters from review names as it breaks the review feeds
3032
+
3033
+ = 9.4.4 =
3034
+ Fixed an issue where reviews without review text caused the feed to be disapproved by Google. We now remove reviews from feeds that have no review texts.
3035
+
3036
+ = 9.4.3 =
3037
+ Fixed an issue with an undefined ecomm_price variable on product variable pages
3038
+
3039
+ = 9.4.2 =
3040
+ Added the Dutch Boetiek.nl template
3041
+
3042
+ = 9.4.1 =
3043
+ Fixed a bug: exclude filters on empty product tags were broken. This is fixed now.
3044
+
3045
+ = 9.4.0 =
3046
+ Added a WP-cron check and notifications
3047
+
3048
+ = 9.3.9 =
3049
+ Bestprice.gr apparel products are now grouped by color
3050
+
3051
+ = 9.3.8 =
3052
+ Tested for compatibility with WooCommerce 4.9
3053
+
3054
  = 9.3.7 =
3055
  Added the Bestprice.gr template
3056
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 9.3.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
@@ -17,7 +17,7 @@
17
  * Domain Path: /languages
18
  *
19
  * WC requires at least: 4.4
20
- * WC tested up to: 4.8
21
  *
22
  * Product Feed PRO for WooCommerce is free software: you can redistribute it and/or modify
23
  * it under the terms of the GNU General Public License as published by
@@ -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.3.7' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -347,7 +347,6 @@ function woosea_add_facebook_pixel( $product = null ){
347
  $cats = str_replace("&amp;","&", $cats);
348
 
349
  if(!empty($fb_prodid)){
350
-
351
  if(!$product) {
352
  return -1;
353
  }
@@ -622,7 +621,7 @@ function woosea_add_remarketing_tags( $product = null ){
622
  // In that case we need to put in the AggregateOffer structured data
623
  $variation_id = woosea_find_matching_product_variation( $product, $_GET );
624
  $nr_get = count($_GET);
625
-
626
  if($nr_get > 0){
627
  $variable_product = wc_get_product($variation_id);
628
 
@@ -659,7 +658,9 @@ function woosea_add_remarketing_tags( $product = null ){
659
  $ecomm_price = wc_format_decimal( $lowest, wc_get_price_decimals());
660
  } else {
661
  $ecomm_lowprice = wc_format_decimal( $lowest, wc_get_price_decimals() );
662
- $ecomm_highprice = wc_format_decimal( $highest, wc_get_price_decimals() );
 
 
663
  }
664
  }
665
  } else {
@@ -804,6 +805,7 @@ function woosea_request_review(){
804
  }
805
  add_action('admin_notices', 'woosea_request_review');
806
 
 
807
  /**
808
  * Create a seperate MySql table for saving conversion information
809
  */
@@ -4623,8 +4625,11 @@ add_action('wp_dashboard_setup', 'woosea_blog_widgets');
4623
  /**
4624
  * Creates the RSS metabox
4625
  */
 
 
 
 
4626
  function woosea_my_rss_box() {
4627
-
4628
  // Get RSS Feed(s)
4629
  include_once(ABSPATH . WPINC . '/feed.php');
4630
  $domain = $_SERVER['HTTP_HOST'];
@@ -4633,6 +4638,8 @@ function woosea_my_rss_box() {
4633
  $my_feeds = array(
4634
  'https://www.adtribes.io/feed/'
4635
  );
 
 
4636
 
4637
  // Loop through Feeds
4638
  foreach ( $my_feeds as $feed) :
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 9.4.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
17
  * Domain Path: /languages
18
  *
19
  * WC requires at least: 4.4
20
+ * WC tested up to: 4.9
21
  *
22
  * Product Feed PRO for WooCommerce is free software: you can redistribute it and/or modify
23
  * it under the terms of the GNU General Public License as published by
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
+ define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '9.4.7' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
347
  $cats = str_replace("&amp;","&", $cats);
348
 
349
  if(!empty($fb_prodid)){
 
350
  if(!$product) {
351
  return -1;
352
  }
621
  // In that case we need to put in the AggregateOffer structured data
622
  $variation_id = woosea_find_matching_product_variation( $product, $_GET );
623
  $nr_get = count($_GET);
624
+
625
  if($nr_get > 0){
626
  $variable_product = wc_get_product($variation_id);
627
 
658
  $ecomm_price = wc_format_decimal( $lowest, wc_get_price_decimals());
659
  } else {
660
  $ecomm_lowprice = wc_format_decimal( $lowest, wc_get_price_decimals() );
661
+ $ecomm_highprice = wc_format_decimal( $highest, wc_get_price_decimals() );
662
+ $ecomm_price = $ecomm_lowprice;
663
+
664
  }
665
  }
666
  } else {
805
  }
806
  add_action('admin_notices', 'woosea_request_review');
807
 
808
+
809
  /**
810
  * Create a seperate MySql table for saving conversion information
811
  */
4625
  /**
4626
  * Creates the RSS metabox
4627
  */
4628
+ function woosea_feed_interval( $seconds ) {
4629
+ return 172800; // Cache the feed for 2 days
4630
+ }
4631
+
4632
  function woosea_my_rss_box() {
 
4633
  // Get RSS Feed(s)
4634
  include_once(ABSPATH . WPINC . '/feed.php');
4635
  $domain = $_SERVER['HTTP_HOST'];
4638
  $my_feeds = array(
4639
  'https://www.adtribes.io/feed/'
4640
  );
4641
+
4642
+ add_filter( 'wp_feed_cache_transient_lifetime' , 'woosea_feed_interval' );
4643
 
4644
  // Loop through Feeds
4645
  foreach ( $my_feeds as $feed) :