From db2acaceb259055e00ee2ade5919e12478770b2f Mon Sep 17 00:00:00 2001 From: Jimmy Hoenderdaal Date: Thu, 14 Nov 2024 10:54:59 +0100 Subject: [PATCH 1/3] Enhance out of stock message --- lang/nl.json | 1 + .../views/cart/partials/product/description.blade.php | 10 +++++----- resources/views/cart/partials/product/image.blade.php | 9 +++++++-- resources/views/cart/partials/product/price.blade.php | 4 +++- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/lang/nl.json b/lang/nl.json index 2b189d9e..602385fb 100644 --- a/lang/nl.json +++ b/lang/nl.json @@ -71,6 +71,7 @@ "Select an address": "Selecteer een adres", "Select as billing": "Selecteer als factuuradres", "Select as shipping": "Selecteer als verzendadres", + "This product is out of stock": "Dit product is op dit moment niet op voorraad", "Send": "Versturen", "Step 1 of 4": "Stap 1 van 4", "Step :step out of :total": "Stap :step van :total", diff --git a/resources/views/cart/partials/product/description.blade.php b/resources/views/cart/partials/product/description.blade.php index 07ed41ca..8ff8d863 100644 --- a/resources/views/cart/partials/product/description.blade.php +++ b/resources/views/cart/partials/product/description.blade.php @@ -1,23 +1,23 @@ @include('rapidez-ct::cart.partials.product.alert')
- -
@{{ item.product.name }}
+
+ @{{ item.product.name }}
@{{ option.option_label }}: @{{ option.value_label }}
@{{ option.label }}: @{{ option.values[0].label || option.values[0].value }}
-
- @lang('This product it out of stock, remove it to continue your order.') +
+ @lang('This product is out of stock, remove it to continue your order.')
- +
@include('rapidez-ct::cart.partials.product.remove-button')
diff --git a/resources/views/cart/partials/product/image.blade.php b/resources/views/cart/partials/product/image.blade.php index dc720ec2..88a93c10 100644 --- a/resources/views/cart/partials/product/image.blade.php +++ b/resources/views/cart/partials/product/image.blade.php @@ -1,5 +1,10 @@ - + - diff --git a/resources/views/cart/partials/product/price.blade.php b/resources/views/cart/partials/product/price.blade.php index 1245bc5e..7336be1d 100644 --- a/resources/views/cart/partials/product/price.blade.php +++ b/resources/views/cart/partials/product/price.blade.php @@ -7,7 +7,9 @@
- + @{{ item.prices.row_total_including_tax.value | price }} From 50b728fc4703c9a8f68515db8a9a7ea82bb3df90 Mon Sep 17 00:00:00 2001 From: Jimmy Hoenderdaal Date: Fri, 15 Nov 2024 08:13:49 +0100 Subject: [PATCH 2/3] Replace v-if check variable --- resources/views/cart/partials/product/description.blade.php | 2 +- resources/views/cart/partials/product/image.blade.php | 2 +- resources/views/cart/partials/product/price.blade.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/cart/partials/product/description.blade.php b/resources/views/cart/partials/product/description.blade.php index 8ff8d863..ed52d43e 100644 --- a/resources/views/cart/partials/product/description.blade.php +++ b/resources/views/cart/partials/product/description.blade.php @@ -9,7 +9,7 @@
@{{ option.label }}: @{{ option.values[0].label || option.values[0].value }}
-
+
@lang('This product is out of stock, remove it to continue your order.')
diff --git a/resources/views/cart/partials/product/image.blade.php b/resources/views/cart/partials/product/image.blade.php index 88a93c10..96b9d1b5 100644 --- a/resources/views/cart/partials/product/image.blade.php +++ b/resources/views/cart/partials/product/image.blade.php @@ -1,7 +1,7 @@ -