[EASY MOD] Show Products On 404 Error Page
Posted: Sun Oct 10, 2010 2:55 pm
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:
ABOVE THAT, ADD:
FORMATTED END RESULT LOOKS LIKE:
Save your changes, upload the 404.html file... test your site.
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%%
Code: Select all
%%Panel.HomeFeaturedProducts%%
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>