Post by Simon_Romin » Tue Jun 09, 2015 11:30 pm

Hi there

Anyone know if it's possible to do a 404 page on opencart 2.0 with the title being a search into itself?

i.e. url directs to testsite.com/computers but for some reason the computers category is missing or has been removed. So it 404's to a page not found.

Is there a way for it to run a search based on the 'computers' keyword and then open that search within the 404 page

i.e. This page is not found, but you may have been searching for this:

search results....


Any ideas? Just spitballing a possible extension idea if one is not already available but it would also be useful for my site.

Newbie

Posts

Joined
Thu Jan 22, 2015 8:24 pm

Post by qahar » Mon Jun 15, 2015 7:49 am

I'm not sure if there is ext for it but it's nice idea.

You need to modificate 404 controller for this. Use existing model as on search page to show only product, or create new model to search all possible match

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia
Who is online

Users browsing this forum: No registered users and 9 guests