CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.6.15

Version Description

(2020-08-03) = * Added: Google product highlight attribute added to Google Shopping template.

Download this release

Release Info

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

Code changes from version 3.6.14 to 3.6.15

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.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -308,6 +308,10 @@ Using pro version:
308
 
309
  == Changelog ==
310
 
 
 
 
 
311
  = 3.6.14 (2020-07-25) =
312
  * Added: Etsy template added.
313
  * Tweak: Pricerunner stock status will return Yes or No instead of in stock or out of stock.
5
  Requires at least: 3.6
6
  Tested Up To: 5.4
7
  Requires PHP: 5.6
8
+ Stable tag: 3.6.15
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
308
 
309
  == Changelog ==
310
 
311
+ = 3.6.15 (2020-08-03) =
312
+ * Added: Google product highlight attribute added to Google Shopping template.
313
+
314
+
315
  = 3.6.14 (2020-07-25) =
316
  * Added: Etsy template added.
317
  * Tweak: Pricerunner stock status will return Yes or No instead of in stock or out of stock.
includes/classes/class-woo-feed-default-attributes.php CHANGED
@@ -48,6 +48,16 @@ class Woo_Feed_Default_Attributes {
48
  'upc' => array( 'g:gtin', true ),
49
  'identifier_exists' => array( 'g:identifier_exists', true ),
50
  'item_group_id' => array( 'g:item_group_id', false ),
 
 
 
 
 
 
 
 
 
 
51
  'color' => array( 'g:color', true ),
52
  'gender' => array( 'g:gender', true ),
53
  'age_group' => array( 'g:age_group', true ),
@@ -139,6 +149,16 @@ class Woo_Feed_Default_Attributes {
139
  'upc' => array( 'gtin', true ),
140
  'identifier_exists' => array( 'identifier exists', true ),
141
  'item_group_id' => array( 'item group id', false ),
 
 
 
 
 
 
 
 
 
 
142
  'color' => array( 'color', true ),
143
  'gender' => array( 'gender', true ),
144
  'age_group' => array( 'age group', true ),
@@ -582,6 +602,16 @@ class Woo_Feed_Default_Attributes {
582
  'size' => 'Size of the item[size]',
583
  'size_type' => 'Size Type[size_type]',
584
  'size_system' => 'Size System[size_system]',
 
 
 
 
 
 
 
 
 
 
585
  '---4' => '',
586
  '--5' => 'Tax & Shipping',
587
  'tax' => 'Tax[tax]',
48
  'upc' => array( 'g:gtin', true ),
49
  'identifier_exists' => array( 'g:identifier_exists', true ),
50
  'item_group_id' => array( 'g:item_group_id', false ),
51
+ 'product_highlight_1' => array( 'g:product_highlight', true ),
52
+ 'product_highlight_2' => array( 'g:product_highlight', true ),
53
+ 'product_highlight_3' => array( 'g:product_highlight', true ),
54
+ 'product_highlight_4' => array( 'g:product_highlight', true ),
55
+ 'product_highlight_5' => array( 'g:product_highlight', true ),
56
+ 'product_highlight_6' => array( 'g:product_highlight', true ),
57
+ 'product_highlight_7' => array( 'g:product_highlight', true ),
58
+ 'product_highlight_8' => array( 'g:product_highlight', true ),
59
+ 'product_highlight_9' => array( 'g:product_highlight', true ),
60
+ 'product_highlight_10' => array( 'g:product_highlight', true ),
61
  'color' => array( 'g:color', true ),
62
  'gender' => array( 'g:gender', true ),
63
  'age_group' => array( 'g:age_group', true ),
149
  'upc' => array( 'gtin', true ),
150
  'identifier_exists' => array( 'identifier exists', true ),
151
  'item_group_id' => array( 'item group id', false ),
152
+ 'product_highlight_1' => array( 'product highlight 1', true ),
153
+ 'product_highlight_2' => array( 'product highlight 2', true ),
154
+ 'product_highlight_3' => array( 'product highlight 3', true ),
155
+ 'product_highlight_4' => array( 'product highlight 4', true ),
156
+ 'product_highlight_5' => array( 'product highlight 5', true ),
157
+ 'product_highlight_6' => array( 'product highlight 6', true ),
158
+ 'product_highlight_7' => array( 'product highlight 7', true ),
159
+ 'product_highlight_8' => array( 'product highlight 8', true ),
160
+ 'product_highlight_9' => array( 'product highlight 9', true ),
161
+ 'product_highlight_10' => array( 'product highlight 10', true ),
162
  'color' => array( 'color', true ),
163
  'gender' => array( 'gender', true ),
164
  'age_group' => array( 'age group', true ),
602
  'size' => 'Size of the item[size]',
603
  'size_type' => 'Size Type[size_type]',
604
  'size_system' => 'Size System[size_system]',
605
+ 'product_highlight_1' => 'Product Highlight 1[product_highlight]',
606
+ 'product_highlight_2' => 'Product Highlight 2[product_highlight]',
607
+ 'product_highlight_3' => 'Product Highlight 3[product_highlight]',
608
+ 'product_highlight_4' => 'Product Highlight 4[product_highlight]',
609
+ 'product_highlight_5' => 'Product Highlight 5[product_highlight]',
610
+ 'product_highlight_6' => 'Product Highlight 6[product_highlight]',
611
+ 'product_highlight_7' => 'Product Highlight 7[product_highlight]',
612
+ 'product_highlight_8' => 'Product Highlight 8[product_highlight]',
613
+ 'product_highlight_9' => 'Product Highlight 9[product_highlight]',
614
+ 'product_highlight_10' => 'Product Highlight 10[product_highlight]',
615
  '---4' => '',
616
  '--5' => 'Tax & Shipping',
617
  'tax' => 'Tax[tax]',
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -75,6 +75,22 @@ class Woo_Feed_Products_v3
75
  * @var string
76
  */
77
  protected $queryType = 'wp';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  /**
79
  * Google shipping tax attributes
80
  * @var array
@@ -900,6 +916,10 @@ class Woo_Feed_Products_v3
900
  $headers = array_keys($product);
901
  $this->feedHeader .= $this->enclosure . implode("$this->enclosure$this->delimiter$this->enclosure", $headers) . $this->enclosure . $eol;
902
 
 
 
 
 
903
  return $this->feedHeader;
904
  }
905
 
@@ -955,6 +975,10 @@ class Woo_Feed_Products_v3
955
  $product = $this->products[$this->pi];
956
  $this->feedHeader = array_keys($product);
957
 
 
 
 
 
958
  return $this->feedHeader;
959
  }
960
 
75
  * @var string
76
  */
77
  protected $queryType = 'wp';
78
+ /**
79
+ * To replace google product highlight attribute for CSV & TXT feed
80
+ * @var array
81
+ */
82
+ protected $google_product_highlights=array(
83
+ 'product highlight 1',
84
+ 'product highlight 2',
85
+ 'product highlight 3',
86
+ 'product highlight 4',
87
+ 'product highlight 5',
88
+ 'product highlight 6',
89
+ 'product highlight 7',
90
+ 'product highlight 8',
91
+ 'product highlight 9',
92
+ 'product highlight 10',
93
+ );
94
  /**
95
  * Google shipping tax attributes
96
  * @var array
916
  $headers = array_keys($product);
917
  $this->feedHeader .= $this->enclosure . implode("$this->enclosure$this->delimiter$this->enclosure", $headers) . $this->enclosure . $eol;
918
 
919
+ if('google'===$this->config['provider']){
920
+ $this->feedHeader=str_replace($this->google_product_highlights,'product highlight',$this->feedHeader);
921
+ }
922
+
923
  return $this->feedHeader;
924
  }
925
 
975
  $product = $this->products[$this->pi];
976
  $this->feedHeader = array_keys($product);
977
 
978
+ if('google'===$this->config['provider']){
979
+ $this->feedHeader=str_replace($this->google_product_highlights,'product highlight',$this->feedHeader);
980
+ }
981
+
982
  return $this->feedHeader;
983
  }
984
 
includes/feeds/merchant_templates_override.php CHANGED
@@ -25,7 +25,7 @@ function woo_feed_spartoo_attribute_value_modify($attribute_value, $product, $fe
25
  return $attribute_value;
26
  }
27
  add_filter('woo_feed_get_type_attribute','woo_feed_spartoo_attribute_value_modify',10,3);
28
- ################ Availability #################
29
  /**
30
  * Modify Availability value
31
  *
25
  return $attribute_value;
26
  }
27
  add_filter('woo_feed_get_type_attribute','woo_feed_spartoo_attribute_value_modify',10,3);
28
+ ################ Availability ################# title
29
  /**
30
  * Modify Availability value
31
  *
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.14
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.14' );
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.15
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.15' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {