Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

277
Visualizações
What's the best way to calculate the optimal box size to use for shipping?

I am building out a UPS integration into my app which will allow users to set & save shipping boxes they have in their stock including the box's length, width, and height in inches. Each product that the user sells will now also have its own length, width, and height.

When a customer goes to order, I need to take all of the products in the cart along with their dimensions, and figure out the most efficient (smallest possible) box size to use in the list of available boxes.

I found this link: https://www.pluginhive.com/knowledge-base/box-packing-calculation-shipping-rates-based-weights-dimensions-2 and tried to follow the logic, but it seems flawed. It says to loop through the products and find the one with the largest length and do the same for the one with the largest width and then add up the height of all products together to get the final dimensions.

Example (LxWxH) Product 1 is (5x4x2) Product 2 ix (3x7x3) Product 3 is (4x6x4)

The final dimensions would be 5x7x9. I would then find the smallest box from the available boxes that is at least as big as all 3 dimensions. But this bothers me as the user can stack their product in different ways. They can turn the product sideways and stack them side by side in which cause adding up the total of all heights wouldn't make sense. Would I just repeat the above method for all 3 possibilities? I.E. first get the max length & max width & total height and try to find the best box, then get the max length & max height & total width and try to find the best box, and then get the max height & max width & total length and try to fine the best box?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Alternatively, print as a multi-piece shipment. one box per product but may save shipping costs on international shipping

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda