Product Feed PRO for WooCommerce - Version 8.0.0

Version Description

Removed the phone home license check feature Made all remaining features free and fully functional Solved an issue where the function wc_review_ratings_enabled was not supported by any WC version older than 3.6 Users with a license: please reach out to support@adtribes.io to receive a download link with the Elite version of the plugin

Download this release

Release Info

Developer jorisverwater
Plugin Icon 128x128 Product Feed PRO for WooCommerce
Version 8.0.0
Comparing to
See all releases

Code changes from version 7.9.9 to 8.0.0

classes/class-activate.php CHANGED
@@ -1869,45 +1869,6 @@ class WooSEA_Activation {
1869
  wp_schedule_event ( time(), 'hourly', 'woosea_cron_hook');
1870
  }
1871
 
1872
- /**
1873
- * Function for checking if license is valid
1874
- */
1875
- if (!wp_next_scheduled( 'woosea_check_license' ) ) {
1876
-
1877
- if(!get_option("license_information")){
1878
-
1879
- $domain = $_SERVER['HTTP_HOST'];
1880
-
1881
- $license_created = "";
1882
- $license_valid = "false";
1883
- $message = "Thank you for becoming a user of our <strong>product feed pro for WooCommerce plugin</strong>, much appreciated! Some of the features of this plugin have been locked as you are using the free version of this plugin. The added extra fields such as Brand and GTIN, WPML support, Aelia currency switcher support and the WooCommerce structured data bug fix are Elite features of this plugin. You can get <strong><a href=\"https://adtribes.io/pro-vs-elite/?utm_source=$domain&utm_medium=plugin&utm_campaign=upgrade-elite\" target=\"_blank\">your license key here</a></strong>.";
1884
- //$message_type = "notice notice-info is-dismissible";
1885
- $message_type = "updated woocommerce-message is-dismissible";
1886
- $notice = "true";
1887
-
1888
- $license_information = array (
1889
- 'license_valid' => $license_valid,
1890
- 'license_created' => $license_created,
1891
- 'message' => $message,
1892
- 'message_type' => $message_type,
1893
- 'license_email' => "",
1894
- 'license_key' => "",
1895
- 'notice' => $notice,
1896
- );
1897
-
1898
- // Disable Elite features
1899
- update_option ( 'license_information', $license_information );
1900
- update_option ( 'structured_data_fix', 'no' );
1901
- update_option ( 'structured_vat', 'no' );
1902
- update_option ( 'add_unique_identifiers', 'no' );
1903
- update_option ( 'add_wpml_support', 'no' );
1904
- update_option ( 'add_manipulation_support', 'no' );
1905
- update_option ( 'add_aelia_support', 'no' );
1906
- }
1907
-
1908
- wp_schedule_event ( time(), 'daily', 'woosea_check_license');
1909
- }
1910
-
1911
  /**
1912
  * We check only once if this is a paid version of the plugin
1913
  * De-register the jQuery code after 30 secvonds
1869
  wp_schedule_event ( time(), 'hourly', 'woosea_cron_hook');
1870
  }
1871
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1872
  /**
1873
  * We check only once if this is a paid version of the plugin
1874
  * De-register the jQuery code after 30 secvonds
classes/class-attributes.php CHANGED
@@ -495,22 +495,12 @@ public function get_mapping_attributes_dropdown() {
495
 
496
  if(is_array($this->get_custom_attributes())){
497
  $custom_attributes = $this->get_custom_attributes();
498
- $license_information = get_option( 'license_information' );
499
 
500
  if ( class_exists( 'All_in_One_SEO_Pack' ) ) {
501
  $custom_attributes['custom_attributes__aioseop_title'] = "All in one seo pack title";
502
  $custom_attributes['custom_attributes__aioseop_description'] = "All in one seo pack description";
503
  }
504
 
505
- if($license_information['license_valid'] <> "true"){
506
- // Remove WOOSEA fields from drop-downs
507
- foreach( $custom_attributes as $key => $value ) {
508
- if( strpos( $key, 'custom_attributes__woosea' ) === 0 ) {
509
- unset( $custom_attributes[ $key ] );
510
- }
511
- }
512
- }
513
-
514
  array_walk($custom_attributes, function(&$value, $key) { $value .= ' (Custom attribute)';});
515
  $attributes = array_merge($attributes, $custom_attributes);
516
  }
495
 
496
  if(is_array($this->get_custom_attributes())){
497
  $custom_attributes = $this->get_custom_attributes();
 
498
 
499
  if ( class_exists( 'All_in_One_SEO_Pack' ) ) {
500
  $custom_attributes['custom_attributes__aioseop_title'] = "All in one seo pack title";
501
  $custom_attributes['custom_attributes__aioseop_description'] = "All in one seo pack description";
502
  }
503
 
 
 
 
 
 
 
 
 
 
504
  array_walk($custom_attributes, function(&$value, $key) { $value .= ' (Custom attribute)';});
505
  $attributes = array_merge($attributes, $custom_attributes);
506
  }
classes/class-deactivate-cleanup.php CHANGED
@@ -7,7 +7,7 @@
7
  class WooSEA_Deactivate_Cleanup {
8
  public static function deactivate_cleanup() {
9
  wp_clear_scheduled_hook('woosea_cron_hook');
10
- wp_clear_scheduled_hook('woosea_check_license');
11
  delete_option('woosea_getelite_notification');
12
  delete_option('woosea_license_notification_closed'); // This one is new
13
  }
7
  class WooSEA_Deactivate_Cleanup {
8
  public static function deactivate_cleanup() {
9
  wp_clear_scheduled_hook('woosea_cron_hook');
10
+ wp_clear_scheduled_hook( 'woosea_check_license' );
11
  delete_option('woosea_getelite_notification');
12
  delete_option('woosea_license_notification_closed'); // This one is new
13
  }
classes/class-uninstall-cleanup.php CHANGED
@@ -8,10 +8,9 @@ class WooSEA_Uninstall_Cleanup {
8
  public static function uninstall_cleanup() {
9
  wp_clear_scheduled_hook( 'woosea_cron_hook' );
10
  wp_clear_scheduled_hook( 'woosea_check_license' );
11
- delete_option( 'channel_statics' );
12
- delete_option( 'license_information' );
13
- delete_option( 'cron_projects' );
14
- delete_option('woosea_getelite_notification');
15
- delete_option('woosea_license_notification_closed'); // This one is new
16
  }
17
  }
8
  public static function uninstall_cleanup() {
9
  wp_clear_scheduled_hook( 'woosea_cron_hook' );
10
  wp_clear_scheduled_hook( 'woosea_check_license' );
11
+ // delete_option( 'channel_statics' );
12
+ // delete_option( 'cron_projects' );
13
+ // delete_option('woosea_getelite_notification');
14
+ // delete_option('woosea_license_notification_closed'); // This one is new
 
15
  }
16
  }
js/woosea_manage.js CHANGED
@@ -46,16 +46,6 @@ jQuery(document).ready(function($) {
46
 
47
  });
48
 
49
- $(".license_notification").click(function(){
50
- $(".license_notification").remove();
51
-
52
- jQuery.ajax({
53
- method: "POST",
54
- url: ajaxurl,
55
- data: { 'action': 'woosea_license_notification' }
56
- })
57
- });
58
-
59
  $(".get_elite").click(function(e){
60
  if(e.target.tagName === 'A') return; // clicking on links should not close the div notice
61
 
46
 
47
  });
48
 
 
 
 
 
 
 
 
 
 
 
49
  $(".get_elite").click(function(e){
50
  if(e.target.tagName === 'A') return; // clicking on links should not close the div notice
51
 
pages/admin/woosea-generate-feed-step-0.php CHANGED
@@ -85,8 +85,8 @@ if (array_key_exists('project_hash', $_GET)){
85
  $getelite_notice['timestamp'] = date( 'd-m-Y' );
86
  }
87
 
88
- if(($license_information['license_valid'] <> "true") AND ($getelite_notice['show'] == "yes")){
89
- ?>
90
  <div class="notice notice-info get_elite is-dismissible">
91
  <p>
92
  <strong><?php _e( 'Would you like to get more out of your product feeds? Upgrade to the Elite version of the plugin and you will get:','woo-product-feed-pro' );?></strong><br/></br/>
@@ -97,15 +97,12 @@ if (array_key_exists('project_hash', $_GET)){
97
  <span class="dashicons dashicons-yes"></span><?php _e( 'WPML support - including their currency switcher','woo-product-feed-pro' );?> [<a href="https://adtribes.io/wpml-support/?utm_source=<?php print"$host";?>&utm_medium=manage-feed&utm_campaign=wpml%20support" target="_blank"><?php _e( 'Read more','woo-product-feed-pro' );?></a>];<br/>
98
  <span class="dashicons dashicons-yes"></span>Aelia currency switcher support [<a href="https://adtribes.io/aelia-currency-switcher-feature/?utm_source=<?php print"$host";?>&utm_medium=manage-feed&utm_campaign=aelia%20support" target="_blank">Read more</a>];<br/>
99
  <span class="dashicons dashicons-yes"></span><?php _e( 'Facebook pixel feature','woo-product-feed-pro' );?> [<a href="https://adtribes.io/facebook-pixel-feature/?utm_source=<?php print "$host";?>&utm_medium=manage-feed&utm_campaign=facebook pixel feature" target="_blank"><?php _e( 'Read more','woo-product-feed-pro' );?></a>];<br/><br/>
100
- <?php _e( 'Upgrade to the','woo-product-feed-pro' );?> <strong><a href="https://adtribes.io/pro-vs-elite/?utm_source=<?php print"$host";?>&utm_medium=manage-feed&utm_campaign=top-notification&utm_content=notification" target="_blank"><?php _e( 'Elite version of our plugin</a></strong> to unlock these features.','woo-product-feed-pro' );?>
101
  </p>
102
  </div>
103
-
104
  <?php
105
- }
106
  ?>
107
-
108
-
109
  <div class="woo-product-feed-pro-form-style-2-heading"><?php _e( 'General feed settings','woo-product-feed-pro' );?></div>
110
 
111
  <form action="" id="myForm" method="post" name="myForm">
@@ -499,9 +496,6 @@ if (array_key_exists('project_hash', $_GET)){
499
  </div>
500
  <div class="woo-product-feed-pro-table-right">
501
 
502
- <?php
503
- if($license_information['license_valid'] <> "true"){
504
- ?>
505
  <table class="woo-product-feed-pro-table">
506
  <tr>
507
  <td><strong><?php _e( 'Why upgrade to Elite?','woo-product-feed-pro' );?></strong></td>
@@ -524,9 +518,6 @@ if (array_key_exists('project_hash', $_GET)){
524
  </td>
525
  </tr>
526
  </table><br/>
527
- <?php
528
- }
529
- ?>
530
 
531
  <table class="woo-product-feed-pro-table">
532
  <tr>
85
  $getelite_notice['timestamp'] = date( 'd-m-Y' );
86
  }
87
 
88
+ if($getelite_notice['show'] <> "no"){
89
+ ?>
90
  <div class="notice notice-info get_elite is-dismissible">
91
  <p>
92
  <strong><?php _e( 'Would you like to get more out of your product feeds? Upgrade to the Elite version of the plugin and you will get:','woo-product-feed-pro' );?></strong><br/></br/>
97
  <span class="dashicons dashicons-yes"></span><?php _e( 'WPML support - including their currency switcher','woo-product-feed-pro' );?> [<a href="https://adtribes.io/wpml-support/?utm_source=<?php print"$host";?>&utm_medium=manage-feed&utm_campaign=wpml%20support" target="_blank"><?php _e( 'Read more','woo-product-feed-pro' );?></a>];<br/>
98
  <span class="dashicons dashicons-yes"></span>Aelia currency switcher support [<a href="https://adtribes.io/aelia-currency-switcher-feature/?utm_source=<?php print"$host";?>&utm_medium=manage-feed&utm_campaign=aelia%20support" target="_blank">Read more</a>];<br/>
99
  <span class="dashicons dashicons-yes"></span><?php _e( 'Facebook pixel feature','woo-product-feed-pro' );?> [<a href="https://adtribes.io/facebook-pixel-feature/?utm_source=<?php print "$host";?>&utm_medium=manage-feed&utm_campaign=facebook pixel feature" target="_blank"><?php _e( 'Read more','woo-product-feed-pro' );?></a>];<br/><br/>
100
+ <?php _e( 'Upgrade to the','woo-product-feed-pro' );?> <strong><a href="https://adtribes.io/pro-vs-elite/?utm_source=<?php print"$host";?>&utm_medium=manage-feed&utm_campaign=top-notification&utm_content=notification" target="_blank"><?php _e( 'Elite version of our plugin</a></strong> to get all these features.','woo-product-feed-pro' );?>
101
  </p>
102
  </div>
 
103
  <?php
104
+ }
105
  ?>
 
 
106
  <div class="woo-product-feed-pro-form-style-2-heading"><?php _e( 'General feed settings','woo-product-feed-pro' );?></div>
107
 
108
  <form action="" id="myForm" method="post" name="myForm">
496
  </div>
497
  <div class="woo-product-feed-pro-table-right">
498
 
 
 
 
499
  <table class="woo-product-feed-pro-table">
500
  <tr>
501
  <td><strong><?php _e( 'Why upgrade to Elite?','woo-product-feed-pro' );?></strong></td>
518
  </td>
519
  </tr>
520
  </table><br/>
 
 
 
521
 
522
  <table class="woo-product-feed-pro-table">
523
  <tr>
pages/admin/woosea-manage-feed.php CHANGED
@@ -96,15 +96,15 @@ if (!wp_next_scheduled( 'woosea_cron_hook' ) ) {
96
  }
97
  update_option('cron_projects', $cron_projects);
98
  } else {
99
- // Set default notification to show
100
- $getelite_notice = get_option('woosea_getelite_notification');
101
- if(empty($getelite_notice['show'])){
102
- $getelite_notice['show'] = "yes";
103
- $getelite_notice['timestamp'] = date( 'd-m-Y' );
104
- }
105
 
106
- if(($license_information['license_valid'] <> "true") AND ($getelite_notice['show'] == "yes")){
107
- ?>
108
  <div class="notice notice-info get_elite is-dismissible">
109
  <p>
110
  <strong><?php _e( 'Would you like to get more out of your product feeds? Upgrade to the Elite version of the plugin and you will get:', 'woo-product-feed-pro' );?></strong><br/></br/>
@@ -115,7 +115,7 @@ if (!wp_next_scheduled( 'woosea_cron_hook' ) ) {
115
  <span class="dashicons dashicons-yes"></span><?php _e( 'WPML support - including their currency switcher','woo-product-feed-pro' );?> [<a href="https://adtribes.io/wpml-support/?utm_source=<?php print "$host";?>&utm_medium=manage-feed&utm_campaign=wpml%20support" target="_blank"><?php _e( 'Read more','woo-product-feed-pro' );?></a>];<br/>
116
  <span class="dashicons dashicons-yes"></span><?php _e( 'Aelia currency switcher support','woo-product-feed-pro' );?> [<a href="https://adtribes.io/aelia-currency-switcher-feature/?utm_source=<?php print "$host";?>&utm_medium=manage-feed&utm_campaign=aelia%20support" target="_blank"><?php _e( 'Read more','woo-product-feed-pro' );?></a>];<br/>
117
  <span class="dashicons dashicons-yes"></span><?php _e( 'Facebook pixel feature','woo-product-feed-pro' );?> [<a href="https://adtribes.io/facebook-pixel-feature/?utm_source=<?php print "$host";?>&utm_medium=manage-feed&utm_campaign=facebook pixel feature" target="_blank"><?php _e( 'Read more','woo-product-feed-pro' );?></a>];<br/><br/>
118
- <?php _e( 'Upgrade to the','woo-product-feed-pro' );?> <strong><a href="https://adtribes.io/pro-vs-elite/?utm_source=<?php print"$host";?>&utm_medium=manage-feed&utm_campaign=top-notification&utm_content=notification" target="_blank"><?php _e( 'Elite version of our plugin</a></strong> to unlock these features.','woo-product-feed-pro' );?>
119
  </p>
120
  </div>
121
  <?php
@@ -271,9 +271,6 @@ if (!wp_next_scheduled( 'woosea_cron_hook' ) ) {
271
  </table>
272
  </div>
273
  <div class="woo-product-feed-pro-table-right">
274
- <?php
275
- if($license_information['license_valid'] <> "true"){
276
- ?>
277
  <table class="woo-product-feed-pro-table">
278
  <tr>
279
  <td><strong><?php _e( 'Why upgrade to Elite?','woo-product-feed-pro' );?></strong></td>
@@ -296,9 +293,6 @@ if (!wp_next_scheduled( 'woosea_cron_hook' ) ) {
296
  </td>
297
  </tr>
298
  </table><br/>
299
- <?php
300
- }
301
- ?>
302
 
303
  <table class="woo-product-feed-pro-table">
304
  <tr>
96
  }
97
  update_option('cron_projects', $cron_projects);
98
  } else {
99
+ // Set default notification to show
100
+ $getelite_notice = get_option('woosea_getelite_notification');
101
+ if(empty($getelite_notice['show'])){
102
+ $getelite_notice['show'] = "yes";
103
+ $getelite_notice['timestamp'] = date( 'd-m-Y' );
104
+ }
105
 
106
+ if($getelite_notice['show'] <> "no"){
107
+ ?>
108
  <div class="notice notice-info get_elite is-dismissible">
109
  <p>
110
  <strong><?php _e( 'Would you like to get more out of your product feeds? Upgrade to the Elite version of the plugin and you will get:', 'woo-product-feed-pro' );?></strong><br/></br/>
115
  <span class="dashicons dashicons-yes"></span><?php _e( 'WPML support - including their currency switcher','woo-product-feed-pro' );?> [<a href="https://adtribes.io/wpml-support/?utm_source=<?php print "$host";?>&utm_medium=manage-feed&utm_campaign=wpml%20support" target="_blank"><?php _e( 'Read more','woo-product-feed-pro' );?></a>];<br/>
116
  <span class="dashicons dashicons-yes"></span><?php _e( 'Aelia currency switcher support','woo-product-feed-pro' );?> [<a href="https://adtribes.io/aelia-currency-switcher-feature/?utm_source=<?php print "$host";?>&utm_medium=manage-feed&utm_campaign=aelia%20support" target="_blank"><?php _e( 'Read more','woo-product-feed-pro' );?></a>];<br/>
117
  <span class="dashicons dashicons-yes"></span><?php _e( 'Facebook pixel feature','woo-product-feed-pro' );?> [<a href="https://adtribes.io/facebook-pixel-feature/?utm_source=<?php print "$host";?>&utm_medium=manage-feed&utm_campaign=facebook pixel feature" target="_blank"><?php _e( 'Read more','woo-product-feed-pro' );?></a>];<br/><br/>
118
+ <?php _e( 'Upgrade to the','woo-product-feed-pro' );?> <strong><a href="https://adtribes.io/pro-vs-elite/?utm_source=<?php print"$host";?>&utm_medium=manage-feed&utm_campaign=top-notification&utm_content=notification" target="_blank"><?php _e( 'Elite version of our plugin</a></strong> to get all these features.','woo-product-feed-pro' );?>
119
  </p>
120
  </div>
121
  <?php
271
  </table>
272
  </div>
273
  <div class="woo-product-feed-pro-table-right">
 
 
 
274
  <table class="woo-product-feed-pro-table">
275
  <tr>
276
  <td><strong><?php _e( 'Why upgrade to Elite?','woo-product-feed-pro' );?></strong></td>
293
  </td>
294
  </tr>
295
  </table><br/>
 
 
 
296
 
297
  <table class="woo-product-feed-pro-table">
298
  <tr>
pages/admin/woosea-manage-settings.php CHANGED
@@ -5,7 +5,7 @@ $license_information = get_option( 'license_information' );
5
  $host = $_SERVER['HTTP_HOST'];
6
 
7
  $elite_disable = "enabled";
8
- if($license_information['license_valid'] == "false"){
9
  $elite_disable = "disabled";
10
  }
11
 
@@ -76,12 +76,6 @@ if(isset($_GET["tab"])) {
76
  } elseif ($_GET["tab"] == "woosea_system_check"){
77
  $active_tab = "woosea_system_check";
78
  $header_text = __( 'Plugin systems check', 'woo-product-feed-pro' );
79
- } elseif ($_GET["tab"] == "woosea_copy_configs"){
80
- $active_tab = "woosea_copy_configs";
81
- $header_text = __( 'Copy feed configuration', 'woo-product-feed-pro' );
82
- } elseif ($_GET["tab"] == "woosea_license_check"){
83
- $active_tab = "woosea_license_check";
84
- $header_text = __( 'License', 'woo-product-feed-pro' );
85
  } else {
86
  $active_tab = "woosea_manage_attributes";
87
  $header_text = __( 'Attribute settings', 'woo-product-feed-pro' );
@@ -103,32 +97,11 @@ if(isset($_GET["tab"])) {
103
  </span>
104
  </div>
105
 
106
- <?php
107
- $getelite_notice = get_option('woosea_getelite_active_notification');
108
- if(empty($getelite_notice['show'])){
109
- $getelite_notice['show'] = "yes";
110
- $getelite_notice['timestamp'] = date( 'd-m-Y' );
111
- }
112
-
113
- if(($license_information['license_valid'] <> "true") AND ($getelite_notice['show'] == "yes")){
114
- ?>
115
- <div class="notice notice-info get_elite_activate is-dismissible">
116
- <p>Thank you for using our Product Feed PRO plugin, much appreciated! Some of the features of this plugin have been locked as you are using the free version of this plugin. The added extra fields such as Brand and GTIN, WPML support, Aelia currency switcher support, the Facebook Pixel feature and the WooCommerce structured data bug fix are Elite features of this plugin. You can get <strong><a href="https://adtribes.io/pro-vs-elite/?utm_source=$domain&utm_medium=plugin&utm_campaign=upgrade-elite" target="_blank">your license key here</a></strong>.</p>
117
- </div>
118
- <?php
119
- }
120
- ?>
121
-
122
  <!-- wordpress provides the styling for tabs. -->
123
  <h2 class="nav-tab-wrapper">
124
  <!-- when tab buttons are clicked we jump back to the same page but with a new parameter that represents the clicked tab. accordingly we make it active -->
125
  <a href="?page=woosea_manage_settings&tab=woosea_manage_settings" class="nav-tab <?php if($active_tab == 'woosea_manage_settings'){echo 'nav-tab-active';} ?> "><?php _e('Plugin settings', 'woo-product-feed-pro'); ?></a>
126
- <a href="?page=woosea_manage_settings&tab=woosea_manage_attributes" class="nav-tab <?php if($active_tab == 'woosea_manage_attributes'){echo 'nav-tab-active';} ?>"><?php _e('Extra fields (Elite feature)', 'woo-product-feed-pro'); ?></a>
127
  <a href="?page=woosea_manage_settings&tab=woosea_system_check" class="nav-tab <?php if($active_tab == 'woosea_system_check'){echo 'nav-tab-active';} ?>"><?php _e('Plugin systems check', 'woo-product-feed-pro'); ?></a>
128
- <!--
129
- <a href="?page=woosea_manage_settings&tab=woosea_copy_configs" class="nav-tab <?php if($active_tab == 'woosea_copy_configs'){echo 'nav-tab-active';} ?>"><?php _e('Copy feed configuration', 'woo-product-feed-pro'); ?></a>
130
- -->
131
- <a href="?page=woosea_manage_settings&tab=woosea_license_check" class="nav-tab <?php if($active_tab == 'woosea_license_check'){echo 'nav-tab-active';} ?>"><?php _e('License', 'woo-product-feed-pro'); ?></a>
132
  </h2>
133
 
134
  <div class="woo-product-feed-pro-table-wrapper">
@@ -141,6 +114,9 @@ if(isset($_GET["tab"])) {
141
  <tr><td><strong><?php _e( 'Plugin setting', 'woo-product-feed-pro' );?></strong></td><td><strong><?php _e( 'Off / On', 'woo-product-feed-pro' );?></strong></td></tr>
142
 
143
  <form action="" method="post">
 
 
 
144
  <tr class="<?php print"$elite_disable";?>" id="json_option">
145
  <td>
146
  <span><?php _e( 'Increase the number of products that will be approved in Google\'s Merchant Center:', 'woo-product-feed-pro' );?><br/>
@@ -160,7 +136,6 @@ if(isset($_GET["tab"])) {
160
  </label>
161
  </td>
162
  </tr>
163
-
164
  <tr class="<?php print"$elite_disable";?>" id="structured_vat_option">
165
  <td>
166
  <span><?php _e( 'Exclude TAX from structured data prices', 'woo-product-feed-pro' );?></span>
@@ -179,7 +154,6 @@ if(isset($_GET["tab"])) {
179
  </label>
180
  </td>
181
  </tr>
182
-
183
  <tr class="<?php print"$elite_disable";?>" id="identifier_option">
184
  <td>
185
  <span><?php _e( 'Add GTIN, MPN, UPC, EAN, Product condition, Optimised title, Installment, Unit measure and Brand attributes to your store:', 'woo-product-feed-pro' );?> (<a href="https://adtribes.io/add-gtin-mpn-upc-ean-product-condition-optimised-title-and-brand-attributes/?utm_source=<?php print "$host";?>&utm_medium=manage-settings&utm_content=adding fields" target="_blank"><?php _e( 'Read more about this', 'woo-product-feed-pro' );?>)</a></span>
@@ -198,7 +172,6 @@ if(isset($_GET["tab"])) {
198
  </label>
199
  </td>
200
  </tr>
201
-
202
  <tr class="<?php print"$elite_disable";?>" id="manipulation_option">
203
  <td>
204
  <span><?php _e( 'Enable Product data manipulation feature:', 'woo-product-feed-pro' );?> (<a href="https://adtribes.io/feature-product-data-manipulation/?utm_source=<?php print "$host";?>&utm_medium=manage-settings&utm_content=wpml support" target="_blank"><?php _e( 'Read more about this', 'woo-product-feed-pro' );?>)</a></span>
@@ -255,6 +228,9 @@ if(isset($_GET["tab"])) {
255
  </label>
256
  </td>
257
  </tr>
 
 
 
258
  <tr>
259
  <td>
260
  <span><?php _e( 'Use mother main image for variations', 'woo-product-feed-pro');?></span>
@@ -346,6 +322,9 @@ if(isset($_GET["tab"])) {
346
  </td>
347
  </tr>
348
 
 
 
 
349
  <tr id="facebook_pixel">
350
  <td>
351
  <span><?php _e( 'Add Facebook Pixel:', 'woo-product-feed-pro');?> (<a href="https://adtribes.io/facebook-pixel-feature/" target="_blank"><?php _e( 'Read more about this', 'woo-product-feed-pro' );?>)</a></span>
@@ -365,9 +344,10 @@ if(isset($_GET["tab"])) {
365
  </td>
366
  </tr>
367
  <?php
368
- if($add_facebook_pixel == "yes"){
369
- $facebook_pixel_id = get_option('woosea_facebook_pixel_id');
370
- print "<tr id=\"facebook_pixel_id\"><td colspan=\"2\"><span>Insert your Facebook Pixel ID:</span>&nbsp;<input type=\"text\" class=\"input-field-medium\" id=\"fb_pixel_id\" name=\"fb_pixel_id\" value=\"$facebook_pixel_id\">&nbsp;<input type=\"submit\" id=\"save_facebook_pixel_id\" value=\"Save\"></td></tr>";
 
371
  }
372
  ?>
373
 
@@ -425,53 +405,6 @@ if(isset($_GET["tab"])) {
425
  </form>
426
  </table>
427
  <?php
428
- } elseif ($active_tab == "woosea_license_check"){
429
- ?>
430
- <table class="woo-product-feed-pro-table">
431
- <tr>
432
- <td>
433
- <span><?php _e( 'License e-mail:', 'woo-product-feed-pro' );?></span>
434
- </td>
435
- <td>
436
- <input type="text" class="input-field-large" id="license-email" name="license-email" value="<?php print "$license_information[license_email]";?>">
437
- </td>
438
- </tr>
439
- <tr>
440
- <td>
441
- <span><?php _e( 'License key:', 'woo-product-feed-pro' );?></span>
442
- </td>
443
- <td>
444
- <input type="text" class="input-field-large" id="license-key" name="license-key" value="<?php print "$license_information[license_key]";?>">
445
- </td>
446
- </tr>
447
- <tr>
448
- <td colspan="2"><i><?php _e ( 'Please note that leaving your license details you allow us to automatically validate your license once a day.', 'woo-product-feed-pro' );?></i></td>
449
- </tr>
450
- <tr>
451
- <td colspan="2">
452
- <?php
453
- if($license_information['license_valid'] <> "true"){
454
- ?>
455
- <input type="submit" id="checklicense" value="Activate license">
456
- <?php
457
- } else {
458
- ?>
459
- <input type="submit" id="checklicense" value="License already active">
460
- <?php
461
- }
462
- ?>
463
- </td>
464
- </tr>
465
-
466
- </table>
467
- <?php
468
- } elseif ($active_tab == "woosea_copy_configs"){
469
- print "<br>";
470
- print "<table class=\"woo-product-feed-pro-table\">";
471
- print "<tr><td colspan=\"2\">Copy feed configuarion from this domain:</td></tr>";
472
- print "<tr><td colspan=\"2\"><select name=\"protocol\" id=\"protocol\" class=\"select-field\"><option value=\"https\">https://</option><option value=\"http\">http://</option></select>&nbsp;<input class=\"input-field\" name=\"copy_domain\" id=\"copy_domain\">&nbsp;<input type=\"submit\" id=\"copy_button\" value=\"Copy feeds\"></td></tr>";
473
- print "<tr><td colspan=\"2\">&nbsp;</td></tr>";
474
- print "</table>";
475
  } elseif ($active_tab == "woosea_system_check"){
476
  // Check if the product feed directory is writeable
477
  $upload_dir = wp_upload_dir();
@@ -649,9 +582,6 @@ if(isset($_GET["tab"])) {
649
 
650
  <div class="woo-product-feed-pro-table-right">
651
 
652
- <?php
653
- if((empty($license_information['license_valid'])) OR ($license_information['license_valid'] <> "true")){
654
- ?>
655
  <table class="woo-product-feed-pro-table">
656
  <tr>
657
  <td><strong><?php _e( 'Why upgrade to Elite?', 'woo-product-feed-pro' );?></strong></td>
@@ -674,9 +604,6 @@ if(isset($_GET["tab"])) {
674
  </td>
675
  </tr>
676
  </table><br/>
677
- <?php
678
- }
679
- ?>
680
 
681
  <table class="woo-product-feed-pro-table">
682
  <tr>
5
  $host = $_SERVER['HTTP_HOST'];
6
 
7
  $elite_disable = "enabled";
8
+ if(($license_information['license_valid'] == "false") OR (!array_key_exists('license_valid',$license_information))){
9
  $elite_disable = "disabled";
10
  }
11
 
76
  } elseif ($_GET["tab"] == "woosea_system_check"){
77
  $active_tab = "woosea_system_check";
78
  $header_text = __( 'Plugin systems check', 'woo-product-feed-pro' );
 
 
 
 
 
 
79
  } else {
80
  $active_tab = "woosea_manage_attributes";
81
  $header_text = __( 'Attribute settings', 'woo-product-feed-pro' );
97
  </span>
98
  </div>
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  <!-- wordpress provides the styling for tabs. -->
101
  <h2 class="nav-tab-wrapper">
102
  <!-- when tab buttons are clicked we jump back to the same page but with a new parameter that represents the clicked tab. accordingly we make it active -->
103
  <a href="?page=woosea_manage_settings&tab=woosea_manage_settings" class="nav-tab <?php if($active_tab == 'woosea_manage_settings'){echo 'nav-tab-active';} ?> "><?php _e('Plugin settings', 'woo-product-feed-pro'); ?></a>
 
104
  <a href="?page=woosea_manage_settings&tab=woosea_system_check" class="nav-tab <?php if($active_tab == 'woosea_system_check'){echo 'nav-tab-active';} ?>"><?php _e('Plugin systems check', 'woo-product-feed-pro'); ?></a>
 
 
 
 
105
  </h2>
106
 
107
  <div class="woo-product-feed-pro-table-wrapper">
114
  <tr><td><strong><?php _e( 'Plugin setting', 'woo-product-feed-pro' );?></strong></td><td><strong><?php _e( 'Off / On', 'woo-product-feed-pro' );?></strong></td></tr>
115
 
116
  <form action="" method="post">
117
+ <?php
118
+ if($elite_disable == "enabled"){
119
+ ?>
120
  <tr class="<?php print"$elite_disable";?>" id="json_option">
121
  <td>
122
  <span><?php _e( 'Increase the number of products that will be approved in Google\'s Merchant Center:', 'woo-product-feed-pro' );?><br/>
136
  </label>
137
  </td>
138
  </tr>
 
139
  <tr class="<?php print"$elite_disable";?>" id="structured_vat_option">
140
  <td>
141
  <span><?php _e( 'Exclude TAX from structured data prices', 'woo-product-feed-pro' );?></span>
154
  </label>
155
  </td>
156
  </tr>
 
157
  <tr class="<?php print"$elite_disable";?>" id="identifier_option">
158
  <td>
159
  <span><?php _e( 'Add GTIN, MPN, UPC, EAN, Product condition, Optimised title, Installment, Unit measure and Brand attributes to your store:', 'woo-product-feed-pro' );?> (<a href="https://adtribes.io/add-gtin-mpn-upc-ean-product-condition-optimised-title-and-brand-attributes/?utm_source=<?php print "$host";?>&utm_medium=manage-settings&utm_content=adding fields" target="_blank"><?php _e( 'Read more about this', 'woo-product-feed-pro' );?>)</a></span>
172
  </label>
173
  </td>
174
  </tr>
 
175
  <tr class="<?php print"$elite_disable";?>" id="manipulation_option">
176
  <td>
177
  <span><?php _e( 'Enable Product data manipulation feature:', 'woo-product-feed-pro' );?> (<a href="https://adtribes.io/feature-product-data-manipulation/?utm_source=<?php print "$host";?>&utm_medium=manage-settings&utm_content=wpml support" target="_blank"><?php _e( 'Read more about this', 'woo-product-feed-pro' );?>)</a></span>
228
  </label>
229
  </td>
230
  </tr>
231
+ <?php
232
+ }
233
+ ?>
234
  <tr>
235
  <td>
236
  <span><?php _e( 'Use mother main image for variations', 'woo-product-feed-pro');?></span>
322
  </td>
323
  </tr>
324
 
325
+ <?php
326
+ if($elite_disable == "enabled"){
327
+ ?>
328
  <tr id="facebook_pixel">
329
  <td>
330
  <span><?php _e( 'Add Facebook Pixel:', 'woo-product-feed-pro');?> (<a href="https://adtribes.io/facebook-pixel-feature/" target="_blank"><?php _e( 'Read more about this', 'woo-product-feed-pro' );?>)</a></span>
344
  </td>
345
  </tr>
346
  <?php
347
+ if($add_facebook_pixel == "yes"){
348
+ $facebook_pixel_id = get_option('woosea_facebook_pixel_id');
349
+ print "<tr id=\"facebook_pixel_id\"><td colspan=\"2\"><span>Insert your Facebook Pixel ID:</span>&nbsp;<input type=\"text\" class=\"input-field-medium\" id=\"fb_pixel_id\" name=\"fb_pixel_id\" value=\"$facebook_pixel_id\">&nbsp;<input type=\"submit\" id=\"save_facebook_pixel_id\" value=\"Save\"></td></tr>";
350
+ }
351
  }
352
  ?>
353
 
405
  </form>
406
  </table>
407
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  } elseif ($active_tab == "woosea_system_check"){
409
  // Check if the product feed directory is writeable
410
  $upload_dir = wp_upload_dir();
582
 
583
  <div class="woo-product-feed-pro-table-right">
584
 
 
 
 
585
  <table class="woo-product-feed-pro-table">
586
  <tr>
587
  <td><strong><?php _e( 'Why upgrade to Elite?', 'woo-product-feed-pro' );?></strong></td>
604
  </td>
605
  </tr>
606
  </table><br/>
 
 
 
607
 
608
  <table class="woo-product-feed-pro-table">
609
  <tr>
readme.txt CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
5
  Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
6
  Requires at least: 4.5
7
  Tested up to: 5.4
8
- Stable tag: 7.9.9
9
 
10
  == Description ==
11
 
@@ -312,6 +312,12 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
312
 
313
  === Changelog ===
314
 
 
 
 
 
 
 
315
  = 7.9.9 (2020-04-20) =
316
  * Solved an issue where the function wc_review_ratings_enabled was not supported by any WC version older than 3.6
317
 
@@ -2543,6 +2549,12 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2543
 
2544
  == Upgrade Notice ==
2545
 
 
 
 
 
 
 
2546
  = 7.9.9 =
2547
  Solved an issue where the function wc_review_ratings_enabled was not supported by any WC version older than 3.6
2548
 
5
  Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
6
  Requires at least: 4.5
7
  Tested up to: 5.4
8
+ Stable tag: 8.0.0
9
 
10
  == Description ==
11
 
312
 
313
  === Changelog ===
314
 
315
+ = 8.0.0 (2020-04-21) =
316
+ * Removed the phone home license check feature
317
+ * Made all remaining features free and fully functional
318
+ * Solved an issue where the function wc_review_ratings_enabled was not supported by any WC version older than 3.6
319
+ * Users with a license: please reach out to support@adtribes.io to receive a download link with the Elite version of the plugin
320
+
321
  = 7.9.9 (2020-04-20) =
322
  * Solved an issue where the function wc_review_ratings_enabled was not supported by any WC version older than 3.6
323
 
2549
 
2550
  == Upgrade Notice ==
2551
 
2552
+ = 8.0.0 =
2553
+ Removed the phone home license check feature
2554
+ Made all remaining features free and fully functional
2555
+ Solved an issue where the function wc_review_ratings_enabled was not supported by any WC version older than 3.6
2556
+ Users with a license: please reach out to support@adtribes.io to receive a download link with the Elite version of the plugin
2557
+
2558
  = 7.9.9 =
2559
  Solved an issue where the function wc_review_ratings_enabled was not supported by any WC version older than 3.6
2560
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 7.9.9
5
  * Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
6
  * Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Facebook, Remarketing, Bing, Yandex, Comparison shopping websites and over a 100 channels more.
7
  * Author: AdTribes.io
@@ -48,7 +48,7 @@ if (!defined('ABSPATH')) {
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
- define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '7.9.9' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -282,12 +282,8 @@ function woosea_plugin_action_links($links, $file) {
282
  $host = $_SERVER['HTTP_HOST'];
283
  $plugin_links[] = '<a href="https://adtribes.io/support/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=support" target="_blank">Support</a>';
284
  $plugin_links[] = '<a href="https://adtribes.io/tutorials/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=tutorials" target="_blank">Tutorials</a>';
285
-
286
- $license_information = get_option( 'license_information' );
287
- if($license_information['license_valid'] <> "true"){
288
- $plugin_links[] = '<a href="https://adtribes.io/pro-vs-elite/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=go elite" target="_blank" style="color:green;"><b>Go Elite</b></a>';
289
- $plugin_links[] = '<a href="https://adtribes.io/pro-vs-elite/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=premium support" target="_blank">Premium Support</a>';
290
- }
291
 
292
  // add the links to the list of links already there
293
  foreach($plugin_links as $link) {
@@ -754,67 +750,10 @@ function activate_woosea_feed(){
754
  }
755
  register_activation_hook(__FILE__, 'activate_woosea_feed');
756
 
757
- /**
758
- * Show the license notification
759
- **/
760
- function woosea_license_notice(){
761
- $license_information = get_option( 'license_information' );
762
- $license_notification = get_option( 'woosea_license_notification_closed' );
763
- $screen = get_current_screen();
764
- $current_date = strtotime(date( 'd-m-Y' ));
765
-
766
- if(isset($license_notification['timestamp'])){
767
- $off_date = strtotime($license_notification['timestamp']);
768
- } else {
769
- $off_date = strtotime(date( 'd-m-Y' ));
770
- }
771
-
772
- // Show notification again after 30 days
773
- $diff_days = 2592000;
774
- $diff = ($current_date - $off_date);
775
-
776
- // 30 days have passed
777
- if($diff > $diff_days){
778
- $license_notification['show'] = "yes";
779
- } else {
780
- $license_notification['show'] = "no";
781
- }
782
-
783
- // Add a check, notification should not show in the plugin pages itself as it will duplicate notices
784
- $page = basename($_SERVER['REQUEST_URI']);
785
-
786
- if (!preg_match("/woo-product-feed-pro|woosea_manage_feed|woosea_manage_settings/i",$page)){
787
-
788
- if($license_notification['show'] <> "no"){
789
- ?>
790
- <div class="<?php print "$license_information[message_type]"; ?> license_notification">
791
- <p><?php _e( $license_information['message'], 'sample-text-domain' ); ?></p>
792
- </div>
793
- <?php
794
- }
795
- }
796
- }
797
- add_action('admin_notices', 'woosea_license_notice');
798
-
799
- /**
800
- * Close the license notification
801
- **/
802
- function woosea_license_notification(){
803
-
804
- $get_admin_notice = array(
805
- "show" => "no",
806
- "timestamp" => date( 'd-m-Y' )
807
- );
808
-
809
- update_option('woosea_license_notification_closed', $get_admin_notice);
810
- }
811
- add_action('wp_ajax_woosea_license_notification', 'woosea_license_notification');
812
-
813
  /**
814
  * Close the get Elite notification
815
  **/
