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
 VP-ASP 7.0 Questions
 shopshippingcalc.asp problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

[email protected]
VP-ASP New User

149 Posts

Posted - October 14 2010 :  17:31:05  Show Profile  Reply with Quote
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-ASP New User

149 Posts

Posted - October 15 2010 :  11:00:58  Show Profile  Reply with Quote
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
Go to Top of Page

[email protected]
VP-ASP New User

149 Posts

Posted - October 15 2010 :  11:34:04  Show Profile  Reply with Quote
Solved.

The mysql data types in the shipmethods table that were listed as decimal needed to be changed to double.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000