Results 1 to 10 of 246

Threaded View

  1. #11
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,523
    Plugin Contributions
    127

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

 

 

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

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