close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

international shipping quotes

Thread began 2/10/2013 8:46 am by r.vann438072 | Last modified 2/13/2013 7:10 am by Jason Byrnes | 2644 views | 6 replies |

r.vann438072

international shipping quotes

My international shipping quotes are off by a lot, more thatn half. the domestic are right i am using sups

code is
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
//WA eCart (Copyright 2007, WebAssist)
//WA eCart USPS Shipping - USPS
$Shipping_SuccessURL = "";
$Shipping_FailureURL = "shipping_failure.php";
$Shipping_Packaging = 0;
$Shipping_PackageArray = array();
$Shipping_PackageIndex = 0;
$Shipping_Counter = 0;
$Shipping_Parameters = array();
$Shipping_Parameters["ShiptoZip"] = "".((isset($_POST["shipping_postcode"]))?$_POST["shipping_postcode"]:"") ."";
$Shipping_Parameters["ShiptoCountry"] = "".((isset($_POST["shipping_country"]))?$_POST["shipping_country"]:"") ."";
$Shipping_Parameters["UserID"] = "111SOAPB7599";
$Shipping_Parameters["USPSServer"] = "http://production.shippingapis.com/shippingapi.dll";
$Shipping_Parameters["CarrierCode"] = "FIRST CLASS";
$Shipping_Parameters["DefaultIntl"] = "Express Mail International";
$Shipping_Parameters["ShipperZip"] = "20170";
while (($Shipping_Packaging == 1 && !$Soapbox_Cart->EOF()) || ($Shipping_Packaging == 0 && $Shipping_Counter == 0)) {
if (WA_eCart_USPS_IsTrueValue("true")) {
$Shipping_PackageArray[] = array();
$Shipping_PackageIndex = sizeof($Shipping_PackageArray)-1;
$Shipping_PackageArray[$Shipping_PackageIndex]["eCart_Quantity"] = (($Shipping_Packaging == 1)?$Soapbox_Cart->DisplayInfo("Quantity"):1);
$Shipping_PackageArray[$Shipping_PackageIndex]["IsPackage"] = "true";
$Shipping_PackageArray[$Shipping_PackageIndex]["Quantity"] = "1";
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "oz";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".WA_eCart_FormatNumber($Soapbox_Cart->TotalColumn('TotalWeight'), true, 1) ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageType"] = "YOURPACKAGING";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageSize"] = "REGULAR";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageMachinable"] = "true";
$Shipping_PackageArray[$Shipping_PackageIndex]["IPackageType"] = "Package";
//Special Services
}
$Shipping_Counter++;
if ($Shipping_Packaging == 1) $Soapbox_Cart->MoveNext();
}
if ($Shipping_Packaging == 1) $Soapbox_Cart->MoveFirst();
$Shipping_Result = WA_eCart_USPS_GetRateQuote($Soapbox_Cart, $Shipping_Parameters, $Shipping_PackageArray);
if ($Shipping_Result && $Shipping_SuccessURL != "")
$Soapbox_Cart->redirStr = $Shipping_SuccessURL;
else if (!$Shipping_Result && $Shipping_FailureURL != "") {
Header("Location: " . $Shipping_FailureURL); exit;

Sign in to reply to this post

Jason ByrnesWebAssist

can you provide some more details please.

what is the quote being returned?

What do you believe the correct quote should be?

What are the package dimensions?

to help troubleshot, open the confirm page, then go to the Bindings panel na expand the USPS Binding group, add the Full request and Full Response bindings to the body of the page and post back the request and response after testing.

Sign in to reply to this post

r.vann438072

full response

we shipped something to canada and the quote was $12.00 and it actually cost 37
when i test something to go to niagra falls ontari, the quote iget is 5.35 and it should be 9 at first class international package, i don't have specific size box, usually they are 6x6x6
i think is viewing it as a letter not a box thus the cheap price how do i change the package type?

here is the response

API=IntlRate&XML=012PackageCanada Areas Served: AllPlease reference Express Mail for Areas Served.012PackageCANADA58.951 - 3 business daysGlobal Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; (GXG)**Max. length 46", width 35", height 46" and max. length plus girth combined 108"70012PackageCANADA58.951 - 3 business daysGlobal Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; Non-Document RectangularMax. length 46", width 35", height 46" and max. length plus girth combined 108"70012PackageCANADA58.951 - 3 business daysGlobal Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; Non-Document Non-RectangularMax. length 46", width 35", height 46" and max. length plus girth combined 108"70012PackageCANADA58.951 - 3 business daysUSPS GXG&lt;sup&gt;&amp;trade;&lt;/sup&gt; Envelopes**USPS-Produced regular size cardboard envelope (12-1/2" x 9-1/2"), the legal-sized cardboard envelope (15" x 9-1/2") and the GXG Tyvek envelope (15-1/2" x 12-1/2")70012PackageCANADA37.353 - 5 business daysExpress Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; InternationalMax. length 42", max. length plus girth combined 79"66012PackageCANADA64.953 - 5 business daysExpress Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate BoxesUSPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.20012PackageCANADA34.953 - 5 business daysExpress Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate EnvelopeUSPS-Produced Envelope: 12-1/2" x 9-1/2"<br>Maximum weight 4 pounds.4012PackageCANADA34.953 - 5 business daysExpress Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Legal Flat Rate EnvelopeUSPS-Produced Envelope: 15" x 9-1/2"<br>Maximum weight 4 pounds.4012PackageCANADA34.953 - 5 business daysExpress Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Padded Flat Rate EnvelopeUSPS-Produced Envelope: 12-1/2" x 9-1/2"<br>Maximum weight 4 pounds.4012PackageCANADA28.256 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; InternationalMax. length 79", max. length plus girth 108"66012PackageCANADA53.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Flat Rate BoxUSPS-Produced Box: 23-11/16" x 11-3/4" x 3" or 12" x 12" x 5-1/2"<br>Maximum weight 20 pounds.20012PackageCANADA40.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Medium Flat Rate BoxUSPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.20012PackageCANADA19.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Small Flat Rate Box**USPS-Produced Box: 8-5/8" x 5-3/8" x 1-5/8"<br>Maximum weight 4 pounds.4012PackageCANADA19.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International DVD Flat Rate priced box**USPS-Produced Box: 7-9/16" x 5-7/16" x 5/8"<br>Maximum weight 4 pounds.4012PackageCANADA19.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Video Flat Rate priced box**USPS-Produced Box: 9-1/4" x 6-1/4" x 2"<br>Maximum weight 4 pounds.4012PackageCANADA19.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate Envelope**USPS-Produced Envelope: 12-1/2" x 9-1/2"<br>Maximum weight 4 pounds.4012PackageCANADA19.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Legal Flat Rate Envelope**USPS-Produced Envelope: 15" x 9-1/2"<br>Maximum weight 4 pounds.4012PackageCANADA19.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Padded Flat Rate Envelope**USPS-Produced Envelope: 12-1/2" x 9-1/2"<br>Maximum weight 4 pounds.4012PackageCANADA19.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Gift Card Flat Rate Envelope**USPS-Produced Envelope: 10" x 7"<br>Maximum weight 4 pounds.4012PackageCANADA19.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Small Flat Rate Envelope**USPS-Produced Envelope: 10" x 6"<br>Maximum weight 4 pounds.4012PackageCANADA19.956 - 10 business daysPriority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Window Flat Rate Envelope**USPS-Produced Envelope: 10" x 5"<br>Maximum weight 4 pounds.4012PackageCANADA9.15Varies by destinationFirst-Class Package International Service&lt;sup&gt;&amp;trade;&lt;/sup&gt;**Other than rolls: Max. length 24", max length, height and depth (thickness) combined 36"<br>Rolls: Max. length 36". Max length and twice the diameter combined 42"4012PackageCANADA4.35Varies by destinationFirst-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Envelope**Max. length 15", height 12" or thickness 3/4"4

Sign in to reply to this post

r.vann438072

4012PackageCANADA9.15Varies by destinationFirst-Class Package International Service&lt;sup&gt;&amp;trade;&lt;/sup&gt;**Other than rolls: Max. length 24", max length, height and depth (thickness) combined 36"<br>Rolls: Max. length 36". Max length and twice the diameter combined 42"

4012PackageCANADA4.35Varies by destinationFirst-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Envelope**Max. length 15", height 12" or thickness 3/4"4

it seems to be giving me the first class mail price, not the first class package international which is the one i need.

Sign in to reply to this post

Jason ByrnesWebAssist

change:
$Shipping_Parameters["DefaultIntl"] = "Express Mail International";

to:
$Shipping_Parameters["DefaultIntl"] = "First-Class Mail International Package";

Sign in to reply to this post

r.vann438072

shipping parameters

i have changed it and i still get the lowest price which is first class mail, not first class mail package. in fact it doesn't seem to matter what i have in that code it always gives me the lowest price, i've tried express, priority...

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...