PDA

View Full Version : ups rate table -commercial vs residential


robert329616
03-18-2009, 07:49 AM
Hello.

Is anyone else having issues with UPS quotes?
I set up my checkout page through the wizard to access UPS for shipping quotes. No matter what address is input, it always comes back as non-residential which is cheaper than the actual rate when I ship.

I contacted UPS and they said to add a radio button to allow the customer to choose. The problem is when I click on residential I am still getting commercial. Is there another area in the confirm.php that I need to add code? I added the buttons to the checkout.php page.

Or is there a way to always have the residential quote come back since 95% of my customers are residential.

Thanks for any help with this.
Regards,
Rob

Ray Borduin
03-18-2009, 09:03 AM
Open the file: WA_eCart_UPS_PHP

find the line:

$UPS_XML .= "</Address></Shipper><ShipTo><Address>";

and replace it with:

$UPS_XML .= "</Address></Shipper><ShipTo><Address><ResidentialAddressIndicator/>";

It appears from reading their documentation that this would resolve the problem.

grantr281040
03-18-2009, 09:36 AM
I actually have this same problem and have been eating the cost difference from UPS.

So Ray..
Would this fix make everything a residential shipment or would it be able to differentiate between residential and commercial?

Ray Borduin
03-18-2009, 09:59 AM
This would make everything residential. There is no way to tell it appears, so the alternative might be to add a checkbox for someone to check if it is commercial named isCommercial with the value of "1" and make the code something like:


$UPS_XML .= "</Address></Shipper><ShipTo><Address>";
if (isset($_POST["isCommercial"])) {
$UPS_XML .= "<ResidentialAddressIndica tor/>";
}

grantr281040
03-18-2009, 10:24 AM
Unfortunately UPS gets to decide what is commercial or residential. They have some mixed up and will charge residential for some commercial addresses.

I think they just return a result based on the zip and not the actual address so unless they were to change their result or request criteria I don't know that there is a way around it.

You can let the client choose but it will never guarantee the proper rate as UPS will classify some commercial as residential anyway.

So I just pad the add on section a bit to even out the win or loss from order to order.

Good luck!

robert329616
03-18-2009, 11:03 AM
Ray,

That was a huge help!
How do you pad the rate?

Thanks,
Rob

grantr281040
03-18-2009, 12:26 PM
in the ecart object under the shipping tab you'll see the calculation section...

select ..."Based on the UPS shipping quote value" in the dropdown and then
select... ups shipping quote "plus" and in the text field enter the number you want to add "5" (will add $5.00 to the quote when the shipping amount is displayed)

robert329616
03-18-2009, 12:44 PM
Ray,

Great! Thanks again for your help!

Regards,
Rob