That Software Guy, Inc.'s Logo

Software Consulting Services
Need Help? Call That Software Guy!


Changing the Title of your Admin Page

Relevance: Zen Cart™ 1.2.7d and forward. Extra changes required in 1.3.0 - 1.3.7.
Cost: Free, but donation appreciated

The change is very simple, but in 1.3.0 - 1.3.7, there is an extra code change you must make to compensate for a bug.

Create your custom template if you haven't already done so.

Create a customized copy of
includes/languages/english/custom/meta_tags.php
(from includes/languages/english/meta_tags.php)

You've probably already done this to change your title from
define('TITLE', 'Zen Cart!');
to
define('TITLE', 'My Storename');


So now change this to
if (IS_ADMIN_FLAG) {
   define('TITLE', 'My Storename Admin');
} else {
   define('TITLE', 'My Storename');
}



Unfortunately, we're not done yet. In the versions specified at the top of the file, there is a bug which causes your meta_tags customizations not to be used in the admin area. To fix this bug, you will need to edit the file
admin/includes/languages/english.php
(edit this file directly; don't customize it) to change
// removed for meta tags
// page title
//define('TITLE', 'Zen Cart');

// include template specific meta tags defines

to
// removed for meta tags
// page title
//define('TITLE', 'Zen Cart');

// include template specific meta tags defines
$template_query = $db->Execute("select template_dir
from " . TABLE_TEMPLATE_SELECT .
" where template_language = '0'");
$template_dir = $template_query->fields['template_dir'];

This bug is documented in the following Zen Cart bug report.

This tip was developed in July, 2006, and was first submitted to the Zen Cart Support Forum in this thread on July 29, 2006.


If the information you learned reading this site is helping your store make more money, please consider making a donation. Thank you!


Want more Zen Cart?     Tips and Tricks     Contributions     Extensions     Custom Software     Newsletter

   Terms | Privacy | SiteMap | Newsletter | Contact Me | ©2003-2008 That Software Guy, Inc.