If anyone is interested I managed to work this one out myself.
It seems that there is a corresponding template PHP file for every language file.
To add a new editable field I found the login template file below : -
/root(catalog)/includes/templates/template_default/templates/tpl_login_default.php
To add a new field I edited the top of the page here : -
Code:
<?php
/**
* Page Template
*
* @package templateSystem
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_login_default.php 5926 2007-02-28 18:15:39Z drbyte $
*/
?>
<div class="centerColumn" id="loginDefault">
<h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
<?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?>
<?php if ( USE_SPLIT_LOGIN_MODE == 'True' || $ec_button_enabled) { ?>
<!--BOF PPEC split login- DO NOT REMOVE-->
<fieldset class="floatingBox back">
<legend><?php echo HEADING_NEW_CUSTOMER_SPLIT; ?></legend>
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT ** ?>
<?php if ($ec_button_enabled) { ?>
<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT; ?></div>
I then added one line : -
Code:
<?php echo FREE_TEXT; ?>
To give : -
Code:
<?php
/**
* Page Template
*
* @package templateSystem
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_login_default.php 5926 2007-02-28 18:15:39Z drbyte $
*/
?>
<div class="centerColumn" id="loginDefault">
<h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
<?php echo FREE_TEXT; ?>
<?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?>
<?php if ( USE_SPLIT_LOGIN_MODE == 'True' || $ec_button_enabled) { ?>
<!--BOF PPEC split login- DO NOT REMOVE-->
<fieldset class="floatingBox back">
<legend><?php echo HEADING_NEW_CUSTOMER_SPLIT; ?></legend>
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT ** ?>
<?php if ($ec_button_enabled) { ?>
<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT; ?></div>
This adds a free text field just below "Welcome, please sign in"
To edit this field you edit the language file located in : -
/root(catalog)/includes/languages/english/login.php
Add the following line of code : -
Code:
define('FREE_TEXT','Free text here')
Which makes my file look like the following : -
Code:
<?php
/**
* @package languageDefines
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: login.php 6352 2007-05-20 21:05:01Z drbyte $
*/
define('NAVBAR_TITLE', 'Login');
define('HEADING_TITLE', 'Welcome, Please Sign In,');
define('FREE_TEXT', 'free text here');
define('HEADING_NEW_CUSTOMER', '<strong>' . STORE_NAME . '</strong> is a Wholesale only site, please register below.');
define('HEADING_NEW_CUSTOMER_SPLIT', 'New Customers');
Just add what ever text you like in standard html coding where "free text here" is shown.
Bookmarks