From d111095e39f5628b9ea422e5856a5afd626333e2 Mon Sep 17 00:00:00 2001 From: Aleksey Date: Thu, 9 Nov 2017 12:28:41 +0300 Subject: [PATCH 1/2] Helper fix --- Helper/Data.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Helper/Data.php b/Helper/Data.php index d462ee3..f0cb87d 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -215,4 +215,20 @@ public function getUrl($route, $params = []) { return $this->_urlBuilder->getUrl($route, $params); } + + /** + * Force convert to float + * + * @param mixed $value + * @return float + */ + public function formatToNumber($value) + { + $value = floatval(str_replace( + [' ', ','], + ['', '.'], + $value + )); + return $value; + } } From 7865470c9c734ed65d0a9829a45316e3366dcaf8 Mon Sep 17 00:00:00 2001 From: Aleksey Date: Thu, 9 Nov 2017 13:36:40 +0300 Subject: [PATCH 2/2] [INT-89] module version --- composer.json | 2 +- etc/module.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 15cf107..e6bdd9a 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "mygento/base", "type": "magento2-module", - "version": "2.2.2", + "version": "2.2.3", "license": "OSL-3.0", "homepage": "https://github.com/mygento/base", "description": "Mygento Base", diff --git a/etc/module.xml b/etc/module.xml index 1efac58..5e35c31 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -7,5 +7,5 @@ */ --> - +