Has anyone figured out the changes required to make UPSXML respect the free shipping setting (product_is_always_free_shipping) in the products table?
Has anyone figured out the changes required to make UPSXML respect the free shipping setting (product_is_always_free_shipping) in the products table?
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
My solution was just to recompute $shipping_num_boxes.
Just before the loop that calls _addItem,
Not sure if this is perfect, still testing.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); }
Last edited by swguy; 12 Aug 2022 at 04:03 PM. Reason: updated
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
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
Last edited by lat9; 12 Aug 2022 at 06:53 PM.
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.
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
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.
Last edited by swguy; 13 Aug 2022 at 05:05 AM.
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
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.
Bookmarks