diff --git a/src/storefront/cart.py b/src/storefront/cart.py index 38e9fe1..0898156 100644 --- a/src/storefront/cart.py +++ b/src/storefront/cart.py @@ -60,7 +60,7 @@ class CartItem: class Cart: item_class = CartItem - site_settings = SiteSettings.load() + # site_settings = SiteSettings.load() def __init__(self, request): self.request = request @@ -170,9 +170,9 @@ class Cart: return containers def get_shipping_cost(self, container=None): - free_shipping_min = self.site_settings.free_shipping_min - if self.get_total_price() >= free_shipping_min: - return Decimal('0.00') + # free_shipping_min = self.site_settings.free_shipping_min + # if self.get_total_price() >= free_shipping_min: + # return Decimal('0.00') if container is None: container = self.session.get('shipping_container').container diff --git a/src/storefront/templates/storefront/cart_detail.html b/src/storefront/templates/storefront/cart_detail.html index 75679a1..6b34eb6 100644 --- a/src/storefront/templates/storefront/cart_detail.html +++ b/src/storefront/templates/storefront/cart_detail.html @@ -21,7 +21,7 @@
{{ key }}: {{ value }}
{% endfor %} @@ -58,7 +58,7 @@ -| Shipping | - {% if cart.get_total_price >= site_settings.free_shipping_min %} -Free! | - {% else %}${{ cart.get_shipping_cost }} | - {% endif %}
| Total |
|---|