Zen Cart How To Add Extra Links To The Header/Footer – Part Two

This Zen Cart tutorial is the last in a two part series that tells you how to add extra links to the header and/or footer in your zen cart store. Here, we will describe the second option you have when attempting to make this change.

The first think you have to do is check to make sure that the EZ-Pages header and/or footer are activated. Go to your Zen Cart admin, and navigate to configuration -> EZ-Pages Settings. If they are not already active, then turn them on.

To use these EZ-Pages, go to admin -> tools -> EZ-Pages and click on the New File Button. Fill in the Page Title Box, and then choose where you want the link to appear. If you want to add a link to your header, select Yes and add a Sort Order. If you’re adding one to the footer, do the same thing, under the footer selection.

Scroll down to the Internal Link URL box, and add your link in this format: index.php?main_page=contact_us (You would follow this procedure for whatever page you are adding)

Finally, click the ‘insert’ button to save your changes.

If you need help with your zen cart web site please contact us for a quote.

At Picaflor Azul, we specialize in custom designed responsive zen carts to fit any business, and accommodate any budget. Contact us today about converting your current zen cart to a responsive design, or to have a fantastic new custom design custom tailored to fit your needs and preferences. Now that more and more people shop online from their mobile devices(smart phones, ipads, etc.), mobile friendly websites are more important than ever to convert customers, and increase sales. We can also offer you help with module installation, wordpress integration, or a full zen cart upgrade.

zen cart plus picaflor azul equals success

Zen Cart How To Add Extra Links To The Header/Footer – Part One

This is the first of a two part Zen Cart Easy Help Tutorial which will teach you how to add extra links to your header, and/or footer. When attempting to add extra links to your header or footer, there are two ways to go about doing it. We will go over the first of these in this zen cart tutorial.

The first of these options requires you to edit two files; tpl_header.php and tpl_footer.php.
You can add internal page links, and/or external links as you desire.

To add a link to an internal page of your zen cart, open includes -> templates -> template_default -> common -> tpl_header.php in your favorite plain text editor. If you want to add a link to your footer, just open includes -> templates -> template_default -> common -> tpl_footer.php instead.

First, find the following code:


<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
<ul class="back">
<li><?php echo '<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>

Add this code under the last line in the code above:


<?php if (DEFINE_CONTACT_US_STATUS <= 1) { ?>
    <li><?php echo '<a href="YOURLINKHERE.COM' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li>
  <?php } ?>

Then replace the ‘YOURLINKHERE.COM’ with your link.

Save the modified file to includes -> templates -> CUSTOM -> common -> tpl_header.php and upload it to your server.

If you need help with your zen cart web site please contact us for a quote.

At Picaflor Azul, we specialize in custom designed responsive zen carts to fit any business, and accommodate any budget. Contact us today about converting your current zen cart to a responsive design, or to have a fantastic new custom design custom tailored to fit your needs and preferences. Now that more and more people shop online from their mobile devices(smart phones, ipads, etc.), mobile friendly websites are more important than ever to convert customers, and increase sales. We can also offer you help with module installation, wordpress integration, or a full zen cart upgrade.

zen cart plus picaflor azul equals success

Zen Cart Language Files and How They Are Used – Part Two

Why use define statments?

The advantage of using define statements is that you can include your text information in your template files using a constant, like this:


<?php echo HEADING_TITLE; ?>

This method is a good alternative to “hard coding” your text, as seen here:


<?php echo 'My Page Heading'; ?>)

Examples of Use

Global Definitions

The definitions in your english.php file affect the footer text, the sidebox headings, the text used by the forms in Zen Cart®, as well as various error messages. Here is an example of the code that can be found in the english.php file:


define('FOOTER_TEXT_BODY', 'Copyright © 2003-2006 Zen Cart. Powered by Zen Cart');define('BOX_HEADING_CATEGORIES', 'Categories');
define('ENTRY_FIRST_NAME', 'First Name:');
define('ENTRY_STREET_ADDRESS_ERROR', 'Your Street Address must contain a minimum of ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' characters.');

Page Specific Definitions

Their name perfectly describes their function, as these are the definitions for text information on specific display pages in your zen cart. The information that can be changed or replaced in these files includes the text for the page heading and the text for the navbar. Depending on the page you are editing, you may also find information for e-mail messages and for other miscellanious tasks performed by a display page. The file these are found in is the conditions.php in your zen cart, and this is a sample of the code you will find there:


define('NAVBAR_TITLE', 'Conditions of Use');
define('HEADING_TITLE', 'Conditions of Use');
From header.php
define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');
define('HEADER_SALES_TEXT', 'TagLine Here');
define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');
define('HEADER_LOGO_IMAGE', 'logo.gif');
From contact_us.php
define('ENTRY_NAME', 'Full Name:');
define('ENTRY_EMAIL', 'Email Address:');
define('ENTRY_ENQUIRY', 'Message:');

If you need help with your zen cart web site please contact us for a quote.

At Picaflor Azul, we specialize in custom designed responsive zen carts to fit any business, and accommodate any budget. Contact us today about converting your current zen cart to a responsive design today, or to have a fantastic new custom design custom tailored to fit your needs and preferences.

zen cart plus picaflor azul equals success