CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.3.67

Version Description

(2021-04-14) = * Added: FTP enable/disable option has been added.

Download this release

Release Info

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

Code changes from version 4.3.66 to 4.3.67

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Product Feed, WooCommerce, Google Shopping, Google Merchant, Facebook Cata
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 4.3.66
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -498,6 +498,9 @@ Using pro version:
498
 
499
  == Changelog ==
500
 
 
 
 
501
  = 4.3.66 (2021-04-13) =
502
  * Fixed: Brand by ctx feed missing in the dropdown issue has been fixed.
503
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 4.3.67
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
498
 
499
  == Changelog ==
500
 
501
+ = 4.3.67 (2021-04-14) =
502
+ * Added: FTP enable/disable option has been added.
503
+
504
  = 4.3.66 (2021-04-13) =
505
  * Fixed: Brand by ctx feed missing in the dropdown issue has been fixed.
506
 
admin/partials/woo-feed-edit-tabs.php CHANGED
@@ -19,12 +19,17 @@ $editorTabs = array(
19
  'filter' => array(
20
  'label' => __( 'Filter', 'woo-feed' ),
21
  'callback' => 'render_filter_config',
22
- ),
23
- 'ftp' => array(
24
- 'label' => __( 'FTP/SFTP', 'woo-feed' ),
25
- 'callback' => 'render_ftp_config',
26
- ),
27
  );
 
 
 
 
 
 
 
 
 
28
  $editorTabs = apply_filters( 'woo_feed_editor_tabs', $editorTabs );
29
  $isEdit = defined( 'WOO_FEED_EDIT_CONFIG' ) && WOO_FEED_EDIT_CONFIG;
30
  ?>
19
  'filter' => array(
20
  'label' => __( 'Filter', 'woo-feed' ),
21
  'callback' => 'render_filter_config',
22
+ )
 
 
 
 
23
  );
24
+
25
+ $settings = woo_feed_get_options('all');
26
+ if( isset($settings['enable_ftp_upload']) && 'yes' === $settings['enable_ftp_upload'] ) {
27
+ $editorTabs['ftp'] = array(
28
+ 'label' => __( 'FTP/SFTP', 'woo-feed' ),
29
+ 'callback' => 'render_ftp_config',
30
+ );
31
+ }
32
+
33
  $editorTabs = apply_filters( 'woo_feed_editor_tabs', $editorTabs );
34
  $isEdit = defined( 'WOO_FEED_EDIT_CONFIG' ) && WOO_FEED_EDIT_CONFIG;
35
  ?>
admin/partials/woo-feed-settings.php CHANGED
@@ -157,7 +157,7 @@ $settings = woo_feed_get_options( 'all' );
157
  <option value="yes" <?php selected( $settings['allow_all_shipping'], 'yes' ); ?>><?php esc_html_e( 'Enabled', 'woo-feed' ); ?></option>
158
  </select>
159
  </label>
160
- <p class="description"><?php esc_html_e( 'Disables or Enables all shipping to feed', 'woo-feed' ); ?></p>
161
  </td>
162
  </tr>
163
  <tr style="display: none;">
@@ -169,7 +169,7 @@ $settings = woo_feed_get_options( 'all' );
169
  <option value="yes" <?php selected( $settings['only_free_shipping'], 'yes' ); ?>><?php esc_html_e( 'Enabled', 'woo-feed' ); ?></option>
170
  </select>
171
  </label>
172
- <p class="description"><?php esc_html_e( 'Disables or Enables all shipping when free shipping is exists', 'woo-feed' ); ?></p>
173
  </td>
174
  </tr>
175
  <tr>
@@ -181,7 +181,19 @@ $settings = woo_feed_get_options( 'all' );
181
  <option value="yes" <?php selected( $settings['only_local_pickup_shipping'], 'yes' ); ?>><?php esc_html_e( 'Enabled', 'woo-feed' ); ?></option>
182
  </select>
183
  </label>
184
- <p class="description"><?php esc_html_e( 'Disables or Enables all shipping when local pickup shipping is exists', 'woo-feed' ); ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
185
  </td>
186
  </tr>
187
  <?php do_action( 'woo_feed_after_settings_page_fields' ); ?>
157
  <option value="yes" <?php selected( $settings['allow_all_shipping'], 'yes' ); ?>><?php esc_html_e( 'Enabled', 'woo-feed' ); ?></option>
158
  </select>
159
  </label>
160
+ <p class="description"><?php esc_html_e( 'Disable or Enable all shipping to feed', 'woo-feed' ); ?></p>
161
  </td>
162
  </tr>
163
  <tr style="display: none;">
169
  <option value="yes" <?php selected( $settings['only_free_shipping'], 'yes' ); ?>><?php esc_html_e( 'Enabled', 'woo-feed' ); ?></option>
170
  </select>
171
  </label>
172
+ <p class="description"><?php esc_html_e( 'Disable or Enable all shipping when free shipping is exists', 'woo-feed' ); ?></p>
173
  </td>
174
  </tr>
175
  <tr>
181
  <option value="yes" <?php selected( $settings['only_local_pickup_shipping'], 'yes' ); ?>><?php esc_html_e( 'Enabled', 'woo-feed' ); ?></option>
182
  </select>
183
  </label>
