{% load basket_tags %} {% load i18n %} {% if product.is_available_to_buy %} {% basket_form request.basket product as basket_form %}
{% else %} {% if has_active_alert %}{% trans "You have an active stock alert for this product." %}
{% else %} {% endif %} {% endif %}