From 098b7363e66acf4c56d419a1bda23e3a7cba4ea1 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 1 Dec 2019 12:34:47 +0100 Subject: [PATCH] Waren about products with hidden_if_available --- .../control/templates/pretixcontrol/item/base.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pretix/control/templates/pretixcontrol/item/base.html b/src/pretix/control/templates/pretixcontrol/item/base.html index 2aa73b18d..1faea6379 100644 --- a/src/pretix/control/templates/pretixcontrol/item/base.html +++ b/src/pretix/control/templates/pretixcontrol/item/base.html @@ -24,6 +24,15 @@ {% endblocktrans %} {% endif %} + {% if object.hidden_if_available and object.hidden_if_available.availability.0 == 100 %} +
+ {% blocktrans trimmed %} + This product is currently not being shown since you configured below that it should only be visible + if a certain other quota is already sold out. + {% endblocktrans %} +
+ {% endif %} + {% block inside %} {% endblock %} {% endblock %}