{% load i18n lfs_tags reviews_tags %}
{# Images #}
{% if product.get_image %} {% with product.get_image as product_image %} {{ product_image.title }} {% endwith %} {% endif %}
{% for image in product.get_sub_images %} {{ image.title }} {% endfor %}

{{ product.get_name }}

{# Displayed Properties #}
{% with product.get_displayed_properties as displayed_properties %} {% if displayed_properties %} {% regroup displayed_properties by property_group as displayed_property_groups %}
    {% for property_group in displayed_property_groups %}
  • {% if property_group.grouper %} {{ property_group.grouper|default_if_none:"" }} {% endif %}
      {% for prop in property_group.list %}
    • {{ prop.title }}: {{ prop.value }} {{ prop.unit|safe }}
    • {% endfor %}
  • {% endfor %}
{% endif %} {% endwith %} {% comment %} {% for property in product.get_displayed_properties %}
{{ property.title }}: {{ property.value }} {{ property.unit|safe }}
{% endfor %}{% endcomment %}
{% shipping product %} {% average_for_instance product %}
{# Prices #}
{% if for_sale %}
{{ product|get_standard_price_gross:request|currency:request }} * {% if price_unit %}/ {{ price_unit }}{% endif %} {{ product|get_for_sale_price_gross:request|currency:request }} * {% if price_unit %}/ {{ price_unit }}{% endif %}
{% if product.get_active_base_price %}
{{ product|get_base_price_gross:request|currency:request }} / {{ product.get_base_price_unit }}*
{% endif %}
{% if price_includes_tax %} {% trans '*inc. VAT' %} {% else %} {% trans '*exc. VAT' %} {% endif %}
{% else %}
{{ product|get_price_gross:request|currency:request }}* {% if price_unit %}/ {{ price_unit }}{% endif %}
{% if product.get_active_base_price %}
{{ product|get_base_price_gross:request|currency:request }} / {{ product.get_base_price_unit }}*
{% endif %}
{% if price_includes_tax %} {% trans '*inc. VAT' %} {% else %} {% trans '*exc. VAT' %} {% endif %}
{% endif %}
{# Configurable Properties #} {% if product.is_configurable_product %} {% regroup properties by property_group as property_groups %} {% for property_group in property_groups %} {% if property_group.grouper %} {% endif %} {% for prop in property_group.list %} {% if prop.obj.is_select_field %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ property_group.grouper|default_if_none:"" }}
{{ prop.title }}: {{ prop.title }}: {% if prop.obj.is_text_field %} {% else %} {% endif %} {{ prop.unit }}
{% endif %}
{% if product.is_deliverable %} {% if product.get_active_packing_unit %} {% else %} {% endif %}
{{ unit }}
{% if unit %} {{ unit }}: {% else %} {% trans "Quantity" %}: {% endif %}
{{ packing_result }}
{% else %} {% endif %}

{{ product.get_description|safe}}

{# Variants #} {% if product.is_variant %}

{% trans 'Variants' %}

{# List #} {% if display_variants_list %} {% for property in properties %} {% endfor %} {% for product_variant in variants %} {% for property in product_variant.get_variant_properties_for_parent %} {% endfor %} {% endfor %}
{% trans 'Name' %} {% if property.property_group.name %}[{{ property.property_group.name }}]{% endif %} {{ property.title }} {% trans 'Price' %}
{{ product_variant.get_name }} {{ property.selected_option_name }} {% if product_variant.get_for_sale %} {{ product_variant|get_standard_price:request|currency:request}} {{ product_variant|get_for_sale_price:request|currency:request}} {% else %} {{ product_variant|get_price:request|currency:request}} {% endif %}
{% else %}
{% for property in properties %}
{{ property.title }}:
{% endfor %}
{% endif %}
{% endif %} {# Attachments #} {% if attachments %}

{% trans 'Attachments' %}

{% for attachment in attachments %}
{% if attachment.description %}
{{ attachment.description }}
{% endif %}
{% endfor %}
{% endif %} {# Accessories #} {% if product_accessories %}

{% trans 'Accessories' %}

{% for product_accessory in product_accessories %} {% endfor %}
{% trans 'Name' %} {% trans 'Quantity' %} {% trans 'Price' %} {% trans 'Total' %}
{{ product_accessory.accessory.get_name|truncatewords_html:5 }} {{ product_accessory.quantity|quantity }} {{ product_accessory.accessory|get_price:request|currency:request}} {{ product_accessory|get_price:request|currency:request}}
{% endif %}