From e52c7632346eeffad400a2be989bd2a9adb5ea2e Mon Sep 17 00:00:00 2001 From: Nathan Chapman Date: Mon, 20 Nov 2023 08:21:57 -0700 Subject: [PATCH] Fix subscription checkout shipping calculation --- core/shipping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/shipping.py b/core/shipping.py index 60eff27..1aad958 100644 --- a/core/shipping.py +++ b/core/shipping.py @@ -62,9 +62,9 @@ def get_shipping_cost(total_weight, postal_code): else: 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):