Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2008
    Posts
    164
    Plugin Contributions
    0

    Default Number of Boxes (UPSXML)

    Using ZenCart 1.3.8 with UPSXML module. I'm looking to set it so that every 22lbs, we use a box (rounded up).

    Been through a few of the shipping modules but can't figure out where to put it. I basically need:

    $boxesToShip = ceil($total_weight/22);

    But I don't know where to put it?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Number of Boxes (UPSXML)

    The Tare and Boxes are computed in the shipping class file ...

    But before you change the code, what happens if you just put in that the Maximum Weight shipped is 22 in the Shipping/Packaging so the boxes break at 22 lbs ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2008
    Posts
    164
    Plugin Contributions
    0

    Default Re: Number of Boxes (UPSXML)

    Quote Originally Posted by Ajeh View Post
    The Tare and Boxes are computed in the shipping class file ...

    But before you change the code, what happens if you just put in that the Maximum Weight shipped is 22 in the Shipping/Packaging so the boxes break at 22 lbs ...
    That works. The way it's defined/explained in the admin section, it makes it seem as though you won't ship ANYTHING over that weight, not that that is the maximum box weight.

    Thank you.

  4. #4
    Join Date
    Oct 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Number of Boxes (UPSXML)

    I am having a problem with Zen Cart/UPS splitting up into # of boxes based on total weight divided by maximum weight.

    I am a wholesaler shipping by case. I have already assigned each product with their own correct billable weight. UPS calculates shipping correctly if customer buys only one case. However, the problem is when they order several cases, UPS would either quote it as one big box or split it up into several different boxes.

    For example, my product weighs 30 pounds. I set my max weight to 50.

    If customer orders 4 cases...it should say 4 pkgs x 30 lbs.
    But UPS divides it into 3 pkgs x 40 lbs, which does not reflect the true price.

    Anyone know how to change the code in the UPS shipping module to have each product packaged by itself and it's own weight instead of having a total weight / max weight?

    The shipping class has the following code:

    if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes
    // $shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
    $zc_boxes = zen_round(($shipping_weight/SHIPPING_MAX_WEIGHT), 2);
    $shipping_num_boxes = ceil($zc_boxes);
    $shipping_weight = $shipping_weight/$shipping_num_boxes;
    }


    So instead of having shipping_weight/Shipping_max_weight....

    can we do something like "shipping_weight" divided by "# of products"?

    Thanks in advance!

 

 

Similar Threads

  1. v139g Number of boxes to be shipped
    By one tall man in forum General Questions
    Replies: 2
    Last Post: 25 Jan 2013, 10:36 PM
  2. Display number of boxes on shipping???
    By Petlife in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Sep 2011, 09:44 PM
  3. Number-Of-Boxes calculation problem
    By sofafort in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 10 Feb 2009, 07:24 PM
  4. Restricting number of products in boxes?
    By Arkwright in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Dec 2007, 05:17 PM

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