diff --git a/resources/views/front/sable/js/components/BasketButtons.vue b/resources/views/front/sable/js/components/BasketButtons.vue index 9804656..843f08a 100644 --- a/resources/views/front/sable/js/components/BasketButtons.vue +++ b/resources/views/front/sable/js/components/BasketButtons.vue @@ -18,6 +18,10 @@ type: Number, default : 0 }, + shouldCardBeGreen: { + type: Boolean, + default: true + }, }, computed: { panier() { return this.$store.state.panier; }, @@ -72,7 +76,7 @@ foundQtty = element.cartItem.qty; } }); - if(this.$el.closest('.card')) { + if(this.$el.closest('.card') && this.shouldCardBeGreen) { if(foundQtty) { this.$el.closest('.card').classList.add("card-activate"); } else { diff --git a/resources/views/front/sable/js/components/BasketRecap.vue b/resources/views/front/sable/js/components/BasketRecap.vue index d8178c6..a20364a 100644 --- a/resources/views/front/sable/js/components/BasketRecap.vue +++ b/resources/views/front/sable/js/components/BasketRecap.vue @@ -32,14 +32,16 @@ >
- - - -
+
+ + + +
+

*Produit vendu au kilo : {{ currencyFormatter(item.product.calculatedPrices.priceKgTtc) }}/kg

@@ -48,10 +50,13 @@

- + {{ currencyFormatter(item.product.calculatedPrices.discountedPriceTtc * item.cartItem.qty) }}
+
+ +
@@ -59,7 +64,7 @@ - +