uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Product pics?

Knowledge Base Lobby : uStorekeeper Support Conference : General Questions
Dec-15-17 06:42 PM 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.
E-MAIL AUTHOR | TABLE OF CONTENTS

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

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:

WIDTH=150 HEIGH=200

... So the first img src line would be changed from:

$html .= "< img src="" . $product_image . "" >";

to

$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.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.