CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.3.63

Version Description

(2021-04-08) = * Added: Ratings in the review template has been added.

Download this release

Release Info

Developer wahid0003
Plugin Icon 128x128 CTX Feed – WooCommerce Product Feed Manager Plugin
Version 4.3.63
Comparing to
See all releases

Code changes from version 4.3.62 to 4.3.63

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Product Feed, WooCommerce, Google Shopping, Google Merchant, Facebook Cata
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 4.3.62
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -498,6 +498,9 @@ Using pro version:
498
 
499
  == Changelog ==
500
 
 
 
 
501
  = 4.3.62 (2021-04-07) =
502
  * Fixed: Performance Enhancement.
503
  * Fixed: Junk Cleaned.
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 4.3.63
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
498
 
499
  == Changelog ==
500
 
501
+ = 4.3.63 (2021-04-08) =
502
+ * Added: Ratings in the review template has been added.
503
+
504
  = 4.3.62 (2021-04-07) =
505
  * Fixed: Performance Enhancement.
506
  * Fixed: Junk Cleaned.
includes/feeds/class-woo-feed-review.php CHANGED
@@ -223,6 +223,7 @@ class Woo_Feed_Review {
223
  $review['review']['content'] = $single_review->comment_content;
224
  $review['review']['review_timestamp'] = $single_review->comment_date_gmt;
225
  $review['review']['review_url'] = $product->get_permalink();
 
226
  $review['review']['products'] = array();
227
  $review['review']['products']['product'] = array();
228
 
@@ -285,7 +286,13 @@ class Woo_Feed_Review {
285
  $this->woo_feed_array_to_xml($value, $xml);
286
  }
287
  } else {
288
- $xml->addChild("$key","$value");
 
 
 
 
 
 
289
  }
290
  }
291
  }
223
  $review['review']['content'] = $single_review->comment_content;
224
  $review['review']['review_timestamp'] = $single_review->comment_date_gmt;
225
  $review['review']['review_url'] = $product->get_permalink();
226
+ $review['review']['ratings']["overall"] = get_comment_meta( $single_review->comment_ID, 'rating', true);
227
  $review['review']['products'] = array();
228
  $review['review']['products']['product'] = array();
229
 
286
  $this->woo_feed_array_to_xml($value, $xml);
287
  }
288
  } else {
289
+ if( "overall" === $key ) {
290
+ $rating = $xml->addChild($key,"$value");
291
+ $rating->addAttribute('min','1');
292
+ $rating->addAttribute('max','5');
293
+ } else {
294
+ $xml->addChild("$key","$value");
295
+ }
296
  }
297
  }
298
  }
woo-feed.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: CTX Feed
11
  * Plugin URI: https://webappick.com/
12
  * Description: Easily generate woocommerce product feed for any marketing channel like Google Shopping(Merchant), Facebook Remarketing, Bing, eBay & more. Support 100+ Merchants.
13
- * Version: 4.3.62
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
@@ -39,7 +39,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
39
  * @var string
40
  * @since 3.1.6
41
  */
42
- define( 'WOO_FEED_FREE_VERSION', '4.3.62' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
10
  * Plugin Name: CTX Feed
11
  * Plugin URI: https://webappick.com/
12
  * Description: Easily generate woocommerce product feed for any marketing channel like Google Shopping(Merchant), Facebook Remarketing, Bing, eBay & more. Support 100+ Merchants.
13
+ * Version: 4.3.63
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
39
  * @var string
40
  * @since 3.1.6
41
  */
42
+ define( 'WOO_FEED_FREE_VERSION', '4.3.63' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {