Merge pull request #6403 from devansh-webkul/wishlist-and-compare

Wishlist And Compare Added #6401
This commit is contained in:
Jitendra Singh 2022-05-06 13:37:06 +05:30 committed by GitHub
commit bb32619ad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 20 deletions

View File

@ -61,7 +61,7 @@
$showCompare = core()->getConfigData('general.content.shop.compare_option') == "1" ? true : false
@endphp
@php
@php
$showWishlist = core()->getConfigData('general.content.shop.wishlist_option') == "1" ? true : false;
@endphp
@ -128,14 +128,28 @@
</a>
</div>
</li>
<hr>
@if ($showWishlist)
<li>
<a href="{{ route('customer.wishlist.index') }}">
{{ __('shop::app.header.wishlist') }}
</a>
</li>
@endif
@if ($showCompare)
<li>
<a href="{{ route('velocity.product.compare') }}">
{{ __('shop::app.customer.compare.text') }}
</a>
</li>
@endif
</ul>
@endguest
@auth('customer')
@php
$showWishlist = core()->getConfigData('general.content.shop.wishlist_option') == "1" ? true : false;
@endphp
<ul class="dropdown-list account customer">
<li>
<div>
@ -151,24 +165,18 @@
@if ($showWishlist)
<li>
<a href="{{ route('customer.wishlist.index') }}">{{ __('shop::app.header.wishlist') }}</a>
<a href="{{ route('customer.wishlist.index') }}">
{{ __('shop::app.header.wishlist') }}
</a>
</li>
@endif
@if ($showCompare)
<li>
<a
@auth('customer')
href="{{ route('velocity.customer.product.compare') }}"
@endauth
@guest('customer')
href="{{ route('velocity.product.compare') }}"
@endguest
> {{ __('shop::app.customer.compare.text') }}
</a>
</li>
@if ($showCompare)
<li>
<a href="{{ route('velocity.customer.product.compare') }}">
{{ __('shop::app.customer.compare.text') }}
</a>
</li>
@endif
<li>