Address book page

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

The Address_book page is explained here.



Configuration options

This table below shows most of the configuration options including language text for the Address_book 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 Personal Address Book' Edit language file address_book.php near line 26 in the directory includes\languages\english\YOUR_TEMPLATE
PRIMARY_ADDRESS_TITLE 'Primary Address' Edit language file address_book.php near line 28 in the directory includes\languages\english\YOUR_TEMPLATE
PRIMARY_ADDRESS_DESCRIPTION 'This address is used as the pre-selected shipping and billing address for orders placed on this store.

This address is also used as the base for product and service tax calculations.'
Edit language file address_book.php near line 29 in the directory includes\languages\english\YOUR_TEMPLATE
ADDRESS_BOOK_TITLE 'Address Book Entries' Edit language file address_book.php near line 31 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_MAXIMUM_ENTRIES 'NOTE: A maximum of %s address book entries allowed.' Edit language file address_book.php near line 35 in the directory includes\languages\english\YOUR_TEMPLATE
MAX_ADDRESS_BOOK_ENTRIES 5 Change this in ADMIN
Configuration --> Maximum Values --> Address Book Entries.

Maximum address book entries a customer is allowed to have
PRIMARY_ADDRESS '(primary address)' Edit language file address_book.php near line 33 in the directory includes\languages\english\YOUR_TEMPLATE
BUTTON_IMAGE_EDIT_SMALL File:Small edit.gif Edit button image file 'small_edit.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_EDIT_SMALL_ALT 'Edit' Edit button names file button_names.php near line 78 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
BUTTON_IMAGE_DELETE File:Button delete.gif Edit button image file 'button_delete.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_DELETE_ALT 'Delete' Edit button names file button_names.php near line 76 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
BUTTON_IMAGE_ADD_ADDRESS File:Button add address.gif Edit button image file 'button_add_address.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_ADD_ADDRESS_ALT 'Add Address' Edit button names file button_names.php near line 65 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
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 address_book.php near line 23 in the directory includes\languages\english\YOUR_TEMPLATE
NAVBAR_TITLE_2 'Address Book' Edit language file address_book.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\address_book\header_php.php
  • includes\templates\template_default\templates\tpl_address_book_default.php

Defines (configuration options) are defined in:

  • configuration table in the database
  • includes\languages\english\address_book.php
  • includes\languages\english\button_names.php

Product type configuration option are ignored Shipping, payment and Order Total module configuration option are also ignored