Product Feed PRO for WooCommerce - Version 7.9.9

Version Description

Solved an issue where the function wc_review_ratings_enabled was not supported by any WC version older than 3.6

Download this release

Release Info

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

Code changes from version 7.9.8 to 7.9.9

Files changed (3) hide show
  1. js/woosea_key.js +1 -1
  2. readme.txt +7 -1
  3. woocommerce-sea.php +6 -5
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.9.8',
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.9.9',
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.4
8
- Stable tag: 7.9.8
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.9.8 (2020-04-19) =
316
  * Solved an issue with multiple filters including empty filters that resulted in too many products in the feed
317
 
@@ -2540,6 +2543,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2540
 
2541
  == Upgrade Notice ==
2542
 
 
 
 
2543
  = 7.9.8 =
2544
  * Solved an issue with multiple filters including empty filters that resulted in too many products in the feed
2545
 
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: 7.9.9
9
 
10
  == Description ==
11
 
312
 
313
  === Changelog ===
314
 
315
+ = 7.9.9 (2020-04-20) =
316
+ * Solved an issue where the function wc_review_ratings_enabled was not supported by any WC version older than 3.6
317
+
318
  = 7.9.8 (2020-04-19) =
319
  * Solved an issue with multiple filters including empty filters that resulted in too many products in the feed
320
 
2543
 
2544
  == Upgrade Notice ==
2545
 
2546
+ = 7.9.9 =
2547
+ Solved an issue where the function wc_review_ratings_enabled was not supported by any WC version older than 3.6
2548
+
2549
  = 7.9.8 =
2550
  * Solved an issue with multiple filters including empty filters that resulted in too many products in the feed
2551
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 7.9.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,7 +48,7 @@ if (!defined('ABSPATH')) {
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
- define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '7.9.8' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -1672,7 +1672,8 @@ function woosea_product_fix_structured_data( $product = null ) {
1672
  // Get the offers structured data schema markup
1673
  $markup['offers'][0] = woosea_product_delete_meta_price($product);
1674
 
1675
- if ( $product->get_rating_count() && wc_review_ratings_enabled() ) {
 
1676
  $markup['aggregateRating'] = array(
1677
  '@type' => 'AggregateRating',
1678
  'ratingValue' => $product->get_average_rating(),
@@ -3093,7 +3094,7 @@ function woosea_custom_variable_fields( $loop, $variation_id, $variation ) {
3093
  'label' => __( '<br>MPN', 'woosea' ),
3094
  'placeholder' => 'Manufacturer Product Number',
3095
  'desc_tip' => 'true',
3096
- 'description' => __( 'Enter the product UPC here.', 'woosea' ),
3097
  'value' => get_post_meta($variation->ID, '_woosea_mpn', true),
3098
  'wrapper_class' => 'form-row-first',
3099
  )
@@ -4274,7 +4275,7 @@ function woosea_license_valid(){
4274
 
4275
  if(!empty($license_information['license_key'])){
4276
  $curl = curl_init();
4277
- $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.9.8";
4278
 
4279
  curl_setopt_array($curl, array(
4280
  CURLOPT_RETURNTRANSFER => 1,
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 7.9.9
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.9.9' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
1672
  // Get the offers structured data schema markup
1673
  $markup['offers'][0] = woosea_product_delete_meta_price($product);
1674
 
1675
+ // This only works for WooCommerce 3.6 and higher (wc_review_ratings_enabled function)
1676
+ if ( ($product->get_rating_count()) && (function_exists(wc_review_ratings_enabled()))) {
1677
  $markup['aggregateRating'] = array(
1678
  '@type' => 'AggregateRating',
1679
  'ratingValue' => $product->get_average_rating(),
3094
  'label' => __( '<br>MPN', 'woosea' ),
3095
  'placeholder' => 'Manufacturer Product Number',
3096
  'desc_tip' => 'true',
3097
+ 'description' => __( 'Enter the MPN here.', 'woosea' ),
3098
  'value' => get_post_meta($variation->ID, '_woosea_mpn', true),
3099
  'wrapper_class' => 'form-row-first',
3100
  )
4275
 
4276
  if(!empty($license_information['license_key'])){
4277
  $curl = curl_init();
4278
+ $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.9.9";
4279
 
4280
  curl_setopt_array($curl, array(
4281
  CURLOPT_RETURNTRANSFER => 1,