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
 Customization
 Currecy converter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

alfabravo
VP-ASP New User

74 Posts

Posted - June 22 2009 :  04:50:15  Show Profile  Reply with Quote
I have a problem with currency converter
When the cprice value gets sent to www.x-rates.com, the comma delimiter gets deleted (39,00 becomes 3900); I tried the following in shopproductsubs.asp:


If Getconfig("xcurrencylink")="Yes" Then
dim url, cprice
cprice=shopformatnumber(total,getconfig("xdecimalpoint"))
cprice=replace(cprice,",",".")
url="http://www.x-rates.com/cgi-bin/cgicalc.cgi?value=" & cprice & "&base=" & Getconfig("Xcurrencybase")
Response.write "<br /><a href=""" & url & """ target=""_blank"">" & "Convert " & Getconfig("xcurrencybase") & " " & cprice & "</a>


But it doesn't work
Any help is very much appreciated
Thanks
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000