Version Description
Download this release
Release Info
Developer | wahid0003 |
Plugin | CTX Feed – WooCommerce Product Feed Manager Plugin |
Version | 3.0.8 |
Comparing to | |
See all releases |
Code changes from version 3.0.7 to 3.0.8
- README.txt +4 -1
- includes/class-woo-feed.php +1 -1
- includes/classes/class-woo-feed-products.php +11 -16
- woo-feed.php +1 -1
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: 5.1
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -296,6 +296,9 @@ Using pro version:
|
|
296 |
|
297 |
== Changelog ==
|
298 |
|
|
|
|
|
|
|
299 |
= 3.0.7(2019-03-07) =
|
300 |
* Added: Bing Shipping attribute
|
301 |
* Fixed: Review notice show after 15 days of installation
|
4 |
Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
|
5 |
Requires at least: 3.6
|
6 |
Tested Up To: 5.1
|
7 |
+
Stable tag: 3.0.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
296 |
|
297 |
== Changelog ==
|
298 |
|
299 |
+
= 3.0.8(2019-03-12) =
|
300 |
+
* Added: Facebook template will contain product variations but it will add variation info at the end of the product description so that facebook can not reject variation which do not have short description.
|
301 |
+
|
302 |
= 3.0.7(2019-03-07) =
|
303 |
* Added: Bing Shipping attribute
|
304 |
* Fixed: Review notice show after 15 days of installation
|
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 = '3.0.
|
74 |
|
75 |
$this->load_dependencies();
|
76 |
$this->set_locale();
|
70 |
public function __construct()
|
71 |
{
|
72 |
$this->woo_feed = 'woo-feed';
|
73 |
+
$this->version = '3.0.8';
|
74 |
|
75 |
$this->load_dependencies();
|
76 |
$this->set_locale();
|
includes/classes/class-woo-feed-products.php
CHANGED
@@ -135,9 +135,9 @@ class Woo_Feed_Products
|
|
135 |
|
136 |
|
137 |
# Don't Include Variations for Facebook
|
138 |
-
if ( $this->feedRule['provider'] == 'facebook' ) {
|
139 |
-
$this->feedRule['is_variations'] = 'n';
|
140 |
-
}
|
141 |
|
142 |
$query = new WC_Product_Query( $arg );
|
143 |
$products = $query->get_products();
|
@@ -516,7 +516,7 @@ class Woo_Feed_Products
|
|
516 |
}
|
517 |
}
|
518 |
}
|
519 |
-
else if ( $prod->is_type( 'variation' )
|
520 |
|
521 |
$variation=new WC_Product_Variation($id);
|
522 |
|
@@ -532,17 +532,6 @@ class Woo_Feed_Products
|
|
532 |
continue;
|
533 |
}
|
534 |
|
535 |
-
// if($getIDs){
|
536 |
-
// if(in_array($variation->get_id(),$getIDs)){
|
537 |
-
// continue;
|
538 |
-
// }else{
|
539 |
-
// array_push($this->idExist,$variation->get_id());
|
540 |
-
// }
|
541 |
-
// }else{
|
542 |
-
// array_push($this->idExist,$variation->get_id());
|
543 |
-
// }
|
544 |
-
|
545 |
-
|
546 |
|
547 |
$parentInfo=$variation->get_parent_data();
|
548 |
$variationTitle= $parentInfo['title'];
|
@@ -563,9 +552,15 @@ class Woo_Feed_Products
|
|
563 |
|
564 |
$this->productsList[ $this->pi ]["id"] = $variation->get_id();
|
565 |
$this->productsList[ $this->pi ]["title"] = $variation->get_name();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
$this->productsList[ $this->pi ]["description"] = $description;
|
567 |
$this->productsList[ $this->pi ]['variation_type'] = $variation->get_type();
|
568 |
-
|
569 |
$this->productsList[ $this->pi ]['short_description'] = $short_description;
|
570 |
$this->productsList[ $this->pi ]['product_type'] = strip_tags(wc_get_product_category_list($variation->get_parent_id(),">",""));
|
571 |
$this->productsList[ $this->pi ]['link'] = $variation->get_permalink();
|
135 |
|
136 |
|
137 |
# Don't Include Variations for Facebook
|
138 |
+
// if ( $this->feedRule['provider'] == 'facebook' ) {
|
139 |
+
// $this->feedRule['is_variations'] = 'n';
|
140 |
+
// }
|
141 |
|
142 |
$query = new WC_Product_Query( $arg );
|
143 |
$products = $query->get_products();
|
516 |
}
|
517 |
}
|
518 |
}
|
519 |
+
else if ( $prod->is_type( 'variation' )) {
|
520 |
|
521 |
$variation=new WC_Product_Variation($id);
|
522 |
|
532 |
continue;
|
533 |
}
|
534 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
535 |
|
536 |
$parentInfo=$variation->get_parent_data();
|
537 |
$variationTitle= $parentInfo['title'];
|
552 |
|
553 |
$this->productsList[ $this->pi ]["id"] = $variation->get_id();
|
554 |
$this->productsList[ $this->pi ]["title"] = $variation->get_name();
|
555 |
+
|
556 |
+
if($this->feedRule['provider'] == 'facebook'){
|
557 |
+
$variationInfo=explode("-",$variation->get_name());
|
558 |
+
$extension=(isset($variationInfo[1])?$variationInfo[1]:"");
|
559 |
+
$description.=" ".$extension;
|
560 |
+
}
|
561 |
+
|
562 |
$this->productsList[ $this->pi ]["description"] = $description;
|
563 |
$this->productsList[ $this->pi ]['variation_type'] = $variation->get_type();
|
|
|
564 |
$this->productsList[ $this->pi ]['short_description'] = $short_description;
|
565 |
$this->productsList[ $this->pi ]['product_type'] = strip_tags(wc_get_product_category_list($variation->get_parent_id(),">",""));
|
566 |
$this->productsList[ $this->pi ]['link'] = $variation->get_permalink();
|
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: 3.0.
|
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: 3.0.8
|
20 |
* Author: WebAppick
|
21 |
* Author URI: https://webappick.com/
|
22 |
* License: GPL v2
|