CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.1.6

Version Description

(2020-11-09) = * Tweak: Google local template update.

Download this release

Release Info

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

Code changes from version 4.1.5 to 4.1.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.5
7
  Requires PHP: 5.6
8
- Stable tag: 4.1.5
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.5 (2020-11-08) =
312
  * Fix: Bing template as txt format.
313
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 4.1.6
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.6 (2020-11-09) =
312
+ * Tweak: Google local template update.
313
+
314
  = 4.1.5 (2020-11-08) =
315
  * Fix: Bing template as txt format.
316
 
includes/feeds/merchant_infos.php CHANGED
@@ -27,7 +27,10 @@ return array(
27
  esc_html__( 'How to configure google product categories?', 'woo-feed' ) => 'http://bit.ly/2RFWRrP',
28
  ),
29
  ), // Google.
30
- 'google_local' => '',
 
 
 
31
  'google_local_inventory' => array(
32
  'link' => 'https://support.google.com/merchants/answer/3061342?hl=en',
33
  'feed_file_type' => array( 'XML', 'CSV', 'TXT' ),
27
  esc_html__( 'How to configure google product categories?', 'woo-feed' ) => 'http://bit.ly/2RFWRrP',
28
  ),
29
  ), // Google.
30
+ 'google_local' => array(
31
+ 'link' => 'https://support.google.com/merchants/answer/3061198?hl=en',
32
+ 'feed_file_type' => array( 'XML', 'CSV', 'TXT' ),
33
+ ),
34
  'google_local_inventory' => array(
35
  'link' => 'https://support.google.com/merchants/answer/3061342?hl=en',
36
  'feed_file_type' => array( 'XML', 'CSV', 'TXT' ),
includes/feeds/merchant_templates.php CHANGED
@@ -2741,32 +2741,32 @@ return array(
2741
  ),
2742
  'google_local' => array(
2743
  'mattributes' => array(
2744
- 'store code',
2745
- 'itemid',
2746
- 'title',
2747
  'description',
2748
- 'image_link',
2749
- 'condition',
2750
- 'gtin',
2751
- 'brand',
2752
- 'google_product_category',
2753
- 'webitemid',
2754
- 'mpn',
2755
- 'price',
2756
- 'sale price',
2757
- 'sale price effective date',
2758
- 'unit_pricing_measure',
2759
- 'unit_pricing_base_measure',
2760
- 'pickup method',
2761
- 'pickup SLA',
2762
- 'pickup_link_template',
2763
- 'mobile_pickup_link_template',
2764
- 'link_template',
2765
- 'mobile_link_template',
2766
- 'ads_redirect',
2767
- 'energy_efficiency_class',
2768
- 'energy_efficiency_class_min',
2769
- 'energy_efficiency_class_max',
2770
  ),
2771
  'prefix' => array(
2772
  '',
@@ -2892,8 +2892,8 @@ return array(
2892
  '',
2893
  '',
2894
  '',
2895
- '',
2896
- '',
2897
  '',
2898
  '',
2899
  '',
2741
  ),
2742
  'google_local' => array(
2743
  'mattributes' => array(
2744
+ 'g:store_code',
2745
+ 'g:id',
2746
+ 'g:title',
2747
  'description',
2748
+ 'g:image_link',
2749
+ 'g:condition',
2750
+ 'g:gtin',
2751
+ 'g:brand',
2752
+ 'g:google_product_category',
2753
+ 'g:webitemid',
2754
+ 'g:mpn',
2755
+ 'g:price',
2756
+ 'g:sale price',
2757
+ 'g:sale price effective date',
2758
+ 'g:unit_pricing_measure',
2759
+ 'g:unit_pricing_base_measure',
2760
+ 'g:pickup method',
2761
+ 'g:pickup SLA',
2762
+ 'g:pickup_link_template',
2763
+ 'g:mobile_pickup_link_template',
2764
+ 'g:link_template',
2765
+ 'g:mobile_link_template',
2766
+ 'g:ads_redirect',
2767
+ 'g:energy_efficiency_class',
2768
+ 'g:energy_efficiency_class_min',
2769
+ 'g:energy_efficiency_class_max',
2770
  ),
2771
  'prefix' => array(
2772
  '',
2892
  '',
2893
  '',
2894
  '',
2895
+ $this->currency,
2896
+ $this->currency,
2897
  '',
2898
  '',
2899
  '',
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', 'google_shopping_action', '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 || 'google_shopping_action' == $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', 'google_local', '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 || 'google_local' == $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.5
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.5' );
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.6
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.6' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {