{% load i18n shop_ui %} {% load ravix_ui %}
{% if p.image %}{{ p.name }}{% endif %} {% if gallery %}{% endif %}
{% if p.category %}

{% trans "Category:" %} {{ p.category.path_name }}

{% endif %} {% if p.sku %}

{% trans "SKU" %}: {{ p.sku }}

{% endif %} {% if p.is_variable %} {% with price_low=p.price_range.0 price_high=p.price_range.1 %}

{% if p.has_price_range %}{% price price_low %} – {% price price_high %}{% else %}{% price price_low %}{% endif %}

{% endwith %} {% else %}

{% if p.has_discount %}{% price p.price %} {% blocktrans trimmed with discount_percent=p.discount_percent|fa_digits %}{{ discount_percent }}% off{% endblocktrans %}
{% endif %}{% price p.final_price %}

{% endif %} {% if p.is_digital %}

{% trans "Digital product — after a successful payment, the download link appears on the order page." %}

{% endif %} {% if p.weight_grams and not p.is_variable %}

{% trans "Weight (grams)" %}: {{ p.weight_grams|fa_digits }}

{% endif %} {% if p.in_stock %}
{% csrf_token %} {% if p.is_variable %}
{% trans "Choose an option" %} {% for v in variants %}

{% endfor %}
{% elif p.track_stock %}

{% blocktrans trimmed with stock=p.stock|fa_digits %}In stock: {{ stock }}{% endblocktrans %}{% if p.is_low_stock %} — {% trans "Low stock" %}{% endif %}

{% endif %} {% if not p.is_digital %}

{% endif %}
{% else %}

{% trans "Out of stock" %}

{% endif %} {% if tags %}

{% trans "Tags" %}: {% for t in tags %}{{ t.name }}{% if not forloop.last %}, {% endif %}{% endfor %}

{% endif %} {% if p.description %}
{{ p.description|linebreaks }}
{% endif %}
{% if related %}
{% endif %}

{% blocktrans trimmed with cart_count=cart_count|fa_digits %}Cart ({{ cart_count }}){% endblocktrans %} · {% trans "Continue shopping" %}