Product Feed PRO for WooCommerce - Version 12.0.5

Version Description

Fixed a tax calculation issue for Portugal and Slovakia

Download this release

Release Info

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

Code changes from version 12.0.4 to 12.0.5

classes/class-get-products.php CHANGED
@@ -531,7 +531,7 @@ class WooSEA_Get_Products {
531
  'EE' => 'Estonia',
532
  'ET' => 'Ethiopia',
533
  'FO' => 'Faroe Islands',
534
- 'FK' => 'Falkland Islands (Malvinas)',
535
  'FJ' => 'Fiji the Fiji Islands',
536
  'FI' => 'Finland',
537
  'FR' => 'France',
@@ -556,7 +556,7 @@ class WooSEA_Get_Products {
556
  'GY' => 'Guyana',
557
  'HT' => 'Haiti',
558
  'HM' => 'Heard Island and McDonald Islands',
559
- 'VA' => 'Holy See (Vatican City State)',
560
  'HN' => 'Honduras',
561
  'HK' => 'Hong Kong',
562
  'HU' => 'Hungary',
@@ -637,7 +637,7 @@ class WooSEA_Get_Products {
637
  'PH' => 'Philippines',
638
  'PN' => 'Pitcairn Islands',
639
  'PL' => 'Poland',
640
- 'PT' => 'Portugal, Portuguese Republic',
641
  'PR' => 'Puerto Rico',
642
  'QA' => 'Qatar',
643
  'RE' => 'Reunion',
@@ -660,7 +660,7 @@ class WooSEA_Get_Products {
660
  'SC' => 'Seychelles',
661
  'SL' => 'Sierra Leone',
662
  'SG' => 'Singapore',
663
- 'SK' => 'Slovakia (Slovak Republic)',
664
  'SI' => 'Slovenia',
665
  'SB' => 'Solomon Islands',
666
  'SO' => 'Somalia, Somali Republic',
@@ -3059,9 +3059,10 @@ class WooSEA_Get_Products {
3059
  $product_data['system_sale_price'] = wc_format_decimal($product_data['system_sale_price'],2);
3060
  $sale_price = $product_data['system_sale_price'];
3061
  }
 
3062
  $code_from_config = $this->woosea_country_to_code($project_config['countries']);
3063
-
3064
  $nr_standard_rates = count($all_standard_taxes);
 
3065
  if(!empty($all_standard_taxes) AND ($nr_standard_rates > 1)){
3066
  foreach ($all_standard_taxes as $rate){
3067
  $rate_arr = get_object_vars($rate);
@@ -4522,7 +4523,7 @@ class WooSEA_Get_Products {
4522
  // Add comma's in the size field and put availability on stock as at least one variation is on stock
4523
  if(isset($size_variation)){
4524
  $size_variation_new = $size_variation.",";
4525
- if ($sz_attribute) {
4526
  $product_data[$sz_attribute] = str_replace($size_variation,$size_variation_new,$product_data[$sz_attribute]);
4527
  $product_data[$sz_attribute] = str_replace(' ',',',$product_data[$sz_attribute]);
4528
  $product_data[$sz_attribute] = trim($product_data[$sz_attribute], ",");
@@ -4565,9 +4566,11 @@ class WooSEA_Get_Products {
4565
  $size_array_raw = @explode(",", $product_data[$sz_attribute]);
4566
  $size_array = array_map('trim', $size_array_raw);
4567
  $enabled_sizes = array();
4568
- foreach($variations_id as $var_id){
4569
- $size_variation = strtoupper(get_post_meta( $var_id, "attribute_".$sz_attribute, true ));
4570
- $enabled_sizes[] = $size_variation;
 
 
4571
  }
4572
 
4573
  $new_size = "";
531
  'EE' => 'Estonia',
532
  'ET' => 'Ethiopia',
533
  'FO' => 'Faroe Islands',
534
+ 'FK' => 'Falkland Islands',
535
  'FJ' => 'Fiji the Fiji Islands',
536
  'FI' => 'Finland',
537
  'FR' => 'France',
556
  'GY' => 'Guyana',
557
  'HT' => 'Haiti',
558
  'HM' => 'Heard Island and McDonald Islands',
559
+ 'VA' => 'Holy See',
560
  'HN' => 'Honduras',
561
  'HK' => 'Hong Kong',
562
  'HU' => 'Hungary',
637
  'PH' => 'Philippines',
638
  'PN' => 'Pitcairn Islands',
639
  'PL' => 'Poland',
640
+ 'PT' => 'Portugal',
641
  'PR' => 'Puerto Rico',
642
  'QA' => 'Qatar',
643
  'RE' => 'Reunion',
660
  'SC' => 'Seychelles',
661
  'SL' => 'Sierra Leone',
662
  'SG' => 'Singapore',
663
+ 'SK' => 'Slovakia',
664
  'SI' => 'Slovenia',
665
  'SB' => 'Solomon Islands',
666
  'SO' => 'Somalia, Somali Republic',
3059
  $product_data['system_sale_price'] = wc_format_decimal($product_data['system_sale_price'],2);
3060
  $sale_price = $product_data['system_sale_price'];
3061
  }
3062
+
3063
  $code_from_config = $this->woosea_country_to_code($project_config['countries']);
 
3064
  $nr_standard_rates = count($all_standard_taxes);
3065
+
3066
  if(!empty($all_standard_taxes) AND ($nr_standard_rates > 1)){
3067
  foreach ($all_standard_taxes as $rate){
3068
  $rate_arr = get_object_vars($rate);
4523
  // Add comma's in the size field and put availability on stock as at least one variation is on stock
4524
  if(isset($size_variation)){
4525
  $size_variation_new = $size_variation.",";
4526
+ if (isset($sz_attribute)) {
4527
  $product_data[$sz_attribute] = str_replace($size_variation,$size_variation_new,$product_data[$sz_attribute]);
4528
  $product_data[$sz_attribute] = str_replace(' ',',',$product_data[$sz_attribute]);
4529
  $product_data[$sz_attribute] = trim($product_data[$sz_attribute], ",");
4566
  $size_array_raw = @explode(",", $product_data[$sz_attribute]);
4567
  $size_array = array_map('trim', $size_array_raw);
4568
  $enabled_sizes = array();
4569
+ foreach($variations_id as $var_id){
4570
+ if(isset($sz_attribute)){
4571
+ $size_variation = strtoupper(get_post_meta( $var_id, "attribute_".$sz_attribute, true ));
4572
+ $enabled_sizes[] = $size_variation;
4573
+ }
4574
  }
4575
 
4576
  $new_size = "";
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=12.0.4',
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=12.0.5',
30
  jsonp: 'callback',
31
  dataType: 'jsonp',
32
  type: 'GET',
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: 6.1
8
- Stable tag: 12.0.4
9
 
10
  == Description ==
11
 
@@ -340,6 +340,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
340
 
341
  === Changelog ===
342
 
 
 
 
343
  = 12.0.4 (2022-12-02) =
344
  * Solved an undefined variable PHP warning for the sz_attribute variable
345
 
@@ -3846,6 +3849,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3846
 
3847
  == Upgrade Notice ==
3848
 
 
 
 
3849
  = 12.0.4 =
3850
  Solved an undefined variable PHP warning for the sz_attribute variable
3851
 
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: 6.1
8
+ Stable tag: 12.0.5
9
 
10
  == Description ==
11
 
340
 
341
  === Changelog ===
342
 
343
+ = 12.0.5 (2022-12-07) =
344
+ * Fixed a tax calculation issue for Portugal and Slovakia
345
+
346
  = 12.0.4 (2022-12-02) =
347
  * Solved an undefined variable PHP warning for the sz_attribute variable
348
 
3849
 
3850
  == Upgrade Notice ==
3851
 
3852
+ = 12.0.5 =
3853
+ Fixed a tax calculation issue for Portugal and Slovakia
3854
+
3855
  = 12.0.4 =
3856
  Solved an undefined variable PHP warning for the sz_attribute variable
3857
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 12.0.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, 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', '12.0.4' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 12.0.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, 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', '12.0.5' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54