Author |
Topic |
|
[email protected]
VP-CART New User
149 Posts |
Posted - October 14 2010 : 17:31:05
|
Hi, I am trying to upgrade our vpasp. Everything seems functional until I get up to checkout....I receive this error
Microsoft VBScript runtime error '800a000d' Type mismatch /shopping71/shopshippingcalc.asp, line 199
I examined that section of code in the file and discovered that if I remove the following section if TempOption<>PrevMethod then if GetConfig("xdisplayprices") = "No" then TempPrice = "" end if if TempPrice<>"" then if TempPrice<>0 then if getconfig("xshippingbycountry") = "No" then TempDisplay = TempOption & " [" & ShopFormatCurrency(TempPrice, GetConfig("xdecimalpoint")) & "]" TempValue = TempOption & " [" & formatnumber(TempPrice, GetConfig("xdecimalpoint")) & "]" else TempDisplay= TempOption TempValue= TempOption end if if getconfig("Xshippingbystate") = "No" then TempDisplay = TempOption & " [" & ShopFormatCurrency(TempPrice, GetConfig("xdecimalpoint")) & "]" TempValue = TempOption & " [" & formatnumber(TempPrice, GetConfig("xdecimalpoint")) & "]" else TempDisplay= TempOption TempValue= TempOption end if end if end if
then everything loads up properly (but once you click 'sign up, you cannot choose a shipping method and thusly cannot complete the form)
So...something relating to the above code is what is causing my error.
If it is helpful to know, we are going from vpasp 5.5 driven by ms access over to 7 sp1 driven by mysql.
Any thoughts as to what is causing the type mismatch error?
Thanks |
|
[email protected]
VP-CART New User
149 Posts |
Posted - October 15 2010 : 11:00:58
|
New info.
For some reason, if I delete all the shipping methods from the database, then the error goes away, however, the moment a shipping method exists in the db....the error will return.
If anyone can help, please, it would be appreciated
Thank you |
|
|
[email protected]
VP-CART New User
149 Posts |
Posted - October 15 2010 : 11:34:04
|
Solved.
The mysql data types in the shipmethods table that were listed as decimal needed to be changed to double. |
|
|
|
Topic |
|