Author Frode on 09-08-2002 at 05:32 (EST)
|My product picture are so very big. is it a way to get them smaller whitout changing the pictures on the server.
|Messages In This Discussion|
| 1. RE: Product pics?|
Author Bill Weiner on 09-09-2002 at 07:05 (EST)
|Here are some instructions on how to modify the subroutine that generates the product HTML.... such that WIDTH and HEIGHT settings are included when adding the image to the page. The IMG WIDTH and HEIGHT settings will automatically handle resizing the image on the page.|
STEP 1: Make a backup of your current ustorekeeper-lib.pl script... just in case.
STEP 2: Open your ustorekeeper-lib.pl script with any text editor such as WordPad.
STEP 3: Do a search on the following line:
(This will get you to the start of the subroutine that generates the product HTML.)
STEP 4: Within that subroutine, you will see multiple places where the "IMG SRC..." HTML is being generated. Do a search on:
... to locate them.... and to those lines, add a WIDTH and HEIGHT just before the closing > sign, such as:
... So the first img src line would be changed from:
$html .= "< img src="" . $product_image . "" >";
$html .= "< img src="" . $product_image . "" WIDTH=150 HEIGHT=200 >";
STEP 5: After adding the WIDTH and HEIGHT to all "img src" statements in that subroutine, save the file... as TEXT if your editor asks... and try it out.
NOTE: You will need to press the "Regenerate" button on the uStorekeeper Control Panel after uploading the changes.... this will cause all of your HTML pages to be regenerated with the changes that you made.