From 8506fc48b1b488ab3c753c552fb5ed881551fb2a Mon Sep 17 00:00:00 2001 From: Jimmy Hoenderdaal Date: Thu, 14 Nov 2024 07:24:03 +0100 Subject: [PATCH 1/5] Enhance out of stock message --- lang/nl.json | 3 ++- resources/views/cart/overview.blade.php | 6 +++--- .../cart/partials/product/description.blade.php | 8 ++++---- .../views/cart/partials/product/image.blade.php | 9 +++++++-- .../views/cart/partials/product/price.blade.php | 4 +++- .../cart/partials/product/remove-button.blade.php | 13 +++++++++---- 6 files changed, 28 insertions(+), 15 deletions(-) diff --git a/lang/nl.json b/lang/nl.json index 68f89e52..595096ce 100644 --- a/lang/nl.json +++ b/lang/nl.json @@ -10,7 +10,7 @@ "Address created successfully": "Adres succesvol aangemaakt", "Address data": "Adresgegevens", "Already logged in": "Al ingelogd", - "Amount": "Bedrag", + "Amount": "Aantal", "An email is send with a password reset link if an account exists with the provided email address.": "Een e-mail is verzonden met een link om het wachtwoord te resetten, als er een account bestaat met het opgegeven e-mailadres.", "and use a different e-mail address.": "en gebruik een ander e-mailadres.", "Back to account": "Terug naar account", @@ -72,6 +72,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 :step out of :total": "Stap :step van :total", "Subscribe to newsletter": "Inschrijven voor nieuwsbrief", diff --git a/resources/views/cart/overview.blade.php b/resources/views/cart/overview.blade.php index d6c67097..a6f70c12 100644 --- a/resources/views/cart/overview.blade.php +++ b/resources/views/cart/overview.blade.php @@ -6,9 +6,9 @@ @section('content') diff --git a/resources/views/cart/partials/product/description.blade.php b/resources/views/cart/partials/product/description.blade.php index dba821f0..8ff8d863 100644 --- a/resources/views/cart/partials/product/description.blade.php +++ b/resources/views/cart/partials/product/description.blade.php @@ -1,15 +1,15 @@ @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 is out of stock, remove it to continue your order.')
@@ -17,7 +17,7 @@ @{{ option }}:
- +
@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 }} diff --git a/resources/views/cart/partials/product/remove-button.blade.php b/resources/views/cart/partials/product/remove-button.blade.php index f528ecef..62d7632c 100644 --- a/resources/views/cart/partials/product/remove-button.blade.php +++ b/resources/views/cart/partials/product/remove-button.blade.php @@ -1,12 +1,17 @@ - - \ No newline at end of file + From 9a40bb5e9d0ad466346e697ae1fefd80e9f58705 Mon Sep 17 00:00:00 2001 From: Jimmy Hoenderdaal Date: Fri, 15 Nov 2024 08:15:42 +0100 Subject: [PATCH 2/5] 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 @@ -