From 97cc1c1337e60104be02e347fee39e34be312226 Mon Sep 17 00:00:00 2001 From: Dmitriy <48244883+KMityai@users.noreply.github.com> Date: Fri, 27 Oct 2023 10:20:28 +0300 Subject: [PATCH] ref #92584 Fix not correct scoring product total price (#317) --- CHANGELOG.md | 3 +++ VERSION | 2 +- src/include/class-wc-retailcrm-history.php | 2 +- src/readme.txt | 5 ++++- src/retailcrm.php | 2 +- src/uninstall.php | 2 +- 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 596c71e..7e52be4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2023-10-26 4.6.13 +* Fix not correct scoring product total price when product price is not number + ## 2023-10-02 4.6.12 * Added currency validation when configuring the module diff --git a/VERSION b/VERSION index 42c7f00..594401e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.6.12 \ No newline at end of file +4.6.13 \ No newline at end of file diff --git a/src/include/class-wc-retailcrm-history.php b/src/include/class-wc-retailcrm-history.php index f9d6b03..5cd89c6 100644 --- a/src/include/class-wc-retailcrm-history.php +++ b/src/include/class-wc-retailcrm-history.php @@ -1176,7 +1176,7 @@ if (!class_exists('WC_Retailcrm_History')) : $wcProduct, [ 'qty' => $quantity, - 'price' => $wcProduct->get_price() - $discountTotal, + 'price' => (float)$wcProduct->get_price() - $discountTotal, ] ); } diff --git a/src/readme.txt b/src/readme.txt index 4bdb502..0077578 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla Requires PHP: 7.0 Requires at least: 5.3 Tested up to: 6.2 -Stable tag: 4.6.12 +Stable tag: 4.6.13 License: GPLv1 or later License URI: http://www.gnu.org/licenses/gpl-1.0.html @@ -82,6 +82,9 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i == Changelog == += 4.6.13 = +* Fix not correct scoring product total price when product price is not number + = 4.6.12 = * Added currency validation when configuring the module diff --git a/src/retailcrm.php b/src/retailcrm.php index 2df76ce..ce2e8fe 100644 --- a/src/retailcrm.php +++ b/src/retailcrm.php @@ -5,7 +5,7 @@ * Description: Integration plugin for WooCommerce & Simla.com * Author: RetailDriver LLC * Author URI: http://retailcrm.pro/ - * Version: 4.6.12 + * Version: 4.6.13 * Tested up to: 6.2 * WC requires at least: 5.4 * WC tested up to: 7.8 diff --git a/src/uninstall.php b/src/uninstall.php index f5aac42..6d1018a 100644 --- a/src/uninstall.php +++ b/src/uninstall.php @@ -16,7 +16,7 @@ * * @link https://wordpress.org/plugins/woo-retailcrm/ * - * @version 4.6.12 + * @version 4.6.13 * * @package RetailCRM */