Product Feed PRO for WooCommerce - Version 7.9.5

Version Description

Added a feature to exclude local pickup shipping zones from Google Shopping and Facebook feeds Renamed a Fruugo.nl template field from NormalPriceWithVat to NormalPriceWithVAT Removed ATOM header from Pinterest RSS Board templating

Download this release

Release Info

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

Code changes from version 7.9.4 to 7.9.5

TODO.txt CHANGED
@@ -5,7 +5,7 @@ Tutorial / Blog posts:
5
  - Explain all the different fields/attributes that can be selected from the drop-downs
6
 
7
  Priority issues:
8
- - When free shipping remove other shipping costs and visa versa
9
  - Add support for Polylang
10
  - Add possibility to copy feed configuration from one WooCommerce instance to the other instance
11
  - Add support for Multisites
5
  - Explain all the different fields/attributes that can be selected from the drop-downs
6
 
7
  Priority issues:
8
+ - Add feature to remove local pickup shipping costs from feed
9
  - Add support for Polylang
10
  - Add possibility to copy feed configuration from one WooCommerce instance to the other instance
11
  - Add support for Multisites
classes/channels/class-fruugonl.php CHANGED
@@ -69,19 +69,19 @@ class WooSEA_fruugonl {
69
  "woo_suggest" => "description",
70
  ),
71
  "Normal Price With VAT" => array(
72
- "name" => "NormalPriceWithVat",
73
- "feed_name" => "NormalPriceWithVat",
74
  "format" => "required",
75
  "woo_suggest" => "price",
76
  ),
77
  "Normal Price Without VAT" => array(
78
- "name" => "NormalPriceWithoutVat",
79
- "feed_name" => "NormalPriceWithoutVat",
80
  "format" => "optional",
81
  ),
82
  "VAT Rate" => array(
83
- "name" => "VatRate",
84
- "feed_name" => "VatRate",
85
  "format" => "required",
86
  ),
87
  "Image URL 2" => array(
69
  "woo_suggest" => "description",
70
  ),
71
  "Normal Price With VAT" => array(
72
+ "name" => "NormalPriceWithVAT",
73
+ "feed_name" => "NormalPriceWithVAT",
74
  "format" => "required",
75
  "woo_suggest" => "price",
76
  ),
77
  "Normal Price Without VAT" => array(
78
+ "name" => "NormalPriceWithoutVAT",
79
+ "feed_name" => "NormalPriceWithoutVAT",
80
  "format" => "optional",
81
  ),
82
  "VAT Rate" => array(
83
+ "name" => "VATRate",
84
+ "feed_name" => "VATRate",
85
  "format" => "required",
86
  ),
87
  "Image URL 2" => array(
classes/class-get-products.php CHANGED
@@ -854,6 +854,17 @@ class WooSEA_Get_Products {
854
  }
855
  }
856
 
 
 
 
 
 
 
 
 
 
 
 
857
  // FREE SHIPPING COSTS IF MINIMUM FEE REACHED
858
  if($v->id == "free_shipping"){
859
  $minimum_fee = $v->min_amount;
@@ -1204,7 +1215,7 @@ class WooSEA_Get_Products {
1204
  $xml->addAttribute('xmlns:content', 'http://purl.org/rss/1.0/modules/content/');
1205
  $xml->addAttribute('xmlns:wfw', 'http://wellformedweb.org/CommentAPI/');
1206
  $xml->addAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/');
1207
- $xml->addAttribute('xmlns:atom', 'http://www.w3.org/2005/Atom');
1208
  $xml->addAttribute('xmlns:sy', 'http://purl.org/rss/1.0/modules/syndication/');
1209
  $xml->addAttribute('xmlns:slash', 'http://purl.org/rss/1.0/modules/slash/');
1210
  $xml->addAttribute('version', '2.0');
854
  }
855
  }
856
 
857
+ // CHECK IF WE NEED TO REMOVE LOCAL PICKUP
858
+ if($v->id == "local_pickup"){
859
+ $remove_local_pickup = "no";
860
+ $remove_local_pickup = get_option ('local_pickup_shipping');
861
+
862
+ if($remove_local_pickup == "yes"){
863
+ unset($zone_details);
864
+ unset($shipping_cost);
865
+ }
866
+ }
867
+
868
  // FREE SHIPPING COSTS IF MINIMUM FEE REACHED
869
  if($v->id == "free_shipping"){
870
  $minimum_fee = $v->min_amount;
1215
  $xml->addAttribute('xmlns:content', 'http://purl.org/rss/1.0/modules/content/');
1216
  $xml->addAttribute('xmlns:wfw', 'http://wellformedweb.org/CommentAPI/');
1217
  $xml->addAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/');
1218
+ // $xml->addAttribute('xmlns:atom', 'http://www.w3.org/2005/Atom');
1219
  $xml->addAttribute('xmlns:sy', 'http://purl.org/rss/1.0/modules/syndication/');
1220
  $xml->addAttribute('xmlns:slash', 'http://purl.org/rss/1.0/modules/slash/');
1221
  $xml->addAttribute('version', '2.0');
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.9.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.9.5',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
js/woosea_manage.js CHANGED
@@ -241,6 +241,26 @@ jQuery(document).ready(function($) {
241
  }
242
  })
243
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
  // Check if user would like to enable debug logging
245
  $('#add_woosea_logging').on('change', function(){ // on change of state
246
  if(this.checked){
241
  }
242
  })
243
 
