close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

USPS Shipping Amount Incorrect

Thread began 1/17/2013 2:14 pm by michael378527 | Last modified 1/21/2013 10:14 am by Jason Byrnes | 2111 views | 8 replies |

michael378527

USPS Shipping Amount Incorrect

The shipping is calculated correctly for a quantity of 1 but for all other quantities the shipping amount is not even close. I have the weight stored in oz's in the database. How can I see what is being sent to USPS and what is being received back. USPS is not able to help without this information.

Except for this all features of the cart have been tested and are working. I have a few things I will need to submit a consultation ticket for which I will do once I have the shipping working.

Thanks,
Michael

I added the following to the confirm.php
<pre>
<?php var_dump($_SESSION);
?>
</pre>

and it shows that the quote from USPS is in fact correct as $4.57. The amount shown on confirm.php is $15.21 which includes the $1.50 per order charge. That means that the calculation done in ecart5.06 is not correct. Below is the dump information:

array(40) {
["HBShopping_Items"]=>
string(217) "1|WAECART|The Co-Creators Handbook|WAECART|The Co-Creators

Handbook|WAECART|handbookthumb.jpg|WAECART|29|WAECART|3|WAECART|22|WAECART|5|WAECART|19|WAECA

RT|3|WAECART|87|WAECART|66|WAECART|3 The Co-Creators Handbook (1)"
["WAEC_ContinueRedirect"]=>
string(36) "/shop/productdetails.php?ProductID=1"
<sensitive info removed>
["HBShopping_USPS_Success"]=>
bool(true)
["HBShopping_USPS_SuccessInt"]=>
bool(false)
["HBShopping_USPS_ResponseCode"]=>
int(1)
["HBShopping_USPS_Quote"]=>
float(13.71)
["HBShopping_USPS_QuoteInt"]=>
int(0)
["HBShopping_USPS_ErrorCode"]=>
int(0)
["HBShopping_USPS_ErrorDescription"]=>
string(0) ""
["HBShopping_USPS_FullRequest"]=>
string(291) "API=RateV4&XML=<RateV4Request USERID=""><Package

ID="1"><Service>MEDIA</Service><ZipOrigination>87715</ZipOrigination><ZipDestination>43358</Z

ipDestination><Pounds>5</Pounds><Ounces>7</Ounces><Container/><Size>REGULAR</Size><Machinable

>True</Machinable></Package></RateV4Request>"
["HBShopping_USPS_FullResponse"]=>
string(398) "<?xml version="1.0"?>
<RateV4Response><Package

ID="1"><ZipOrigination>87715</ZipOrigination><ZipDestination>43358</ZipDestination><Pounds>5<

/Pounds><Ounces>7</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Zone>6</Zone><P

ostage CLASSID="6"><MailService>Media

Mail&amp;lt;sup&amp;gt;&amp;amp;reg;&amp;lt;/sup&amp;gt;</MailService><Rate>4.57</Rate></Post

age></Package></RateV4Response>
"
["HBShopping_USPS_FullRequestInt"]=>
bool(false)
["HBShopping_USPS_FullResponseInt"]=>
string(0) ""
}

Sign in to reply to this post

Jason ByrnesWebAssist

the information sent to USPS is stored in the full request:

["HBShopping_USPS_FullRequest"]=>
string(291) "API=RateV4&XML=<RateV4Request USERID=""><Package

ID="1"><Service>MEDIA</Service><ZipOrigination>87715</ZipOrigination><ZipDestination>43358</Z

ipDestination><Pounds>5</Pounds><Ounces>7</Ounces><Container/><Size>REGULAR</Size><Machinable

>True</Machinable></Package></RateV4Request>"

the full response is returned in the Full Response variable:
["HBShopping_USPS_FullResponse"]=>
string(398) "<?xml version="1.0"?>
<RateV4Response><Package

ID="1"><ZipOrigination>87715</ZipOrigination><ZipDestination>43358</ZipDestination><Pounds>5<

/Pounds><Ounces>7</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Zone>6</Zone><P

ostage CLASSID="6"><MailService>Media

Mail&amp;lt;sup&amp;gt;&amp;amp;reg;&amp;lt;/sup&amp;gt;</MailService><Rate>4.57</Rate></Post

age></Package></RateV4Response>
"


the quote is returned in the HBShopping_USPS_Quote variable:
["HBShopping_USPS_Quote"]=>
float(13.71)


it looks to me like you have the sipping set to One Package for each item ordered, from the cart info, it looks like you have 3 for the quantity of the The Co-Creators Handbook:
4.57 X 3 = 13.71

which is the value stored in the quote.

13.71 + 150 = 15.21


Perhaps you want to ship all items in the same package?

Sign in to reply to this post

michael378527

Checked the USPS Server Behavior

Jason,

I just went back into dreamweaver and checked the USPS shipping behavior. I had set the shipping to ship all items in one package and in step 5 of 5 the check box for Packaging is set to one package for the entire order. So there is something not working in the way that wizard stored the response. Is there a value somewhere I can change to make it work?

Michael

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

michael378527

Any other way to make it work?

Jason,

Thank you.

Is there a value I can change to make this work. I want to be able to put the cart in production as soon as possible.

Michael

Sign in to reply to this post

michael378527

Any other way to make it work?

Jason,

Thank you.

Is there a value I can change to make this work. I want to be able to put the cart in production as soon as possible.

Michael

Sign in to reply to this post

Jason ByrnesWebAssist

I need to take a closer look at things.

that is why i started the incident.

If there where a simple answer, i would have already given it, but I cant tell what is wrong with only the info given here.

Sign in to reply to this post

Jared Lui

Same issue here. Please post outcome of ticket.

Jason,

I have the same issue whereas I have all small items shipping in one box.

If I choose:
1 item A that is 0.5 oz it quotes $1.95 (the minimum quote)

If I chose:
3 item A's which is 1.5 oz it quotes $5.85 (not correct)

If I chose :
1 item A 0.5 oz
1 item B 0.5 oz
1 item C 0.5 oz
for a total of 1.5 oz it quotes $1.95 (which is correct)

Sign in to reply to this post

Jason ByrnesWebAssist

i'll need to take a closer look at your site:

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