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
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 General help me questions
 That old runtime error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

rgoetz
Starting Member

USA
29 Posts

Posted - July 26 2004 :  07:45:10  Show Profile  Visit rgoetz's Homepage
Hi, I have that runtime error again. I am just new to this type of customization so I should be used to it by now!

Here is my tmp_product.htm code:
<table border="0" cellpadding="0" cellspacing="0" width="540">
<tr>
<td width="51" valign="middle">[formatimage sub]<br></td>
<td width="329" valign="top">[cname]<br>
[cdescription]<br>
[formatproductoptions sub][formatoverallrating sub]<br>
[formathyperlinks sub]<br></td>
<td width="50">Qty:[formatquantity sub]<br></td>
<td width="52"><font color="#FF9900">[formatcurrency cprice]</font></td>
<td width="46" bgcolor="#FFFFCC">[formatbutton sub]</td>
</tr>
</table>

This is the error message:
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'Handle_Product'

/vpasp/shopfileio.asp, line 435

This also occurs in the tmp_productformat template as well.
Not sure what Handle_Product is about.

Rhonda Goetz, CIW-CI
http://esitecreations.com

Edited by - rgoetz on July 26 2004 07:47:07

Dulrr
VP-ASP New User

57 Posts

Posted - July 27 2004 :  11:22:31  Show Profile  Visit Dulrr's Homepage
According to the error report, there's a problem being encountered in the shopfileio.asp file because it's trying to use a variable or sub (Handle_Product) which isn't being properly defined before it's being used.

I've run a quick search for the variable in our own cart, and found that it is a sub that is defined initially in two places - shopdisplaycategories.asp and shopproductformat_template.asp. Your template probably skips over the definition somewhere, either because it was deleted or the required files are not included with the file. Adding the sub code back in should solve the problem.

The definition of the sub in shopdisplaycategories looks like this:
Sub Handle_Product (isub)
select case isub
Case "FORMATIMAGE"
If strCatImage<> "" then
AddImage lngcatid, strcategory
end if
Case "FORMATHYPERLINKS"
GenerateCatLink lngcatid,strcategory

case else
debugwrite "Unknown sub"
end select
end sub


The sub in shopproductformat_template.asp looks like this:
Sub Handle_Product (isub)
select case isub
Case "FORMATIMAGE"
Formatimage
Case "FORMATBUTTON"
If ProductSelect="Yes" then
AddSelect
else
Formatbutton
end if
Case "FORMATHYPERLINKS"
Formathyperlinks
Case "FORMATOVERALLRATING"
Formatoverallrating
Case "FORMATPRODUCTOPTIONS"
Formatproductoptions
Case "FORMATQUANTITY"
Formatquantity
case else
debugwrite "Unknown sub"
end select
end sub


Best of luck - hope this helps!

~D
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000