close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Removed UPS Added USPS Shipping

Thread began 3/24/2014 10:42 am by cal114936 | Last modified 3/28/2014 2:14 pm by Jason Byrnes | 3413 views | 16 replies |

cal114936Beta Tester

Removed UPS Added USPS Shipping

Hi,

Client wants to switch from UPS to USPS. It appears the shipping quote is successful, but the shipping charges are not showing on the confirm_cart.php page. But there are no shipping charges appearing.

eCart 6.05
Dreamweaver CC

Here is part of the result from <?php @session_start(); var_dump($_SESSION); ?>

Thanks,


array(0) { }
array(67) { ["eCart1_Items"]=> string(395) "557|WAECART|XXXXXXXXXXXX - April 2014|WAECART|XXXXXXXX|WAECART|hvw-

001-4-2014_100px.jpg|WAECART|5.6|WAECART|1|WAECART|4.99|WAECART|hvw-001-4-2014|WAECART|7|WAECART|1|

WAECART|139568160414|WAECART|5.6|WAECART|4.99|WAECART|1 XXXXXXXXXXXX - April 2014 (557)"

["WAEC_ContinueRedirect"]=> string(22) "/products.php?hwID=557" ["eCart1_USPS_Success"]=> bool(true)

["eCart1_USPS_SuccessInt"]=> bool(false) ["eCart1_USPS_ResponseCode"]=> int(1) ["eCart1_USPS_Quote"]=> float(2.03)

["eCart1_USPS_QuoteInt"]=> int(0) ["eCart1_USPS_ErrorCode"]=> int(0) ["eCart1_USPS_ErrorDescription"]=> string(0) ""

["eCart1_USPS_FullRequest"]=> string(340) "API=RateV4&XML=FIRST CLASSFLAT926269278206LARGETrue"

["eCart1_USPS_FullResponse"]=> string(471) " 926269278206FLATLARGETRUE1First-Class Mail&lt;sup&gt;&#174;&lt;/sup&gt; Large

Envelope2.03" ["eCart1_USPS_FullRequestInt"]=> bool(false) ["eCart1_USPS_FullResponseInt"]=> string(0) ""

["WASF_CheckoutWizard_Cool_Default"]=> array(33) { ["plugin_from"]=> string(31) "https://XXXXXXXXXXXX/checkout.php" ["plugin_file"]=>

Sign in to reply to this post

Jason ByrnesWebAssist

in the cart object, go to the shipping tab.

add a new shipping rule for USPS:

trigger:
Based on USPS Shiping Quote value is > 0

calculation:
Based on USPS Shiping Quote value + 0

Sign in to reply to this post

cal114936Beta Tester

Thanks Jason. Should have been able to figure that one. But now I have another.

With USPS want to use First Class, but if weight is over 13 oz we want to use priority. I placed an if statement I found on another thread and under 13 oz it works fine, but I get a failure with priority mail. Dimensions are missing.

["eCart1_USPS_Success"]=> bool(false) ["eCart1_USPS_SuccessInt"]=> bool(false) ["eCart1_USPS_ResponseCode"]=> int(0) ["eCart1_USPS_Quote"]=> int(0) ["eCart1_USPS_QuoteInt"]=> int(0) ["eCart1_USPS_ErrorCode"]=> string(11) "-2147219426" ["eCart1_USPS_ErrorDescription"]=> string(194) "DomesticRatesV4;clsRateV4.ValidateDimension;RateEngineV4.ProcessRequest - Dimensions are missing for package; unable to calculate postage. Additional Info: All dimensions must be greater than 0." ["eCart1_USPS_FullRequest"]=> string(292) "API=RateV4&XML=PRIORITY926269278216LARGETrue" ["eCart1_USPS_FullResponse"]=> string(421) " -2147219426DomesticRatesV4;clsRateV4.ValidateDimension;RateEngineV4.ProcessRequestDimensions are missing for package; unable to calculate postage. Additional Info: All dimensions must be greater than 0.1000440" ["eCart1_USPS_FullRequestInt"]=> bool(false)
["eCart1_USPS_FullResponseInt"]=> string(0) ""

I have attached the new confirm_cart page.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

cal114936Beta Tester

ok

Sign in to reply to this post

cal114936Beta Tester

Are we getting closer yet?

Sign in to reply to this post

Jason ByrnesWebAssist

on line 131 of the confirm cart page, i changed the package size to regular:
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageSize"] = "Regular";

package size large should only be used if you are using your own package, it is used for over sized packages where the shipping is calculated is dimensional weight instead of actual weight.

Sign in to reply to this post

cal114936Beta Tester

Jason,

Ok that worked it is now returning a quote for Priority Flat Rate box. The quote returned however is for a Small Flat Rate box even though the Large Flat Rate is specified in the code. It seems to be ignoring the ["PackageType"]= "LG FLAT RATE BOX";

$Shipping_PackageArray[$Shipping_PackageIndex]["PackageType"] = "LG FLAT RATE BOX";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageSize"] = "Regular";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageMachinable"] = "true";
$Shipping_PackageArray[$Shipping_PackageIndex]["IPackageType"] = "Package";

It also appears weight is affecting the price returned even though its a LG FLAT RATE BOX.

One magazine weighing 5.6oz. in cart large flat envelope is $2.03 - same as USPS website

Two magazines weighing 11.2oz.is $3.08 - same as USPS website

Three magazines weighing 16.8oz triggers Priority mail. Large box specified. Price is for Small box. $5.80

Six magazines weighing 33.6oz returns a new price of $6.50


We'd actually like it to use a Medium Flat Rate box if you could tell me what the "PackageType" should be.

Sign in to reply to this post

Jason ByrnesWebAssist

where it is a flat rate box, I wouldn't use USPS Rate lookup, it is waisted trip to to the USPS servers.

just create a shipping rule that if the weifght is above 13oz, use the flat rate charge.

according to the USPS site:
https://store.usps.com/store/browse/uspsProductDetailMultiSkuDropDown.jsp?categoryNavIds=catGetMailingShippingSupplies%3asubcatMSS_PriorityMail&categoryNav=false&navAction=push&navCount=0&productId=P_O_FRB1&categoryId=subcatMSS_PriorityMail

The Domestic Priority Mail rate would be $12.35

so create a flat rate shipping rule for 13.35 above 13 ounces

Sign in to reply to this post

cal114936Beta Tester

We also have international orders though....

Sign in to reply to this post
loading

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