Post by letxob » Tue Aug 15, 2017 11:41 pm

Default the 404 page is rather empty.
If you add a "not found" layout you can add modules to it.

1) add a new layout and call it "not found" or whatever you like
2) set the route to error/not_found
3) add your modules

now you can tease the customers in (hopefully) not leaving so fast.

Newbie

Posts

Joined
Sun Jul 02, 2017 4:36 am

Post by cyclops12 » Wed Aug 16, 2017 1:44 am

Good idea, i like it 8)

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by IP_CAM » Wed Aug 16, 2017 10:42 am

But why create a Custom Module ? Additional PHP/HTML Code could easy
be 'implanted' into the Theme Error File directly, to avoid additional work.
Just an idea... ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by letxobnav » Fri Aug 18, 2017 4:45 pm

I wasn't suggesting to create custom modules, just the ability to add your existing modules to the 404 layout.
Back in the day (oscommerce) I used the 404 page to suggest similar products to the one they were looking for.

so simple, add your current modules as is or write specific modules for the purpose.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by WaxedPerfection » Fri Aug 18, 2017 5:11 pm

Thank you so simple and has a great effect on the page rather than the dull "The page you requested cannot be found!
The page you requested cannot be found."

keep coming with the nice little tweaks.

WP

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by sajuk » Sat Jan 16, 2021 7:17 am

Old post.. however..Just used the layout option, in 2021 on OC 2.3.0.2 works great, defiantly a better 404 Page

Used a banner through the banner module to show a 404 Image

Had to also edit the language file "not_found.php" , to deal with the re-wording for the "Heading" and "Text"
// Heading
$_['heading_title'] = ' The page you requested cannot be found!';

// Text
$_['text_error'] ='The page you requested cannot be found.';

catalog/language/en-gb/error/not_found.php

New member

Posts

Joined
Tue Feb 07, 2017 7:10 pm

Post by IP_CAM » Sat Jan 16, 2021 8:16 am

BTW: Just to mention it, for Admins, this one would eventually
be of good Use to see/handle Errors: ;)
Visible Error Tab for Admin Form Extension Free
viewtopic.php?f=119&t=221826

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by fegdeed » Sat Jan 16, 2021 10:01 am

cyclops12 wrote:
Wed Aug 16, 2017 1:44 am
Good idea, i like it 8)
Me too...very simple and productive :)

Image
Get a secure, fast, and reliable web hosting service from https://turnuphosting.com.


Active Member

Posts

Joined
Fri Sep 21, 2018 12:01 am

Post by fegdeed » Sat Jan 16, 2021 10:02 am

letxobnav wrote:
Fri Aug 18, 2017 4:45 pm
I wasn't suggesting to create custom modules, just the ability to add your existing modules to the 404 layout.
Back in the day (oscommerce) I used the 404 page to suggest similar products to the one they were looking for.

so simple, add your current modules as is or write specific modules for the purpose.
Good idea for business 👏

Image
Get a secure, fast, and reliable web hosting service from https://turnuphosting.com.


Active Member

Posts

Joined
Fri Sep 21, 2018 12:01 am

Post by by mona » Sat Jan 16, 2021 4:59 pm

agreed - what a wonderful idea - :clap:
+1

I hope you are ok and you will be joining us again soon
Happy Holidays and Happy New year
I miss such valued input

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by reda » Fri Nov 19, 2021 5:12 pm

Another good idea is to redirect users to the search page instead of 404 not found page.

When customers enter a wrong url, for example using old product name:

Code: Select all

www.example.com/product_old_name
instead of

Code: Select all

www.example.com/product
it redirects the user to the search page with the search=product_old_name search query.

There is an extension called: Useful 404 not found page that does exactly this. See demonstration video: https://www.opencart.com/index.php?rout ... n_id=42863

Newbie

Posts

Joined
Tue Sep 13, 2011 1:14 pm
Who is online

Users browsing this forum: pprmkr, vaidyamanishjoshi and 24 guests