uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Tech Support
       Support Policy
       Knowledge Base
       Reference Sites
       Software Piracy
       Legal Notices
       Privacy Policy
       Reseller Info
       Contact Us
       Site Map
Product pics?

Knowledge Base Lobby : uStorekeeper Support Conference : General Questions
Jul-21-18 11:26 AM EST
Original Message
Product pics?
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.

Table Of Contents
  RE: Product pics? Bill Weiner, 2002-09-09 07:05:57 (1)

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 script... just in case.

STEP 2: Open your script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

sub get_product_html

(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:

img src

... 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.

© 2003 Microburst Technologies, Inc.