The store application allows you to customize what appears at the top and bottom of each screen of the application. The HTML displayed is stored in IFS text files, and can be modified to customize how the application looks. There are two files for each screen, one containing the top and the other the bottom of the HTML. For instruction on how to edit these files see Creating Content in the Commerce Server/400 documentation.
The HTML headers contain whatever information you want to include at the top of the application screen. You can include a company logo, store information, instructions or other information that will make your store unique.
The headers must include the following tags:
<HTML><HEAD> <TITLE> (The title goes here) </TITLE> </HEAD> <BODY (Optional BODY Attributes)>
The following sample header sets the title displayed on the title bar, sets the background color to gray, and displays a title in the HTML at the top of the form:
<HTML><HEAD> <TITLE>Order Form</TITLE> </HEAD> <BODY BGCOLOR=#C0C0C0> <CENTER><H1>Order Form</H1></CENTER> <HR WIDTH="50%">
If no header file is found then this default header is used:
<HTML><HEAD> </HEAD> <BODY>
The HTML footers contain the information you want to include at the bottom of the application screen. You can include links to other locations on your site and e-mail addresses, or other information that will help the user use your store efficiently.
The footer files must include the following tags:
The following sample footer displays a link to the home page and to the webmaster at the bottom of the form:
<P><HR WIDTH="50%"><P><CENTER> <A HREF="/index.html">Home</A> | <A HREF="mailto:firstname.lastname@example.org">WebMaster</A> </CENTER> </BODY></HTML>
If no footer file is found then this default header is used:
The HTML files need to be located in the IFS File Path (GIFSPT) configured in the in the global configuration physical file (MGLOBALP).
This table identifies which HTML text files belong with each screen of the application.
Form Name Header File Footer File Order Form MRCHOFHD.TXT MRCHOFFT.TXT
Cash Register MRCHCRHD.TXT MRCHCRFT.TXT
Check Out MRCHCIHD.TXT MRCHCIFT.TXT
Thank You MRCHTYHD.TXT MRCHTYFT.TXT