From 38cc7d9258c267b53983ee3adea88423c66822d8 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 16 Nov 2020 19:27:01 +0100 Subject: [PATCH] wip #4047 @2 --- js/libs/fluidbook/cart/fluidbook.cart.mif.js | 8 +++--- .../fluidbook/cart/fluidbook.cart.mopec.js | 2 -- js/libs/fluidbook/fluidbook.cart.js | 2 +- style/cart/mif.less | 25 +++++++++++++++---- 4 files changed, 26 insertions(+), 11 deletions(-) diff --git a/js/libs/fluidbook/cart/fluidbook.cart.mif.js b/js/libs/fluidbook/cart/fluidbook.cart.mif.js index 1c11faa6..7c25ebaf 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.mif.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.mif.js @@ -92,7 +92,9 @@ FluidbookCartMIF.prototype = { var $this = this; var content = ''; - content += ''; + content += ''; + content += ''; + content += ''; content += ''; content += ''; content += ''; @@ -112,8 +114,8 @@ FluidbookCartMIF.prototype = { content += ''; content += ''; var image = ''; - if (item['zoom_image']) { - image = ''; + if (item.Image) { + image = ''; } else { image = '-'; } diff --git a/js/libs/fluidbook/cart/fluidbook.cart.mopec.js b/js/libs/fluidbook/cart/fluidbook.cart.mopec.js index fcea79a5..c357b981 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.mopec.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.mopec.js @@ -72,8 +72,6 @@ FluidbookCartMopec.prototype = { }); }); - - }, checkLoginSession: function () { diff --git a/js/libs/fluidbook/fluidbook.cart.js b/js/libs/fluidbook/fluidbook.cart.js index 664f25b2..bbf29fd6 100644 --- a/js/libs/fluidbook/fluidbook.cart.js +++ b/js/libs/fluidbook/fluidbook.cart.js @@ -38,7 +38,7 @@ FluidbookCart.prototype = { } var tooltip = $this.instance.addToCart(ref, qty); - if (!tooltip) { + if (tooltip === undefined || tooltip === null || !tooltip || tooltip === true || tooltip === false || tooltip === 'true' || tooltip === 'false') { tooltip = $this.fluidbook.l10n.__("the item has been added to your cart"); } $this.fluidbook.tooltip.displayTooltip(tooltip, tooltipStyle); diff --git a/style/cart/mif.less b/style/cart/mif.less index de114bac..ed3217a6 100644 --- a/style/cart/mif.less +++ b/style/cart/mif.less @@ -44,6 +44,19 @@ left: 20px; } + tr.print-header { + display: none; + font-size: 0; + + td { + padding: 0; + display: table-cell !important; + + img { + max-width: 100%; + } + } + } padding: 0; border-collapse: collapse; @@ -51,13 +64,15 @@ width: ~"calc(100% - 60px)"; max-width: none; - &.xls { - [data-label="Image"] { - display: none; + &.print { + tr.print-header { + display: table-row !important; + } + + u { + text-decoration: none; } - } - &.print { margin: 0; font-size: 8px; width: 100%; -- 2.39.5
CatégorieMarqueNom du produit' + item.Produit + '' + item.Prix + '