Login page

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

The Login page is where customers need to login for buying products and changing their account information. Customers login with their email address as login account and a secret password. Those who not login before can fill in a form to make a new login accoun



Configuration options

This table below shows most of the configuration options including language text for the Login 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 'Welcome, Please Sign In' Edit language file login.php near line 24 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_VISITORS_CART 'Note: Your "Visitors Cart" contents will be merged with your "Members Cart" contents once you have logged on. <a href="javascript:session_win();">[More Info]</a>' Edit language file login.php near line 34 in the directory includes\languages\english\YOUR_TEMPLATE
HEADING_RETURNING_CUSTOMER 'Returning Customers: Please Log In' Edit language file login.php near line 29 in the directory includes\languages\english\YOUR_TEMPLATE
ENTRY_EMAIL_ADDRESS 'Email Address:' Edit language file english.php near line 202 in the directory includes\languages\YOUR_TEMPLATE
ENTRY_PASSWORD 'Password:' Edit language file english.php near line 243 in the directory includes\languages\YOUR_TEMPLATE
BUTTON_IMAGE_LOGIN File:Button login.gif Edit button image file 'button_login.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_LOGIN_ALT 'Sign In' Edit button names file button_names.php near line 80 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
TEXT_PASSWORD_FORGOTTEN 'Forgot your password?' Edit language file login.php near line 31 in the directory includes\languages\english\YOUR_TEMPLATE
HEADING_NEW_CUSTOMER 'New? Please Provide Your Billing Information' Edit language file login.php near line 26 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_NEW_CUSTOMER_INTRODUCTION 'Creating a login profile with ' . STORE_NAME . ' allows you to shop faster, track the status of your current orders and review your previous orders.' Edit language file login.php near line 27 in the directory includes\languages\english\YOUR_TEMPLATE
BUTTON_IMAGE_SUBMIT File:Button submit.gif Edit button image file 'button_submit.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_SUBMIT_ALT 'Submit the Information' Edit button names file button_names.php near line 93 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
SESSION_RECREATE True Change this in ADMIN
Configuration --> Sessions --> Recreate Session.

Recreate the session to generate a new session ID when the customer logs on or creates an account (PHP >=4.1 needed).
TEXT_LOGIN_ERROR 'Error: Sorry, there is no match for that email address and/or password.' Edit language file login.php near line 33 in the directory includes\languages\english\YOUR_TEMPLATE
NAVBAR_TITLE 'Login' Edit language file login.php near line 23 in the directory includes\languages\english\YOUR_TEMPLATE

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

  • includes\modules\pages\login\header_php.php
  • includes\templates\template_default\templates\tpl_login_default.php

Defines (configuration options) are defined in:

  • Configuration table in the database
  • includes\languages\english.php
  • includes\languages\english\button_names.php
  • includes\languages\english\login.php

Product type configuration option are ignored

Personal tools