Page 1 of 1
Is there a way to disable SEARCH ? and 404 "search pages" (route=product/search) ?
Posted: Sun May 26, 2024 5:07 am
by doktorek
I want to disable search option in OC. Not just remove the search box! Completely disable search option and URL.
I dont want anybody to search the page.
I want them to just browse the categories.
Is there an easy mod?
THanks
Re: Is there a way to disable SEARCH ? and 404 "search pages" (route=product/search) ?
Posted: Sun May 26, 2024 8:08 pm
by nonnedelectari
doktorek wrote: ↑Sun May 26, 2024 5:07 am
I want to disable search option in OC. Not just remove the search box! Completely disable search option and URL.
I dont want anybody to search the page.
I want them to just browse the categories.
Is there an easy mod?
THanks
apart from taking the search bar out of the view, you need to disable the controller so it returns the error page:
in catalog/controller/product/search.php
change:
to
Code: Select all
public function index() {
return new Action('error/not_found');
Re: Is there a way to disable SEARCH ? and 404 "search pages" (route=product/search) ?
Posted: Mon May 27, 2024 12:58 am
by doktorek
I will try that. Thanks