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.
Client reported, and I've confirmed, that when using the new shipping multiplier field in the settings, shipping rates sometimes end up coming back with 3 decimal places. This gets rounded during checkout I believe, but on the backend the order total is also then showing 3 decimal places.
This is currently resulting in commerce rounding down, when it does round, and in our case PayPal PayFlow is rounding up, making a 1-cent difference on some orders.
Comments
Comment #2
bmcclure CreditAttribution: bmcclure as a volunteer and at Top Floor commentedUpdated the title and category to reflect how I've implemented this. This feature doesn't have to be specific to the rate multiplier, it simply ensures the shipping rate is always rounded appropriately.
New option added to the configuration to set the rounding method.
Comment #4
bmcclure CreditAttribution: bmcclure as a volunteer and at Top Floor commented