]> git.parisson.com Git - diggersdigest.git/commitdiff
fix product addto cart, split checkout steps
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 24 Sep 2015 15:03:00 +0000 (17:03 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 24 Sep 2015 15:03:00 +0000 (17:03 +0200)
app/diggersdigest/settings.py
app/templates/shop/product.html

index ffbe2344a7edaf3fe1094421facfd5f98f191031..13d9b8b79ed3c934241ae754c42c390518c3267e 100644 (file)
@@ -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.
index 62b0fecd1b926ae4bd45d129d832021ba4cdebf2..aa628ef7dc06089456abee3acdb8f1e958b2c531 100644 (file)
@@ -152,7 +152,7 @@ $(function () {
 {% endeditable %}
 </div>
 
-{% if product.available and has_available_variations and product.variation.first.unit_price %}
+{% if product.available and has_available_variations and product.price %}
 
 <br/>
 {% errors_for add_product_form %}