CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.3.22

Version Description

(2021-01-26) = * Added: Snapchat template added.

Download this release

Release Info

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

Code changes from version 4.3.21 to 4.3.22

README.txt CHANGED
@@ -8,7 +8,7 @@ Google Product Review feed, product variations, rakuteen, shopping, skroutz, TSV
8
  Requires at least: 3.6
9
  Tested Up To: 5.6
10
  Requires PHP: 5.6
11
- Stable tag: 4.3.21
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
@@ -308,6 +308,9 @@ Using pro version:
308
 
309
  == Changelog ==
310
 
 
 
 
311
  = 4.3.21 (2021-01-21) =
312
  * Added: Output type Rounded price added.
313
 
8
  Requires at least: 3.6
9
  Tested Up To: 5.6
10
  Requires PHP: 5.6
11
+ Stable tag: 4.3.22
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
308
 
309
  == Changelog ==
310
 
311
+ = 4.3.22 (2021-01-26) =
312
+ * Added: Snapchat template added.
313
+
314
  = 4.3.21 (2021-01-21) =
315
  * Added: Output type Rounded price added.
316
 
admin/partials/templates/snapchat.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <rss xmlns:g="http://base.google.com/ns/1.0" xmlns:c="http://base.google.com/cns/1.0" version="2.0">
2
+ <channel>
3
+ <title>
4
+ <![CDATA[ {BlogName} ]]>
5
+ </title>
6
+ <link><![CDATA[ {BlogURL} ]]></link>
7
+ <description><![CDATA[ {BlogDescription} ]]></description>
8
+ {separator}
9
+ </channel>
10
+ </rss>
includes/classes/class-woo-feed-dropdown.php CHANGED
@@ -582,6 +582,23 @@ class Woo_Feed_Dropdown {
582
  return $options;
583
  }
584
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
585
  /**
586
  * Dropdown of Google Review Attribute List
587
  *
582
  return $options;
583
  }
584
 
585
+ /**
586
+ * Dropdown of Snapchat Attribute List
587
+ *
588
+ * @param string $selected
589
+ *
590
+ * @return string
591
+ */
592
+ public function snapchatAttributesDropdown( $selected = '' ) {
593
+ $options = $this->get_cached_dropdown( 'snapchatAttributesDropdown', $selected );
594
+ if ( false === $options ) {
595
+ $attributes_obj = new Woo_Feed_Default_Attributes();
596
+ $attributes = apply_filters( 'woo_feed_filter_dropdown_attributes', $attributes_obj->googleAttributes(), ['snapchat'] );
597
+ return $this->cache_dropdown( 'snapchatAttributesDropdown', $attributes, $selected );
598
+ }
599
+ return $options;
600
+ }
601
+
602
  /**
603
  * Dropdown of Google Review Attribute List
604
  *
includes/classes/class-woo-feed-merchant.php CHANGED
@@ -333,6 +333,7 @@ class Woo_Feed_Merchant {
333
  'pinterest_rss' => esc_html__( 'Pinterest RSS Board', 'woo-feed' ),
334
  'bing' => esc_html__( 'Bing Shopping', 'woo-feed' ),
335
  'bing_local_inventory' => esc_html__( 'Bing Local Inventory', 'woo-feed' ),
 
336
  'idealo' => esc_html__( 'Idealo', 'woo-feed' ),
337
  'pricespy' => esc_html__( 'PriceSpy', 'woo-feed' ),
338
  'pricerunner' => esc_html__( 'Price Runner', 'woo-feed' ),
333
  'pinterest_rss' => esc_html__( 'Pinterest RSS Board', 'woo-feed' ),
334
  'bing' => esc_html__( 'Bing Shopping', 'woo-feed' ),
335
  'bing_local_inventory' => esc_html__( 'Bing Local Inventory', 'woo-feed' ),
336
+ 'snapchat' => esc_html__( 'Snapchat', 'woo-feed' ),
337
  'idealo' => esc_html__( 'Idealo', 'woo-feed' ),
338
  'pricespy' => esc_html__( 'PriceSpy', 'woo-feed' ),
339
  'pricerunner' => esc_html__( 'Price Runner', 'woo-feed' ),
includes/feeds/merchant_templates.php CHANGED
@@ -2967,6 +2967,16 @@ return array(
2967
  'output_type' => array('1','1','1','1','1','1','1','1',),
2968
  'limit' => array('','','','','','','','',),
2969
  ),
 
 
 
 
 
 
 
 
 
 
2970
  'google_dynamic_ads' => array(
2971
  'mattributes' => array('Page URL','Custom Label',),
2972
  'prefix' => array('','',),
2967
  'output_type' => array('1','1','1','1','1','1','1','1',),
2968
  'limit' => array('','','','','','','','',),
2969
  ),
2970
+ 'snapchat' => array(
2971
+ 'mattributes' => array( 'id', 'title', 'description', 'item_group_id', 'link', 'product_type', 'current_category', 'image', 'condition', 'availability', 'price', 'sale_price', 'sku', 'brand', 'canonical_link' ),
2972
+ 'prefix' => array( '', '', '', '', '', '', '', '', '', '', '', '', '', '', '' ),
2973
+ 'type' => array( 'attribute', 'attribute', 'attribute', 'attribute', 'attribute', 'attribute', 'pattern', 'attribute', 'attribute', 'attribute', 'attribute', 'attribute', 'attribute', 'pattern', 'attribute' ),
2974
+ 'attributes' => array( 'id', 'title', 'description', 'item_group_id', 'link', 'product_type', '', 'image', 'condition', 'availability', 'price', 'current_price', 'sku', '', 'canonical_link' ),
2975
+ 'default' => array( '', '', '', '', '', '', '', '', '', '', '', '', '', $this->brand_pattern, '', '' ),
2976
+ 'suffix' => array( '', '', '', '', '', '', '', '', '', '', ' ' . $this->currency, ' ' . $this->currency, '', '', '' ),
2977
+ 'output_type' => array( '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '6', '6', '1', '1', '1' ),
2978
+ 'limit' => array( '', '', '', '', '', '', '', '', '', '', '', '', '', '', '' ),
2979
+ ),
2980
  'google_dynamic_ads' => array(
2981
  'mattributes' => array('Page URL','Custom Label',),
2982
  'prefix' => array('','',),
includes/helper.php CHANGED
@@ -3525,6 +3525,17 @@ if ( ! function_exists( 'woo_feed_filter_dropdown_attributes' ) ) {
3525
  */
