Product Feed PRO for WooCommerce - Version 11.7.9

Version Description

Fixed an issue where shipping class costs where not calculated properly

Download this release

Release Info

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

Code changes from version 11.7.8 to 11.7.9

classes/class-get-products.php CHANGED
@@ -1000,6 +1000,49 @@ class WooSEA_Get_Products {
1000
  $shipping_cost = apply_filters('wc_aelia_cs_convert', $shipping_cost, $from_currency, $project_config['AELIA']);
1001
  }
1002
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1003
  }
1004
 
1005
  // CHECK IF WE NEED TO REMOVE LOCAL PICKUP
1000
  $shipping_cost = apply_filters('wc_aelia_cs_convert', $shipping_cost, $from_currency, $project_config['AELIA']);
1001
  }
1002
  }
1003
+
1004
+ // Set shipping cost
1005
+ if(!empty($product_id)){
1006
+ // Add product to cart
1007
+ if (isset($product_id)){
1008
+ $quantity = 1;
1009
+
1010
+ if(!empty($code_from_config)){
1011
+ defined( 'WC_ABSPATH' ) || exit;
1012
+
1013
+ // Load cart functions which are loaded only on the front-end.
1014
+ include_once WC_ABSPATH . 'includes/wc-cart-functions.php';
1015
+ include_once WC_ABSPATH . 'includes/class-wc-cart.php';
1016
+
1017
+ wc_load_cart();
1018
+
1019
+ WC()->customer->set_shipping_country( $code_from_config );
1020
+
1021
+ if(isset($zone_details['region'])){
1022
+ WC()->customer->set_shipping_state(wc_clean( $zone_details['region'] ));
1023
+ }
1024
+
1025
+ if(isset($zone_details['postal_code'])){
1026
+ WC()->customer->set_shipping_postcode(wc_clean( $zone_details['postal_code'] ));
1027
+ }
1028
+
1029
+ if((is_numeric($product_id)) AND ($product_id > 0) AND (!empty($product_id))){
1030
+ WC()->cart->add_to_cart( $product_id, $quantity );
1031
+ }
1032
+
1033
+ // Read cart and get schipping costs
1034
+ foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
1035
+ $total_cost = WC()->cart->get_total();
1036
+ $shipping_cost = WC()->cart->get_shipping_total();
1037
+ $shipping_tax = WC()->cart->get_shipping_tax();
1038
+ $shipping_cost = ($shipping_cost+$shipping_tax);
1039
+ $shipping_cost = wc_format_localized_price($shipping_cost);
1040
+ }
1041
+ // Make sure to empty the cart again
1042
+ WC()->cart->empty_cart();
1043
+ }
1044
+ }
1045
+ }
1046
  }
1047
 
1048
  // CHECK IF WE NEED TO REMOVE LOCAL PICKUP
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.7.8',
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.7.9',
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.0
8
- Stable tag: 11.7.8
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.7.8 (2022-08-05) =
349
  * Added additional field for the Pinterest template
350
 
@@ -3767,6 +3770,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3767
 
3768
  == Upgrade Notice ==
3769
 
 
 
 
3770
  = 11.7.8 =
3771
  Added additional field for the Pinterest template
3772
 
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.0
8
+ Stable tag: 11.7.9
9
 
10
  == Description ==
11
 
345
 
346
  === Changelog ===
347
 
348
+ = 11.7.9 (2022-08-08) =
349
+ * Fixed an issue where shipping class costs where not calculated properly
350
+
351
  = 11.7.8 (2022-08-05) =
352
  * Added additional field for the Pinterest template
353
 
3770
 
3771
  == Upgrade Notice ==
3772
 
3773
+ = 11.7.9 =
3774
+ Fixed an issue where shipping class costs where not calculated properly
3775
+
3776
  = 11.7.8 =
3777
  Added additional field for the Pinterest template
3778
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.7.8
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.7.8' );
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: 11.7.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, 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.7.9' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54