Where Text Strings Are Stored
Where does the text “Product of the Month!” that appears on the home page (home.asp) come from? And how can you change it? Most of the text messages, links, form field descriptions and other text strings that you see in your storefront are not hard-coded in the ASP source code of the shopping cart pages, but rather “fed” to these pages by a few, external files.
This allows you to easily edit them without touching the ASP source code. The files are all located in the includes folder:
- languages.asp contains most of the text strings
- languages_ship.asp contains text strings that are related to the shipping component
- bto_language.asp contains text strings that are specific to the Configurator and Configurator Pluls
Download them from your Web server to your desktop to edit them. You can do so using Windows Notepad or your favorite HTML editor. Before you begin, make sure to save a backup copy of the existing file(s) so that you can go back to it if you need to.
How to Edit These Files
- Download the file for your Web Server using an FTP program. (FileZilla is a popular utility)
- Make a back-up copy of the file so that you can quickly restore the original version, if needed.
- Open the file in Notepad or your favorite HTML editor
- Search for the text you wish to change, checking to see if there is more than one copy of the same text.
- Save the edited file and upload it back to the Web Server via FTP.
Do not use double quotes in your text strings: they will break the file as double quotes are used to enclose the text strings themselves. Instead of double quotes, use single quotes or the HTML equivalent for the double quote, which is "
The best way to style text strings in case you need to change the way specific text strings look, is to use cascading style sheets.