]> _ Git - fluidbook-html5.git/commitdiff
wait #5554 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 26 Oct 2022 17:34:57 +0000 (19:34 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 26 Oct 2022 17:34:57 +0000 (19:34 +0200)
js/libs/fluidbook/cart/fluidbook.cart.puma.js

index 1f422c27df674b24d570801ebc4227d87bd42c2f..1c77912c5254352292d068f583cb2dd9e1e55ea3 100644 (file)
@@ -188,6 +188,9 @@ FluidbookCartPuma.prototype = {
                     } else {
                         value = '-';
                     }
+                } else if (v === 'Tailles') {
+
+                    value = value.replace(/,/g, ', ');
                 }
                 if (value == undefined || value == null || value == 'null' || value == 'undefined') {
                     value = '-';
@@ -439,12 +442,16 @@ FluidbookCartPuma.prototype = {
             suffix = '';
         }
 
-        return price.toLocaleString("fr-FR", {
+        var res = price.toLocaleString("fr-FR", {
             style: "currency",
             currency: "EUR",
             minimumFractionDigits: 2,
             maximumFractionDigits: 2
-        }) + '&nbsp;' + suffix;
+        });
+        if (res.indexOf(suffix) === -1) {
+            res += '&nbsp;' + suffix;
+        }
+        return res;
     },
 
     _endMenu: function (title, content, callback) {