Advanced search result page
From Zen Cart(tm) Wiki
The Advanced_search_result page is explained here.
[edit]
Configuration options
This table below shows most of the configuration options including language text for the Advanced_search_result 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 | 'Advanced Search' | Edit language file advanced_search_result.php near line 27 in the directory includes\languages\english\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. |
| HEADER_SEARCH_DEFAULT_TEXT | 'Enter search keywords here' | Edit language file header.php near line 29 in the directory includes\languages\english\YOUR_TEMPLATE |
| DOB_FORMAT_STRING | 'mm/dd/yyyy' | Edit language file english.php near line 68 in the directory includes\languages\YOUR_TEMPLATE |
| ERROR_AT_LEAST_ONE_INPUT | 'At least one of the fields in the search form must be entered.' | Edit language file advanced_search_result.php near line 60 in the directory includes\languages\english\YOUR_TEMPLATE |
| ERROR_INVALID_FROM_DATE | 'Invalid From Date.' | Edit language file advanced_search_result.php near line 61 in the directory includes\languages\english\YOUR_TEMPLATE |
| ERROR_INVALID_TO_DATE | 'Invalid To Date.' | Edit language file advanced_search_result.php near line 62 in the directory includes\languages\english\YOUR_TEMPLATE |
| ERROR_TO_DATE_LESS_THAN_FROM_DATE | 'To Date must be greater than or equal to From Date.' | Edit language file advanced_search_result.php near line 63 in the directory includes\languages\english\YOUR_TEMPLATE |
| ERROR_PRICE_FROM_MUST_BE_NUM | 'Price From must be a number.' | Edit language file advanced_search_result.php near line 64 in the directory includes\languages\english\YOUR_TEMPLATE |
| ERROR_PRICE_TO_MUST_BE_NUM | 'Price To must be a number.' | Edit language file advanced_search_result.php near line 65 in the directory includes\languages\english\YOUR_TEMPLATE |
| ERROR_PRICE_TO_LESS_THAN_PRICE_FROM | 'Price To must be greater than or equal to Price From.' | Edit language file advanced_search_result.php near line 66 in the directory includes\languages\english\YOUR_TEMPLATE |
| ERROR_INVALID_KEYWORDS | 'Invalid keywords.' | Edit language file advanced_search_result.php near line 67 in the directory includes\languages\english\YOUR_TEMPLATE |
| PRODUCT_LIST_MODEL | 0 | Change this in ADMIN Configuration --> Product Listing --> Display Product Model. Do you want to display the Product Model? |
| PRODUCT_LIST_NAME | 2 | Change this in ADMIN Configuration --> Product Listing --> Display Product Name. Do you want to display the Product Name? |
| PRODUCT_LIST_MANUFACTURER | 0 | Change this in ADMIN Configuration --> Product Listing --> Display Product Manufacturer Name. Do you want to display the Product Manufacturer Name? |
| PRODUCT_LIST_PRICE | 3 | Change this in ADMIN Configuration --> Product Listing --> Display Product Price/Add to Cart. Do you want to display the Product Price/Add to Cart |
| PRODUCT_LIST_QUANTITY | 0 | Change this in ADMIN Configuration --> Product Listing --> Display Product Quantity. Do you want to display the Product Quantity? |
| PRODUCT_LIST_WEIGHT | 0 | Change this in ADMIN Configuration --> Product Listing --> Display Product Weight. Do you want to display the Product Weight? |
| PRODUCT_LIST_IMAGE | 1 | Change this in ADMIN Configuration --> Product Listing --> Display Product Image. Do you want to display the Product Image? |
| DISPLAY_PRICE_WITH_TAX | false | Change this in ADMIN Configuration --> My Store --> Display Prices with Tax. Display prices with tax included (true) or add the tax at the end (false) |
| STORE_COUNTRY | 150 | Change this in ADMIN Configuration --> My Store --> Country. The country my store is located in Note: Please remember to update the store zone. |
| STORE_ZONE | 1 | Change this in ADMIN Configuration --> My Store --> Zone. The zone my store is located in |
| PRODUCT_LISTING_DEFAULT_SORT_ORDER | Change this in ADMIN Configuration --> Product Listing --> Display Product Listing Default Sort Order. Product Listing Default sort order? NOTE: Leave Blank for Product Sort Order. Sort the Product Listing in the order you wish for the default display to start in to get the sort order setting. Example: 2a | |
| NAVBAR_TITLE_1 | 'Advanced Search' | Edit language file advanced_search_result.php near line 23 in the directory includes\languages\english\YOUR_TEMPLATE |
| NAVBAR_TITLE_2 | 'Search Results' | Edit language file advanced_search_result.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\advanced_search_result\header_php.php
- includes\templates\template_default\templates\tpl_advanced_search_result_default.php
Defines (configuration options) are defined in:
- configuration table in the database
- includes\languages\english.php
- includes\languages\english\advanced_search_result.php
- includes\languages\english\button_names.php
- includes\languages\english\header.php
Product type configuration option are ignored Shipping, payment and Order Total module configuration option are also ignored
