This isn't really a Perl answer, but you should learn a bit about the shipping business before you start programming. First, forget about box sizes. Unless you're shipping oversize packages you only need to be concerned about weight. Visit your shipper's website to see what they determine to be oversize. Also, except sending very small packages by USPS, shippers round fractional weight up to the next pound. With that simplification you have better options, but these involve estimation and policy, which may be out of your influence:

With mixed products & quantities you cannot compute exact shipping parameters beforehand unless you can account for every possible combination. Most companies either do some kind of estimation, or weigh each completed package before computing shippping costs. Over time, you can use empirical data from actual shipments to fine tune your estimates.

Shippers have many pricing scales and many extra cost options you can add on. Businesses with shipper accounts receive significant pricing discounts based on their shipping volume. UPS is generally the most expensive shipper, but even $13.99 sounds too high unless you asked for some added options.


In reply to Re: Seeking advice about Shipping and Product Purchases by hangon
in thread Seeking advice about Shipping and Product Purchases by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.