816
  function woosea_getelite_notification(){
817
-
818
  //delete_option('woosea_getelite_notification');
819
 
820
  $get_elite_notice = array(
@@ -929,11 +868,6 @@ add_action( 'woocommerce_thankyou', 'woosea_inject_ajax' );
929
  */
930
  add_action( 'woosea_cron_hook', 'woosea_create_all_feeds'); // create a cron hook
931
 
932
- /**
933
- * Check if license for Elite version is valid
934
- */
935
- add_action( 'woosea_check_license', 'woosea_license_valid'); // check if license is valid
936
-
937
  /**
938
  * Add WooCommerce SEA plugin to Menu
939
  */
@@ -942,11 +876,6 @@ function woosea_menu_addition(){
942
  add_submenu_page(__FILE__, __( 'Feed configuration', 'woo-product-feed-pro' ), __( 'Create feed', 'woo-product-feed-pro' ), 'manage_options', __FILE__, 'woosea_generate_pages');
943
  add_submenu_page(__FILE__, __( 'Manage feeds', 'woo-product-feed-pro' ), __( 'Manage feeds', 'woo-product-feed-pro' ), 'manage_options', 'woosea_manage_feed', 'woosea_manage_feed');
944
  add_submenu_page(__FILE__, __( 'Settings', 'woo-product-feed-pro' ), __( 'Settings', 'woo-product-feed-pro' ), 'manage_options', 'woosea_manage_settings', 'woosea_manage_settings');
945
-
946
- $license_information = get_option( 'license_information' );
947
- if($license_information['license_valid'] <> "true"){
948
- add_submenu_page(__FILE__, __( 'Upgrade to Elite', 'woo-product-feed' ), __( 'Upgrade to Elite', 'woo-product-feed-pro' ), 'manage_options', 'woosea_manage_settings&tab=woosea_license_check', 'woosea_upgrade_elite');
949
- }
950
  }
951
 
952
  /**
@@ -1134,51 +1063,6 @@ function woosea_add_cat_mapping() {
1134
  }
1135
  add_action( 'wp_ajax_woosea_add_cat_mapping', 'woosea_add_cat_mapping' );
1136
 
1137
- /**
1138
- * Function to register a succesfull license activation
1139
- */
1140
- function woosea_register_license(){
1141
- $license_valid = sanitize_text_field($_POST['license_valid']);
1142
- $license_created = sanitize_text_field($_POST['license_created']);
1143
- $message = sanitize_text_field($_POST['message']);
1144
- $message_type = sanitize_text_field($_POST['message_type']);
1145
- $license_email = sanitize_text_field($_POST['license_email']);
1146
- $license_key = sanitize_text_field($_POST['license_key']);
1147
- $notice = sanitize_text_field($_POST['notice']);
1148
-
1149
- $license_information = array (
1150
- 'license_valid' => $license_valid,
1151
- 'license_created' => $license_created,
1152
- 'message' => $message,
1153
- 'message_type' => $message_type,
1154
- 'license_email' => $license_email,
1155
- 'license_key' => $license_key,
1156
- 'notice' => $notice,
1157
- );
1158
-
1159
- if($license_valid == "false"){
1160
- // The Elite settings get disabled when license is not valid
1161
- delete_option ('structured_data_fix');
1162
- delete_option ('structured_vat');
1163
- delete_option ('add_unique_identifiers');
1164
- delete_option ('add_wpml_support');
1165
- delete_option ('add_manipulation_support');
1166
- delete_option ('add_aelia_support');
1167
- }
1168
-
1169
- update_option("license_information", $license_information);
1170
-
1171
- }
1172
- add_action( 'wp_ajax_woosea_register_license', 'woosea_register_license' );
1173
-
1174
- /**
1175
- * Deactivate Elite license
1176
- */
1177
- function woosea_deactivate_license(){
1178
- delete_option( 'license_information' );
1179
- }
1180
- add_action( 'wp_ajax_woosea_deactivate_license', 'woosea_deactivate_license' );
1181
-
1182
  /**
1183
  * Retrieve variation product id based on it attributes
1184
  **/
@@ -1782,7 +1666,8 @@ function woosea_product_fix_structured_data( $product = null ) {
1782
  $markup['offers'][0] = woosea_product_delete_meta_price($product);
1783
 
1784
  // if(!class_exists('WPSEO_WooCommerce_Schema')){
1785
- if ( $product->get_rating_count() && wc_review_ratings_enabled() ) {
 
1786
  $markup['aggregateRating'] = array(
1787
  '@type' => 'AggregateRating',
1788
  'ratingValue' => $product->get_average_rating(),
@@ -1857,8 +1742,7 @@ function woosea_product_fix_structured_data( $product = null ) {
1857
 
1858
  // Check if Yoast SEO WooCommerce plugin is enabled
1859
  // if(!class_exists('WPSEO_WooCommerce_Schema')){
1860
-
1861
- if ( $product->get_rating_count() && wc_review_ratings_enabled() ) {
1862
  $markup['aggregateRating'] = array(
1863
  '@type' => 'AggregateRating',
1864
  'ratingValue' => $product->get_average_rating(),
@@ -4227,17 +4111,6 @@ function woosea_generate_pages(){
4227
  }
4228
  }
4229
 
4230
- /**
4231
- * Check for active license, is this a paid version of the plugin?
4232
- * This function is called by the cron after 30 seconds. The check only
4233
- * needs to be done once and not continuesly so it gets removed.
4234
- */
4235
- function woosea_de_register_license(){
4236
- wp_dequeue_script( 'woosea_adtribes-js' );
4237
- wp_deregister_script( 'woosea_adtribes-js' );
4238
- }
4239
- add_action( 'woosea_deregister_hook', 'woosea_de_register_license', 99999); // deregister the paid version check after 60 seconds
4240
-
4241
  /**
4242
  * This function copies feed configurations from another domain
4243
  * so users do not have to re-configure feeds for all their domains
@@ -4265,67 +4138,6 @@ function woosea_copy_configurations(){
4265
  $json_return = json_decode($response, true);
4266
  }
4267
 
4268
- /**
4269
- * This function checks if the Elite license is valid. When the license
4270
- * key is invalid or expired the advanced options of this plugin will be disabled
4271
- */
4272
- function woosea_license_valid(){
4273
- $domain = $_SERVER['HTTP_HOST'];
4274
- $license_information = get_option('license_information');
4275
-
4276
- if(!empty($license_information['license_key'])){
4277
- $curl = curl_init();
4278
- $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.9.9";
4279
-
4280
- curl_setopt_array($curl, array(
4281
- CURLOPT_RETURNTRANSFER => 1,
4282
- CURLOPT_URL => $url,
4283
- CURLOPT_USERAGENT => 'AdTribes license cURL Request'
4284
- ));
4285
- $response = curl_exec( $curl );
4286
- curl_close($curl);
4287
- $json_return = json_decode($response, true);
4288
-
4289
- $license_start_time = strtotime($json_return['created']);
4290
- $license_end_time = strtotime('+1 years', $license_start_time);
4291
- $current_time = time();
4292
- $license_information['notice'] = $json_return['notice'];
4293
-
4294
- if($json_return['valid'] == "false"){
4295
- $license_information['message'] = $json_return['message'];
4296
- $license_information['message_type'] = $json_return['message_type'];
4297
- $license_information['license_valid'] = "false";
4298
- $license_information['license_key'] = $json_return['license_key'];
4299
- $license_information['license_email'] = $json_return['license_email'];
4300
- $license_information['notice'] = $json_return['notice'];
4301
-
4302
- update_option ('license_information', $license_information);
4303
-
4304
- // The Elite settings get disabled when license is not valid
4305
- delete_option ('structured_data_fix');
4306
- delete_option ('add_unique_identifiers');
4307
- delete_option ('add_wpml_support');
4308
- delete_option ('add_manipulation_support');
4309
- delete_option ('add_aelia_support');
4310
- } else {
4311
- if(empty($json_return)){
4312
- $license_information['message'] = "Could not connect to AdTribes.io to validate your license. We will try again tomorrow.";
4313
- $license_information['message_type'] = "notice notice-error is-dismissible";
4314
- $license_information['license_valid'] = "true";
4315
- $license_information['notice'] = "false";
4316
- } else {
4317
- $license_information['message'] = $json_return['message'];
4318
- $license_information['message_type'] = $json_return['message_type'];
4319
- $license_information['license_valid'] = "true";
4320
- $license_information['notice'] = $json_return['notice'];
4321
- }
4322
- update_option ('license_information', $license_information);
4323
- }
4324
- } else {
4325
- // This is a free PRO user, no license check needed
4326
- }
4327
- }
4328
-
4329
  /**
4330
  * Function used by event scheduling to create feeds
4331
  * Feed can automatically be generated every hour, twicedaiy or once a day
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 8.0.0
5
  * Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
6
  * Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Facebook, Remarketing, Bing, Yandex, Comparison shopping websites and over a 100 channels more.
7
  * Author: AdTribes.io
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
+ define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.0.0' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
282
  $host = $_SERVER['HTTP_HOST'];
283
  $plugin_links[] = '<a href="https://adtribes.io/support/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=support" target="_blank">Support</a>';
284
  $plugin_links[] = '<a href="https://adtribes.io/tutorials/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=tutorials" target="_blank">Tutorials</a>';
285
+ $plugin_links[] = '<a href="https://adtribes.io/pro-vs-elite/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=go elite" target="_blank" style="color:green;"><b>Go Elite</b></a>';
286
+ $plugin_links[] = '<a href="https://adtribes.io/pro-vs-elite/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=premium support" target="_blank">Premium Support</a>';
 
 
 
 
287
 
288
  // add the links to the list of links already there
289
  foreach($plugin_links as $link) {
750
  }
751
  register_activation_hook(__FILE__, 'activate_woosea_feed');
752
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
753
  /**
754
  * Close the get Elite notification
755
  **/
756
  function woosea_getelite_notification(){
 
757
  //delete_option('woosea_getelite_notification');
758
 
759
  $get_elite_notice = array(
868
  */
869
  add_action( 'woosea_cron_hook', 'woosea_create_all_feeds'); // create a cron hook
870
 
 
 
 
 
 
871
  /**
872
  * Add WooCommerce SEA plugin to Menu
873
  */
876
  add_submenu_page(__FILE__, __( 'Feed configuration', 'woo-product-feed-pro' ), __( 'Create feed', 'woo-product-feed-pro' ), 'manage_options', __FILE__, 'woosea_generate_pages');
877
  add_submenu_page(__FILE__, __( 'Manage feeds', 'woo-product-feed-pro' ), __( 'Manage feeds', 'woo-product-feed-pro' ), 'manage_options', 'woosea_manage_feed', 'woosea_manage_feed');
878
  add_submenu_page(__FILE__, __( 'Settings', 'woo-product-feed-pro' ), __( 'Settings', 'woo-product-feed-pro' ), 'manage_options', 'woosea_manage_settings', 'woosea_manage_settings');
 
 
 
 
 
879
  }
880
 
881
  /**
1063
  }
1064
  add_action( 'wp_ajax_woosea_add_cat_mapping', 'woosea_add_cat_mapping' );
1065
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1066
  /**
1067
  * Retrieve variation product id based on it attributes
1068
  **/
1666
  $markup['offers'][0] = woosea_product_delete_meta_price($product);
1667
 
1668
  // if(!class_exists('WPSEO_WooCommerce_Schema')){
1669
+ if ( ($product->get_rating_count()) && (function_exists(wc_review_ratings_enabled()))) {
1670
+
1671
  $markup['aggregateRating'] = array(
1672
  '@type' => 'AggregateRating',
1673
  'ratingValue' => $product->get_average_rating(),
1742
 
1743
  // Check if Yoast SEO WooCommerce plugin is enabled
1744
  // if(!class_exists('WPSEO_WooCommerce_Schema')){
1745
+ if ( ($product->get_rating_count()) && (function_exists(wc_review_ratings_enabled()))) {
 
1746
  $markup['aggregateRating'] = array(
1747
  '@type' => 'AggregateRating',
1748
  'ratingValue' => $product->get_average_rating(),
4111
  }
4112
  }
4113
 
 
 
 
 
 
 
 
 
 
 
 
4114
  /**
4115
  * This function copies feed configurations from another domain
4116
  * so users do not have to re-configure feeds for all their domains
4138
  $json_return = json_decode($response, true);
4139
  }
4140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4141
  /**
4142
  * Function used by event scheduling to create feeds
4143
  * Feed can automatically be generated every hour, twicedaiy or once a day