CTX Feed – WooCommerce Product Feed Manager Plugin - Version 2.2.15

Version Description

Download this release

Release Info

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

Code changes from version 2.2.13 to 2.2.15

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://webappick.com
4
  Tags:woocommerce,Google Merchant Feed,Facebook product feed,eBay,Bing,pricegrabber,nextag,pricerunner,kelkoo,feed,woocommerce feed,woocommerce product feed, txt export, csv export, xml export,woocommerce export,product export, newegg,rakuten,houzz,godatafeed,pricefalls,google merchant,google shopping,sell,sears,variation export,shareasale,etsy,Buy,Getprice,LeGuide,Twenga,Beslist,Kieskeurig,HotLine,Yandex.Market,product variation,connexity,Commission Junction,channel advisor,dealtime,shopbot,shopzilla,yahoo,Getprice,Gimme,Junglee,Myshopping,Priceme,Shopmania,Wine-searcher
5
  Requires at least: 3.6
6
  Tested up to: 4.9
7
- Stable tag: 4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,7 +12,7 @@ Get Real Buyer and Boost Your Sell by Uploading your Products to 100+ Shopping E
12
 
13
  == Description ==
14
 
15
- **WooCommerce Product Feed** generate product feed or data feed to Sync your products with your merchant center like Google Shopping,Facebook Product Ads,Bing Ads, eBay, Amazon etc. The main target of this plugin is to generate product feed, automatically update product information into feed file according to given schedule and sync your product to different shopping engines via HTTP or FTP so that real buyer can get your product into shopping engines like Google Shopping, pricegrabber, pricerunner, nextag,ebay and many more.<br/><br/> Compatible with WooCommerce 3.0+
16
  <blockquote>
17
  <h4>Free version support unlimited feed with up to 2000 products including variations.</h4>
18
  <br/>
@@ -296,6 +296,12 @@ Using pro version:
296
 
297
  == Changelog ==
298
 
 
 
 
 
 
 
299
  = 2.2.11(2018-04-25) =
300
  * Minor js error fixed
301
 
4
  Tags:woocommerce,Google Merchant Feed,Facebook product feed,eBay,Bing,pricegrabber,nextag,pricerunner,kelkoo,feed,woocommerce feed,woocommerce product feed, txt export, csv export, xml export,woocommerce export,product export, newegg,rakuten,houzz,godatafeed,pricefalls,google merchant,google shopping,sell,sears,variation export,shareasale,etsy,Buy,Getprice,LeGuide,Twenga,Beslist,Kieskeurig,HotLine,Yandex.Market,product variation,connexity,Commission Junction,channel advisor,dealtime,shopbot,shopzilla,yahoo,Getprice,Gimme,Junglee,Myshopping,Priceme,Shopmania,Wine-searcher
5
  Requires at least: 3.6
6
  Tested up to: 4.9
7
+ Stable tag: 2.2.15
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ **WooCommerce Product Feed** (Woo Feed) generate product feed or data feed to Sync your products with your merchant center like Google Shopping,Facebook Product Ads,Bing Ads, eBay, Amazon etc. The main target of this plugin is to generate product feed, automatically update product information into feed file according to given schedule and sync your product to different shopping engines via HTTP or FTP so that real buyer can get your product into shopping engines like Google Shopping, pricegrabber, pricerunner, nextag,ebay and many more.<br/><br/> Compatible with WooCommerce 3.0+
16
  <blockquote>
17
  <h4>Free version support unlimited feed with up to 2000 products including variations.</h4>
18
  <br/>
296
 
297
  == Changelog ==
298
 
299
+ = 2.2.15(2018-06-09) =
300
+ * Documentation and Pro plugin link added under plugin activation links
301
+
302
+ = 2.2.14(2018-05-25) =
303
+ * Grouped product price issue fixed
304
+
305
  = 2.2.11(2018-04-25) =
306
  * Minor js error fixed
307
 
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.13';
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.15';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
includes/classes/class-woo-feed-products.php CHANGED
@@ -373,8 +373,8 @@ class Woo_Feed_Products
373
  $this->productsList[ $this->pi ]['quantity'] = $grouped->get_stock_quantity();
