Results 1 to 6 of 6
  1. #1
    Join Date
    May 2007
    Posts
    29
    Plugin Contributions
    0

    Default Specifying small / medium / larger package sizes?

    Hi everyone,

    I'm setting up zen cart for the first time and I noticed that when I am specifying the tare weight there are separate categories for small/medium and large packages. What criteria does Zen Cart use to make this distinction? I sell vinyl records, and for my purposes it would be very helpful to make 45s small packages and LPs larger packages since the mailers for these two categories weigh very different amounts. I've looked all over and can't find a way to customize this setting. Can someone help?

    Thanks,

    Daniel

  2. #2
    Join Date
    May 2007
    Location
    Oregon Coast
    Posts
    19
    Plugin Contributions
    0

    Default Re: Specifying small / medium / larger package sizes?

    I found your question searching for the same answer you are seeking. I too would like to know the distinction between small/medium and large packages. Hope someone comes up with an answer.

    Sonnie

  3. #3
    Join Date
    Apr 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Specifying small / medium / larger package sizes?

    ditto here.

  4. #4
    Join Date
    Apr 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Specifying small / medium / larger package sizes?

    OK, my php is quite rusty but looking in root->includes->classes->shipping.php I think I may have worked it out.

    "Large" means the order is bigger than the weight we've defined as the max shippable in one package.

    Somebody who really knows should evaluate this, though. Here's the little bit of code from the file i mentioned that has me thinking this is the answer:

    PHP Code:
    $za_tare_array split("[:,]" SHIPPING_BOX_WEIGHT);
          
    $zc_tare_percent$za_tare_array[0];
          
    $zc_tare_weight$za_tare_array[1];

          
    $za_large_array split("[:,]" SHIPPING_BOX_PADDING);
          
    $zc_large_percent$za_large_array[0];
          
    $zc_large_weight$za_large_array[1];

          
    // SHIPPING_BOX_WEIGHT = tare
          // SHIPPING_BOX_PADDING = Large Box % increase
          // SHIPPING_MAX_WEIGHT = Largest package

          /*
          if (SHIPPING_BOX_WEIGHT >= $shipping_weight*SHIPPING_BOX_PADDING/100) {
          $shipping_weight = $shipping_weight+SHIPPING_BOX_WEIGHT;
          } else {
          $shipping_weight = $shipping_weight + ($shipping_weight*SHIPPING_BOX_PADDING/100);
          }
          */

          
    switch (true) {
            
    // large box add padding
            
    case(SHIPPING_MAX_WEIGHT <= $shipping_weight):
            
    $shipping_weight $shipping_weight + ($shipping_weight*($zc_large_percent/100)) + $zc_large_weight;
            break;
            default:
            
    // add tare weight < large
            
    $shipping_weight $shipping_weight + ($shipping_weight*($zc_tare_percent/100)) + $zc_tare_weight;
            break;
          }

          if (
    $shipping_weight SHIPPING_MAX_WEIGHT) { // Split into many boxes
          
    $shipping_num_boxes ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
          
    $shipping_weight $shipping_weight/$shipping_num_boxes;
          } 

  5. #5

    Default Re: Specifying small / medium / larger package sizes?

    Small/medium packages are all shipments that will fit into one box. Large packages require multiple boxes, where "large" is defined as anything over the specified weight limit for a single box. The two separate tare settings won't work to manage different box sizes.

    In other words- if you can ship 1-3 lbs in a small box that weighs 0.5 lbs, but shipments of 4-10 lbs require a larger box that weighs 1.0 lbs... this feature won't handle that situation.

  6. #6
    Join Date
    Apr 2008
    Posts
    60
    Plugin Contributions
    2

    Default Re: Specifying small / medium / larger package sizes?

    If you take out this line of code from the shipping.php...

    Code:
    if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes
          $shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
          $shipping_weight = $shipping_weight/$shipping_num_boxes;
          }
    It can work for adjusting for different package sizes... but only 2. This works only if you always send in one package.

 

 

Similar Threads

  1. Package Tare Small to Medium
    By hayashiox in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 18 Dec 2010, 03:19 PM
  2. Package Tare Small to Medium?
    By millisami in forum Basic Configuration
    Replies: 5
    Last Post: 19 May 2007, 02:00 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