Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm seeing almost the same problem described in this issue: http://drupal.org/node/1678076 . The difference is I don't have a VAT component-- rather, I'm using the Commerce Mulitcurrency module. The discount formatting works as expected when prices are displayed in the default currency, but when viewed in another currency (that is, after they've been converted), some of them show a 0% discount. Similar to the other issue, it's the prices that are rounded down when they get converted that have the problem.
Comments
Comment #1
remydenton CreditAttribution: remydenton commentedOops, I attached the same screenshot twice. The ones I attached show it working fine (in dollars); this one shows the problem (in pounds).
Comment #2
remydenton CreditAttribution: remydenton commentedAttached is a patch that at least seems to solve my issue, and could presumably solve others like it.
Comment #3
recrit CreditAttribution: recrit commentedThe $item['amount'] is the calculated total already. I believe the cause is more of a rounding issue as we seen in #1678076: Showing 0% discount when there is no discount..
The attached patch add better handling of round with respect to the currency. Please test and report back.
Comment #4
recrit CreditAttribution: recrit commentedCommitted patch 1995792-3.patch per http://drupalcode.org/project/commerce_price_savings_formatter.git/commi...