VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

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

VP-ASP New User

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

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