CTX Feed – WooCommerce Product Feed Manager Plugin - Version 2.2.22

Version Description

Download this release

Release Info

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

Code changes from version 2.2.21 to 2.2.22

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://webappick.com
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested up to: 4.9
7
- Stable tag: 2.2.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -296,6 +296,10 @@ Using pro version:
296
 
297
  == Changelog ==
298
 
 
 
 
 
299
  = 2.2.21(2018-09-19) =
300
  * Cron schedule added to update feed individually
301
 
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested up to: 4.9
7
+ Stable tag: 2.2.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
296
 
297
  == Changelog ==
298
 
299
+ = 2.2.22(2018-10-10) =
300
+ * Variations missing issue fixed
301
+ * URL encoding issue with suffix fixed
302
+
303
  = 2.2.21(2018-09-19) =
304
  * Cron schedule added to update feed individually
305
 
includes/class-woo-feed.php CHANGED
@@ -70,7 +70,7 @@ class Woo_Feed
70
  public function __construct()
71
  {
72
  $this->woo_feed = 'woo-feed';
73
- $this->version = '2.2.21';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
70
  public function __construct()
71
  {
72
  $this->woo_feed = 'woo-feed';
73
+ $this->version = '2.2.22';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
includes/classes/class-woo-feed-engine.php CHANGED
@@ -378,6 +378,7 @@ class WF_Engine
378
 
379
  $EXTRAParam=array();
380
  if(!empty($suffix)){
 
381
  $EXTRAParam=$this->proper_parse_str($suffix);
382
  }
383
 
378
 
379
  $EXTRAParam=array();
380
  if(!empty($suffix)){
381
+ $suffix=str_replace("?","",$suffix);
382
  $EXTRAParam=$this->proper_parse_str($suffix);
383
  }
384
 
includes/classes/class-woo-feed-products.php CHANGED
@@ -158,6 +158,8 @@ class Woo_Feed_Products
158
  array_push($this->idExist,$id);
159
  }
160
 
 
 
161
  if ( $prod->is_type( 'simple' ) )
162
  {
163
 
@@ -508,6 +510,7 @@ class Woo_Feed_Products
508
  }
509
  }
510
  else if ( $prod->is_type( 'variation' ) && $this->feedRule['provider'] != 'facebook') {
 
511
  $variation=new WC_Product_Variation($id);
512
 
513
  # Parent Info
@@ -518,19 +521,21 @@ class Woo_Feed_Products
518
  continue;
519
  }
520
 
521
- if($parent->get_status()!="publish"){
522
  continue;
523
  }
524
 
525
- if($getIDs){
526
- if(in_array($variation->get_id(),$getIDs)){
527
- continue;
528
- }else{
529
- array_push($this->idExist,$variation->get_id());
530
- }
531
- }else{
532
- array_push($this->idExist,$variation->get_id());
533
- }
 
 
534
 
535
  $parentInfo=$variation->get_parent_data();
536
  $variationTitle= $parentInfo['title'];
@@ -550,7 +555,7 @@ class Woo_Feed_Products
550
  $short_description=$this->remove_short_codes($short_description);
551
 
552
  $this->productsList[ $this->pi ]["id"] = $variation->get_id();
553
- $this->productsList[ $this->pi ]["title"] = $variationTitle;
554
  $this->productsList[ $this->pi ]["description"] = $description;
555
  $this->productsList[ $this->pi ]['variation_type'] = $variation->get_type();
556
 
@@ -639,7 +644,7 @@ class Woo_Feed_Products
639
  }else{
640
  update_option("wf_check_duplicate",$this->idExist);
641
  }
642
-
643
  return $this->productsList;
644
  }
645
 
158
  array_push($this->idExist,$id);
159
  }
160
 
161
+ echo $prod->get_type();echo " == ".$prod->get_id(); echo "<br/>";
162
+
163
  if ( $prod->is_type( 'simple' ) )
164
  {
165
 
510
  }
511
  }
512
  else if ( $prod->is_type( 'variation' ) && $this->feedRule['provider'] != 'facebook') {
513
+
514
  $variation=new WC_Product_Variation($id);
515
 
516
  # Parent Info
521
  continue;
522
  }
523
 
524
+ if(!$parent->is_purchasable()){
525
  continue;
526
  }
527
 
528
+ // if($getIDs){
529
+ // if(in_array($variation->get_id(),$getIDs)){
530
+ // continue;
531
+ // }else{
532
+ // array_push($this->idExist,$variation->get_id());
533
+ // }
534
+ // }else{
535
+ // array_push($this->idExist,$variation->get_id());
536
+ // }
537
+
538
+
539
 
540
  $parentInfo=$variation->get_parent_data();
541
  $variationTitle= $parentInfo['title'];
555
  $short_description=$this->remove_short_codes($short_description);
556
 
557
  $this->productsList[ $this->pi ]["id"] = $variation->get_id();
558
+ $this->productsList[ $this->pi ]["title"] = $variation->get_name();
559
  $this->productsList[ $this->pi ]["description"] = $description;
560
  $this->productsList[ $this->pi ]['variation_type'] = $variation->get_type();
561
 
644
  }else{
645
  update_option("wf_check_duplicate",$this->idExist);
646
  }
647
+
648
  return $this->productsList;
649
  }
650
 
woo-feed.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
19
- * Version: 2.2.21
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
19
+ * Version: 2.2.22
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2