CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.3.34

Version Description

(2021-02-18) = * Added: Wine Searcher template added.

Download this release

Release Info

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

Code changes from version 4.3.33 to 4.3.34

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.6.1
7
  Requires PHP: 5.6
8
- Stable tag: 4.3.33
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.33 (2021-02-17) =
502
  * Added: WP options feature added where wordpress built-in options can be set from the WP Options page and can be found in the product attribute dropdown list.
503
  * Added: Product custom attributes in product attribute dropdown list.
5
  Requires at least: 3.6
6
  Tested Up To: 5.6.1
7
  Requires PHP: 5.6
8
+ Stable tag: 4.3.34
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.34 (2021-02-18) =
502
+ * Added: Wine Searcher template added.
503
+
504
  = 4.3.33 (2021-02-17) =
505
  * Added: WP options feature added where wordpress built-in options can be set from the WP Options page and can be found in the product attribute dropdown list.
506
  * Added: Product custom attributes in product attribute dropdown list.
admin/class-woo-feed-option-list.php CHANGED
@@ -71,9 +71,9 @@ class Woo_Feed_Option_list extends Woo_Feed_List_Table {
71
 
72
  return $newName;
73
  case 'option_value':
74
- if( isset($item['option_id']) ) {
75
  $option_value = get_option($item['option_id']);
76
- if( is_array($option_value) ) {
77
  $optionValue = implode(', ', $option_value);
78
  }else {
79
  $optionValue = $option_value;
71
 
72
  return $newName;
73
  case 'option_value':
74
+ if ( isset($item['option_id']) ) {
75
  $option_value = get_option($item['option_id']);
76
+ if ( is_array($option_value) ) {
77
  $optionValue = implode(', ', $option_value);
78
  }else {
79
  $optionValue = $option_value;
admin/partials/templates/wine_searcher.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <wine-searcher-datafeed>
2
+ <product-list>
3
+ {separator}
4
+ </product-list>
5
+ </wine-searcher-datafeed>
includes/classes/class-woo-feed-default-attributes.php CHANGED
@@ -872,6 +872,29 @@ class Woo_Feed_Default_Attributes {
872
  );
873
  }
874
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
875
  /**
876
  * Catch.com.au Attribute List
877
  *
872
  );
873
  }
874
 
875
+ /**
876
+ * Wine Searcher Attribute List
877
+ *
878
+ * @return array
879
+ */
880
+ public function winesearcherAttributes() {
881
+ return array(
882
+ '--1' => 'Basic Information',
883
+ 'name' => 'Product Title[name]',
884
+ 'description' => 'Product description[description]',
885
+ 'vintage' => 'Vintage[vintage]',
886
+ 'link' => 'Product URL[link]',
887
+ 'unit-size' => 'Unit Size[unit-size]',
888
+ 'price' => 'Price[price]',
889
+ 'url' => 'URL[url] ',
890
+ 'min-order' => 'Minimum Order[min-order]',
891
+ 'tax' => 'Tax[tax]',
892
+ 'offer-type' => 'Offer Type[offer-type]',
893
+ 'delivery-time' => 'Delivery Time[delivery-time]',
894
+ 'stock-level' => 'Stock Level[stock-level]',
895
+ );
896
+ }
897
+
898
  /**
899
  * Catch.com.au Attribute List
900
  *
includes/classes/class-woo-feed-dropdown.php CHANGED
@@ -778,6 +778,23 @@ class Woo_Feed_Dropdown {
778
  return $options;
779
  }
780
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
781
  /**
782
  * Dropdown of Catch.com.au Attribute List
783
  *
778
  return $options;
779
  }
780
 
781
+ /**
782
+ * Dropdown of Wine Searcher Attribute List
783
+ *
784
+ * @param string $selected
785
+ *
786
+ * @return string
787
+ */
788
+ public function wine_searcherAttributesDropdown( $selected = '' ) {
789
+ $options = $this->get_cached_dropdown( 'wine_searcherAttributesDropdown', $selected );
790
+ if ( false === $options ) {
791
+ $attributes_obj = new Woo_Feed_Default_Attributes();
792
+ $attributes = apply_filters( 'woo_feed_filter_dropdown_attributes', $attributes_obj->winesearcherAttributes(), [ 'winesearcher' ] );
793
+ return $this->cache_dropdown( 'wine_searcherAttributesDropdown', $attributes, $selected );
794
+ }
795
+ return $options;
796
+ }
797
+
798
  /**
799
  * Dropdown of Catch.com.au Attribute List
800
  *
includes/classes/class-woo-feed-merchant.php CHANGED
@@ -431,6 +431,7 @@ class Woo_Feed_Merchant {
431
  'vertaa.fi' => esc_html__( 'Vertaa.fi', 'woo-feed' ),
432
  'walmart' => esc_html__( 'Walmart', 'woo-feed' ),
433
  'webmarchand' => esc_html__( 'Webmarchand', 'woo-feed' ),
 
434
  'wish' => esc_html__( 'Wish.com', 'woo-feed' ),
435
  'yahoo_nfa' => esc_html__( 'Yahoo NFA', 'woo-feed' ),
436
  'zap.co.il' => esc_html__( 'Zap.co.il', 'woo-feed' ),
431
  'vertaa.fi' => esc_html__( 'Vertaa.fi', 'woo-feed' ),
432
  'walmart' => esc_html__( 'Walmart', 'woo-feed' ),
433
  'webmarchand' => esc_html__( 'Webmarchand', 'woo-feed' ),
434
+ 'wine_searcher' => esc_html__( 'Wine Searcher', 'woo-feed' ),
435
  'wish' => esc_html__( 'Wish.com', 'woo-feed' ),
436
  'yahoo_nfa' => esc_html__( 'Yahoo NFA', 'woo-feed' ),
437
  'zap.co.il' => esc_html__( 'Zap.co.il', 'woo-feed' ),
includes/feeds/merchant_infos.php CHANGED
@@ -411,5 +411,8 @@ return array(
411
  'fashionchick' => array(
412
  'feed_file_type' => array( 'CSV', 'TXT' ),
413
  ),
 
 
 
414
  );
415
  // End of file merchant_infos.php
411
  'fashionchick' => array(
412
  'feed_file_type' => array( 'CSV', 'TXT' ),
413
  ),
414
+ 'wine_searcher' => array(
415
+ 'feed_file_type' => array( 'XML', 'TXT' ),
416
+ ),
417
  );
418
  // End of file merchant_infos.php
includes/feeds/merchant_templates.php CHANGED
@@ -2986,6 +2986,16 @@ return array(
2986
  'suffix' => array('','',),
2987
  'output_type' => array('1','1',),
2988
  'limit' => array('','',),
 
 
 
 
 
 
 
 
 
 
2989
  ),
2990
  'idealo' => array(
2991
  'mattributes' => array(
2986
  'suffix' => array('','',),
2987
  'output_type' => array('1','1',),
2988
  'limit' => array('','',),
2989
+ ),
2990
+ 'wine_searcher' => array(
2991
+ 'mattributes' => array('name','description','vintage','unit-size','price','url','min-order','tax','offer-type','delivery-time','stock-level',),
2992
+ 'prefix' => array('','','','','','','','','','','',),
2993
+ 'type' => array('attribute','attribute','pattern','pattern','attribute','attribute','pattern','pattern','pattern','pattern','attribute',),
2994
+ 'attributes' => array('title','description','','','price','link','','','','','quantity',),
2995
+ 'default' => array('','','','','','Develop-free','','','','','',),
2996
+ 'suffix' => array('','','','','','','','','','','',),
2997
+ 'output_type' => array('1','1','1','1','6','1','1','1','1','1','1',),
2998
+ 'limit' => array('','','','','','','','','','','',),
2999
  ),
3000
  'idealo' => array(
3001
  'mattributes' => array(
includes/helper.php CHANGED
@@ -2545,12 +2545,20 @@ if ( ! function_exists( 'woo_feed_filter_parsed_rules' ) ) {
2545
  */
2546
  function woo_feed_filter_parsed_rules( $rules, $context ) {
2547
  $provider = $rules['provider'];
 
2548
  if ( 'create' === $context ) {
2549
  if ( 'criteo' === $provider ) {
2550
  $rules['itemsWrapper'] = 'channel';
2551
  $rules['itemWrapper'] = 'item';
2552
  }
2553
-
 
 
 
 
 
 
 
2554
  if ( 'trovaprezzi' === $provider ) {
2555
  $rules['decimal_separator'] = ',';
2556
  $rules['thousand_separator'] = '';
2545
  */
2546
  function woo_feed_filter_parsed_rules( $rules, $context ) {
2547
  $provider = $rules['provider'];
2548
+
2549
  if ( 'create' === $context ) {
2550
  if ( 'criteo' === $provider ) {
2551
  $rules['itemsWrapper'] = 'channel';
2552
  $rules['itemWrapper'] = 'item';
2553
  }
2554
+
2555
+ if ( 'wine_searcher' === $provider ) {
2556
+ $rules['itemsWrapper'] = 'product-list';
2557
+ $rules['itemWrapper'] = 'row';
2558
+ $rules['delimiter'] = '|';
2559
+ $rules['enclosure'] = ' ';
2560
+ }
2561
+
2562
  if ( 'trovaprezzi' === $provider ) {
2563
  $rules['decimal_separator'] = ',';
2564
  $rules['thousand_separator'] = '';
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.33
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.3.33' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
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.34
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.3.34' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {