close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

get usps shipping calculate

Thread began 7/11/2015 2:48 pm by Jedi | Last modified 7/14/2015 1:34 am by Ray Borduin | 421 views | 6 replies |

Jedi

get usps shipping calculate

I used the ecart6 checkout wizard and set up the usps information there. Somehow the server behavior for usps did not appear on the confirm.php page so I added it. I completed all fields (except the checkout success field and checkout failure field on this server behavior). Then I uploaded the confirm.php page again and ran a 1.00 live transaction with the weight being 64 oz for the live item. Everything went through and I was charged for the item plus sales tax. My issue is that the usps shipping quote never showed up on the cart and I did not get any errors. I received my receipt and I was charged only the 1.00 and tax and no shipping. How do I get the shipping to calculate and charge? I have checked with usps and the site is registered.
My products page is https://www.kicreativeplastics.net/products_results.php

Sign in to reply to this post

Ray BorduinWebAssist

You don't have a failure redirect set up for the shipping server behavior, that is why it is letting the order go through when the shipping calculation fails.

I'd run a transaction and then create a blank page with just this code on it:

php:
@session_start();

var_dump($_SESSION);



You can then manually go to this page after viewing the confirm page, or set it up as the shipping failure page for debugging purposes.

When a shipping quote fails we store the information about the failure in the session. This will display that information that we can use to determine why it failed and find a solution from there.

Sign in to reply to this post

Jedi

Thanks Ray. I did that and i did get a failure code. It seems to be that a destination zip code is missing. The problem is that this error is happening when I hit the checkout button on the cart page which is before the client is able to put in a destination zip.
See error code below:

Sign in to reply to this post

Ray BorduinWebAssist

Update line 215 to:
if (WA_getSavedFormValue('CheckoutWizard_Sharp_Default','Postal_Code_2')) {

and then try it again.

Sign in to reply to this post

Jedi

Thanks Ray,
That improved but I still get a shipping error. I believe it looks like I might need to do something different with the type of packages selected. Not sure exactly what the code means.

Sign in to reply to this post

Jedi

I changed the mail type from parcel to First Class and that seemed to work. The shipping is showing up after checkout.
Is there a way to have show the customer what their shipping charges are prior to checkout?

Sign in to reply to this post

Ray BorduinWebAssist

You can show them shipping charges as soon as you know their address. If you have people log in, then you can use the stored profile information to calculate shipping charges on the cart page instead of waiting for the checkout pages.

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