Page not found page

From Zen Cart(tm) Wiki
Jump to: navigation, search

The Page_not_found page is explained here.



Configuration options

This table below shows most of the configuration options including language text for the Page_not_found page. It is based on a ZenCart version 1.3.0. Before editing files copy the original file (if not done before) to YOUR_TEMPLATE directory.

Copy image and button files

  • from includes\templates\template_default\images\..... to includes\templates\YOUR_TEMPLATE\images\.....
  • from includes\templates\template_default\buttons\..... to includes\templates\YOUR_TEMPLATE\buttons\.....

Copy language files

  • from includes\language\..... to includes\language\YOUR_TEMPLATE\.....
  • from includes\language\english\..... to includes\language\english\YOUR_TEMPLATE\.....

See also Customisation - Templates


Name Default value How to change
HEADING_TITLE 'Page Not Found' Edit language file page_not_found.php near line 11 in the directory includes\languages\english\YOUR_TEMPLATE
SHOW_ACCOUNT_LINKS_ON_SITE_MAP No Change this in ADMIN
Configuration --> Product Info --> Site Map - include My Account Links?.

Should the links to My Account show up on the site-map?
Note: Spiders will try to index this page, and likely should not be sent to secure pages, since there is no benefit in indexing a login page.

Default: false
PAGE_ACCOUNT 'My Account' Edit language file page_not_found.php near line 13 in the directory includes\languages\english\YOUR_TEMPLATE
PAGE_ACCOUNT_EDIT 'Account Information' Edit language file page_not_found.php near line 14 in the directory includes\languages\english\YOUR_TEMPLATE
PAGE_ADDRESS_BOOK 'Address Book' Edit language file page_not_found.php near line 15 in the directory includes\languages\english\YOUR_TEMPLATE
PAGE_ACCOUNT_HISTORY 'Order History' Edit language file page_not_found.php near line 16 in the directory includes\languages\english\YOUR_TEMPLATE
PAGE_ACCOUNT_NOTIFICATIONS 'Newsletter Subscriptions' Edit language file page_not_found.php near line 17 in the directory includes\languages\english\YOUR_TEMPLATE
PAGE_SHOPPING_CART 'Shopping Cart' Edit language file page_not_found.php near line 18 in the directory includes\languages\english\YOUR_TEMPLATE
PAGE_CHECKOUT_SHIPPING 'Checkout' Edit language file page_not_found.php near line 19 in the directory includes\languages\english\YOUR_TEMPLATE
PAGE_ADVANCED_SEARCH 'Advanced Search' Edit language file page_not_found.php near line 20 in the directory includes\languages\english\YOUR_TEMPLATE
PAGE_PRODUCTS_NEW 'New Products' Edit language file page_not_found.php near line 21 in the directory includes\languages\english\YOUR_TEMPLATE
PAGE_SPECIALS 'Specials' Edit language file page_not_found.php near line 22 in the directory includes\languages\english\YOUR_TEMPLATE
PAGE_REVIEWS 'Reviews' Edit language file page_not_found.php near line 23 in the directory includes\languages\english\YOUR_TEMPLATE
BOX_HEADING_INFORMATION 'Information' Edit language file english.php near line 133 in the directory includes\languages\YOUR_TEMPLATE
BOX_INFORMATION_SHIPPING 'Shipping & Returns' Edit language file english.php near line 136 in the directory includes\languages\YOUR_TEMPLATE
BOX_INFORMATION_PRIVACY 'Privacy Notice' Edit language file english.php near line 134 in the directory includes\languages\YOUR_TEMPLATE
BOX_INFORMATION_CONDITIONS 'Conditions of Use' Edit language file english.php near line 135 in the directory includes\languages\YOUR_TEMPLATE
BOX_INFORMATION_CONTACT 'Contact Us' Edit language file english.php near line 137 in the directory includes\languages\YOUR_TEMPLATE
BUTTON_IMAGE_BACK File:Button back.gif Edit button image file 'button_back.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_BACK_ALT 'Back' Edit button names file button_names.php near line 67 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
FILENAME_DEFINE_PAGE_NOT_FOUND

Custom 404 Error Page with Site Map Sample Text ...


Put your custom "page not found" message here. You can change this text in the Define Pages Editor located under Tools in the Admin.


Edit define page file define_page_not_found
(Tools --> Define Pages Editor)
NAVBAR_TITLE 'Page Not Found' Edit language file page_not_found.php near line 10 in the directory includes\languages\english\YOUR_TEMPLATE

NOTE: This table is made by looking for used defines in the following files:

  • includes\modules\pages\page_not_found\header_php.php
  • includes\templates\template_default\templates\tpl_page_not_found_default.php

Defines (configuration options) are defined in:

  • configuration table in the database
  • includes\filenames.php
  • includes\languages\english.php
  • includes\languages\english\button_names.php
  • includes\languages\english\page_not_found.php

Product type configuration option are ignored Shipping, payment and Order Total module configuration option are also ignored