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&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>4.57</Rate></Post
age></Package></RateV4Response>
"
["HBShopping_USPS_FullRequestInt"]=>
bool(false)
["HBShopping_USPS_FullResponseInt"]=>
string(0) ""
}