CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.0.9

Version Description

Download this release

Release Info

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

Code changes from version 3.0.8 to 3.0.9

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
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
  = 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
 
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.9
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.9(2019-03-15) =
300
+ * Added: Current Price attribute added. Current Price attribute will return sale price if sale price available else it will return regular price.
301
+ * WooCommerce v3.5+ compatibility checked
302
+
303
  = 3.0.8(2019-03-12) =
304
  * 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.
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 = '3.0.8';
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.9';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
includes/classes/class-woo-feed-products.php CHANGED
@@ -217,6 +217,7 @@ class Woo_Feed_Products
217
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $simple->get_date_on_sale_from();
218
  $this->productsList[ $this->pi ]['sale_price_edate'] = $simple->get_date_on_sale_to();
219
  $this->productsList[ $this->pi ]['price'] = $simple->get_regular_price();
 
220
  $this->productsList[ $this->pi ]['price_with_tax'] = $this->getPriceWithTax($simple);
221
  $this->productsList[ $this->pi ]['sale_price'] = $simple->get_sale_price();
222
  $this->productsList[ $this->pi ]['weight'] = $simple->get_weight();
@@ -305,6 +306,7 @@ class Woo_Feed_Products
305
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $external->get_date_on_sale_from();
306
  $this->productsList[ $this->pi ]['sale_price_edate'] = $external->get_date_on_sale_to();
307
  $this->productsList[ $this->pi ]['price'] = $external->get_regular_price();
 
308
  $this->productsList[ $this->pi ]['price_with_tax'] = $this->getPriceWithTax($external);
309
  $this->productsList[ $this->pi ]['sale_price'] = $external->get_sale_price();
310
  $this->productsList[ $this->pi ]['weight'] = $external->get_weight();
@@ -394,6 +396,7 @@ class Woo_Feed_Products
394
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $grouped->get_date_on_sale_from();
395
  $this->productsList[ $this->pi ]['sale_price_edate'] = $grouped->get_date_on_sale_to();
396
  $this->productsList[ $this->pi ]['price'] = $this->getGroupProductPrice($grouped,"regular");
 
397
  $this->productsList[ $this->pi ]['sale_price'] = $this->getGroupProductPrice($grouped,"sale");
398
  $this->productsList[ $this->pi ]['weight'] = $grouped->get_weight();
399
  $this->productsList[ $this->pi ]['width'] = $grouped->get_width();
@@ -485,6 +488,7 @@ class Woo_Feed_Products
485
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $variable->get_date_on_sale_from();
486
  $this->productsList[ $this->pi ]['sale_price_edate'] = $variable->get_date_on_sale_to();
487
  $this->productsList[ $this->pi ]['price'] = $variable->get_variation_regular_price();
 
488
  $this->productsList[ $this->pi ]['price_with_tax'] = $this->getPriceWithTax($variable);
489
  $this->productsList[ $this->pi ]['sale_price'] = $variable->get_variation_sale_price();
490
  $this->productsList[ $this->pi ]['weight'] = $variable->get_weight();
@@ -608,6 +612,7 @@ class Woo_Feed_Products
608
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $variation->get_date_on_sale_from();
609
  $this->productsList[ $this->pi ]['sale_price_edate'] = $variation->get_date_on_sale_to();
610
  $this->productsList[ $this->pi ]['price'] = $variation->get_regular_price();
 
611
  $this->productsList[ $this->pi ]['price_with_tax'] = $this->getPriceWithTax($variation);
612
  $this->productsList[ $this->pi ]['sale_price'] = $variation->get_sale_price();
613
  $this->productsList[ $this->pi ]['weight'] = $variation->get_weight();
@@ -780,6 +785,7 @@ class Woo_Feed_Products
780
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $variation->get_date_on_sale_from();
781
  $this->productsList[ $this->pi ]['sale_price_edate'] = $variation->get_date_on_sale_to();
782
  $this->productsList[ $this->pi ]['price'] = $variation->get_regular_price();
 
783
  $this->productsList[ $this->pi ]['price_with_tax'] = $this->getPriceWithTax($variation);
784
  $this->productsList[ $this->pi ]['sale_price'] = $variation->get_sale_price();
785
  $this->productsList[ $this->pi ]['weight'] = $variation->get_weight();
@@ -1832,6 +1838,7 @@ class Woo_Feed_Products
1832
  "availability" => "Availability",
1833
  "quantity" => "Quantity",
1834
  "price" => "Regular Price",
 
1835
  "price_with_tax" => "Price with Tax",
1836
  "sale_price" => "Sale Price",
1837
  "sale_price_sdate" => "Sale Start Date",
@@ -1965,6 +1972,7 @@ class Woo_Feed_Products
1965
  "availability" => "Availability",
