Fix subscription checkout shipping calculation

This commit is contained in:
Nathan Chapman 2023-11-20 08:21:57 -07:00
parent f65169ebbc
commit e52c763234
No known key found for this signature in database
GPG Key ID: 22E944DA99EBFAA3

View File

@ -62,9 +62,9 @@ def get_shipping_cost(total_weight, postal_code):
else: else:
container = "large_flat_rate_box" container = "large_flat_rate_box"
shipping_cost = get_quote(postal_code, total_weight, container) shipping_cost = get_quote(postal_code, str(total_weight.lb), container)
return shipping_cost return Decimal(shipping_cost)
def build_usps_rate_request(weight, container, zip_destination): def build_usps_rate_request(weight, container, zip_destination):