forked from CGM_Public/pretix_original
* 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:
committed by
Raphael Michel
parent
6108aa880a
commit
5346473f75
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user