Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Problems and bugs
 UPS rates failed with the following message
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bretneal
Starting Member

USA
46 Posts

Posted - December 24 2003 :  13:54:05  Show Profile  Visit bretneal's Homepage  Reply with Quote
I figured it out!!!!! UPS code for United States of America is US NOT USA make sure you have it correct..... If you look at UPS tables the code is just US. I changed my country from USA to US it worked fine, changed it back, and it failed again. I think ASP needs to correct this, because many people will want to put in USA, and it errors the origin.

fzlah
Starting Member

1 Posts

Posted - February 03 2004 :  10:56:44  Show Profile  Reply with Quote
Hey where do i reset my country to US instead of USA? Is this a VPASP config option? or is it set in UPS somewhere? I don't seem to see it in the ups add on files, and have not been sucessful at finding a field that contains that value eitehr . Help please!!!

Phil
Go to Top of Page

jonmadrid
VP-CART New User

USA
192 Posts

Posted - February 03 2004 :  11:36:41  Show Profile  Visit jonmadrid's Homepage  Reply with Quote
Hi Phil,

In upsrealtime.asp, you can add a little bit of code that will basically say 'If the customer enters USA, turn it into US'. I did that with a cart I manage that uses the UPS realtime and it solved the problem.

In upsrealtime.asp, around line 260, replace this line:

*******
DefaultDestcountry=getsess("Shipcountry")
*******

with this:

*******
'Convert USA to US for UPS conformity:
If uCase(getsess("Shipcountry")) = "USA" Then
DefaultDestcountry = "US"
Else
DefaultDestcountry=getsess("Shipcountry")
End If
*******

That's it. Save it. Upload it. And you're done.

Hope that helps.

All the best,

Jon Madrid
--------------------
Madrid Communications
Web Design, Development, and Hosting
www.madridcom.com
Go to Top of Page

ah
Starting Member

12 Posts

Posted - March 18 2004 :  18:12:33  Show Profile  Reply with Quote
Hi Jon,

Thanks for the tip...but it didn't work for me. eeekkk..
here is the code i had after i saw your msg for Phil.

'Convert USA to US for UPS conformity:
If uCase(getsess("Shipcountry")) = "USA" Then
DefaultDestcountry = "US"
Else
DefaultDestcountry=getsess("Shipcountry")
End If
if defaultDestcountry=""then
defaultdestcountry=Getsess("Country")
end if
if defaultdestcountry="" then
defaultdestcountry="US"
else
ConvertCountries defaultDestCountry
end if



Did i do anything wrong? I'm no programmer, btw.

thanks

ali


Go to Top of Page

support
Administrator

4679 Posts

Posted - March 18 2004 :  19:30:04  Show Profile  Visit support's Homepage  Reply with Quote
To use most real time interfaces, please set

xincludecountries=Yes
in The shop Configuration. This generates proper abbreviations in a drop down list.

There is no reason to change any code and i strongly recommend against it.


VP-ASP Support

Go to Top of Page

ah
Starting Member

12 Posts

Posted - March 19 2004 :  11:46:31  Show Profile  Reply with Quote
Hi,

Is there anyway to not have the country fild shown on the customer billing/shipping page? We are a US based company and our target customers are those who live in the states. We want to have a link somewhere on the page to direct international customer to our contact page for further assistance. But I am not sure how/where to add the code to that page. Plzzzzz adive. thanks!!


ali
Go to Top of Page

support
Administrator

4679 Posts

Posted - March 19 2004 :  12:48:03  Show Profile  Visit support's Homepage  Reply with Quote
In the Shop Configuration set

xpromptforcountry=No

In your shoppage_trailer.htm (or header) add a link for international customers to click on

VP-ASP Support

Go to Top of Page

ah
Starting Member

12 Posts

Posted - March 19 2004 :  14:12:14  Show Profile  Reply with Quote
just did that. It won't show the country field now. Thanks! ;-)


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