Contact us page
From Zen Cart(tm) Wiki
The Contact_us page is explained here.
Configuration options
This table below shows most of the configuration options including language text for the Contact_us 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 |
|---|---|---|
| CONTACT_US_STORE_NAME_ADDRESS | 1 | Change this in ADMIN Configuration --> E-Mail Options --> Contact Us - Show Store Name and Address. Include Store Name and Address 0= off 1= on |
| STORE_NAME_ADDRESS | Test 300
| Change this in ADMIN Configuration --> My Store --> Store Address and Phone. This is the Store Name, Address and Phone used on printable documents and displayed online |
| TEXT_SUCCESS | 'Your message has been successfully sent.' | Edit language file contact_us.php near line 12 in the directory includes\languages\english\YOUR_TEMPLATE |
| BUTTON_IMAGE_BACK | File: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. |
| DEFINE_CONTACT_US_STATUS | 1 | Change this in ADMIN Configuration --> Define Page Status --> Define Contact Us Status. Enable the Defined Contact Us Link/Text? 0= Link ON, Define Text OFF 1= Link ON, Define Text ON 2= Link OFF, Define Text ON 3= Link OFF, Define Text OFF |
| HEADING_TITLE | 'Contact Us' | Edit language file contact_us.php near line 10 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 |
| CONTACT_US_LIST | Change this in ADMIN Configuration --> E-Mail Options --> Set "Contact Us" Email Dropdown List. On the "Contact Us" Page, set the list of email addresses , in this format: Name 1 <email@address1>, Name 2 <email@address2> | |
| SEND_TO_TEXT | 'Send Email To:' | Edit language file contact_us.php near line 19 in the directory includes\languages\english\YOUR_TEMPLATE |
| ENTRY_REQUIRED_SYMBOL | '*' | Edit language file english.php near line 259 in the directory includes\languages\YOUR_TEMPLATE |
| ENTRY_NAME | 'Full Name:' | Edit language file contact_us.php near line 15 in the directory includes\languages\english\YOUR_TEMPLATE |
| ENTRY_EMAIL | 'Email Address:' | Edit language file contact_us.php near line 16 in the directory includes\languages\english\YOUR_TEMPLATE |
| ENTRY_ENQUIRY | 'Message:' | Edit language file contact_us.php near line 17 in the directory includes\languages\english\YOUR_TEMPLATE |
| BUTTON_IMAGE_SEND | File:Button send.gif | Edit button image file 'button_send.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool |
| BUTTON_SEND_ALT | 'Send Now' | Edit button names file button_names.php near line 87 in the directory includes\languages\english\YOUR_TEMPLATE. Note: This text will be visible when your hover over this button. |
| EMAIL_FROM | test@test.nl | Change this in ADMIN Configuration --> E-Mail Options --> Email Address (sent FROM). Address from which email messages will be "sent" by default. Can be over-ridden at compose-time in admin modules. |
| STORE_NAME | test300 | Change this in ADMIN Configuration --> My Store --> Store Name. The name of my store |
| OFFICE_FROM | 'From:' | Edit language file email_extras.php near line 11 in the directory includes\languages\english\YOUR_TEMPLATE |
| OFFICE_EMAIL | 'Email:' | Edit language file email_extras.php near line 12 in the directory includes\languages\english\YOUR_TEMPLATE |
| EMAIL_SUBJECT | 'Message from ' . STORE_NAME | Edit language file contact_us.php near line 13 in the directory includes\languages\english\YOUR_TEMPLATE |
| ENTRY_EMAIL_NAME_CHECK_ERROR | 'Sorry, is your name correct? Our system requires a minimum of ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters. Please try again.' | Edit language file contact_us.php near line 20 in the directory includes\languages\english\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_CONTENT_CHECK_ERROR | 'Did you forget your message? We would like to hear from you. You can type your comments in the text area below.' | Edit language file contact_us.php near line 21 in the directory includes\languages\english\YOUR_TEMPLATE |
| FILENAME_DEFINE_CONTACT_US | Contact Us Sample Text ... This section of text is from the Define Pages Editor located under Tools in the Admin. To remove this section of the text, delete it from the Define Pages Editor. | Edit define page file define_contact_us (Tools --> Define Pages Editor) |
| NAVBAR_TITLE | 'Contact Us' | Edit language file contact_us.php near line 11 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\contact_us\header_php.php
- includes\templates\template_default\templates\tpl_contact_us_default.php
Defines (configuration options) are defined in:
- configuration table in the database
- includes\filenames.php
- includes\languages\english.php
- includes\languages\english\button_names.php
- includes\languages\english\contact_us.php
- includes\languages\english\email_extras.php
Product type configuration option are ignored Shipping, payment and Order Total module configuration option are also ignored
