- Issue created by @rhovland
- Merge request !26Issue #3492118 by rhovland: Fix package dimension rounding to always round up β (Open) created by rhovland
- First commit to issue fork.
When using the all in one packer and the custom box (1mm x 1mm x 1mm) the resulting package dimensions are 0. This means no rates are returned.
This is a result of using round() when calculating package dimensions instead of ceil(). When evaluating package size for determining shipping cost carriers always round up to the next whole unit. The code should always round up to the next unit too.
Create a FedEx shipping method with the All in one packer. Create a shipment in the admin area of an order. Select the custom box (1mm x 1mm x 1mm) package type. Calculate rates. No rates returned.
Change round() to ceil() in physicalLengthsToFedexDimensions()
Active
2.0
Code