UPS shipping returns incorrect quotes Always Free Shipping and other Shipping
I am having an issue with one of my customizations...
We have some products that we have free shipping enabled and wanted to offer expedited shipping. To accomplish this I simply removed the if statement here:
Code:
// disable only when entire cart is free shipping
// if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);
// }
The problem is, while it still shows the ups quote, it doesn't update based on quantity. For example, an order of 5 items ships for the same cost as an order of one (ack!). I'm not sure where else to look to get the other shipping forms calculating correctly.
Thanks,
Phaylon
Re: UPS shipping returns incorrect quotes
Looks like i failed to mention that that line of code is in /includes/modules/shipping/ups.php
Until I figure it out, I just reversed my changes.
Does anyone know how to show expedited shipping options for items that ship free ups ground?
Re: UPS shipping returns incorrect quotes
Edit the shipping module and comment out the test ...
Code:
// disable only when entire cart is free shipping
// if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);
// }
Next, go to the shipping class and add the code in RED:
Code:
function calculate_boxes_weight_and_tare() {
global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes;
// bof: add back Always Free Shipping weight
$total_weight += $_SESSION['cart']->free_shipping_weight;
// eof: add back Always Free Shipping weight
if (is_array($this->modules)) {
Make sure you have the FREE SHIPPING! freeshipper installed ... and now you will see the Free Shipping *and* the regular shipping ...
NOTE: make sure you add Product Weight to the Products marked as Always Free Shipping so that you get the rates quoted ...
Re: UPS shipping returns incorrect quotes
Ahh beautiful. Was having trouble finding the functions responsible. Thanks Ajeh!
Re: UPS shipping returns incorrect quotes
You are most welcome ... thanks for the update that this allows you to use both Always Free Shipping and UPS shipping quotes at the same time ... :smile:
Re: UPS shipping returns incorrect quotes
Well I thought this solution was the end of the issue, but it seems not... This DID fix the original problem of multiple products processing shipping as a single item, but it has created another issue.
The Quote's provided from UPS are correct, but the cost listed on the subtotal line used to calculate the order total is incorrect. It is over charging significantly. From my testing I have found it is charging for double the weight. *ack*
Removing the edits to calculate_boxes_weight_and_tare() effects the quote only not the actual charge listed in the subtotal.
Any Ideas?
Re: UPS shipping returns incorrect quotes
What are your settings in the Configuration ... Shipping/Packaging ...
When you go to the Modules ... Shipping ... and click on UPS ... what are the settings in the right panel?
Re: UPS shipping returns incorrect quotes
Quote:
Originally Posted by
Ajeh
What are your settings in the Configuration ... Shipping/Packaging ...
Enter the Maximum Package Weight you will ship 500
Package Tare Small to Medium - added percentage:weight 10:1
Larger packages - added packaging percentage:weight 10:3
Display Number of Boxes and Weight Status: 0
Order Free Shipping 0 Weight Status: 0
Shipping Estimator Display Settings for Shopping Cart 2
Display Order Comments on Admin Invoice 1
Display Order Comments on Admin Packing Slip 1
Quote:
Originally Posted by
Ajeh
When you go to the Modules ... Shipping ... and click on UPS ... what are the settings in the right panel?
Enable UPS Shipping: True
UPS Pickup Method: RDP
UPS Packaging? CP
Residential Delivery? RES
Handling Fee: 4
Handling Per Order or Per Box: Box
Tax Class: --none--
Tax Basis: Shipping
Shipping Zone: --none--
Sort order of display: 0
Shipping Methods are: 2d air, 3d standard, ground, and worldwide express.
I don't see anything in there that was changed.
I create a cart and get quoted $65 and in the totals area its $88.39. When I change the quantity to 2, the quote shows $88.39. Matching to the cent doesn't seem coincidental. But I also noticed that my cart displays: Total Items: 2 Weight: 0lbs.
Could it be the actual shipping line item in the order total isn't using calculate_boxes_weight_and_tare()?
Re: UPS shipping returns incorrect quotes
You need to make the setting for:
Quote:
Enter the Maximum Package Weight you will ship 500
a valid amount for UPS, such as the default of 50 or 70 ...
Your Tare Rates are adding 10% + 1 lb to the order for Small and Medium boxes and 10% plus 3 pounds to the order for Large boxes ...
Quote:
Package Tare Small to Medium - added percentage:weight 10:1
Larger packages - added packaging percentage:weight 10:3
If you have 0 weight on the order, then you are just getting quotes on the Tare Rates ...
What weight do you have set on the Product Weight?
Re: UPS shipping returns incorrect quotes
Embarrasing I didn't include that... It is set to 4 lbs. *blush*