CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.0.7

Version Description

Download this release

Release Info

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

Code changes from version 3.0.6 to 3.0.7

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://webappick.com
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested Up To: 5.1
7
- Stable tag: 3.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -296,6 +296,11 @@ Using pro version:
296
 
297
  == Changelog ==
298
 
 
 
 
 
 
299
  = 3.0.6(2019-03-05) =
300
  * Fixed: Facebook inventory attribute added
301
 
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested Up To: 5.1
7
+ Stable tag: 3.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
296
 
297
  == Changelog ==
298
 
299
+ = 3.0.7(2019-03-07) =
300
+ * Added: Bing Shipping attribute
301
+ * Fixed: Review notice show after 15 days of installation
302
+ * Fixed: ajax action hook conflicting issue fixed
303
+
304
  = 3.0.6(2019-03-05) =
305
  * Fixed: Facebook inventory attribute added
306
 
admin/js/woo-feed-admin.js CHANGED
@@ -438,7 +438,7 @@
438
  url: ajaxurl,
439
  type: 'POST',
440
  data: {
441
- action: 'submit-uninstall-reason',
442
  reason_id: ( 0 === $radio.length ) ? 'none' : $radio.val(),
443
  reason_info: ( 0 !== $input.length ) ? $input.val().trim() : ''
444
  },
@@ -511,7 +511,7 @@
511
  type: 'post',
512
  data: {
513
  _ajax_nonce: wpf_ajax_obj.nonce,
514
- action: "save_review_notice",
515
  notice: notice
516
  },
