From 0fc5e56a2fc6c4fbe047ecf7e102abf414b939ce Mon Sep 17 00:00:00 2001 From: Esteban Zeller Date: Wed, 21 Jul 2021 12:28:36 -0300 Subject: [PATCH] Format PDP price to have only two decimal places --- view/frontend/web/js/model/aslowas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/frontend/web/js/model/aslowas.js b/view/frontend/web/js/model/aslowas.js index 261da998..9ae106ed 100644 --- a/view/frontend/web/js/model/aslowas.js +++ b/view/frontend/web/js/model/aslowas.js @@ -39,7 +39,7 @@ define([ formatted = formatted / options.currency_rate; formatted = formatted.toFixed(2); } - priceInt = formatted * 100; + priceInt = Math.floor((formatted * 100).toFixed(2)); if (options) { self.options = options;