Product Feed PRO for WooCommerce - Version 7.1.5

Version Description

Fixed a bug: when WooCommerce categories have the exact same name the Google category taxonomy mapping showed only one mapping in the UI. This hasbeen fixed.

Download this release

Release Info

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

Code changes from version 7.1.4 to 7.1.5

TODO.txt CHANGED
@@ -7,7 +7,7 @@ Tutorial / Blog posts:
7
  Priority issues:
8
  - Change XML header for Elite users (so it doesn't say its free for example)
9
  - Add Facebook pixel measure sales/conversion in checkout (onder andere InitiateCheckout, Purchase, Search and ViewCategory pages);
10
- - Categories / subcategorie mapping issue when the categories have the exact same name
11
  - Make extra woosea fields available for front-end usage
12
  - Only update feed when changes to products have been made
13
  - Add header to extra fields on product edit pages
7
  Priority issues:
8
  - Change XML header for Elite users (so it doesn't say its free for example)
9
  - Add Facebook pixel measure sales/conversion in checkout (onder andere InitiateCheckout, Purchase, Search and ViewCategory pages);
10
+ https://developers.facebook.com/docs/marketing-api/audiences/guides/dynamic-product-audiences
11
  - Make extra woosea fields available for front-end usage
12
  - Only update feed when changes to products have been made
13
  - Add header to extra fields on product edit pages
js/woosea_key.js CHANGED
@@ -27,7 +27,7 @@ jQuery(document).ready(function($) {
27
  var license_key = $('#license-key').val();
28
 
29
  jQuery.ajax({
30
- url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=7.1.4',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
27
  var license_key = $('#license-key').val();
28
 
29
  jQuery.ajax({
30
+ url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=7.1.5',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
pages/admin/woosea-generate-feed-step-1.php CHANGED
@@ -72,11 +72,11 @@ function woosea_hierarchical_term_tree($category, $prev_mapped){
72
  $woo_category = preg_replace('/"/','"',$woo_category);
73
 
74
  // Check if mapping is in place
75
- if ((array_key_exists($sub_category->name, $prev_mapped)) OR (array_key_exists($woo_category, $prev_mapped))){
76
- if(array_key_exists($sub_category->name, $prev_mapped)){
77
- $mapped_category = $prev_mapped[$sub_category->name];
78
  } elseif (array_key_exists($woo_category, $prev_mapped)){
79
- $mapped_category = $prev_mapped[$woo_category];
80
  } else {
81
  $mapped_category = $woo_category;
82
  }
@@ -150,7 +150,8 @@ function woosea_hierarchical_term_tree($category, $prev_mapped){
150
  foreach ($project['mappings'] as $map_key => $map_value){
151
  if(strlen($map_value['map_to_category']) > 0){
152
  $map_value['criteria'] = str_replace("\\","",$map_value['criteria']);
153
- $prev_mapped[$map_value['criteria']] = $map_value['map_to_category'];
 
154
  }
155
  }
156
  }
72
  $woo_category = preg_replace('/"/','"',$woo_category);
73
 
74
  // Check if mapping is in place
75
+ if ((array_key_exists($x, $prev_mapped)) OR (array_key_exists($woo_category, $prev_mapped))){
76
+ if(array_key_exists($x, $prev_mapped)){
77
+ $mapped_category = $prev_mapped[$x];
78
  } elseif (array_key_exists($woo_category, $prev_mapped)){
79
+ $mapped_category = $prev_mapped[$x];
80
  } else {
81
  $mapped_category = $woo_category;
82
  }
150
  foreach ($project['mappings'] as $map_key => $map_value){
151
  if(strlen($map_value['map_to_category']) > 0){
152
  $map_value['criteria'] = str_replace("\\","",$map_value['criteria']);
153
+ $prev_mapped[$map_value['categoryId']] = $map_value['map_to_category'];
154
+ // $prev_mapped[$map_value['criteria']] = $map_value['map_to_category'];
155
  }
156
  }
157
  }
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.3
8
- Stable tag: 7.1.4
9
 
10
  == Description ==
11
 
@@ -302,6 +302,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
302
 
303
  === Changelog ===
304
 
 
 
 
305
  = 7.1.4 (2020-01-07) =
306
  * Fixed a bug: when a minimum shipping fee was set and one used the Germanized for WooCommerce plugin product prices higher than 100 never got free shipping. This has been fixed.
307
 
@@ -2255,6 +2258,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2255
 
2256
  == Upgrade Notice ==
2257
 
 
 
 
2258
  = 7.1.4 =
2259
  Fixed a bug: when a minimum shipping fee was set and one used the Germanized for WooCommerce plugin product prices higher than 100 never got free shipping. This has been fixed.
2260
 
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.3
8
+ Stable tag: 7.1.5
9
 
10
  == Description ==
11
 
302
 
303
  === Changelog ===
304
 
305
+ = 7.1.5 (2020-01-08) =
306
+ * Fixed a bug: when WooCommerce categories have the exact same name the Google category taxonomy mapping showed only one mapping in the UI. This hasbeen fixed.
307
+
308
  = 7.1.4 (2020-01-07) =
309
  * Fixed a bug: when a minimum shipping fee was set and one used the Germanized for WooCommerce plugin product prices higher than 100 never got free shipping. This has been fixed.
310
 
2258
 
2259
  == Upgrade Notice ==
2260
 
2261
+ = 7.1.5 =
2262
+ Fixed a bug: when WooCommerce categories have the exact same name the Google category taxonomy mapping showed only one mapping in the UI. This hasbeen fixed.
2263
+
2264
  = 7.1.4 =
2265
  Fixed a bug: when a minimum shipping fee was set and one used the Germanized for WooCommerce plugin product prices higher than 100 never got free shipping. This has been fixed.
2266
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 7.1.4
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.1.4' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -381,6 +381,10 @@ function woosea_add_facebook_pixel( $product = null ){
381
  } elseif ($fb_pagetype == "cart"){
382
  $fb_prodid = get_the_id();
383
  $viewContent = "";
 
 
 
 
384
  } else {
385
  // This is another page than a product page
386
  $viewContent = "";
@@ -851,8 +855,6 @@ function woosea_add_cat_mapping() {
851
  $status_mapping = "false";
852
  $project = WooSEA_Update_Project::get_project_data(sanitize_text_field($project_hash));
853
 
854
-
855
-
856
  // This is during the configuration of a new feed
857
  if(empty($project)){
858
  $project_temp = get_option( 'channel_project' );
@@ -871,6 +873,8 @@ function woosea_add_cat_mapping() {
871
  $project['mappings'][$rowCount]['criteria'] = $criteria;
872
  $project['mappings'][$rowCount]['map_to_category'] = $map_to_category;
873
 
 
 
874
  $project_updated = WooSEA_Update_Project::update_project_data($project);
875
  $status_mapping = "true";
876
  }
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 7.1.5
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', '7.1.5' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
381
  } elseif ($fb_pagetype == "cart"){
382
  $fb_prodid = get_the_id();
383
  $viewContent = "";
384
+ } elseif ($fb_pagetype == "category"){
385
+ $term = get_queried_object();
386
+ $category_name = $term->name;
387
+ $viewContent = "fbq(\"trackCustom\",\"ViewCategory\",{content_category:\"$cats\", content_name:\"$category_name\", content_type:\"product\", content_ids:[\"$fb_prodid\"]});";
388
  } else {
389
  // This is another page than a product page
390
  $viewContent = "";
855
  $status_mapping = "false";
856
  $project = WooSEA_Update_Project::get_project_data(sanitize_text_field($project_hash));
857
 
 
 
858
  // This is during the configuration of a new feed
859
  if(empty($project)){
860
  $project_temp = get_option( 'channel_project' );
873
  $project['mappings'][$rowCount]['criteria'] = $criteria;
874
  $project['mappings'][$rowCount]['map_to_category'] = $map_to_category;
875
 
876
+ //error_log(print_r($project['mappings'], TRUE));
877
+
878
  $project_updated = WooSEA_Update_Project::update_project_data($project);
879
  $status_mapping = "true";
880
  }