Account edit page
From Zen Cart(tm) Wiki
The Account_edit page is explained here.
[edit]
Configuration options
This table below shows most of the configuration options including language text for the Account_edit 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 | 'My Account Information' | Edit language file account_edit.php near line 26 in the directory includes\languages\english\YOUR_TEMPLATE |
| FORM_REQUIRED_INFORMATION | '* Required information' | Edit language file english.php near line 258 in the directory includes\languages\YOUR_TEMPLATE |
| ACCOUNT_GENDER | true | Change this in ADMIN Configuration --> Customer Details --> Email Salutation. Display salutation choice during account creation and with account information |
| MALE | 'Mr.' | Edit language file english.php near line 62 in the directory includes\languages\YOUR_TEMPLATE |
| FEMALE | 'Ms.' | Edit language file english.php near line 63 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_GENDER_TEXT | '*' | Edit language file english.php near line 192 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_FIRST_NAME | 'First Name:' | Edit language file english.php near line 193 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_FIRST_NAME_TEXT | '*' | Edit language file english.php near line 195 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_LAST_NAME | 'Last Name:' | Edit language file english.php near line 196 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_LAST_NAME_TEXT | '*' | Edit language file english.php near line 198 in the directory includes\languages\YOUR_TEMPLATE |
| ACCOUNT_DOB | true | Change this in ADMIN Configuration --> Customer Details --> Date of Birth. Display date of birth field during account creation and with account information NOTE: Set Minimum Value Date of Birth to blank for not required Set Minimum Value Date of Birth > 0 to require |
| ENTRY_DATE_OF_BIRTH | 'Date of Birth:' | Edit language file english.php near line 199 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_DATE_OF_BIRTH_TEXT | '* (eg. 05/21/1970)' | Edit language file english.php near line 201 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_EMAIL_ADDRESS | 'Email Address:' | Edit language file english.php near line 202 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_EMAIL_ADDRESS_TEXT | '*' | Edit language file english.php near line 206 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_TELEPHONE_NUMBER | 'Telephone:' | Edit language file english.php near line 232 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_TELEPHONE_NUMBER_TEXT | '*' | Edit language file english.php near line 234 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_FAX_NUMBER | 'Fax Number:' | Edit language file english.php near line 235 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_FAX_NUMBER_TEXT | Edit language file english.php near line 237 in the directory includes\languages\YOUR_TEMPLATE | |
| CUSTOMERS_REFERRAL_STATUS | 0 | Change this in ADMIN Configuration --> Customer Details --> Customers Referral Status. Customers Referral Code is created from 0= Off 1= 1st Discount Coupon Code used 2= Customer can add during create account or edit if blank NOTE: Once the Customers Referral Code has been set it can only be changed in the Admin Customer |
| ENTRY_CUSTOMERS_REFERRAL | 'Referral Code:' | Edit language file english.php near line 221 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_EMAIL_PREFERENCE | 'Newsletter and Email Details' | Edit language file english.php near line 588 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_EMAIL_HTML_DISPLAY | 'HTML' | Edit language file english.php near line 589 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_EMAIL_TEXT_DISPLAY | 'TEXT-Only' | Edit language file english.php near line 590 in the directory includes\languages\YOUR_TEMPLATE |
| BUTTON_IMAGE_BACK | Image: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. |
| BUTTON_IMAGE_UPDATE | Image:Button update.gif | Edit button image file 'button_update.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool |
| BUTTON_UPDATE_ALT | 'Update' | Edit button names file button_names.php near line 97 in the directory includes\languages\english\YOUR_TEMPLATE. Note: This text will be visible when your hover over this button. |
| ENTRY_GENDER_ERROR | 'Please choose a salutation.' | Edit language file english.php near line 191 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_FIRST_NAME_MIN_LENGTH | 2 | Change this in ADMIN Configuration --> Minimum Values --> First Name. Minimum length of first name |
| ENTRY_FIRST_NAME_ERROR | 'Is your first name correct? Our system requires a minimum of ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters. Please try again.' | Edit language file english.php near line 194 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_LAST_NAME_MIN_LENGTH | 2 | Change this in ADMIN Configuration --> Minimum Values --> Last Name. Minimum length of last name |
| ENTRY_LAST_NAME_ERROR | 'Is your last name correct? Our system requires a minimum of ' . ENTRY_LAST_NAME_MIN_LENGTH . ' characters. Please try again.' | Edit language file english.php near line 197 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_DOB_MIN_LENGTH | 10 | Change this in ADMIN Configuration --> Minimum Values --> Date of Birth. Minimum length of date of birth |
| ENTRY_DATE_OF_BIRTH_ERROR | 'Is your birth date correct? Our system requires the date in this format: MM/DD/YYYY (eg 05/21/1970)' | Edit language file english.php near line 200 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_EMAIL_ADDRESS_MIN_LENGTH | 6 | Change this in ADMIN Configuration --> Minimum Values --> E-Mail Address. Minimum length of e-mail address |
| ENTRY_EMAIL_ADDRESS_ERROR | 'Is your email address correct? It should contain at least ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' characters. Please try again.' | Edit language file english.php near line 203 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_EMAIL_ADDRESS_CHECK_ERROR | 'Sorry, my system does not understand your email address. Please try again.' | Edit language file english.php near line 204 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_EMAIL_ADDRESS_ERROR_EXISTS | 'Our system already has a record of that email address - please try logging in with that email address. If you do not use that address any longer you can correct it in the My Account area.' | Edit language file english.php near line 205 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_TELEPHONE_MIN_LENGTH | 3 | Change this in ADMIN Configuration --> Minimum Values --> Telephone Number. Minimum length of telephone number |
| ENTRY_TELEPHONE_NUMBER_ERROR | 'Your Telephone Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters.' | Edit language file english.php near line 233 in the directory includes\languages\YOUR_TEMPLATE |
| SUCCESS_ACCOUNT_UPDATED | 'Your account has been successfully updated.' | Edit language file account_edit.php near line 28 in the directory includes\languages\english\YOUR_TEMPLATE |
| NAVBAR_TITLE_1 | 'My Account' | Edit language file account_edit.php near line 23 in the directory includes\languages\english\YOUR_TEMPLATE |
| NAVBAR_TITLE_2 | 'Edit Account' | Edit language file account_edit.php near line 24 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\account_edit\header_php.php
- includes\templates\template_default\templates\tpl_account_edit_default.php
Defines (configuration options) are defined in:
- configuration table in the database
- includes\languages\english.php
- includes\languages\english\account_edit.php
- includes\languages\english\button_names.php
Product type configuration option are ignored Shipping, payment and Order Total module configuration option are also ignored
