Fix #180 -- Hide add to cart button if no products active or no quantity left (#200)

* Hide add to cart button if no products active or no quantity left(#180)

* Fix PEP errors and improve logic

* Fix tests for add to cart change

* Fix the logic for toggling the visibility of Add to Cart button
This commit is contained in:
Vishal Sodani
2016-08-29 23:00:08 +05:30
committed by Raphael Michel
parent 6108aa880a
commit 5346473f75
3 changed files with 9 additions and 4 deletions

View File

@@ -202,7 +202,7 @@
{% endfor %}
</section>
{% endfor %}
{% if event.presale_is_running %}
{% if event.presale_is_running and display_add_to_cart %}
<div class="row-fluid checkout-button-row">
<div class="col-md-4 col-md-offset-8 col-xs-12">
<button class="btn btn-block btn-primary btn-lg" type="submit">