pymalion
VP-CART New User
USA
80 Posts |
Posted - March 25 2002 : 11:37:20
|
Here's a code modification for shopproductformat.asp. I did this so, I could just upload the "Ccode" named picture, as I created them. What this will do, is check to see if the jpg exists in the folder you designated. The jpg, gif or whatever, is named as the product's ccode. So, a product picture would be copenhagen101.jpg.
'*********** Format Image and Extended Description Sub FormatImage '******************************************************* ' if product has an image, it is formatted here '****************************************************** Dim u_file Dim fso Dim ccode
u_file="/store/graphics/00000001/" & objrs("ccode")& ".jpg" set fso = createobject("scripting.filesystemobject")
if fso.FileExists (server.mappath(u_file)) then Response.Write ""
else Response.Write "" end if end sub
Stephen Page [email protected] |
|