Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Add-ons for VP-ASP
 USPS Realtime Desired Methods Only
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

robarsalon
Starting Member

USA
21 Posts

Posted - September 21 2006 :  14:32:45  Show Profile  Visit robarsalon's Homepage  Reply with Quote

I had to limit my shipment methods to priority and express box only,
because I know some genius would eventually choose to ship a 3 pound item in an envelope. Here is a simple tweak:

uspostalinterface.asp
change the very last lines in a Sub to:

msg=msg & "<Package ID=""" & i & """>"
msg=msg & "<Service>" & "Priority" & "</Service><ZipOrigination>" & shipfromzip & "</ZipOrigination><ZipDestination>" & shiptozip
msg=msg & "</ZipDestination><Pounds>" & weight & "</Pounds><Ounces>" & ounces & "</Ounces><Container></Container>"
msg=msg &"<Size>REGULAR</Size><Machinable>" & machine & "</Machinable></Package>"
msg=msg & "<Package ID=""" & i & """>"
msg=msg & "<Service>" & "Express" & "</Service><ZipOrigination>" & shipfromzip & "</ZipOrigination><ZipDestination>" & shiptozip
msg=msg & "</ZipDestination><Pounds>" & weight & "</Pounds><Ounces>" & ounces & "</Ounces><Container></Container>"
msg=msg &"<Size>REGULAR</Size><Machinable>" & machine & "</Machinable></Package>"

This only makes those two available. You can change it to anything supported by USPS in "Services, containers and size".

robarsalon
Starting Member

USA
21 Posts

Posted - September 21 2006 :  16:03:00  Show Profile  Visit robarsalon's Homepage  Reply with Quote
I still can't figure out how to do the same thing for international
Go to Top of Page

support
Administrator

4679 Posts

Posted - September 22 2006 :  03:57:48  Show Profile  Visit support's Homepage  Reply with Quote
Hi,

Line 60 of uspostalconfig.asp will allow you to exclude certain service types from your international shipping methods:
const ExcludeServiceTypes="Envelope,Box"

Please note that this only works for international shipping methods.

Radek Rekas
VP-ASP Support
Go to Top of Page

robarsalon
Starting Member

USA
21 Posts

Posted - September 22 2006 :  10:24:16  Show Profile  Visit robarsalon's Homepage  Reply with Quote
I have this now and it doesn't work.
I only want Priority Box available.

' Language statements
const LanguspsSelect="Select Shipping Method" 
const LangUpsWeight="Total Weight is "
const LangZeroweight= "Packages have zero weight. USPS cannot datermine shipping price"
const DomesticServiceTypes="Express,Priority"
const IntServiceTypes="Priority"
const ExcludeServiceTypes="Envelope"
' Used for information mesages
const xWeightUnits="lbs"
%>

I have a feeling something should be mentioned in uspostalinterface.asp

By the way, neither "intservicetypes" nor "ExcludeServiceTypes" are referred to anywhere in other scripts - how is it being used?

Edited by - robarsalon on September 22 2006 10:36:30
Go to Top of Page

riprod
VP-CART New User

USA
85 Posts

Posted - July 22 2007 :  09:23:31  Show Profile  Reply with Quote
any luck with International ? I'm not having any luck

CHris
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