From: Guillaume Pellerin Date: Thu, 24 Sep 2015 15:03:00 +0000 (+0200) Subject: fix product addto cart, split checkout steps X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d5924b9080f332bb3a5da200372ab7ca9e9d2bb0;p=diggersdigest.git fix product addto cart, split checkout steps --- diff --git a/app/diggersdigest/settings.py b/app/diggersdigest/settings.py index ffbe234..13d9b8b 100644 --- a/app/diggersdigest/settings.py +++ b/app/diggersdigest/settings.py @@ -119,7 +119,7 @@ SEARCH_MODEL_CHOICES = ('shop.Product',) # If True, the checkout process is split into separate # billing/shipping and payment steps. -# SHOP_CHECKOUT_STEPS_SPLIT = True +SHOP_CHECKOUT_STEPS_SPLIT = True # If True, the checkout process has a final confirmation step before # completion. diff --git a/app/templates/shop/product.html b/app/templates/shop/product.html index 62b0fec..aa628ef 100644 --- a/app/templates/shop/product.html +++ b/app/templates/shop/product.html @@ -152,7 +152,7 @@ $(function () { {% endeditable %} -{% if product.available and has_available_variations and product.variation.first.unit_price %} +{% if product.available and has_available_variations and product.price %}
{% errors_for add_product_form %}