diff --git a/cartridge/shop/utils.py b/cartridge/shop/utils.py index ef139a794..73ced21af 100644 --- a/cartridge/shop/utils.py +++ b/cartridge/shop/utils.py @@ -59,6 +59,9 @@ def recalculate_cart(request): if discount_form.is_valid(): discount_form.set_discount() + if not request.session.get("free_shipping"): + settings.clear_cache() + clear_session(request, "shipping_type", "shipping_total") handler = lambda s: import_dotted_path(s) if s else lambda *args: None billship_handler = handler(settings.SHOP_HANDLER_BILLING_SHIPPING) tax_handler = handler(settings.SHOP_HANDLER_TAX)