CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.1.3

Version Description

(2020-11-03) = * Tweak: Google shopping action feed structure.

Download this release

Release Info

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

Code changes from version 4.1.2 to 4.1.3

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.5
7
  Requires PHP: 5.6
8
- Stable tag: 4.1.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -308,6 +308,9 @@ Using pro version:
308
 
309
  == Changelog ==
310
 
 
 
 
311
  = 4.1.2 (2020-11-01) =
312
  * Fix: Code enhancement.
313
  * Tweak: Performance increased.
5
  Requires at least: 3.6
6
  Tested Up To: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 4.1.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
308
 
309
  == Changelog ==
310
 
311
+ = 4.1.3 (2020-11-03) =
312
+ * Tweak: Google shopping action feed structure.
313
+
314
  = 4.1.2 (2020-11-01) =
315
  * Fix: Code enhancement.
316
  * Tweak: Performance increased.
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -558,7 +558,15 @@ class Woo_Feed_Products_v3
558
  }else {
559
  $this->feedBody .= '<' . $getReplacedAttribute . '>' . "$attributeValue" . '</' . $getReplacedAttribute . '>';
560
  }
561
- }else {
 
 
 
 
 
 
 
 
562
  $this->feedBody .= '<' . $getReplacedAttribute . '>' . "$attributeValue" . '</' . $getReplacedAttribute . '>';
563
  }
564
 
558
  }else {
559
  $this->feedBody .= '<' . $getReplacedAttribute . '>' . "$attributeValue" . '</' . $getReplacedAttribute . '>';
560
  }
561
+ }elseif( 'google_shopping_action' === $merchant ) {
562
+ if( 'description' === $merchant_attribute ) {
563
+ $this->feedBody .= '<g:description>' . "$attributeValue" . '</g:description>';
564
+ }else {
565
+ // Strip slash from output
566
+ $this->feedBody .= '<' . $getReplacedAttribute . '>' . "$attributeValue" . '</' . $getReplacedAttribute . '>';
567
+ $this->feedBody .= "\n";
568
+ }
569
+ }else {
570
  $this->feedBody .= '<' . $getReplacedAttribute . '>' . "$attributeValue" . '</' . $getReplacedAttribute . '>';
571
  }
572
 
includes/helper.php CHANGED
@@ -377,7 +377,7 @@ if ( ! function_exists( 'woo_feed_get_merchant_class' ) ) {
377
  * @return string
378
  */
379
  function woo_feed_get_merchant_class( $provider ) {
380
- if ( in_array( $provider, [ 'google', 'adroll', 'smartly.io' ], true ) ) {
381
  return 'Woo_Feed_Google';
382
  } elseif ( 'pinterest' === $provider ) {
383
  return 'Woo_Feed_Pinterest';
@@ -2013,7 +2013,7 @@ if ( ! function_exists( 'woo_feed_replace_to_merchant_attribute' ) ) {
2013
  function woo_feed_replace_to_merchant_attribute( $pluginAttribute, $merchant, $feedType ) {
2014
  $attributeClass = new Woo_Feed_Default_Attributes();
2015
  $merchantAttributes = '';
2016
- if ( 'google' == $merchant || 'adroll' == $merchant || 'smartly.io' == $merchant ) {
2017
  if ( 'xml' == $feedType ) {
2018
  $merchantAttributes = $attributeClass->googleXMLAttribute;
2019
  } elseif ( 'csv' == $feedType || 'txt' == $feedType ) {
377
  * @return string
378
  */
379
  function woo_feed_get_merchant_class( $provider ) {
380
+ if ( in_array( $provider, [ 'google', 'google_shopping_action', 'adroll', 'smartly.io' ], true ) ) {
381
  return 'Woo_Feed_Google';
382
  } elseif ( 'pinterest' === $provider ) {
383
  return 'Woo_Feed_Pinterest';
2013
  function woo_feed_replace_to_merchant_attribute( $pluginAttribute, $merchant, $feedType ) {
2014
  $attributeClass = new Woo_Feed_Default_Attributes();
2015
  $merchantAttributes = '';
2016
+ if ( 'google' == $merchant || 'google_shopping_action' == $merchant || 'adroll' == $merchant || 'smartly.io' == $merchant ) {
2017
  if ( 'xml' == $feedType ) {
2018
  $merchantAttributes = $attributeClass->googleXMLAttribute;
2019
  } elseif ( 'csv' == $feedType || 'txt' == $feedType ) {
woo-feed.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: WooCommerce Product 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.1.2
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.1.2' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
10
  * Plugin Name: WooCommerce Product 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.1.3
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.1.3' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {