From: Stephen Cameron Date: Mon, 13 Jun 2022 16:46:12 +0000 (+0200) Subject: Wait #5051 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=256c7e339888707f607e7710bb236644dcdc3f9b;p=fluidbook-html5.git Wait #5051 @1 --- diff --git a/js/libs/fluidbook/cart/fluidbook.cart.cfoc.js b/js/libs/fluidbook/cart/fluidbook.cart.cfoc.js index 8b9a2e4d..6ff3cabf 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.cfoc.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.cfoc.js @@ -486,8 +486,8 @@ FluidbookCartCFOC.prototype = { switch(key) { case 'REF': - output = value; - output += data['EXCLU'] ? '*' : ''; // Mark exclusive products with an asterisk + output = data['EXCLU'] ? '*' : ''; // Mark exclusive products with an asterisk + output += value; break; case 'COULEUR': var colours = $this.data[item.reference]; // Colour variations are stored as nested objects, grouped by reference @@ -671,7 +671,7 @@ FluidbookCartCFOC.prototype = { // Calculate the Hors Tax amount based on the TTC amount calculateHT: function(TTC_value) { - return parseFloat(TTC_value) * 100 / (100 + this.TVA_percentage); + return this.parseFloat(TTC_value) * 100 / (100 + this.TVA_percentage); }, cartTotalTTC: function() { diff --git a/style/cart/cfoc.less b/style/cart/cfoc.less index f5bdad34..8b0b2b4f 100644 --- a/style/cart/cfoc.less +++ b/style/cart/cfoc.less @@ -133,6 +133,8 @@ // Collapse table cells and display header labels before items tbody td { + white-space: normal; + @media @breakpoint_table { display: flex; align-items: center; @@ -157,10 +159,6 @@ background-color: transparent; } - [data-name="DESIGNATION"] { - white-space: normal; // Allow descriptions to wrap - } - [data-name="QTE MINI"], [data-name="QTE"] { text-align: center !important; } @@ -192,6 +190,7 @@ [data-name="PRIX HT"], [data-name="PRIX TTC"] { text-align: right !important; + white-space: nowrap !important; } // Cart item delete buttons