Version Description
31.08.2022
- Fix: Fixed division by zero if WPML multi currency is enabled and a product has a price of zero or has no price set.
Download this release
Release Info
Developer | alekv |
Plugin | Pixel Manager for WooCommerce – Track Google Analytics, Google Ads, Facebook and more |
Version | 1.20.2 |
Comparing to | |
See all releases |
Code changes from version 1.20.1 to 1.20.2
- classes/pixels/trait-product.php +6 -1
- css/admin.css +1 -1
- readme.txt +5 -1
- wgact.php +2 -2
classes/pixels/trait-product.php
CHANGED
@@ -367,7 +367,12 @@ trait Trait_Product {
|
|
367 |
$price = $woocommerce_wpml->multi_currency->prices->get_product_price_in_currency($product->get_id(), get_woocommerce_currency());
|
368 |
|
369 |
if ($use_price_with_tax) {
|
370 |
-
|
|
|
|
|
|
|
|
|
|
|
371 |
}
|
372 |
} else {
|
373 |
// https://stackoverflow.com/a/37231033/4688612
|
367 |
$price = $woocommerce_wpml->multi_currency->prices->get_product_price_in_currency($product->get_id(), get_woocommerce_currency());
|
368 |
|
369 |
if ($use_price_with_tax) {
|
370 |
+
|
371 |
+
if (floatval(wc_get_price_excluding_tax($product)) !== 0.0) {
|
372 |
+
$price = ( $price / wc_get_price_excluding_tax($product) ) * wc_get_price_including_tax($product);
|
373 |
+
} else {
|
374 |
+
$price = 0;
|
375 |
+
}
|
376 |
}
|
377 |
} else {
|
378 |
// https://stackoverflow.com/a/37231033/4688612
|
css/admin.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
.pmw-
|
2 |
font-weight: bold;
|
3 |
}
|
4 |
|
1 |
+
.pmw-subnav-li-active {
|
2 |
font-weight: bold;
|
3 |
}
|
4 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: woocommerce, google analytics, google ads, facebook, conversion tracking,
|
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 7.3
|
7 |
-
Stable tag: 1.20.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -209,6 +209,10 @@ You can send the link to the front page of your shop too if you think it would b
|
|
209 |
|
210 |
== Changelog ==
|
211 |
|
|
|
|
|
|
|
|
|
212 |
= 1.20.1 = 31.08.2022
|
213 |
|
214 |
* Tweak: Added statuses "cancelled" and "refunded" to the exclusions when conversions should not be fired.
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 7.3
|
7 |
+
Stable tag: 1.20.2
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
209 |
|
210 |
== Changelog ==
|
211 |
|
212 |
+
= 1.20.2 = 31.08.2022
|
213 |
+
|
214 |
+
* Fix: Fixed division by zero if WPML multi currency is enabled and a product has a price of zero or has no price set.
|
215 |
+
|
216 |
= 1.20.1 = 31.08.2022
|
217 |
|
218 |
* Tweak: Added statuses "cancelled" and "refunded" to the exclusions when conversions should not be fired.
|
wgact.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Developer URI: https://sweetcode.com
|
11 |
* Text Domain: woocommerce-google-adwords-conversion-tracking-tag
|
12 |
* Domain path: /languages
|
13 |
-
* * Version: 1.20.
|
14 |
*
|
15 |
* WC requires at least: 3.7
|
16 |
* WC tested up to: 6.8
|
@@ -19,7 +19,7 @@
|
|
19 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
20 |
*
|
21 |
**/
|
22 |
-
const WPM_CURRENT_VERSION = '1.20.
|
23 |
// TODO add option checkbox on uninstall and ask if user wants to delete options from db
|
24 |
|
25 |
if ( !defined( 'ABSPATH' ) ) {
|
10 |
* Developer URI: https://sweetcode.com
|
11 |
* Text Domain: woocommerce-google-adwords-conversion-tracking-tag
|
12 |
* Domain path: /languages
|
13 |
+
* * Version: 1.20.2
|
14 |
*
|
15 |
* WC requires at least: 3.7
|
16 |
* WC tested up to: 6.8
|
19 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
20 |
*
|
21 |
**/
|
22 |
+
const WPM_CURRENT_VERSION = '1.20.2' ;
|
23 |
// TODO add option checkbox on uninstall and ask if user wants to delete options from db
|
24 |
|
25 |
if ( !defined( 'ABSPATH' ) ) {
|