From c743097d88f2f45059113c6ff3e673777ee77b99 Mon Sep 17 00:00:00 2001 From: Jordy de Vulder Date: Mon, 4 Nov 2024 13:01:21 +0100 Subject: [PATCH 1/3] Checkout frontend tweaks and resolved checkout header issue --- resources/views/cart/item.blade.php | 2 +- resources/views/cart/sidebar.blade.php | 2 +- .../views/checkout/partials/progressbar.blade.php | 2 +- resources/views/checkout/partials/sidebar.blade.php | 2 +- resources/views/components/notifications.blade.php | 10 +++++----- resources/views/components/productlist.blade.php | 4 ++-- resources/views/layouts/app.blade.php | 8 ++++---- .../views/layouts/partials/header/account.blade.php | 4 ++-- .../views/layouts/partials/header/minicart.blade.php | 10 +++++----- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/resources/views/cart/item.blade.php b/resources/views/cart/item.blade.php index 81bae4984..4802b7302 100644 --- a/resources/views/cart/item.blade.php +++ b/resources/views/cart/item.blade.php @@ -1,6 +1,6 @@ - +
+
@lang('Subtotal')
@{{ cart.prices.subtotal_including_tax.value | price }}
diff --git a/resources/views/checkout/partials/progressbar.blade.php b/resources/views/checkout/partials/progressbar.blade.php index 291c3f19b..63d78ab23 100644 --- a/resources/views/checkout/partials/progressbar.blade.php +++ b/resources/views/checkout/partials/progressbar.blade.php @@ -10,7 +10,7 @@ 'pointer-events-none cursor-default' => $currentStepKey < $checkoutStepKey, 'bg-neutral text-white' => $checkoutStepKey <= $currentStepKey, 'bg-white' => $checkoutStepKey > $currentStepKey, - 'bg-neutral text-white shadow-md shadow-neutral pointer-events-none cursor-default' => $checkoutStepKey === $currentStepKey + 'bg-neutral text-white shadow-neutral pointer-events-none cursor-default' => $checkoutStepKey === $currentStepKey ])> {{ $checkoutStepKey + 1 }}
diff --git a/resources/views/checkout/partials/sidebar.blade.php b/resources/views/checkout/partials/sidebar.blade.php index ddfc602e6..1104c7964 100644 --- a/resources/views/checkout/partials/sidebar.blade.php +++ b/resources/views/checkout/partials/sidebar.blade.php @@ -9,7 +9,7 @@
-
+
@lang('Subtotal')
@{{ cart.prices.subtotal_including_tax.value | price }}
diff --git a/resources/views/components/notifications.blade.php b/resources/views/components/notifications.blade.php index 122bffd84..3d3d7bb33 100644 --- a/resources/views/components/notifications.blade.php +++ b/resources/views/components/notifications.blade.php @@ -15,10 +15,10 @@
- - - - + + + +

@@ -28,7 +28,7 @@

diff --git a/resources/views/components/productlist.blade.php b/resources/views/components/productlist.blade.php index 0cd4a50d7..341a264f0 100644 --- a/resources/views/components/productlist.blade.php +++ b/resources/views/components/productlist.blade.php @@ -38,7 +38,7 @@ class="absolute left-0 top-1/2 sm:-translate-x-1/2 -translate-y-1/2" v-on:click="navigate(currentSlide - 1)" :aria-label="__('Prev')" > - + - +
- @includeWhen(!request()->is('checkout'), 'rapidez::layouts.partials.header') - @includeWhen(request()->is('checkout'), 'rapidez::layouts.checkout.header') + @includeWhen(!request()->routeIs('checkout'), 'rapidez::layouts.partials.header') + @includeWhen(request()->routeIs('checkout'), 'rapidez::layouts.checkout.header')
@yield('content')
- @includeWhen(!request()->is('checkout'), 'rapidez::layouts.partials.footer') - @includeWhen(request()->is('checkout'), 'rapidez::layouts.checkout.footer') + @includeWhen(!request()->routeIs('checkout'), 'rapidez::layouts.partials.footer') + @includeWhen(request()->routeIs('checkout'), 'rapidez::layouts.checkout.footer') @stack('page_end')
diff --git a/resources/views/layouts/partials/header/account.blade.php b/resources/views/layouts/partials/header/account.blade.php index c0b62c714..f338d29f9 100644 --- a/resources/views/layouts/partials/header/account.blade.php +++ b/resources/views/layouts/partials/header/account.blade.php @@ -2,7 +2,7 @@
@@ -29,7 +29,7 @@ class="block hover:bg-inactive px-3 py-2 cursor-pointer" @if (App::providerIsLoaded('Rapidez\Account\AccountServiceProvider')) @endif diff --git a/resources/views/layouts/partials/header/minicart.blade.php b/resources/views/layouts/partials/header/minicart.blade.php index 1c39cdfbf..9cd2a5461 100644 --- a/resources/views/layouts/partials/header/minicart.blade.php +++ b/resources/views/layouts/partials/header/minicart.blade.php @@ -1,17 +1,17 @@
- + - + @@ -27,6 +27,6 @@ - + From 79740e6cd6594639a31d55495a5b5d5b5bfa8408 Mon Sep 17 00:00:00 2001 From: Jordy de Vulder Date: Mon, 4 Nov 2024 13:29:43 +0100 Subject: [PATCH 2/3] Added last-child with wildcard selector --- resources/views/cart/sidebar.blade.php | 2 +- resources/views/checkout/partials/sidebar.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/cart/sidebar.blade.php b/resources/views/cart/sidebar.blade.php index 11e87ff66..9de1d416a 100644 --- a/resources/views/cart/sidebar.blade.php +++ b/resources/views/cart/sidebar.blade.php @@ -1,4 +1,4 @@ -
+
@lang('Subtotal')
@{{ cart.prices.subtotal_including_tax.value | price }}
diff --git a/resources/views/checkout/partials/sidebar.blade.php b/resources/views/checkout/partials/sidebar.blade.php index 1104c7964..e918bdda0 100644 --- a/resources/views/checkout/partials/sidebar.blade.php +++ b/resources/views/checkout/partials/sidebar.blade.php @@ -9,7 +9,7 @@
-
+
@lang('Subtotal')
@{{ cart.prices.subtotal_including_tax.value | price }}
From 64da4dc77184b9257e156068a4b70dc2a765c875 Mon Sep 17 00:00:00 2001 From: Jordy de Vulder Date: Wed, 6 Nov 2024 16:52:40 +0100 Subject: [PATCH 3/3] Removed unused check inside header account --- resources/views/layouts/partials/header/account.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/layouts/partials/header/account.blade.php b/resources/views/layouts/partials/header/account.blade.php index f338d29f9..de0e3fd9f 100644 --- a/resources/views/layouts/partials/header/account.blade.php +++ b/resources/views/layouts/partials/header/account.blade.php @@ -5,7 +5,7 @@ @{{ $root.user.firstname }} -
+
@if (App::providerIsLoaded('Rapidez\Account\AccountServiceProvider')) @lang('Account') @lang('Orders')
@{{ item.product.name }} @{{ item.quantity }} @{{ item.prices.row_total.value | price }}
@lang('Total') @{{ cart.prices.grand_total.value | price }}