CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.5.5

Version Description

(2020-05-18) = * Fix: Spartoo.fi Parent/Child attribute value now return child for variation and Parent for other product type instead of woocommerce product type.

Download this release

Release Info

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

Code changes from version 3.5.4 to 3.5.5

Files changed (3) hide show
  1. README.txt +4 -1
  2. includes/feeds/merchant_infos.php +3 -0
  3. woo-feed.php +21 -2
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.5.4
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.5.4 (2020-05-14) =
309
  * Tweak: Plugin cache flashed after adding/updating a attribute.
310
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.4
7
  Requires PHP: 5.6
8
+ Stable tag: 3.5.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
305
 
306
  == Changelog ==
307
 
308
+ = 3.5.5 (2020-05-18) =
309
+ * Fix: Spartoo.fi Parent/Child attribute value now return child for variation and Parent for other product type instead of woocommerce product type.
310
+
311
  = 3.5.4 (2020-05-14) =
312
  * Tweak: Plugin cache flashed after adding/updating a attribute.
313
 
includes/feeds/merchant_infos.php CHANGED
@@ -350,5 +350,8 @@ return array(
350
  ),
351
  'feed_file_type' => array( 'XML', 'CSV' ),
352
  ), // Daisycon Advertiser: Work & Jobs
 
 
 
353
  );
354
  // End of file merchant_infos.php
350
  ),
351
  'feed_file_type' => array( 'XML', 'CSV' ),
352
  ), // Daisycon Advertiser: Work & Jobs
353
+ 'spartoo.fi' => array(
354
+ 'feed_file_type' => array( 'CSV' ),
355
+ ), // Daisycon Advertiser: Work & Jobs
356
  );
357
  // End of file merchant_infos.php
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.5.4
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.5.4' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
@@ -842,4 +842,23 @@ if ( ! function_exists( 'woo_feed_flash_cache_action' ) ) {
842
  add_action('woocommerce_after_add_attribute_fields','woo_feed_flash_cache_action');
843
  add_action('woocommerce_after_edit_attribute_fields','woo_feed_flash_cache_action');
844
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
845
  // End of file woo-feed.php
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.5.5
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.5.5' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
842
  add_action('woocommerce_after_add_attribute_fields','woo_feed_flash_cache_action');
843
  add_action('woocommerce_after_edit_attribute_fields','woo_feed_flash_cache_action');
844
 
845
+ /**
846
+ * Modify Spartoo feed Parent/Child attribute value.
847
+ *
848
+ * @param $attribute_value
849
+ * @param $product
850
+ * @param $feed_config
851
+ * @return string
852
+ */
853
+ function woo_feed_spartoo_attribute_value_modify($attribute_value, $product, $feed_config){
854
+ if('spartoo.fi'===$feed_config['provider'] ){
855
+ if('variation'===$attribute_value){
856
+ return "child";
857
+ }else{
858
+ return "parent";
859
+ }
860
+ }
861
+ return $attribute_value;
862
+ }
863
+ add_filter('woo_feed_get_type_attribute','woo_feed_spartoo_attribute_value_modify',10,3);
864
  // End of file woo-feed.php