CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.6.6

Version Description

(2020-06-18) = * Added: WooCommerce Subscription product compatibility added.

Download this release

Release Info

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

Code changes from version 3.6.5 to 3.6.6

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags:product feed,woocommerce product feed,google shopping feed,google shopping,
5
  Requires at least: 3.6
6
  Tested Up To: 5.4
7
  Requires PHP: 5.6
8
- Stable tag: 3.6.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -305,6 +305,9 @@ Using pro version:
305
 
306
  == Changelog ==
307
 
 
 
 
308
  = 3.6.5 (2020-06-13) =
309
  * Added: FTP passive mode selection option added.
310
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.4
7
  Requires PHP: 5.6
8
+ Stable tag: 3.6.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
305
 
306
  == Changelog ==
307
 
308
+ = 3.6.6 (2020-06-18) =
309
+ * Added: WooCommerce Subscription product compatibility added.
310
+
311
  = 3.6.5 (2020-06-13) =
312
  * Added: FTP passive mode selection option added.
313
 
includes/classes/class-woo-feed-dropdown.php CHANGED
@@ -227,6 +227,13 @@ class Woo_Feed_Dropdown {
227
  'yoast_wpseo_metadesc' => esc_html__( 'Description [Yoast SEO]', 'woo-feed' ),
228
  ] );
229
  }
 
 
 
 
 
 
 
230
 
231
  // Image Attributes.
232
  $attributes['--2'] = esc_html__( 'Image Attributes', 'woo-feed' );
227
  'yoast_wpseo_metadesc' => esc_html__( 'Description [Yoast SEO]', 'woo-feed' ),
228
  ] );
229
  }
230
+
231
+ if ( class_exists( 'WC_Subscriptions' ) ) {
232
+ $attributes = array_merge( $attributes,
233
+ [
234
+ 'subscription_period' => esc_html__( 'Subscription Period', 'woo-feed' ),
235
+ ] );
236
+ }
237
 
238
  // Image Attributes.
239
  $attributes['--2'] = esc_html__( 'Image Attributes', 'woo-feed' );
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -156,6 +156,8 @@ class Woo_Feed_Products_v3
156
  'variation',
157
  'grouped',
158
  'external',
 
 
159
  );
160
  /**
161
  * Post meta prefix for dropdown item
@@ -196,7 +198,7 @@ class Woo_Feed_Products_v3
196
  $args = array(
197
  'limit' => 2e3, // phpcs:ignore
198
  'status' => $this->post_status,
199
- 'type' => ['simple', 'variable', 'grouped', 'external'],
200
  'orderby' => 'date',
201
  'order' => 'DESC',
202
  'return' => 'ids',
@@ -2574,4 +2576,20 @@ class Woo_Feed_Products_v3
2574
 
2575
  return "$output";
2576
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2577
  }
156
  'variation',
157
  'grouped',
158
  'external',
159
+ 'subscription',
160
+ 'variable-subscription'
161
  );
162
  /**
163
  * Post meta prefix for dropdown item
198
  $args = array(
199
  'limit' => 2e3, // phpcs:ignore
200
  'status' => $this->post_status,
201
+ 'type' => ['simple', 'variable', 'grouped', 'external','subscription', 'variable-subscription'],
202
  'orderby' => 'date',
203
  'order' => 'DESC',
204
  'return' => 'ids',
2576
 
2577
  return "$output";
2578
  }
2579
+
2580
+ /**
2581
+ * Get Subscription period
2582
+ *
2583
+ * @param WC_Product $product
2584
+ *
2585
+ * @return mixed
2586
+ * @since 3.6.3
2587
+ *
2588
+ */
2589
+ protected function subscription_period($product){
2590
+ if ( class_exists( 'WC_Subscriptions' ) ) {
2591
+ return $this->getProductMeta($product,'_subscription_period');
2592
+ }
2593
+ return '';
2594
+ }
2595
  }
includes/helper.php CHANGED
@@ -552,7 +552,7 @@ if ( ! function_exists( 'woo_feed_parse_feed_rules' ) ) {
552
  'ftpuser' => '',
553
  'ftppassword' => '',
554
  'ftppath' => '',
555
- 'ftpmode' => false,
556
  'is_variations' => 'n',
557
  'variable_price' => 'first',
558
  'variable_quantity' => 'first',
552
  'ftpuser' => '',
553
  'ftppassword' => '',
554
  'ftppath' => '',
555
+ 'ftpmode' => 'active',
556
  'is_variations' => 'n',
557
  'variable_price' => 'first',
558
  'variable_quantity' => 'first',
woo-feed.php CHANGED
@@ -11,7 +11,7 @@
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
  *
14
- * Version: 3.6.5
15
  * Author: WebAppick
16
  * Author URI: https://webappick.com/
17
  * 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', '3.6.5' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
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
  *
14
+ * Version: 3.6.6
15
  * Author: WebAppick
16
  * Author URI: https://webappick.com/
17
  * License: GPL v2
39
  * @var string
40
  * @since 3.1.6
41
  */
42
+ define( 'WOO_FEED_FREE_VERSION', '3.6.6' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {