Previous Topic

Next Topic

Book Contents

Building a Product Page with an Include

Procedure for using Includes within a Product Page:

Note: If you have FrontPage, you may have to put quotes around the entire file name in order for FrontPage to allow you to save the file as .php For example: "myProductPage.php".

Warning! If you are using FrontPage, you MUST rename your file to use a php. extension every time you edit a Product Page locally with an Include and publish it to the web server.

If you want to use an Include when building a Product Page, you must use the following procedure:

  1. Create and save your Product Page with a .php extension instead of a .htm or .html extension.
  2. Now, publish it to the web server. You can now view your include with a browser.

Creating the Include Page for Your Options

Options -SalesCart Pro 3.0
For example:

<%

'edit this file for the options you want to display

'There is no longer a maximum number of options but all must be named option

'you can delete the options you don't need

'you can specify a price increase for option but separating the option value with the delimiter (default=$) specified in the wizard

%>

 

<p><strong>Size:</strong>&nbsp; <select name="Option1" size="1">

<option value="5">5</option>

<option value="5.5">5.5</option>

<option value="6">6</option>

<option value="6.5">6.5</option>

<option value="7">7</option>

<option value="7.5">7.5</option>

<option value="8">8</option>

<option value="8.5">8.5</option>

<option value="9">9</option>

<option value="9.5">9.5</option>

<option value="10">10</option>

<option value="10.5">10.5</option>

<option value="11">11</option>

</select><br>

<strong>Color:</strong>&nbsp; <select name="Option2" size="1">

<option value="Red">Red</option>

<option value="Blue">Blue</option>

<option value="Green">Green</option>

<option value="Black">Black</option>

<option value="Tan">Tan</option>

</select><br>

<strong>Type:</strong>&nbsp; <select name="Option3" size="1">

<option value="Cotton">Cotton</option>

<option value="Wool">Wool</option>

<option value="Polyester">Polyester</option>

</select><br>

<strong>Size Range:</strong>&nbsp; <select name="Option4" size="1">

<option value="Adult">Adult</option>

<option value="Child">Child</option>

</select> Adult Size<br>

<strong>Wash Instructions:</strong>&nbsp; <select name="Option5" size="1">

<option value="No-Wash">No-Wash</option>

<option value="Pre-Wash">Pre-Wash</option>

<option value="Bleach">Bleach</option>

</select>

 

<br>

<font color="#808080">Add as many options and price adjustments as you like<br>

</font>

 

  1. The first step to using the Include Option Page is to create a simple webpage that shows the option fields that you wish to use. An example Include Option Page is included for your use called include.htm. We suggest that you use your design tool to modify the include.htm for the different product options you wish.
  2. The file named include.htm found in the mall folder, is an example of an Include Option Page that has already been reduced to the bare essentials. You may edit this page in Notepad and print it out to see what it looks like. It is shown above.
  3. As you can see by this example, we found it difficult to think up options after three. If you wish to remove the last two options, you can simply delete Option4 and Option5 from the current include.htm file. It is important than you list Option1 through Option5 in order. Also, the Option name is case-sensitive with the first letter capitalized.
  4. You can then customize the other options for your particular needs.

See Also

Customizing Product Pages

Creating New Product Pages