O'Reilly logo

OpenCart 1.4 Template Design Cookbook by Tahsin Hasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Broken glass 404 error page

A 404 error indicates that the client was able to communicate with the server, but the server could not find what was requested. In this recipe, we will create a customized 404 error page: a page that appears when a user types a non-existing page of a website. We will place some images along with navigational links on the error page.

Getting ready

We open the not_found.tpl file under the Catalog\view\theme\shop\template\error.

How to do it...

Let's list the steps required to complete the task:

  1. First, we will create the HTML structure of the page. We'll replace the existing code of the not_found.tpl file with the following code:
    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required