web_store.setup.db
==================
Below the line: $sc_order_script_url = ...
add:
$sc_product_image_url = "/productimages/";
To your database definition, add another field for imagetype, eg:
...
$db{"image"} = 4;
$db{"imagetype"} = 5;
$db{"description"} = 6;
...
After the line: $sc_db_index_of_price = $db{"price"};
add:
$sc_db_index_of_image = $db{"image"};
$sc_db_index_of_imagetype = $db{"imagetype"};
data.file
=========
Add another field to your database file, with one of the following options
for each
product:
image/thumb/text/(blank)
web_store.cgi
=============
Seek the section:
if ($display_index == $sc_db_index_of_price)
{
$temp_fields[$sc_db_index_of_price] =
&display_price($temp_fields[$sc_db_index_of_price]);
}
Add immediately afterwards:
if ($display_index == $sc_db_index_of_image)
{
if ($temp_fields[$sc_db_index_of_imagetype] eq "image")
{
$temp_fields[$sc_db_index_of_image]="
";
}
elsif ($temp_fields[$sc_db_index_of_imagetype] eq "thumb")
{
$temp_fields[$sc_db_index_of_image]="
";
}
elsif ($temp_fields[$sc_db_index_of_imagetype] eq "text")
{
$temp_fields[$sc_db_index_of_image]=$temp_fields[$sc_db_index_of_image];
}
else
{
$temp_fields[$sc_db_index_of_image]="";
}
}
And that's it.