-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all cart items at once #5998
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ILDaviz please also add the translations for the other languages
@ILDaviz |
Is there already a component or is it to be created? |
Hi @ILDaviz, There is a modal component available in UI package. |
@@ -128,6 +128,8 @@ | |||
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use v-alert here like below
class="link" v-alert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will work only in bliss theme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be finished this week 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be finished this week see_no_evil
HI @ILDaviz
Are you working for Remove all cart items at once?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added alert
@@ -80,6 +80,9 @@ | |||
Route::delete('/cart/remove/{id}', [CartController::class, 'removeProductFromCart']) | |||
->name('velocity.cart.remove.product'); | |||
|
|||
Route::get('/cart/remove-all', [CartController::class, 'removeAllItems']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not be the GET method. It should be DELETE or POST with CSRF Token.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devansh-webkul Ok! change method type
Hi @ILDaviz, Thanks for the contribution 🚀 |
No description provided.