CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.3.91

Version Description

(2021-06-02) = * Fixed: Review template not getting all the reviews issue has been fixed.

Download this release

Release Info

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

Code changes from version 4.3.90 to 4.3.91

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.90
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -501,6 +501,9 @@ Using pro version:
501
 
502
  == Changelog ==
503
 
 
 
 
504
  = 4.3.90 (2021-05-31) =
505
  * Fixed: Facebook description issue fixed.
506
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 4.3.91
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
501
 
502
  == Changelog ==
503
 
504
+ = 4.3.91 (2021-06-02) =
505
+ * Fixed: Review template not getting all the reviews issue has been fixed.
506
+
507
  = 4.3.90 (2021-05-31) =
508
  * Fixed: Facebook description issue fixed.
509
 
includes/feeds/class-woo-feed-review.php CHANGED
@@ -74,18 +74,46 @@ class Woo_Feed_Review {
74
  * @since 1.0.0
75
  */
76
  public function __construct( $feedRule ) {
 
77
  $feedRule['itemWrapper'] = $this->feedWrapper;
78
- $this->products = new Woo_Feed_Products_v3( $feedRule );
 
79
 
80
  // When update via cron job then set productIds.
81
  if ( ! isset( $feedRule['productIds'] ) ) {
82
- // $feedRule['productIds'] = $this->products->query_products();
83
- $feedRule['productIds'] = $this->get_products_with_reviews();
 
 
 
84
  }
85
 
86
- $this->rules = $feedRule;
87
- $this->ids = $feedRule['productIds'];
88
- $this->data = $this->processReviewsData($feedRule);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  }
90
 
91
 
74
  * @since 1.0.0
75
  */
76
  public function __construct( $feedRule ) {
77
+
78
  $feedRule['itemWrapper'] = $this->feedWrapper;
79
+
80
+ $this->products = new Woo_Feed_Products_v3( $feedRule );
81
 
82
  // When update via cron job then set productIds.
83
  if ( ! isset( $feedRule['productIds'] ) ) {
84
+
85
+ $feedRule['productIds'] = $this->products->query_products();
86
+
87
+ // $feedRule['productIds'] = $this->get_products_with_reviews();
88
+
89
  }
90
 
91
+
92
+ $products = $this->products->get_products( $feedRule['productIds'] );
93
+
94
+ $product_names = [];
95
+
96
+ foreach ($products as $product) {
97
+ $product_names[] = $product['product_name'];
98
+ }
99
+
100
+ $product_ids = [];
101
+
102
+ foreach ($product_names as $product_name) {
103
+ $product_by_title = get_page_by_title($product_name, OBJECT, 'product');
104
+ $product_ids[] = $product_by_title->ID;
105
+ }
106
+
107
+ if( !empty($product_ids) ) {
108
+ $this->ids = array_filter($product_ids, 'strlen');;
109
+ } else {
110
+ $this->ids = array_filter($feedRule['productIds'], 'strlen');
111
+ }
112
+
113
+ $this->rules = $feedRule;
114
+
115
+ $this->data = $this->processReviewsData($feedRule);
116
+
117
  }
118
 
119
 
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.90
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.90' );
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.91
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.91' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {