Post by doktorek » 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

New member

Posts

Joined
Thu Apr 28, 2016 8:40 pm

Post by nonnedelectari » Sun May 26, 2024 8:08 pm

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:

Code: Select all

	public function index() {
to

Code: Select all

	public function index() {
		return new Action('error/not_found');

New member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by doktorek » Mon May 27, 2024 12:58 am

I will try that. Thanks

New member

Posts

Joined
Thu Apr 28, 2016 8:40 pm
Who is online

Users browsing this forum: jhendrix and 16 guests