It’s important to use the ‘Page Not Found’ page in Zen Cart as another selling page in Zen Cart. It is much more than just an error message. A Search Box is another option in your toolkit that can help increase the effectiveness of the ‘Page Not Found’ page.
To add the search box on the ‘Page Not Found’ page:
- Open the tpl_page_not_found_default.php file located in the includes/templates/template_default/templates/ directory.
- Find the section of code that calls the ‘page not found’ define text:
<?php /** * require the html_define for the page_not_found page */ require($define_page); ?> </div> <?php } ?>
- Immediately following, insert this block of code to include the Search box:
<?php /** * display the Search Box */ require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
- Save the modified tpl_page_not_found_default.php file to your override folder. This will be includes/templates/CUSTOM/templates/ where CUSTOM represents the name of your current template folder.
So, instead of this:

the Zen Cart ‘Page Not Found’ page now also includes a Search box:

|
|||||||



