Product Feed PRO for WooCommerce - Version 11.5.7

Version Description

Solved an issue with an undefined variable

Download this release

Release Info

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

Code changes from version 11.5.6 to 11.5.7

classes/class-get-products.php CHANGED
@@ -4360,8 +4360,12 @@ class WooSEA_Get_Products {
4360
  $quantity_variation = 0;
4361
 
4362
  foreach($variations_id as $var_id){
4363
- $clr_variation = get_post_meta( $var_id, "attribute_".$clr_attribute, true );
4364
-
 
 
 
 
4365
  // Sum quantity of variations
4366
  $quantity_variation = $this->get_attribute_value( $var_id, "_stock" );
4367
  if(!empty($quantity_variation)){
4360
  $quantity_variation = 0;
4361
 
4362
  foreach($variations_id as $var_id){
4363
+ if(isset($clr_attribute)){
4364
+ $clr_variation = get_post_meta( $var_id, "attribute_".$clr_attribute, true );
4365
+ } else {
4366
+ $clr_variation = "";
4367
+ }
4368
+
4369
  // Sum quantity of variations
4370
  $quantity_variation = $this->get_attribute_value( $var_id, "_stock" );
4371
  if(!empty($quantity_variation)){
js/woosea_key.js CHANGED
@@ -26,7 +26,7 @@ jQuery(document).ready(function($) {
26
  var license_key = $('#license-key').val();
27
 
28
  jQuery.ajax({
29
- url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=11.5.6',
30
  jsonp: 'callback',
31
  dataType: 'jsonp',
32
  type: 'GET',
26
  var license_key = $('#license-key').val();
27
 
28
  jQuery.ajax({
29
+ url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=11.5.7',
30
  jsonp: 'callback',
31
  dataType: 'jsonp',
32
  type: 'GET',
pages/admin/woosea-generate-feed-step-0.php CHANGED
@@ -72,7 +72,7 @@ $countries = $channel_obj->get_channel_countries();
72
  $channels = $channel_obj->get_channels($locale);
73
 
74
  if (array_key_exists('project_hash', $_GET)){
75
- $project = WooSEA_Update_Project::get_project_data($_GET['project_hash']);
76
  $manage_project = "yes";
77
  }
78
  ?>
72
  $channels = $channel_obj->get_channels($locale);
73
 
74
  if (array_key_exists('project_hash', $_GET)){
75
+ $project = WooSEA_Update_Project::get_project_data(sanitize_text_field($_GET['project_hash']));
76
  $manage_project = "yes";
77
  }
78
  ?>
pages/admin/woosea-generate-feed-step-2.php CHANGED
@@ -33,7 +33,7 @@ if (array_key_exists('project_hash', $_GET)){
33
  $standard_attributes[$k] = $value;
34
  }
35
  } else {
36
- $project = WooSEA_Update_Project::update_project($_POST);
37
  $channel_data = WooSEA_Update_Project::get_channel_data(sanitize_text_field($_POST['channel_hash']));
38
  $standard_attributes = $attributes_obj->get_standard_attributes($project);
39
 
33
  $standard_attributes[$k] = $value;
34
  }
35
  } else {
36
+ $project = WooSEA_Update_Project::update_project(sanitize_text_field($_POST));
37
  $channel_data = WooSEA_Update_Project::get_channel_data(sanitize_text_field($_POST['channel_hash']));
38
  $standard_attributes = $attributes_obj->get_standard_attributes($project);
39
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
5
  Tags: Google Shopping Feed, Facebook feed, Facebook catalog feed, WooCommerce Product Feed, Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Pixels, Conversion API
6
  Requires at least: 4.5
7
  Tested up to: 5.9
8
- Stable tag: 11.5.6
9
 
10
  == Description ==
11
 
@@ -345,6 +345,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
345
 
346
  === Changelog ===
347
 
 
 
 
348
  = 11.5.6 (2022-05-10) =
349
  * Fixed an issue with the Skroutz template, adding comma's inbetween size values
350
 
@@ -3701,6 +3704,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3701
 
3702
  == Upgrade Notice ==
3703
 
 
 
 
3704
  = 11.5.6 =
3705
  Fixed an issue with the Skroutz template, adding comma's inbetween size values
3706
 
5
  Tags: Google Shopping Feed, Facebook feed, Facebook catalog feed, WooCommerce Product Feed, Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Pixels, Conversion API
6
  Requires at least: 4.5
7
  Tested up to: 5.9
8
+ Stable tag: 11.5.7
9
 
10
  == Description ==
11
 
345
 
346
  === Changelog ===
347
 
348
+ = 11.5.7 (2022-05-29) =
349
+ * Solved an issue with an undefined variable
350
+
351
  = 11.5.6 (2022-05-10) =
352
  * Fixed an issue with the Skroutz template, adding comma's inbetween size values
353
 
3704
 
3705
  == Upgrade Notice ==
3706
 
3707
+ = 11.5.7 =
3708
+ Solved an issue with an undefined variable
3709
+
3710
  = 11.5.6 =
3711
  Fixed an issue with the Skroutz template, adding comma's inbetween size values
3712
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.5.6
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, Catalog managers, Remarketing, Bing, Skroutz, 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', '11.5.6' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -168,7 +168,7 @@ function woosea_plugin_action_links($links, $file) {
168
  // check to make sure we are on the correct plugin
169
  if ($file == $this_plugin) {
170
  // link to what ever you want
171
- $host = $_SERVER['HTTP_HOST'];
172
  $plugin_links[] = '<a href="https://adtribes.io/support/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=support" target="_blank">Support</a>';
173
  $plugin_links[] = '<a href="https://adtribes.io/tutorials/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=tutorials" target="_blank">Tutorials</a>';
174
  $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>';
@@ -253,9 +253,9 @@ function woosea_add_facebook_pixel( $product = null ){
253
  $fb_capi_data["event_time"] = time();
254
  $fb_capi_data["event_id"] = $event_id;
255
  $fb_capi_data["user_data"]["client_ip_address"] = WC_Geolocation::get_ip_address();
256
- $fb_capi_data["user_data"]["client_user_agent"] = $_SERVER['HTTP_USER_AGENT'];
257
  $fb_capi_data["action_source"] = "website";
258
- $fb_capi_data["event_source_url"] = home_url($_SERVER['REQUEST_URI']);
259
 
260
  if ($fb_pagetype == "product"){
261
  if (!empty($product->get_price())) {
@@ -857,7 +857,7 @@ function woosea_request_review(){
857
  $current_time = time();
858
  $show_after = 604800; // Show only after one week
859
  $is_active = $current_time-$first_activation;
860
- $page = basename($_SERVER['REQUEST_URI']);
861
 
862
  if(($nr_projects > 0) AND ($is_active > $show_after) AND ($notification_interaction != "yes")){
863
  echo '<div class="notice notice-info review-notification">';
@@ -1222,9 +1222,9 @@ function woosea_product_delete_meta_price( $product = null ) {
1222
  // Here append the common URL characters.
1223
  $link .= "://";
1224
  // Append the host(domain name, ip) to the URL.
1225
- $link .= $_SERVER['HTTP_HOST'];
1226
  // Append the requested resource location to the URL
1227
- $link .= $_SERVER['REQUEST_URI'];
1228
 
1229
  if($structured_data_fix == "yes"){
1230
 
@@ -1584,9 +1584,9 @@ function woosea_product_fix_structured_data( $product = null ) {
1584
  // Here append the common URL characters.
1585
  $link .= "://";
1586
  // Append the host(domain name, ip) to the URL.
1587
- $link .= $_SERVER['HTTP_HOST'];
1588
  // Append the requested resource location to the URL
1589
- $link .= $_SERVER['REQUEST_URI'];
1590
 
1591
  $structured_data_fix = get_option ('structured_data_fix');
1592
 
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 11.5.7
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, Catalog managers, Remarketing, Bing, Skroutz, 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', '11.5.7' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
168
  // check to make sure we are on the correct plugin
169
  if ($file == $this_plugin) {
170
  // link to what ever you want
171
+ $host = sanitize_text_field($_SERVER['HTTP_HOST']);
172
  $plugin_links[] = '<a href="https://adtribes.io/support/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=support" target="_blank">Support</a>';
173
  $plugin_links[] = '<a href="https://adtribes.io/tutorials/?utm_source='.$host.'&utm_medium=pluginpage&utm_campaign=tutorials" target="_blank">Tutorials</a>';
174
  $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>';
253
  $fb_capi_data["event_time"] = time();
254
  $fb_capi_data["event_id"] = $event_id;
255
  $fb_capi_data["user_data"]["client_ip_address"] = WC_Geolocation::get_ip_address();
256
+ $fb_capi_data["user_data"]["client_user_agent"] = sanitize_text_field($_SERVER['HTTP_USER_AGENT']);
257
  $fb_capi_data["action_source"] = "website";
258
+ $fb_capi_data["event_source_url"] = sanitize_text_field(home_url($_SERVER['REQUEST_URI']));
259
 
260
  if ($fb_pagetype == "product"){
261
  if (!empty($product->get_price())) {
857
  $current_time = time();
858
  $show_after = 604800; // Show only after one week
859
  $is_active = $current_time-$first_activation;
860
+ $page = sanitize_text_field(basename($_SERVER['REQUEST_URI']));
861
 
862
  if(($nr_projects > 0) AND ($is_active > $show_after) AND ($notification_interaction != "yes")){
863
  echo '<div class="notice notice-info review-notification">';
1222
  // Here append the common URL characters.
1223
  $link .= "://";
1224
  // Append the host(domain name, ip) to the URL.
1225
+ $link .= sanitize_text_field($_SERVER['HTTP_HOST']);
1226
  // Append the requested resource location to the URL
1227
+ $link .= sanitize_text_field($_SERVER['REQUEST_URI']);
1228
 
1229
  if($structured_data_fix == "yes"){
1230
 
1584
  // Here append the common URL characters.
1585
  $link .= "://";
1586
  // Append the host(domain name, ip) to the URL.
1587
+ $link .= sanitize_text_field($_SERVER['HTTP_HOST']);
1588
  // Append the requested resource location to the URL
1589
+ $link .= sanitize_text_field($_SERVER['REQUEST_URI']);
1590
 
1591
  $structured_data_fix = get_option ('structured_data_fix');
1592