From 3708ba8bb1856bb012c3e5f73b0c5fa1f0556dca Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 20 Jan 2026 11:33:13 +0100 Subject: [PATCH] wip #7898 @5:00 --- .../fluidbook/cart/fluidbook.cart.kimplay.js | 74 +++++---- js/libs/fluidbook/fluidbook.input.js | 1 + style/cart/kimplay.less | 140 +++++++++++------- 3 files changed, 134 insertions(+), 81 deletions(-) diff --git a/js/libs/fluidbook/cart/fluidbook.cart.kimplay.js b/js/libs/fluidbook/cart/fluidbook.cart.kimplay.js index b104ff21..d37a7ee3 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.kimplay.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.kimplay.js @@ -12,15 +12,15 @@ FluidbookCartKimplay.prototype = { var $this = this; this.items = this.fluidbook.cache.get('cart', {}); + $(document).on(this.fluidbook.input.changeEvent, '#kimplaycart input[name=qty]', function() { + let ref = $(this).data('ref') + $this.items['' + ref]['quantity'] = $(this).val(); + $this.save(); + }) + $(document).on(this.fluidbook.input.clickEvent, '#open-request', function () { - let input = $(this).closest('#kimplaycart').find('[name=qty]'); - $.each(input, function (i, item) { - let ref = $(item).data('ref') - $this.items['' + ref]['quantity'] = $(item).val(); - }) $this.fluidbook.menu.quickCloseView(); $this.getContactForm(); - $this.save(); return false; }); @@ -158,11 +158,11 @@ FluidbookCartKimplay.prototype = { content += ''; content += ''; content += ''; - content += '' + this.fluidbook.l10n.__('réf') + ''; + content += '' + this.fluidbook.l10n.__('réf') + ''; content += '' + this.fluidbook.l10n.__('désignation') + ''; content += '' + this.fluidbook.l10n.__('quantité') + ''; - content += '' + this.fluidbook.l10n.__('commentaire') + ''; - content += ''; + content += '' + this.fluidbook.l10n.__('commentaire') + ''; + content += ''; content += ''; content += ''; $.each(this.getItems(), function (i) { @@ -179,10 +179,10 @@ FluidbookCartKimplay.prototype = { content += ''; } else { - content += '' + content += ''; } - content += '' + i + ''; + content += '' + i + ''; content += '' + item.name + ''; content += ''; content += '' + item.comment + ''; @@ -244,20 +244,36 @@ FluidbookCartKimplay.prototype = { ${this.fluidbook.menu.getCaption("Mes coordonnées", 'small')}
- -
- -
- -
- -
- -
- -
- -
+
+ + +
+
+
+ + +

+
+ + +
+
+
+ + +

+
+ + +

+
+ + +

+
+ + +

*Champs obligatoires