Merge pull request #6504 from Sanjaybhattwebkul/guest-wishlist

Issue #6444 fixed
This commit is contained in:
Jitendra Singh 2022-08-03 11:11:15 +05:30 committed by GitHub
commit 8c0ff81050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 13 deletions

View File

@ -40,23 +40,21 @@
@endauth
@guest('customer')
<form
class="d-none"
<form
id="wishlist-{{ $product->product_id }}"
action="{{ route('customer.wishlist.add', $product->product_id) }}"
method="POST">
@csrf
<a
class="unset wishlist-icon {{ $addWishlistClass ?? '' }} text-right"
href="javascript:void(0);"
title="{{ __('velocity::app.shop.wishlist.add-wishlist-text') }}"
onclick="document.getElementById('wishlist-{{ $product->product_id }}').submit();">
<wishlist-component active="false"></wishlist-component>
</a>
</form>
<a
class="unset wishlist-icon {{ $addWishlistClass ?? '' }} text-right"
href="javascript:void(0);"
title="{{ __('velocity::app.shop.wishlist.add-wishlist-text') }}"
onclick="document.getElementById('wishlist-{{ $product->product_id }}').submit();">
<wishlist-component active="false"></wishlist-component>
</a>
@endauth
{!! view_render_event('bagisto.shop.products.wishlist.after') !!}
{!! view_render_event('bagisto.shop.products.wishlist.after') !!}