Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Displaying thumbnails (little easier to manage?)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pymalion
VP-CART New User

USA
80 Posts

Posted - March 25 2002 :  11:37:20  Show Profile  Visit pymalion's Homepage  Reply with Quote
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]
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00