Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Problems and bugs
 Error with sales tax on upgrade to 6.5
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pcwerks
Starting Member

USA
2 Posts

Posted - March 27 2007 :  17:48:05  Show Profile  Visit pcwerks's Homepage  Reply with Quote
After the upgrade to version 6.5, orders generate the following error.

Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: ""]'

/shop/shoptax.asp, line 269

Can someone help me find line 269?

Edited by - pcwerks on March 27 2007 17:53:11

pcwerks
Starting Member

USA
2 Posts

Posted - March 27 2007 :  22:19:37  Show Profile  Visit pcwerks's Homepage  Reply with Quote
Found the problem:
Line 269
'VP-ASP 6.50 - remove discount from total before calculating tax
newsubtotal = newsubtotal - getSess("discount")
newsubtotal = newsubtotal - GetSess("coupondiscount")

"" value for getsess("discount") or getsess("coupondiscount") will cause error. Change code to check for numeric value...

if getsess("discount")<>"" then
if isnumeric(getsess("discount")) then
newsubtotal = newsubtotal - csng(getSess("discount"))
end if
End if
if getsess("coupondiscount")<>"" then
if isnumeric(getsess("coupondiscount")) then
newsubtotal = newsubtotal - csng(GetSess("coupondiscount"))
end if
End if
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00