From 43430ff03b60f1c287e3e50f71c1393073d0f3ec Mon Sep 17 00:00:00 2001 From: Roene Date: Tue, 7 Jan 2025 12:03:53 +0100 Subject: [PATCH] Changed translation | Removed @once | Fix grouped products responsive --- lang/nl.json | 2 +- resources/views/components/productlist.blade.php | 10 ++-------- .../views/layouts/partials/header/minicart.blade.php | 4 ++-- resources/views/product/partials/grouped.blade.php | 12 ++++++------ 4 files changed, 11 insertions(+), 17 deletions(-) diff --git a/lang/nl.json b/lang/nl.json index 400b346c..ef1f149c 100644 --- a/lang/nl.json +++ b/lang/nl.json @@ -2,7 +2,7 @@ ":count of the requested quantity will be backordered": ":count van de aangevraagde hoeveelheid zal worden nageleverd", "Accept cookies": "Accepteer cookies", "Account": "Account", - "Add to cart": "Toevoegen aan winkelwagen", + "Add to cart": "In winkelwagen", "Added": "Toegevoegd", "Adding": "Aan het toevoegen", "Addition": "Toevoeging", diff --git a/resources/views/components/productlist.blade.php b/resources/views/components/productlist.blade.php index 4f5beb66..635de509 100644 --- a/resources/views/components/productlist.blade.php +++ b/resources/views/components/productlist.blade.php @@ -1,11 +1,5 @@ @props(['value', 'title' => false, 'field' => 'sku.keyword']) -@once - @if ($file = vite_filename_path('Listing.vue')) - @vite([$file]) - @endif -@endonce - @if ($value) @@ -45,7 +39,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')" > - + - +
diff --git a/resources/views/layouts/partials/header/minicart.blade.php b/resources/views/layouts/partials/header/minicart.blade.php index bb4c5159..dbe36440 100644 --- a/resources/views/layouts/partials/header/minicart.blade.php +++ b/resources/views/layouts/partials/header/minicart.blade.php @@ -2,8 +2,8 @@
diff --git a/resources/views/product/partials/grouped.blade.php b/resources/views/product/partials/grouped.blade.php index d9ef01a0..f59a8262 100644 --- a/resources/views/product/partials/grouped.blade.php +++ b/resources/views/product/partials/grouped.blade.php @@ -1,10 +1,10 @@
@foreach ($product->grouped as $groupedProduct) - -
-
+ + +
{{ $groupedProduct->name }} -
+
{{ price($groupedProduct->special_price ?: $groupedProduct->price) }}
@if ($groupedProduct->special_price)
{{ price($groupedProduct->price) }}
@@ -12,7 +12,7 @@
-
+
@if (!$groupedProduct->in_stock)

@lang('Sorry! This product is currently out of stock.') @@ -25,7 +25,7 @@ ::max="{{ $groupedProduct->max_sale_qty ?: 'null' }}" /> - + @endif