244
+ // Check if user would like the plugin to respect free shipping class
245
+ $('#local_pickup_shipping').on('change', function(){ // on change of state
246
+ if(this.checked){
247
+
248
+ // Checkbox is on
249
+ jQuery.ajax({
250
+ method: "POST",
251
+ url: ajaxurl,
252
+ data: { 'action': 'woosea_local_pickup_shipping', 'status': "on" }
253
+ })
254
+ } else {
255
+ // Checkbox is off
256
+ jQuery.ajax({
257
+ method: "POST",
258
+ url: ajaxurl,
259
+ data: { 'action': 'woosea_local_pickup_shipping', 'status': "off" }
260
+ })
261
+ }
262
+ })
263
+
264
  // Check if user would like to enable debug logging
265
  $('#add_woosea_logging').on('change', function(){ // on change of state
266
  if(this.checked){
pages/admin/woosea-manage-settings.php CHANGED
@@ -309,9 +309,24 @@ if(isset($_GET["tab"])) {
309
  </label>
310
  </td>
311
  </tr>
312
-
313
-
314
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  <tr>
316
  <td>
317
  <span><?php _e( 'Enable logging (Enable only on advice of our support-team):', 'woo-product-feed-pro');?></span>
309
  </label>
310
  </td>
311
  </tr>
312
+ <tr>
313
+ <td>
314
+ <span><?php _e( 'Remove the local pickup shipping zone from feed (Google Shopping / Facebook only)', 'woo-product-feed-pro');?></span>
315
+ </td>
316
+ <td>
317
+ <label class="woo-product-feed-pro-switch">
318
+ <?php
319
+ $local_pickup_shipping = get_option ('local_pickup_shipping');
320
+ if($local_pickup_shipping == "yes"){
321
+ print "<input type=\"checkbox\" id=\"local_pickup_shipping\" name=\"local_pickup_shipping\" class=\"checkbox-field\" checked>";
322
+ } else {
323
+ print "<input type=\"checkbox\" id=\"local_pickup_shipping\" name=\"local_pickup_shipping\" class=\"checkbox-field\">";
324
+ }
325
+ ?>
326
+ <div class="woo-product-feed-pro-slider round"></div>
327
+ </label>
328
+ </td>
329
+ </tr>
330
  <tr>
331
  <td>
332
  <span><?php _e( 'Enable logging (Enable only on advice of our support-team):', 'woo-product-feed-pro');?></span>
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.4
9
 
10
  == Description ==
11
 
@@ -312,6 +312,11 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
312
 
313
  === Changelog ===
314
 
 
 
 
 
 
315
  = 7.9.4 (2020-04-16) =
316
  * Added a feature where user can indicate if the plugin needs to respect free shipping criteria or not when adding shipping classes and methods to Google and Facebook feeds.
317
 
@@ -2526,6 +2531,11 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2526
 
2527
  == Upgrade Notice ==
2528
 
 
 
 
 
 
2529
  = 7.9.4 =
2530
  Added a feature where user can indicate if the plugin needs to respect free shipping criteria or not when adding shipping classes and methods to Google and Facebook feeds.
2531
 
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.5
9
 
10
  == Description ==
11
 
312
 
313
  === Changelog ===
314
 
315
+ = 7.9.5 (2020-04-16) =
316
+ * Added a feature to exclude local pickup shipping zones from Google Shopping and Facebook feeds
317
+ * Renamed a Fruugo.nl template field from NormalPriceWithVat to NormalPriceWithVAT
318
+ * Removed ATOM header from Pinterest RSS Board templating
319
+
320
  = 7.9.4 (2020-04-16) =
321
  * Added a feature where user can indicate if the plugin needs to respect free shipping criteria or not when adding shipping classes and methods to Google and Facebook feeds.
322
 
2531
 
2532
  == Upgrade Notice ==
2533
 
2534
+ = 7.9.5 =
2535
+ Added a feature to exclude local pickup shipping zones from Google Shopping and Facebook feeds
2536
+ Renamed a Fruugo.nl template field from NormalPriceWithVat to NormalPriceWithVAT
2537
+ Removed ATOM header from Pinterest RSS Board templating
2538
+
2539
  = 7.9.4 =
2540
  Added a feature where user can indicate if the plugin needs to respect free shipping criteria or not when adding shipping classes and methods to Google and Facebook feeds.
2541
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 7.9.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.9.4' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -2376,6 +2376,21 @@ function woosea_free_shipping (){
2376
  }
2377
  add_action( 'wp_ajax_woosea_free_shipping', 'woosea_free_shipping' );
2378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2379
  /**
2380
  * This function enables the setting to use
2381
  * logging
@@ -4258,7 +4273,7 @@ function woosea_license_valid(){
4258
 
4259
  if(!empty($license_information['license_key'])){
4260
  $curl = curl_init();
4261
- $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.9.4";
4262
 
4263
  curl_setopt_array($curl, array(
4264
  CURLOPT_RETURNTRANSFER => 1,
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 7.9.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.9.5' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
2376
  }
2377
  add_action( 'wp_ajax_woosea_free_shipping', 'woosea_free_shipping' );
2378
 
2379
+ /**
2380
+ * This function enables the setting to remove
2381
+ * local pickup shipping zones
2382
+ */
2383
+ function woosea_local_pickup_shipping (){
2384
+ $status = sanitize_text_field($_POST['status']);
2385
+
2386
+ if ($status == "off"){
2387
+ update_option( 'local_pickup_shipping', 'no', 'yes');
2388
+ } else {
2389
+ update_option( 'local_pickup_shipping', 'yes', 'yes');
2390
+ }
2391
+ }
2392
+ add_action( 'wp_ajax_woosea_local_pickup_shipping', 'woosea_local_pickup_shipping' );
2393
+
2394
  /**
2395
  * This function enables the setting to use
2396
  * logging
4273
 
4274
  if(!empty($license_information['license_key'])){
4275
  $curl = curl_init();
4276
+ $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.9.5";
4277
 
4278
  curl_setopt_array($curl, array(
4279
  CURLOPT_RETURNTRANSFER => 1,