Re: UPS XML: Support Thread
Has anyone figured out the changes required to make UPSXML respect the free shipping setting (product_is_always_free_shipping) in the products table?
Re: UPS XML: Support Thread
My solution was just to recompute $shipping_num_boxes.
Just before the loop that calls _addItem,
Code:
// Handle free shipping
$free_weight = $_SESSION['cart']->free_shipping_weight();
if ($free_weight > 0) {
$non_free_weight = $_SESSION['cart']->show_weight() - $free_weight;
$zc_boxes = zen_round(($non_free_weight/SHIPPING_MAX_WEIGHT), 2);
$shipping_num_boxes = ceil($zc_boxes);
}
Not sure if this is perfect, still testing.
Re: UPS XML: Support Thread
Quote:
Originally Posted by
swguy
My solution was just to recompute $shipping_num_boxes.
Just before the loop that calls _addItem,
Code:
// Handle free shipping
$free_weight = $_SESSION['cart']->free_shipping_weight();
if ($free_weight > 0) {
$non_free_weight = $_SESSION['cart']->show_weight() - $free_weight;
$zc_boxes = zen_round(($non_free_weight/SHIPPING_MAX_WEIGHT), 2);
$shipping_num_boxes = ceil($zc_boxes);
}
Not sure if this is perfect, still testing.
The underlying issue is that the shipping module isn't using zen_get_shipping_enabled to see if the cart's all free shipping.
GitHub tracking issue: https://github.com/lat9/upsxml/issues/29
Re: UPS XML: Support Thread
My concern is not so much that the cart is all free shipping but rather that some items are and others aren't.
It makes sense for UPS to appear as an options even if a cart is free shipping (for example, UPS might be offered as expedited shipping).
I just think that (at least for some customers) respecting the per product free shipping flag would be preferred.
Re: UPS XML: Support Thread
Quote:
Originally Posted by
swguy
My concern is not so much that the cart is all free shipping but rather that some items are and others aren't.
It makes sense for UPS to appear as an options even if a cart is free shipping (for example, UPS might be offered as expedited shipping).
I just think that (at least for some customers) respecting the per product free shipping flag would be preferred.
Since that's processing that should affect all shipping-modules, I'll suggest that the change should be in /includes/classes/shipping.php, where the $shipping_weight is calculated. It's there that the cart's weight should be reduced by the free_shipping_weight.
Re: UPS XML: Support Thread
Quote:
Originally Posted by
lat9
Since that's processing that should affect all shipping-modules, I'll suggest that the change should be in /includes/classes/shipping.php, where the $shipping_weight is calculated. It's there that the cart's weight should be reduced by the free_shipping_weight.
... or possibly in the shopping_cart.php class' show_weight method? From the in-core usage, it looks like the 'assumption' made by callers of that method is that the weight returned is the weight to be used for the shipping calculations.
Re: UPS XML: Support Thread
I'm not sure ... I'm not even sure upsxml should be changed for most people (based on the paucity of complaints).
Shipping by Item sort of works this way now (exclude free shipping items in the count that is the multiplier in the cost calculation).
Table Shipping works this way for price and item calculation, but not for weight calculation.
Zone Shipping is the same way as Table Shipping.
Weird.
Re: UPS XML: Support Thread
We have upgraded to Zencart 1.5.7d and the UPSXML module v1.7.11 yet we are still getting charge much higher rates than our physical store module (not the shopping cart) that uses the same UPS Rates Access Key. We had hoped the upgrade would solve this issue - but it persists. Any advice would be greatly appreciated.
Re: UPS XML: Support Thread
Quote:
Originally Posted by
SPython
We have upgraded to Zencart 1.5.7d and the UPSXML module v1.7.11 yet we are still getting charge much higher rates than our physical store module (not the shopping cart) that uses the same UPS Rates Access Key. We had hoped the upgrade would solve this issue - but it persists. Any advice would be greatly appreciated.
Have you set your "UPS Rates: Shipper Number" so that you're receiving your store's negotiated rates?
Re: UPS XML: Support Thread
Quote:
Originally Posted by
SPython
We have upgraded to Zencart 1.5.7d and the UPSXML module v1.7.11 yet we are still getting charged much higher rates than our physical store module (not the shopping cart) that uses the same UPS Rates Access Key. We had hoped the upgrade would solve this issue - but it persists. Any advice would be greatly appreciated.
Here is an example: sending a 7lb package from New York to California the UPS charge quoted on our UPS desktop application is $19.18 and the same package has an estimated UPS charge of $28.90 via the UPSXML module for Zencart