1966
  "quantity" => "Quantity",
1967
  "price" => "Regular Price",
 
1968
  "price_with_tax" => "Price with Tax",
1969
  "sale_price" => "Sale Price",
1970
  "sale_price_sdate" => "Sale Start Date",
217
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $simple->get_date_on_sale_from();
218
  $this->productsList[ $this->pi ]['sale_price_edate'] = $simple->get_date_on_sale_to();
219
  $this->productsList[ $this->pi ]['price'] = $simple->get_regular_price();
220
+ $this->productsList[ $this->pi ]['current_price'] = $simple->get_price();
221
  $this->productsList[ $this->pi ]['price_with_tax'] = $this->getPriceWithTax($simple);
222
  $this->productsList[ $this->pi ]['sale_price'] = $simple->get_sale_price();
223
  $this->productsList[ $this->pi ]['weight'] = $simple->get_weight();
306
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $external->get_date_on_sale_from();
307
  $this->productsList[ $this->pi ]['sale_price_edate'] = $external->get_date_on_sale_to();
308
  $this->productsList[ $this->pi ]['price'] = $external->get_regular_price();
309
+ $this->productsList[ $this->pi ]['current_price'] = $external->get_price();
310
  $this->productsList[ $this->pi ]['price_with_tax'] = $this->getPriceWithTax($external);
311
  $this->productsList[ $this->pi ]['sale_price'] = $external->get_sale_price();
312
  $this->productsList[ $this->pi ]['weight'] = $external->get_weight();
396
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $grouped->get_date_on_sale_from();
397
  $this->productsList[ $this->pi ]['sale_price_edate'] = $grouped->get_date_on_sale_to();
398
  $this->productsList[ $this->pi ]['price'] = $this->getGroupProductPrice($grouped,"regular");
399
+ $this->productsList[ $this->pi ]['current_price'] = $this->getGroupProductPrice($grouped,"sale");
400
  $this->productsList[ $this->pi ]['sale_price'] = $this->getGroupProductPrice($grouped,"sale");
401
  $this->productsList[ $this->pi ]['weight'] = $grouped->get_weight();
402
  $this->productsList[ $this->pi ]['width'] = $grouped->get_width();
488
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $variable->get_date_on_sale_from();
489
  $this->productsList[ $this->pi ]['sale_price_edate'] = $variable->get_date_on_sale_to();
490
  $this->productsList[ $this->pi ]['price'] = $variable->get_variation_regular_price();
491
+ $this->productsList[ $this->pi ]['current_price'] = $variable->get_variation_price();
492
  $this->productsList[ $this->pi ]['price_with_tax'] = $this->getPriceWithTax($variable);
493
  $this->productsList[ $this->pi ]['sale_price'] = $variable->get_variation_sale_price();
494
  $this->productsList[ $this->pi ]['weight'] = $variable->get_weight();
612
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $variation->get_date_on_sale_from();
613
  $this->productsList[ $this->pi ]['sale_price_edate'] = $variation->get_date_on_sale_to();
614
  $this->productsList[ $this->pi ]['price'] = $variation->get_regular_price();
615
+ $this->productsList[ $this->pi ]['current_price'] = $variation->get_price();
616
  $this->productsList[ $this->pi ]['price_with_tax'] = $this->getPriceWithTax($variation);
617
  $this->productsList[ $this->pi ]['sale_price'] = $variation->get_sale_price();
618
  $this->productsList[ $this->pi ]['weight'] = $variation->get_weight();
785
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $variation->get_date_on_sale_from();
786
  $this->productsList[ $this->pi ]['sale_price_edate'] = $variation->get_date_on_sale_to();
787
  $this->productsList[ $this->pi ]['price'] = $variation->get_regular_price();
788
+ $this->productsList[ $this->pi ]['current_price'] = $variation->get_price();
789
  $this->productsList[ $this->pi ]['price_with_tax'] = $this->getPriceWithTax($variation);
790
  $this->productsList[ $this->pi ]['sale_price'] = $variation->get_sale_price();
791
  $this->productsList[ $this->pi ]['weight'] = $variation->get_weight();
1838
  "availability" => "Availability",
1839
  "quantity" => "Quantity",
1840
  "price" => "Regular Price",
1841
+ "current_price" => "Current Price",
1842
  "price_with_tax" => "Price with Tax",
1843
  "sale_price" => "Sale Price",
1844
  "sale_price_sdate" => "Sale Start Date",
1972
  "availability" => "Availability",
1973
  "quantity" => "Quantity",
1974
  "price" => "Regular Price",
1975
+ "current_price" => "Current Price",
1976
  "price_with_tax" => "Price with Tax",
1977
  "sale_price" => "Sale Price",
1978
  "sale_price_sdate" => "Sale Start Date",
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.8
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.9
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2