Page 20 of 25 FirstFirst ... 101819202122 ... LastLast
Results 191 to 200 of 246
  1. #191
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,686
    Plugin Contributions
    123

    Default 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?
    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.

  2. #192
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,686
    Plugin Contributions
    123

    Default 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.
    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.

  3. #193
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: UPS XML: Support Thread

    Quote Originally Posted by swguy View Post
    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
    Last edited by lat9; 12 Aug 2022 at 06:53 PM.

  4. #194
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,686
    Plugin Contributions
    123

    Default 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.
    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.

  5. #195
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: UPS XML: Support Thread

    Quote Originally Posted by swguy View Post
    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.

  6. #196
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: UPS XML: Support Thread

    Quote Originally Posted by lat9 View Post
    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.

  7. #197
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,686
    Plugin Contributions
    123

    Default 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.
    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.

  8. #198
    Join Date
    Jun 2016
    Location
    New York, NY
    Posts
    81
    Plugin Contributions
    0

    Default 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.

  9. #199
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: UPS XML: Support Thread

    Quote Originally Posted by SPython View Post
    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?

  10. #200
    Join Date
    Jun 2016
    Location
    New York, NY
    Posts
    81
    Plugin Contributions
    0

    Default Re: UPS XML: Support Thread

    Quote Originally Posted by SPython View Post
    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

 

 
Page 20 of 25 FirstFirst ... 101819202122 ... LastLast

Similar Threads

  1. UPS discounted rates not showing in UPS XML
    By cspan27 in forum Addon Shipping Modules
    Replies: 51
    Last Post: 27 Jun 2016, 03:52 PM
  2. v151 Ty UPS WorldShip Support Thread
    By colosports in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 1 Jun 2014, 12:05 AM
  3. UPS XML Stopped Communicating with UPS... HELP!
    By rconway28 in forum Addon Shipping Modules
    Replies: 28
    Last Post: 23 Nov 2011, 03:31 PM
  4. UPS Shipping - not working (UPS-XML addon)
    By breck in forum Addon Shipping Modules
    Replies: 30
    Last Post: 20 Aug 2010, 03:24 AM
  5. UPS/UPS XML Future Day Pick-up
    By fred_hf in forum Addon Shipping Modules
    Replies: 0
    Last Post: 21 Dec 2009, 07:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR