CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.1.8

Version Description

(2020-11-11) = * Tweak: Striping title, description, short description. * Fix: Fatal error for saveCSVFile.

Download this release

Release Info

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

Code changes from version 4.1.7 to 4.1.8

README.txt CHANGED
@@ -8,7 +8,7 @@ Google Product Review feed, product variations, rakuteen, shopping, skroutz, TSV
8
  Requires at least: 3.6
9
  Tested Up To: 5.5
10
  Requires PHP: 5.6
11
- Stable tag: 4.1.7
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
@@ -311,6 +311,10 @@ Using pro version:
311
 
312
  == Changelog ==
313
 
 
 
 
 
314
  = 4.1.7 (2020-11-11) =
315
  * Added: TSV file support.
316
  * Added: XLS file support.
8
  Requires at least: 3.6
9
  Tested Up To: 5.5
10
  Requires PHP: 5.6
11
+ Stable tag: 4.1.8
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
311
 
312
  == Changelog ==
313
 
314
+ = 4.1.8 (2020-11-11) =
315
+ * Tweak: Striping title, description, short description.
316
+ * Fix: Fatal error for saveCSVFile.
317
+
318
  = 4.1.7 (2020-11-11) =
319
  * Added: TSV file support.
320
  * Added: XLS file support.
includes/classes/class-woo-feed-savefile.php CHANGED
@@ -100,54 +100,6 @@ class Woo_Feed_Savefile {
100
  return false;
101
  }
102
  }
103
-
104
- /**
105
- * Save XLS Feed file
106
- *
107
- * @param $path
108
- * @param $file
109
- * @param $content
110
- * @param $info
111
- *
112
- * @return bool
113
- */
114
- public function saveXLSFile( $path, $file, $content, $info ) {
115
-
116
- if ( $this->checkDir( $path ) ) {
117
- /**
118
- * @TODO see below
119
- * @see Woo_Feed_Savefile::saveFile()
120
- */
121
- if ( file_exists( $file ) ) {
122
- unlink( $file ); // phpcs:ignore
123
- }
124
-
125
- $fxl = fopen( $file, 'w' ); // phpcs:ignore
126
-
127
- $delimiter = "\t";
128
- $enclosure = $info['enclosure'];
129
-
130
- $xl_col_value = "";
131
- if ( count( $content ) ) {
132
- foreach ( $content as $key => $fields ) {
133
-
134
- foreach($fields as $value) {
135
- $xl_col_value .= $value . $delimiter;
136
- }
137
-
138
- $xl_col_value .= "\n";
139
- }
140
- }
141
-
142
- fwrite($fxl, $xl_col_value);
143
-
144
- fclose($fxl);
145
-
146
- return true;
147
- } else {
148
- return false;
149
- }
150
- }
151
 
152
  /**
153
  * Save XML and TXT File
100
  return false;
101
  }
102
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
 
104
  /**
105
  * Save XML and TXT File
includes/helper.php CHANGED
@@ -1770,7 +1770,7 @@ if ( ! function_exists( 'woo_feed_generate_feed' ) ) {
1770
  // Generate Feed Data
1771
  $products = new Woo_Generate_Feed( $info['provider'], $info );
1772
  $getString = $products->getProducts();
1773
- if ( 'csv' == $info['feedType'] ) {
1774
  $csvHead[0] = $getString['header'];
1775
  if ( ! empty( $csvHead ) && ! empty( $getString['body'] ) ) {
1776
  $string = array_merge( $csvHead, $getString['body'] );
@@ -1788,8 +1788,8 @@ if ( ! function_exists( 'woo_feed_generate_feed' ) ) {
1788
  $path = woo_feed_get_file_path( $info['provider'], $info['feedType'] );
1789
  $file = woo_feed_get_file( $feed_option_name, $info['provider'], $info['feedType'] );
1790
  $save = new Woo_Feed_Savefile();
1791
- if ( 'csv' == $info['feedType'] ) {
1792
- $saveFile = $save->saveCSVFile( $path, $file, $string, $info );
1793
  } else {
1794
  $saveFile = $save->saveFile( $path, $file, $string );
1795
  }
1770
  // Generate Feed Data
1771
  $products = new Woo_Generate_Feed( $info['provider'], $info );
1772
  $getString = $products->getProducts();
1773
+ if ( 'csv' == $info['feedType'] || 'tsv' == $info['feedType'] || 'xls' == $info['feedType'] ) {
1774
  $csvHead[0] = $getString['header'];
1775
  if ( ! empty( $csvHead ) && ! empty( $getString['body'] ) ) {
1776
  $string = array_merge( $csvHead, $getString['body'] );
1788
  $path = woo_feed_get_file_path( $info['provider'], $info['feedType'] );
1789
  $file = woo_feed_get_file( $feed_option_name, $info['provider'], $info['feedType'] );
1790
  $save = new Woo_Feed_Savefile();
1791
+ if ( 'csv' == $info['feedType'] || 'tsv' == $info['feedType'] || 'xls' == $info['feedType'] ) {
1792
+ $saveFile = $save->saveValueFile( $path, $file, $string, $info, $info['feedType'] );
1793
  } else {
1794
  $saveFile = $save->saveFile( $path, $file, $string );
1795
  }
woo-feed.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: WooCommerce Product 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.1.7
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
@@ -38,7 +38,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
38
  * @var string
39
  * @since 3.1.6
40
  */
41
- define( 'WOO_FEED_FREE_VERSION', '4.1.7' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
10
  * Plugin Name: WooCommerce Product 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.1.8
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
38
  * @var string
39
  * @since 3.1.6
40
  */
41
+ define( 'WOO_FEED_FREE_VERSION', '4.1.8' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {