♻️ Add onclick action add alert

This commit is contained in:
David Galet 2022-03-29 18:24:21 +02:00
parent 5bf631ffb9
commit 26cb4a1d2f
1 changed files with 5 additions and 1 deletions

View File

@ -128,7 +128,11 @@
<div class="misc-controls">
<a href="{{ route('shop.home.index') }}" class="link">{{ __('shop::app.checkout.cart.continue-shopping') }}</a>
<a href="{{ route('cart.remove.all.items') }}" class="link">{{ __('shop::app.checkout.cart.remove-all-items') }}</a>
<a
onclick="return confirm('{{ __('shop::app.checkout.cart.confirm-action') }}')"
href="{{ route('cart.remove.all.items') }}">
{{ __('shop::app.checkout.cart.remove-all-items') }}
</a>
<div style="display:flex;">
@if ($cart->hasProductsWithQuantityBox())