USPS config error
I noticed in my USPS.php file that its still on the testing address, I've also noticed that shipping from zip was wrong and fixed it, however the weight and the ship to zip are static, what should it be set at to pull the ship to zip and the weight of the cart to calculate the correct shipping costs?
Thanks,
Tim
function WA_eCart_USPS_GetRateQuote($USPS_eCart, $USPS_Parameters, $USPS_PackageArray) {
WA_eCart_USPS_SetSessionDefaults($USPS_eCart);
$USPS_PkCount = 0;
$transSuccess = false;
$USPS_RateType = "RateV3Request";
$USPS_RespType = "RateV3Response";
if (WA_eCart_USPS_IsTrueValue($USPS_Parameters["ShiptoCountry"]) && strtoupper($USPS_Parameters["ShiptoCountry"]) != "UNITED STATES" && strtoupper($USPS_Parameters["ShiptoCountry"]) != "US" && strtoupper($USPS_Parameters["ShiptoCountry"]) != "USA") {
$USPS_RateType = "IntlRateRequest";
$USPS_RespType = "IntlRateResponse";
}
else {
$USPS_Parameters["ShiptoCountry"] = "US";
}
for ($USPS_Counter = 0; $USPS_Counter < sizeof($USPS_PackageArray); $USPS_Counter++) {
if (strpos($USPS_Parameters["USPSServer"],"testing.shippingapis.com") > 0) {
$USPS_PackageArray[$USPS_Counter]["PackageWeight"] = 10.3;
$USPS_Parameters["ShipperZip"]="10022";
$USPS_Parameters["ShiptoZip"]="20008";
$USPS_Counter = sizeof($USPS_PackageArray)-1;