[EASY MOD] Show Products On 404 Error Page

Specific Information relating to Version 4.x only
Post Reply
CharlieFoxtrot
Confirmed
Confirmed
Posts: 413
Joined: Sun Aug 09, 2009 1:23 pm

[EASY MOD] Show Products On 404 Error Page

Post by CharlieFoxtrot »

ISC's default 404 error page (file not found) is a bit bare-bones... and I thought it would be nice to add a little more content as well.

Instead of just telling the customer that the category no longer exists (or has been renamed)... I thought it would be nice to ALSO show a list of featured products as well. (Why waste any opportunity to sell something?!)

Here's what I did for ISC 4.07. ~~ This technique may work in other versions, but I cannot test it. (As usual, make backups, test before going live... yadda-yadda-yadda.)

OPEN FILE: /templates/YOURTEMPLATE/404.html

SEARCH FOR:

Code: Select all

%%Banner.BottomBanner%%
ABOVE THAT, ADD:

Code: Select all

%%Panel.HomeFeaturedProducts%%
FORMATTED END RESULT LOOKS LIKE:

Code: Select all

		<div class="Content Wide" id="LayoutColumn2">
			<h2>%%LNG_NotFound%%</h2>
			<div class="BlockContent">
				<p class="ErrorMessage">
					%%LNG_NotFoundError%%
				</p>
				<p>%%LNG_NotFoundReasonTitle%%</p>
				<ul>
					<li>%%LNG_NotFoundReason1%%</li>
					<li>%%LNG_NotFoundReason2%%</li>
				</ul>
			</div>
			%%Panel.HomeFeaturedProducts%%
			%%Banner.BottomBanner%%
		</div>
Save your changes, upload the 404.html file... test your site.
ISC 4.0.7

"... and let's be honest that whole "by design" thing is getting old too."
airduck
Posts: 8
Joined: Wed Jul 13, 2011 1:14 am
Contact:

Re: [EASY MOD] Show Products On 404 Error Page

Post by airduck »

Thank you for this. I just added this to the 404.html file and it looks great. I hated the Interspire plain 404 page and was looking for a way to add something to it. I had thought of adding, Please visit our home page and give a link but showing the featured products are even better!
Gail
http://Osmungifts.com
Interspire 6.1.1
CharlieFoxtrot
Confirmed
Confirmed
Posts: 413
Joined: Sun Aug 09, 2009 1:23 pm

Re: [EASY MOD] Show Products On 404 Error Page

Post by CharlieFoxtrot »

You're welcome! :D
ISC 4.0.7

"... and let's be honest that whole "by design" thing is getting old too."
Post Reply