CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.7.15

Version Description

(2020-09-09) = * Tweak: stock status on backorder will be returned as out of stock for Google Shopping, Facebook and Pinterest template.

Download this release

Release Info

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

Code changes from version 3.7.14 to 3.7.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.5
7
  Requires PHP: 5.6
8
- Stable tag: 3.7.14
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
  = 3.7.14 (2020-09-08) =
312
  * Fix: Auto feed update not working issue fixed.
313
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 3.7.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.7.15 (2020-09-09) =
312
+ * Tweak: stock status on backorder will be returned as out of stock for Google Shopping, Facebook and Pinterest template.
313
+
314
  = 3.7.14 (2020-09-08) =
315
  * Fix: Auto feed update not working issue fixed.
316
 
includes/feeds/merchant_templates_override.php CHANGED
@@ -47,6 +47,12 @@ function woo_feed_availability_attribute_value_modify($attribute_value, $product
47
  }else{
48
  return "No";
49
  }
 
 
 
 
 
 
50
  }
51
  return $attribute_value;
52
  }
47
  }else{
48
  return "No";
49
  }
50
+ }elseif ('google'===$feed_config['provider']
51
+ || 'facebook'===$feed_config['provider']
52
+ ||'pinterest'===$feed_config['provider']){
53
+ if('on backorder'===$attribute_value){
54
+ return 'out of stock';
55
+ }
56
  }
57
  return $attribute_value;
58
  }
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.7.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.7.14' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
@@ -873,4 +873,62 @@ if ( ! function_exists( 'woo_feed_flash_cache_action' ) ) {
873
  //add_action('woocommerce_after_edit_attribute_fields','woo_feed_flash_cache_action');
874
 
875
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
876
  // End of file woo-feed.php
 
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.7.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.7.15' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
873
  //add_action('woocommerce_after_edit_attribute_fields','woo_feed_flash_cache_action');
874
 
875
 
876
+ // Suggest other plugins of webappick.
877
+ if(!class_exists('webappick_suggest_plugin')){
878
+ class webappick_suggest_plugin
879
+ {
880
+ static function init()
881
+ {
882
+ if (is_admin()) {
883
+ add_filter('install_plugins_table_api_args_featured', array(__CLASS__, 'featured_plugins_tab'));
884
+ }
885
+ } // init
886
+ // add our plugins to recommended list
887
+ static function plugins_api_result($res, $action, $args) {
888
+ remove_filter('plugins_api_result', array(__CLASS__, 'plugins_api_result'), 10, 1);
889
+ $res = self::add_plugin_favs('webappick-pdf-invoice-for-woocommerce', $res);
890
+ return $res;
891
+ } // plugins_api_result
892
+ // helper function for adding plugins to fav list
893
+ static function featured_plugins_tab($args) {
894
+ add_filter('plugins_api_result', array(__CLASS__, 'plugins_api_result'), 10, 3);
895
+ return $args;
896
+ } // featured_plugins_tab
897
+ // add single plugin to list of favs
898
+ static function add_plugin_favs($plugin_slug, $res) {
899
+ if (!empty($res->plugins) && is_array($res->plugins)) {
900
+ foreach ($res->plugins as $plugin) {
901
+ if (is_object($plugin) && !empty($plugin->slug) && $plugin->slug == $plugin_slug) {
902
+ return $res;
903
+ }
904
+ } // foreach
905
+ }
906
+ if ($plugin_info = get_transient('wf-plugin-info-' . $plugin_slug)) {
907
+ array_unshift($res->plugins, $plugin_info);
908
+ } else {
909
+ $plugin_info = plugins_api('plugin_information', array(
910
+ 'slug' => $plugin_slug,
911
+ 'is_ssl' => is_ssl(),
912
+ 'fields' => array(
913
+ 'banners' => true,
914
+ 'reviews' => true,
915
+ 'downloaded' => true,
916
+ 'active_installs' => true,
917
+ 'icons' => true,
918
+ 'short_description' => true,
919
+ )
920
+ ));
921
+ if (!is_wp_error($plugin_info)) {
922
+ $res->plugins[] = $plugin_info;
923
+ set_transient('wf-plugin-info-' . $plugin_slug, $plugin_info, DAY_IN_SECONDS * 7);
924
+ }
925
+ }
926
+ return $res;
927
+ } // add_plugin_favs
928
+ }
929
+ add_action('init', array('webappick_suggest_plugin', 'init'));
930
+ }
931
+
932
+
933
  // End of file woo-feed.php
934
+