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

bmcclure created an issue. See original summary.

bmcclure’s picture

Title: Applying shipping multiplier can end up with 3 decimal places » Add support for rounding the shipping rate
Category: Bug report » Feature request

Updated 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.

  • bmcclure committed 5909a08 on 8.x-1.x
    Issue #2872529 by bmcclure: Add support for rounding the shipping rate
    
bmcclure’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.