{% if slideshow %}
{% set slideshow_items = frappe.get_list(doctype="Website Slideshow Item", fields=["image"], filters={ "parent": doc.slideshow }) %}
{% else %}
{%- for slideshow_item in slideshow_items -%}
{% set image_src = slideshow_item['image'] %}
{% if image_src %}
{% endif %}
{% endfor %}
{% set first_image = slideshow_items[0]['image'] %}
{{ product_image(first_image, "product-full-image") }}
{{ product_image(website_image, "product-full-image") }}
{% endif %}
{{ item_name }}
{{ _("Item Code") }}: {{ variant and variant.name or name }}
{% if has_variants and attributes %}
{% for d in attributes %}
{% if attribute_values[d.attribute] -%}
{%- endif %}
{% endfor %}
{% endif %}
{{ _("Description") }}
{{ web_long_description or description or _("No description given") }}
{{ _("Specifications") }}
{{ d.label }} | {{ d.description }} |