517
  success: function (response) {
@@ -527,7 +527,7 @@
527
  type: 'post',
528
  data: {
529
  _ajax_nonce: wpf_ajax_obj.nonce,
530
- action: "save_wpml_notice",
531
  },
532
  success: function (response) {
533
  if (response.success) {
438
  url: ajaxurl,
439
  type: 'POST',
440
  data: {
441
+ action: 'woo-feed-submit-uninstall-reason',
442
  reason_id: ( 0 === $radio.length ) ? 'none' : $radio.val(),
443
  reason_info: ( 0 !== $input.length ) ? $input.val().trim() : ''
444
  },
511
  type: 'post',
512
  data: {
513
  _ajax_nonce: wpf_ajax_obj.nonce,
514
+ action: "woo_feed_save_review_notice",
515
  notice: notice
516
  },
517
  success: function (response) {
527
  type: 'post',
528
  data: {
529
  _ajax_nonce: wpf_ajax_obj.nonce,
530
+ action: "woo_feed_save_wpml_notice",
531
  },
532
  success: function (response) {
533
  if (response.success) {
includes/class-woo-feed-activator.php CHANGED
@@ -36,6 +36,8 @@ class Woo_Feed_Activator
36
  update_option('wf_schedule', '86400');
37
  # Schedule Cron
38
  wp_schedule_event(time(), 'woo_feed_corn', 'woo_feed_update');
 
 
39
  }
40
 
41
  }
36
  update_option('wf_schedule', '86400');
37
  # Schedule Cron
38
  wp_schedule_event(time(), 'woo_feed_corn', 'woo_feed_update');
39
+
40
+ update_option("woo-feed-activation-time",time());
41
  }
42
 
43
  }
includes/class-woo-feed.php CHANGED
@@ -70,7 +70,7 @@ class Woo_Feed
70
  public function __construct()
71
  {
72
  $this->woo_feed = 'woo-feed';
73
- $this->version = '3.0.6';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
70
  public function __construct()
71
  {
72
  $this->woo_feed = 'woo-feed';
73
+ $this->version = '3.0.7';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
includes/classes/class-woo-feed-default-attributes.php CHANGED
@@ -4114,13 +4114,14 @@ class Woo_Feed_Default_Attributes
4114
 
4115
  public function bingAttribute(){
4116
  $attributes=array(
4117
- "id" =>"MerchantProductID",
4118
  "title" =>"Title",
4119
  "link" =>"Product URL",
4120
  "price" =>"Price",
4121
  "description" =>"Description",
4122
  "image_link" =>"ImageURL",
4123
- "required" =>"",
 
4124
  "brand" =>"Brand",
4125
  "mpn" =>"MPN",
4126
  "gtin" =>"GTIN",
4114
 
4115
  public function bingAttribute(){
4116
  $attributes=array(
4117
+ "id" =>"ID",
4118
  "title" =>"Title",
4119
  "link" =>"Product URL",
4120
  "price" =>"Price",
4121
  "description" =>"Description",
4122
  "image_link" =>"ImageURL",
4123
+ "shipping" =>"Shipping",
4124
+ "required" =>"",
4125
  "brand" =>"Brand",
4126
  "mpn" =>"MPN",
4127
  "gtin" =>"GTIN",
includes/feeds/class-woo-feed-bing.php CHANGED
@@ -79,8 +79,8 @@ class Bing
79
  $this->errorCounter = 0;
80
  $this->rules = $feedRule;
81
  $this->mapProductsByRules();
82
- $this->formatRequiredField();
83
- $this->filterProductValues();
84
  if ($this->rules['feedType'] == 'xml') {
85
  $this->mapAttributeForXML();
86
  } else {
79
  $this->errorCounter = 0;
80
  $this->rules = $feedRule;
81
  $this->mapProductsByRules();
82
+ //$this->formatRequiredField();
83
+ //$this->filterProductValues();
84
  if ($this->rules['feedType'] == 'xml') {
85
  $this->mapAttributeForXML();
86
  } else {
woo-feed.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
19
- * Version: 3.0.6
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
@@ -906,8 +906,7 @@ add_action( 'admin_footer', 'woo_feed_deactivate_scripts' );
906
 
907
 
908
  // uninstall reason
909
- add_action( 'wp_ajax_submit-uninstall-reason', 'woo_feed_uninstall_reason_submission' );
910
-
911
 
912
  function woo_feed_get_uninstall_reasons() {
913
 
@@ -959,7 +958,6 @@ function woo_feed_get_uninstall_reasons() {
959
  return $reasons;
960
  }
961
 
962
-
963
  /**
964
  * Plugin deactivation uninstall reason submission
965
  *
@@ -996,7 +994,7 @@ function woo_feed_uninstall_reason_submission(){
996
  }
997
 
998
  function woo_feed_send_request( $params, $route ) {
999
- $api_url = "https://tracking.woo-feed.com/";
1000
  return wp_remote_post($api_url, array(
1001
  'method' => 'POST',
1002
  'timeout' => 45,
@@ -1069,6 +1067,8 @@ add_action( 'admin_notices', 'woo_feed_review_notice' );
1069
 
1070
  function woo_feed_review_notice() {
1071
  $options = get_option('woo_feed_review_notice');
 
 
1072
 
1073
  $notice = '<div class="woo-feed-review-notice notice notice-info is-dismissible">';
1074
  $notice .= '<p><b>:) We have spent countless hours developing this free plugin for you, and we would really appreciate it if you dropped us a quick rating. Your opinion matters a lot to us. It helps us to get better. Thanks for using WooCommerce Product Feed.</b></p>';
@@ -1079,10 +1079,12 @@ function woo_feed_review_notice() {
1079
  $notice .= '</ul>';
1080
  $notice .= '</div>';
1081
 
1082
- if(!$options){
1083
- echo $notice;
1084
- }else if((!array_key_exists('review_notice',$options)) || ($options['review_notice'] =='later' && time()>=($options['updated_at'] + (60*60*24*30) ))) {
1085
  echo $notice;
 
 
 
 
1086
  }
1087
  }
1088
 
@@ -1091,7 +1093,7 @@ function woo_feed_review_notice() {
1091
  /**
1092
  * Show Review request admin notice
1093
  */
1094
- add_action('wp_ajax_save_review_notice', 'woo_feed_save_review_notice');
1095
  function woo_feed_save_review_notice() {
1096
  $notice = sanitize_text_field($_POST['notice']);
1097
  $value['review_notice'] = $notice;
@@ -1116,7 +1118,7 @@ function woo_feed_wpml_notice() {
1116
  }
1117
  }
1118
 
1119
- add_action('wp_ajax_save_wpml_notice', 'woo_feed_save_wpml_notice');
1120
  function woo_feed_save_wpml_notice() {
1121
  $notice = true;
1122
  $value['wpml_notice'] = $notice;
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
19
+ * Version: 3.0.7
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
906
 
907
 
908
  // uninstall reason
909
+ add_action( 'wp_ajax_woo-feed-submit-uninstall-reason', 'woo_feed_uninstall_reason_submission' );
 
910
 
911
  function woo_feed_get_uninstall_reasons() {
912
 
958
  return $reasons;
959
  }
960
 
 
961
  /**
962
  * Plugin deactivation uninstall reason submission
963
  *
994
  }
995
 
996
  function woo_feed_send_request( $params, $route ) {
997
+ $api_url = "https://track.webappick.com/api/receive-uninstall-tracking";
998
  return wp_remote_post($api_url, array(
999
  'method' => 'POST',
1000
  'timeout' => 45,
1067
 
1068
  function woo_feed_review_notice() {
1069
  $options = get_option('woo_feed_review_notice');
1070
+ $installDate=get_option('woo-feed-activation-time');
1071
+ $installDate=strtotime('-16 days',$installDate);
1072
 
1073
  $notice = '<div class="woo-feed-review-notice notice notice-info is-dismissible">';
1074
  $notice .= '<p><b>:) We have spent countless hours developing this free plugin for you, and we would really appreciate it if you dropped us a quick rating. Your opinion matters a lot to us. It helps us to get better. Thanks for using WooCommerce Product Feed.</b></p>';
1079
  $notice .= '</ul>';
1080
  $notice .= '</div>';
1081
 
1082
+ if(!$options && time()>= $installDate + (60*60*24*15)){
 
 
1083
  echo $notice;
1084
+ } else if(is_array($options)) {
1085
+ if((!array_key_exists('review_notice',$options)) || ($options['review_notice'] =='later' && time()>=($options['updated_at'] + (60*60*24*30) ))){
1086
+ echo $notice;
1087
+ }
1088
  }
1089
  }
1090
 
1093
  /**
1094
  * Show Review request admin notice
1095
  */
1096
+ add_action('wp_ajax_woo_feed_save_review_notice', 'woo_feed_save_review_notice');
1097
  function woo_feed_save_review_notice() {
1098
  $notice = sanitize_text_field($_POST['notice']);
1099
  $value['review_notice'] = $notice;
1118
  }
1119
  }
1120
 
1121
+ add_action('wp_ajax_woo_feed_save_wpml_notice', 'woo_feed_save_wpml_notice');
1122
  function woo_feed_save_wpml_notice() {
1123
  $notice = true;
1124
  $value['wpml_notice'] = $notice;