3526
  function woo_feed_filter_dropdown_attributes( $default_attr, $merchants ) {
3527
  $filtered_attributes = $default_attr;
 
 
 
 
 
 
 
 
 
 
 
3528
 
3529
  //filtering attributes for pinterest merchant
3530
  if ( in_array('pinterest', $merchants) ) {
@@ -3538,6 +3549,11 @@ if ( ! function_exists( 'woo_feed_filter_dropdown_attributes' ) ) {
3538
  }
3539
  }
3540
 
 
 
 
 
 
3541
  return $filtered_attributes;
3542
  }
3543
  add_filter('woo_feed_filter_dropdown_attributes', 'woo_feed_filter_dropdown_attributes', 2, 10);
3525
  */
3526
  function woo_feed_filter_dropdown_attributes( $default_attr, $merchants ) {
3527
  $filtered_attributes = $default_attr;
3528
+ $snapchat_additional_attr = array();
3529
+ $snapchat_additional_attr['--18'] = 'Snapchat Additional Attributes';
3530
+ $snapchat_additional_attr['icon_media_url'] = 'Icon Media Url[icon_media_url]';
3531
+ $snapchat_additional_attr['ios_app_name'] = 'IOS App Name[ios_app_name]';
3532
+ $snapchat_additional_attr['ios_app_store_id'] = 'IOS App Store ID[ios_app_store_id]';
3533
+ $snapchat_additional_attr['ios_url'] = 'IOS Url[ios_url]';
3534
+ $snapchat_additional_attr['android_app_name'] = 'Android App Name[android_app_name]';
3535
+ $snapchat_additional_attr['android_package'] = 'Android Package[android_package]';
3536
+ $snapchat_additional_attr['android_url'] = 'Android URL[android_url]';
3537
+ $snapchat_additional_attr['mobile_link'] = 'Mobile Link[mobile_link]';
3538
+ $snapchat_additional_attr['---18'] = '';
3539
 
3540
  //filtering attributes for pinterest merchant
3541
  if ( in_array('pinterest', $merchants) ) {
3549
  }
3550
  }
3551
 
3552
+ //filtering attributes for snapchat merchant
3553
+ if( in_array('snapchat', $merchants) ) {
3554
+ $filtered_attributes = array_merge($filtered_attributes, $snapchat_additional_attr);
3555
+ }
3556
+
3557
  return $filtered_attributes;
3558
  }
3559
  add_filter('woo_feed_filter_dropdown_attributes', 'woo_feed_filter_dropdown_attributes', 2, 10);
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.3.21
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.21' );
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.3.22
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.22' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {