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
 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

4266 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-ASP 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