diff --git a/packages/Webkul/Velocity/src/Repositories/ContentRepository.php b/packages/Webkul/Velocity/src/Repositories/ContentRepository.php index 32bfbd0bf..47a960a87 100644 --- a/packages/Webkul/Velocity/src/Repositories/ContentRepository.php +++ b/packages/Webkul/Velocity/src/Repositories/ContentRepository.php @@ -130,7 +130,12 @@ class ContentRepository extends Repository $query = $this->model::orderBy('position', 'ASC'); $contentCollection = $query - ->select('velocity_contents.*', 'velocity_contents_translations.*') + ->select( + 'velocity_contents.content_type', + 'velocity_contents_translations.title as title', + 'velocity_contents_translations.page_link as page_link', + 'velocity_contents_translations.link_target as link_target' + ) ->where('velocity_contents.status', 1) ->leftJoin('velocity_contents_translations', 'velocity_contents.id', 'velocity_contents_translations.content_id') ->distinct('velocity_contents_translations.id') diff --git a/packages/Webkul/Velocity/src/Repositories/Product/ProductRepository.php b/packages/Webkul/Velocity/src/Repositories/Product/ProductRepository.php index c0403510c..4a97216e7 100644 --- a/packages/Webkul/Velocity/src/Repositories/Product/ProductRepository.php +++ b/packages/Webkul/Velocity/src/Repositories/Product/ProductRepository.php @@ -4,6 +4,7 @@ namespace Webkul\Velocity\Repositories\Product; use Webkul\Core\Eloquent\Repository; use Illuminate\Container\Container as App; +use Webkul\Product\Models\ProductAttributeValue; use Webkul\Product\Repositories\ProductFlatRepository; use Webkul\Attribute\Repositories\AttributeRepository; diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/partials/sidemenu.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/partials/sidemenu.blade.php index c5fbc52fd..60bd82f67 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/partials/sidemenu.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/partials/sidemenu.blade.php @@ -21,6 +21,20 @@ $subMenuCollection['compare'] = $menuItem['children']['compare']; $subMenuCollection['reviews'] = $menuItem['children']['reviews']; $subMenuCollection['address'] = $menuItem['children']['address']; + + unset( + $menuItem['children']['profile'], + $menuItem['children']['orders'], + $menuItem['children']['downloadables'], + $menuItem['children']['wishlist'], + $menuItem['children']['compare'], + $menuItem['children']['reviews'], + $menuItem['children']['address'] + ); + + foreach ($menuItem['children'] as $key => $remainingChildren) { + $subMenuCollection[$key] = $remainingChildren; + } } catch (\Exception $exception) { $subMenuCollection = $menuItem['children']; } diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/products/list/toolbar.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/products/list/toolbar.blade.php index 2ac0c6d5b..034be2047 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/products/list/toolbar.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/products/list/toolbar.blade.php @@ -101,7 +101,9 @@ - @include ('shop::products.list.layered-navigation') + @if (request()->route()->getName() != 'velocity.search.index') + @include ('shop::products.list.layered-navigation') + @endif