Disable "Display Search" - doesn't working, still shows it !

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hello, i'm using latest nopcommerce 4.10 running it through visual studio 2017 locally .
I don't want to display most of elements, and choose that option in administrator configs

But it didn't apply in store, it still display.
I Cleared Cache.
I Restarted Application.
I even restarted visual studio.

I hadn't got this issue in before release < 4.0 , but now i have, how to solve it ?
5 years ago
This setting controls if the "Search" text / link is display in the header links - It works for me

Do you mean you do not want to display the Search Box - so the customer can not use the search function ?
If so edit \src\Presentation\Nop.Web\Views\Shared\_Header.cshtml
5 years ago
Yidna wrote:
This setting controls if the "Search" text / link is display in the header links - It works for me

Do you mean you do not want to display the Search Box - so the customer can not use the search function ?
If so edit \src\Presentation\Nop.Web\Views\Shared\_Header.cshtml

Yes i did but thats only display, if 'customer' somehow gets the html with that searchbox, he would be able to use it.

Anyway i have other question - how does Display "Wishlist" checkbox[x] , works ? Does it rewrite
StandardPermissionProvider 
, as for me i deselect this option and guess what

            var model = new HeaderLinksModel
            {
                IsAuthenticated = customer.IsRegistered(),
                CustomerName = customer.IsRegistered() ? _customerService.FormatUserName(customer) : "",
                ShoppingCartEnabled = _permissionService.Authorize(StandardPermissionProvider.EnableShoppingCart),


Here shoppingcartEnabled is set to true !

Can you explain me why is that pls ?
5 years ago
That Wishlist Checkbox only controls if Wishlist link is shown in the footer
The Wishlist in the header is controlled by Permissions
5 years ago
Or just modify CSHTML directly. Sometimes I find that searching for the correct setting and figuring out what it really does, is a waste of time. I would just remove what I don't want from CSHTML. Haha. Could be just me though. :D


5 years ago
wooncherk wrote:
Or just modify CSHTML directly. Sometimes I find that searching for the correct setting and figuring out what it really does, is a waste of time. I would just remove what I don't want from CSHTML. Haha. Could be just me though. :D



Huh its not just you, eventually i did same thing ... but first ofc i wasted about 3+ hours to figure out the correct and right way ))
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.