diff --git a/packages/Webkul/Shop/src/Resources/views/layouts/header/index.blade.php b/packages/Webkul/Shop/src/Resources/views/layouts/header/index.blade.php index 27b7f5b87..e75533b0f 100755 --- a/packages/Webkul/Shop/src/Resources/views/layouts/header/index.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/layouts/header/index.blade.php @@ -47,21 +47,27 @@ {!! view_render_event('bagisto.shop.layout.header.comppare-item.before') !!} -
  • - getConfigData('general.content.shop.compare_option') == "1" ? true : false + @endphp - @guest('customer') - href="{{ route('velocity.product.compare') }}" - @endguest - style="color: #242424;" - > - {{ __('velocity::app.customer.compare.text') }} + @if ($showCompare) +
  • + -
  • + @guest('customer') + href="{{ route('velocity.product.compare') }}" + @endguest + style="color: #242424;" + > + {{ __('velocity::app.customer.compare.text') }} + + + + @endif {!! view_render_event('bagisto.shop.layout.header.compare-item.after') !!} diff --git a/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php b/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php index 20f5b351b..9ee148016 100644 --- a/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php @@ -1,3 +1,7 @@ +@php + $showCompare = core()->getConfigData('general.content.shop.compare_option') == "1" ? true : false +@endphp +
    @csrf @@ -7,8 +11,10 @@
    @include('shop::products.wishlist') - - @include('shop::products.compare', [ - 'productId' => $product->id - ]) + + @if ($showCompare) + @include('shop::products.compare', [ + 'productId' => $product->id + ]) + @endif
    \ No newline at end of file