374
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $grouped->get_date_on_sale_from();
375
  $this->productsList[ $this->pi ]['sale_price_edate'] = $grouped->get_date_on_sale_to();
376
- $this->productsList[ $this->pi ]['price'] = $grouped->get_regular_price();
377
- $this->productsList[ $this->pi ]['sale_price'] = $grouped->get_sale_price();
378
  $this->productsList[ $this->pi ]['weight'] = $grouped->get_weight();
379
  $this->productsList[ $this->pi ]['width'] = $grouped->get_width();
380
  $this->productsList[ $this->pi ]['height'] = $grouped->get_height();
@@ -610,6 +610,42 @@ class Woo_Feed_Products
610
  return $this->productsList;
611
  }
612
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
613
  /**
614
  * Get Product Variations of a variable product
615
  * @since 2.2.0
373
  $this->productsList[ $this->pi ]['quantity'] = $grouped->get_stock_quantity();
374
  $this->productsList[ $this->pi ]['sale_price_sdate'] = $grouped->get_date_on_sale_from();
375
  $this->productsList[ $this->pi ]['sale_price_edate'] = $grouped->get_date_on_sale_to();
376
+ $this->productsList[ $this->pi ]['price'] = $this->getGroupProductPrice($grouped,"regular");
377
+ $this->productsList[ $this->pi ]['sale_price'] = $this->getGroupProductPrice($grouped,"sale");
378
  $this->productsList[ $this->pi ]['weight'] = $grouped->get_weight();
379
  $this->productsList[ $this->pi ]['width'] = $grouped->get_width();
380
  $this->productsList[ $this->pi ]['height'] = $grouped->get_height();
610
  return $this->productsList;
611
  }
612
 
613
+ /**
614
+ * Get total price of grouped product
615
+ *
616
+ * @since 2.2.14
617
+ * @param $grouped
618
+ * @param $type
619
+ * @param $taxable
620
+ * @return int|string
621
+ */
622
+ public function getGroupProductPrice($grouped,$type,$taxable=false){
623
+ $groupProductIds = $grouped->get_children();
624
+ $sum = 0;
625
+ if(!empty($groupProductIds)){
626
+
627
+ foreach($groupProductIds as $id){
628
+ $product = wc_get_product($id);
629
+ $regularPrice=$product->get_regular_price();
630
+ $currentPrice=$product->get_price();
631
+ if($type == "regular"){
632
+ if($taxable){
633
+ $regularPrice=$this->getPriceWithTax($product);
634
+
635
+ }
636
+ $sum += $regularPrice;
637
+ }else{
638
+ if($taxable){
639
+ $currentPrice=$this->getPriceWithTax($product);
640
+ }
641
+ $sum += $currentPrice;
642
+ }
643
+ }
644
+ }
645
+
646
+ return $sum;
647
+ }
648
+
649
  /**
650
  * Get Product Variations of a variable product
651
  * @since 2.2.0
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.13
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
@@ -801,3 +801,18 @@ function woo_feed_cron_update_feed()
801
  }
802
  }
803
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.15
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
801
  }
802
  }
803
  }
804
+
805
+ /**
806
+ * Add Go to Pro and Documentation link
807
+ */
808
+ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'woo_feed_plugin_action_links' );
809
+ function woo_feed_plugin_action_links( $links ) {
810
+
811
+ if ( array_key_exists( 'deactivate', $links ) ) {
812
+ $links['deactivate'] = str_replace( '<a', '<a class="wpf-deactivate-link"', $links['deactivate'] );
813
+ }
814
+ $links[] = '<a style="color:green;" href="https://webappick.com/plugin/woocommerce-product-feed-pro/?utm_source=freePlugin&utm_medium=go_premium&utm_campaign=free_to_pro&utm_term=wooFeed" target="_blank">' . __( '<b>Get Pro</b>', 'Woo Feed' ) . '</a>';
815
+ $links[] = '<a style="color:#8e44ad;" href="http://webappick.helpscoutdocs.com/" target="_blank">' . __( 'Documentation', 'Woo Feed' ) . '</a>';
816
+
817
+ return $links;
818
+ }