Version Description
Fixed an issue with VAT that was not being added for bundled products
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 11.7.5 |
Comparing to | |
See all releases |
Code changes from version 11.7.4 to 11.7.5
- classes/class-get-products.php +13 -34
- js/woosea_key.js +1 -1
- readme.txt +7 -1
- woocommerce-sea.php +2 -2
classes/class-get-products.php
CHANGED
@@ -3011,48 +3011,27 @@ class WooSEA_Get_Products {
|
|
3011 |
|
3012 |
$fullrate = 100+$tax_rates[1]['rate'];
|
3013 |
|
3014 |
-
|
3015 |
// Override price when bundled or composite product
|
3016 |
if(($product->get_type() == "bundle") OR ($product->get_type() == "composite")){
|
3017 |
$meta = get_post_meta($product_data['id']);
|
3018 |
|
3019 |
if($product->get_type() == "bundle"){
|
3020 |
if ($this->woosea_is_plugin_active('woocommerce-product-bundles/woocommerce-product-bundles.php')){
|
3021 |
-
$
|
3022 |
-
|
3023 |
-
|
3024 |
-
|
3025 |
-
|
3026 |
-
$type = gettype($product_data['regular_price']);
|
3027 |
-
if($type == "string"){
|
3028 |
-
$product_data['price'] = floatval($product_data['price']);
|
3029 |
-
$product_data['regular_price'] = floatval($product_data['regular_price']);
|
3030 |
-
$product_data['sale_price'] = floatval($product_data['sale_price']);
|
3031 |
-
}
|
3032 |
-
|
3033 |
-
if(is_float($product_data['regular_price'])){
|
3034 |
-
$product_data['price'] = round($product_data['price'],2);
|
3035 |
-
$product_data['regular_price'] = round($product_data['regular_price'],2);
|
3036 |
-
$product_data['sale_price'] = round($product_data['sale_price'],2);
|
3037 |
-
}
|
3038 |
|
3039 |
-
|
3040 |
-
|
3041 |
-
|
3042 |
-
|
3043 |
-
|
3044 |
-
$product_data['price_forced'] = round($rounded_price * (100+$tax_rates[1]['rate'])/100,2);
|
3045 |
-
$product_data['sale_price_forced'] = round($rounded_sale_price * (100+$tax_rates[1]['rate'])/100,2);
|
3046 |
-
$product_data['regular_price_forced'] = round($rounded_regular_price * (100+$tax_rates[1]['rate'])/100,2);
|
3047 |
-
} else {
|
3048 |
-
$product_data['price_forced'] = $product_data['price'];
|
3049 |
-
$product_data['regular_price'] = $product_data['price'];
|
3050 |
-
}
|
3051 |
|
3052 |
-
|
3053 |
-
|
3054 |
-
|
3055 |
-
|
3056 |
}
|
3057 |
}
|
3058 |
} else {
|
3011 |
|
3012 |
$fullrate = 100+$tax_rates[1]['rate'];
|
3013 |
|
|
|
3014 |
// Override price when bundled or composite product
|
3015 |
if(($product->get_type() == "bundle") OR ($product->get_type() == "composite")){
|
3016 |
$meta = get_post_meta($product_data['id']);
|
3017 |
|
3018 |
if($product->get_type() == "bundle"){
|
3019 |
if ($this->woosea_is_plugin_active('woocommerce-product-bundles/woocommerce-product-bundles.php')){
|
3020 |
+
if(!empty($product->get_bundle_price())){
|
3021 |
+
$product_data['price'] = $product->get_bundle_price_including_tax();
|
3022 |
+
$product_data['price_forced'] = $product->get_bundle_price_including_tax();
|
3023 |
+
$product_data['regular_price'] = $product->get_bundle_regular_price();
|
3024 |
+
$product_data['regular_price_forced'] = $product->get_bundle_regular_price_including_tax();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3025 |
|
3026 |
+
if($product_data['price'] != $product_data['regular_price']){
|
3027 |
+
$product_data['sale_price'] = $product->get_bundle_price();
|
3028 |
+
$product_data['sale_price_forced'] = $product->get_bundle_price_including_tax();
|
3029 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3030 |
|
3031 |
+
// Unset sale price when it is 0.00
|
3032 |
+
if($product_data['sale_price'] == "0.00"){
|
3033 |
+
unset($product_data['sale_price']);
|
3034 |
+
}
|
3035 |
}
|
3036 |
}
|
3037 |
} else {
|
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.
|
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.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.0
|
8 |
-
Stable tag: 11.7.
|
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.4 (2022-07-22) =
|
349 |
* Checked for compatibility with WooCommerce 6.7.0
|
350 |
|
@@ -3755,6 +3758,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
3755 |
|
3756 |
== Upgrade Notice ==
|
3757 |
|
|
|
|
|
|
|
3758 |
= 11.7.4 =
|
3759 |
Checked for compatibility with WooCommerce 6.7.0
|
3760 |
|
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.5
|
9 |
|
10 |
== Description ==
|
11 |
|
345 |
|
346 |
=== Changelog ===
|
347 |
|
348 |
+
= 11.7.5 (2022-07-23) =
|
349 |
+
* Fixed an issue with VAT that was not being added for bundled products
|
350 |
+
|
351 |
= 11.7.4 (2022-07-22) =
|
352 |
* Checked for compatibility with WooCommerce 6.7.0
|
353 |
|
3758 |
|
3759 |
== Upgrade Notice ==
|
3760 |
|
3761 |
+
= 11.7.5 =
|
3762 |
+
Fixed an issue with VAT that was not being added for bundled products
|
3763 |
+
|
3764 |
= 11.7.4 =
|
3765 |
Checked for compatibility with WooCommerce 6.7.0
|
3766 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 11.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,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.
|
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.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', '11.7.5' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|