{% load i18n %} {% load static %} {% load lfs_tags %} {% load l10n %} {% load reviews_tags %} {% load lfs_seo_tags %} {% load lfs_theme_tags %} {% addon_installed "lfs_bulk_prices" as has_bulk_prices %} {% if product.is_variant %} {% endif %}

{{ product.get_name }}

{% csrf_token %}
{% if product.get_image %} {% with size=product.get_image.image|thumbnail_size:"400x400" %} {{ product.get_image.alt|default:product.get_name }} {% endwith %} {% endif %}
{% for image in product.get_images %} {% with size=image.image|thumbnail_size:"60x60" %} {% if image.alt %}{{ image.alt }}{% else %}{{ product.get_name }}{% if not forloop.first %} – {% blocktrans with number=forloop.counter %}Image {{ number }}{% endblocktrans %}{% endif %}{% endif %} {% endwith %} {% endfor %}
{# Displayed properties #} {% if product.get_displayed_properties %}
{% for property in product.get_displayed_properties %}
{{ property.title }}: {{ property.value }} {{ property.unit|safe }}
{% endfor %}
{% endif %}
{% shipping product %}
{% average_for_instance product %}
{# Prices #}
{% if product.get_for_sale %}

{{ product|get_standard_price:request|currency }} ** {% if product.price_unit %}/ {{ product.price_unit }}{% endif %}

{{ product|get_price:request|currency }}* {% if product.price_unit %}/ {{ product.price_unit }}{% endif %}

{% else %}
{{ product|get_price:request|currency }}* {% if product.price_unit %}/ {{ product.price_unit }}{% endif %}
{% endif %}
{{ packing_result }}
{% if product.get_active_base_price %}
{{ product|get_base_price_gross:request|currency }} / {{ product.get_base_price_unit }}*
{% endif %}
{# Properties for Configurable Product #} {% if product.is_configurable_product %}
{% regroup properties by property_group as property_groups %} {% for property_group in property_groups %} {% for prop in property_group.list %}
{% if prop.obj.is_select_field %} {{ prop.title }}: {% elif prop.obj.is_text_field %} {{ prop.title }} {% if prop.unit %}({{ prop.unit }}){% endif %}: {% else %} {{ prop.title }} {% if prop.unit %}({{ prop.unit }}){% endif %}: {% if prop.obj.unit_min is not None and prop.obj.unit_max is not None %} {{ prop.obj.unit_min|floatformat:-2 }} – {{ prop.obj.unit_max|floatformat:-2 }}{% if prop.unit %} {{ prop.unit }}{% endif %} {% else %} {% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% addon_include "lfs_bulk_prices" "lfs_theme/addons/bulk_prices.html" %} {% addon_include "lfs_samples" "lfs_theme/addons/samples.html" %}
{# Product with variants #} {% if product.is_variant %}

{% trans 'Variants' %}

{% if display_variants_list %} {# Radio Buttons #}
{% trans 'Name' %}
{% for property in properties %}
{{ property.title }}
{% endfor %}
{% trans 'Price' %}
{% for product_variant in variants %}
{{ product_variant.get_name }}
{% for property in product_variant.get_variant_properties %}
{{ property.value }}
{% endfor %}
{% if product_variant.get_for_sale %} {{ product_variant|get_standard_price:request|currency }} {{ product_variant|get_for_sale_price:request|currency }} {% else %} {{ product_variant|get_price:request|currency }} {% endif %} {% if product_variant.get_price_unit %} / {{ product_variant.get_price_unit }} {% endif %}
{% endfor %} {% else %} {# Select Fields #}
{% for property in properties %} {{ property.title }}:
{% endfor %}
{% endif %}
{% endif %} {# Quantity Field #} {% if product.is_deliverable %}
{% if product.active_packing_unit %}
{% if product.get_unit %}{{ product.get_unit }}{% endif %}
{% else %}
{% if product.get_unit %}{{ product.get_unit }}{% endif %}
{% endif %}
{# Add to Cart Button #}
{% endif %} {# Price Disclaimer #}
{% if price_includes_tax %} {% trans '*inc. VAT' %} {% else %} {% trans '*exc. VAT' %} {% endif %} {% if product.get_for_sale %}
{% trans '** price previously asked in the shop' %}
{% endif %}
{# Price Weight #} {% if product.get_weight %}
{% trans 'Shipping weight' %}: {{ product.get_weight|decimal_l10n:1 }} kg
{% endif %}
{# Product Tabs #}
{{ product.get_description|safe }}
{% if product_accessories %}

{% trans 'Accessories' %}

{% trans 'Name' %}
{% trans 'Quantity' %}
{% trans 'Price' %}
{% trans 'Total' %}
{% for product_accessory in product_accessories %}
{% trans 'Quantity' %}
{{ product_accessory.quantity|quantity }}
{% trans 'Price' %}
{{ product_accessory.accessory|get_price:request|currency }}
{% trans 'Total' %}
{{ product_accessory|get_price:request|currency }}
{% if not forloop.last %}
{% endif %}
{% endfor %}
{% endif %}
{% reviews_for_instance product %}
{% if product.get_static_block %}
{{ product.get_static_block.html|safe }} {% if product.get_static_block.display_files %}

{% trans 'Downloads' %}

{% endif %}
{% endif %} {% if attachments %}

{% trans 'Attachments' %}

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