{% load basket_tags %} {% load display_tags %} {% load i18n %} {% load purchase_info_tags %} {% purchase_info_for_product request product as session %}
{% if session.availability.is_available_to_buy %}
{% basket_form request product 'multiple' as basket_form %}
{% csrf_token %}
{{ basket_form.quantity }}
{% iffeature "wishlists" %} {% include "oscar/catalogue/partials/add_to_wishlist.html" %} {% endiffeature %}
{% else %}
{% if has_active_alert %}

{% trans "You have an active stock alert for this product." %}

{% else %}
{% csrf_token %}

{% trans "You can get an email alert when this product is back in stock." %}

{% include "oscar/partials/form_fields.html" with form=alert_form %}
{% endif %} {% iffeature "wishlists" %} {% include "oscar/catalogue/partials/add_to_wishlist.html" %} {% endiffeature %}
{% endif %}