184
+ <p class="description"><?php esc_html_e( 'Disable or Enable all shipping when local pickup shipping is exists', 'woo-feed' ); ?></p>
185
+ </td>
186
+ </tr>
187
+ <tr>
188
+ <th scope="row"><label for="enable_ftp_upload"><?php esc_html_e( 'Enable FTP Upload', 'woo-feed' ); ?></label></th>
189
+ <td>
190
+ <label for="enable_ftp_upload">
191
+ <select name="enable_ftp_upload" id="enable_ftp_upload">
192
+ <option value="no" <?php selected( $settings['enable_ftp_upload'], 'no' ); ?>><?php esc_html_e( 'Disabled', 'woo-feed' ); ?></option>
193
+ <option value="yes" <?php selected( $settings['enable_ftp_upload'], 'yes' ); ?>><?php esc_html_e( 'Enabled', 'woo-feed' ); ?></option>
194
+ </select>
195
+ </label>
196
+ <p class="description"><?php esc_html_e( 'Disable or Enable all shipping when local pickup shipping is exists', 'woo-feed' ); ?></p>
197
  </td>
198
  </tr>
199
  <?php do_action( 'woo_feed_after_settings_page_fields' ); ?>
includes/helper.php CHANGED
@@ -2191,6 +2191,7 @@ if ( ! function_exists( 'woo_feed_get_options' ) ) {
2191
  'allow_all_shipping' => 'no',
2192
  'only_free_shipping' => 'yes',
2193
  'only_local_pickup_shipping' => 'no',
 
2194
  ];
2195
 
2196
  /**
@@ -2318,6 +2319,15 @@ if ( ! function_exists( 'woo_feed_save_options' ) ) {
2318
  }
2319
  unset( $args['only_local_pickup_shipping'] );
2320
  }
 
 
 
 
 
 
 
 
 
2321
  if ( ! empty( $args ) ) {
2322
  foreach ( $args as $key => $value ) {
2323
  if ( has_filter( "woo_feed_save_{$key}_option" ) ) {
2191
  'allow_all_shipping' => 'no',
2192
  'only_free_shipping' => 'yes',
2193
  'only_local_pickup_shipping' => 'no',
2194
+ 'enable_ftp_upload' => 'no',
2195
  ];
2196
 
2197
  /**
2319
  }
2320
  unset( $args['only_local_pickup_shipping'] );
2321
  }
2322
+
2323
+ if ( array_key_exists( 'enable_ftp_upload', $args ) ) {
2324
+ $data['enable_ftp_upload'] = strtolower( $args['enable_ftp_upload'] );
2325
+ if ( ! in_array( $data['enable_ftp_upload'], array( 'yes', 'no' ) ) ) {
2326
+ $data['enable_ftp_upload'] = in_array( $_data['enable_ftp_upload'], array( 'yes', 'no' ) ) ? $_data['enable_ftp_upload'] : $defaults['enable_ftp_upload'];
2327
+ }
2328
+ unset( $args['enable_ftp_upload'] );
2329
+ }
2330
+
2331
  if ( ! empty( $args ) ) {
2332
  foreach ( $args as $key => $value ) {
2333
  if ( has_filter( "woo_feed_save_{$key}_option" ) ) {
woo-feed.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: CTX 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.3.66
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
@@ -39,7 +39,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
39
  * @var string
40
  * @since 3.1.6
41
  */
42
- define( 'WOO_FEED_FREE_VERSION', '4.3.66' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
@@ -907,6 +907,7 @@ if ( ! function_exists( 'woo_feed_config_feed' ) ) {
907
  'allow_all_shipping' => isset( $_POST['allow_all_shipping'] ) ? sanitize_text_field( wp_unslash( $_POST['allow_all_shipping'] ) ) : '',
908
  'only_free_shipping' => isset( $_POST['only_free_shipping'] ) ? sanitize_text_field( wp_unslash( $_POST['only_free_shipping'] ) ) : '',
909
  'only_local_pickup_shipping' => isset( $_POST['only_local_pickup_shipping'] ) ? sanitize_text_field( wp_unslash( $_POST['only_local_pickup_shipping'] ) ) : '',
 
910
  );
911
 
912
  woo_feed_save_options( $data );
10
  * Plugin Name: CTX 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.3.67
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
39
  * @var string
40
  * @since 3.1.6
41
  */
42
+ define( 'WOO_FEED_FREE_VERSION', '4.3.67' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
907
  'allow_all_shipping' => isset( $_POST['allow_all_shipping'] ) ? sanitize_text_field( wp_unslash( $_POST['allow_all_shipping'] ) ) : '',
908
  'only_free_shipping' => isset( $_POST['only_free_shipping'] ) ? sanitize_text_field( wp_unslash( $_POST['only_free_shipping'] ) ) : '',
909
  'only_local_pickup_shipping' => isset( $_POST['only_local_pickup_shipping'] ) ? sanitize_text_field( wp_unslash( $_POST['only_local_pickup_shipping'] ) ) : '',
910
+ 'enable_ftp_upload' => isset( $_POST['enable_ftp_upload'] ) ? sanitize_text_field( wp_unslash( $_POST['enable_ftp_upload'] ) ) : '',
911
  );
912
 
913
  woo_feed_save_options( $data );