From 965f9ae806abf991080968958b62dfdaff89936e Mon Sep 17 00:00:00 2001 From: Shubham Mehrotra Date: Fri, 27 Mar 2020 12:13:48 +0530 Subject: [PATCH] #2776 --- packages/Webkul/Shop/src/Config/menu.php | 9 +++++++-- .../shop/customers/account/partials/sidemenu.blade.php | 6 +----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/Webkul/Shop/src/Config/menu.php b/packages/Webkul/Shop/src/Config/menu.php index 7be42bd5f..1245e6413 100755 --- a/packages/Webkul/Shop/src/Config/menu.php +++ b/packages/Webkul/Shop/src/Config/menu.php @@ -26,16 +26,21 @@ return [ 'name' => 'shop::app.layouts.wishlist', 'route' =>'customer.wishlist.index', 'sort' => 4, + ], [ + 'key' => 'account.compare', + 'name' => 'velocity::app.customer.compare.text', + 'route' =>'velocity.customer.product.compare', + 'sort' => 5, ], [ 'key' => 'account.orders', 'name' => 'shop::app.layouts.orders', 'route' =>'customer.orders.index', - 'sort' => 5, + 'sort' => 6, ], [ 'key' => 'account.downloadables', 'name' => 'shop::app.layouts.downloadable-products', 'route' =>'customer.downloadable_products.index', - 'sort' => 6, + 'sort' => 7, ] ]; 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 5d8c24294..c5fbc52fd 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 @@ -18,11 +18,7 @@ $subMenuCollection['orders'] = $menuItem['children']['orders']; $subMenuCollection['downloadables'] = $menuItem['children']['downloadables']; $subMenuCollection['wishlist'] = $menuItem['children']['wishlist']; - $subMenuCollection['compare'] = [ - 'key' => 'account.compare', - 'name' => 'velocity::app.customer.compare.text', - 'url' => route('velocity.customer.product.compare'), - ]; + $subMenuCollection['compare'] = $menuItem['children']['compare']; $subMenuCollection['reviews'] = $menuItem['children']['reviews']; $subMenuCollection['address'] = $menuItem['children']['address']; } catch (\Exception $exception) {