verbb / postie

A Craft Commerce shipping calculator plugin.
Other
12 stars 18 forks source link

Australia Post API did not switch to use cubic weight when its cost more than just calculating weight #40

Closed xhuang9 closed 3 years ago

xhuang9 commented 3 years ago

Description AUS_PARCEL_EXPRESS and AUS_PARCEL_REGULAR did not consider dimensions as a factor, causing undercharge for shipping rate.

Variant: dimension: 405 mm / 300 mm / 255 mm weight: 3.5 kg

Order Info: line item quantity: 2 from_postcode: 2150 to_postcode: 4702

Package cubic weight: 0.405 0.3 0.255 2 250 = 15.49125 kg Package weight: 7 kg Return Express Rate: $48.20 Return Regular Rate: $25.80

https://auspost.com.au/parcels-mail/calculate-postage-delivery-times/#/option/domestic/2150/4702 Should be: Express Rate: $150.35 Regular Rate: $58.65

Additional info

xhuang9 commented 3 years ago

It's my own problem. I try to ignore the height limit, as the plugin stack the packages vertically. So I set height to 105 cm when its exceeding, but I forgot it should be 1050 not 105 as the unit is mm not cm in my system.