Unfortunately, in an e-commerce setting, you can't always wait until you have a total to show what the products will cost. You need to show the customer a price for one unit of a specific product (sometimes even with the discount broken out) in their own currency and then the numbers all need to add up to the correct total once they put several items into their cart. You end up getting penny off errors here and there that even if they are in favor of the customer, look very unprofessional.

Our solution was the opposite of your suggestion. We determine the converted price of one unit of a specific item (including discounts and exchange conversions) before adding up the total because then we can count on it being consistent across the site and through the checkout process.

In reply to Re^4: Math 101 anyone? by bpphillips
in thread Math 101 anyone? by smcone

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.