Account history page
From Zen Cart(tm) Wiki
The Account_history page is explained here.
Configuration options
This table below shows most of the configuration options including language text for the Account_history 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 Order History' | Edit language file account_history.php near line 13 in the directory includes\languages\english\YOUR_TEMPLATE |
| TEXT_ORDER_NUMBER | 'Order Number: ' | Edit language file account_history.php near line 15 in the directory includes\languages\english\YOUR_TEMPLATE |
| TEXT_ORDER_STATUS | 'Order Status: ' | Edit language file account_history.php near line 16 in the directory includes\languages\english\YOUR_TEMPLATE |
| TEXT_ORDER_DATE | 'Order Date: ' | Edit language file account_history.php near line 17 in the directory includes\languages\english\YOUR_TEMPLATE |
| TEXT_ORDER_PRODUCTS | 'Products: ' | Edit language file account_history.php near line 20 in the directory includes\languages\english\YOUR_TEMPLATE |
| TEXT_ORDER_COST | 'Order Cost: ' | Edit language file account_history.php near line 21 in the directory includes\languages\english\YOUR_TEMPLATE |
| BUTTON_IMAGE_VIEW_SMALL | File:Small view.gif | Edit button image file 'small_view.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool |
| BUTTON_VIEW_SMALL_ALT | 'View' | Edit button names file button_names.php near line 98 in the directory includes\languages\english\YOUR_TEMPLATE. Note: This text will be visible when your hover over this button. |
| TEXT_RESULT_PAGE | Edit language file english.php near line 262 in the directory includes\languages\YOUR_TEMPLATE | |
| MAX_DISPLAY_PAGE_LINKS | 5 | Change this in ADMIN Configuration --> Maximum Values --> Prev/Next Navigation Page Links. Number of 'number' links use for page-sets |
| TEXT_DISPLAY_NUMBER_OF_ORDERS | 'Displaying %d to %d (of %d orders)' | Edit language file english.php near line 264 in the directory includes\languages\YOUR_TEMPLATE |
| TEXT_NO_PURCHASES | 'You have not yet made any purchases.' | Edit language file account_history.php near line 24 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. |
| NAVBAR_TITLE_1 | 'My Account' | Edit language file account_history.php near line 10 in the directory includes\languages\english\YOUR_TEMPLATE |
| NAVBAR_TITLE_2 | 'History' | Edit language file account_history.php near line 11 in the directory includes\languages\english\YOUR_TEMPLATE |
| MAX_DISPLAY_ORDER_HISTORY | 10 | Change this in ADMIN Configuration --> Maximum Values --> Customer Order History List Per Page. Number of orders to display in the order history list in 'My Account' |
| TEXT_ORDER_SHIPPED_TO | 'Shipped To: ' | Edit language file account_history.php near line 18 in the directory includes\languages\english\YOUR_TEMPLATE |
| TEXT_ORDER_BILLED_TO | 'Billed To: ' | Edit language file account_history.php near line 19 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_history\header_php.php
- includes\templates\template_default\templates\tpl_account_history_default.php
Defines (configuration options) are defined in:
- configuration table in the database
- includes\languages\english.php
- includes\languages\english\account_history.php
- includes\languages\english\button_names.php
Product type configuration option are ignored Shipping, payment and Order Total module configuration option are also ignored