{% if __SELF__.showReviews %}
{{ 'offline.mall::frontend.reviews.overall_rating' | trans }}
{% set count = __SELF__.allReviews.count %} {% set label = count ~ ' ' ~ ('offline.mall::frontend.reviews.ratings' | transchoice(count | default(0))) %} {% partial __SELF__ ~ '::stars' rating=__SELF__.product.reviews_rating label=label variant="big" %}
{{ 'offline.mall::frontend.reviews.overall_rating_summary' | trans({value: __SELF__.product.reviews_rating}) }}
{% for category in __SELF__.reviewCategories %} {% set rating = __SELF__.product.category_review_totals.where('review_category_id', category.id).first().rating %} {% partial __SELF__ ~ '::stars' rating=rating label=category.name variant="big" %} {% endfor %}
{% endif %}
{% if variants.count > 0 %}
{{ 'offline.mall::frontend.variants' | trans }}
{% for value, variant in variants %} {% set variant = variant.first() %} {% endfor %}
{% endif %} {% if props.count > 0 and item.inventory_management_method == 'variant' %}
{% partial __SELF__ ~ '::properties' props=props %}
{% endif %} {% if item.custom_fields.count > 0 %}
{% partial __SELF__ ~ '::customfields' fields=item.custom_fields %}
{% endif %}
{% partial __SELF__ ~ '::price' item=item %}
{% partial __SELF__ ~ '::tax-info' item=item %}
{% if item.allow_out_of_stock_purchases %} {% partial __SELF__ ~ '::addtocart.htm' item=item %} {% else %}
{{ 'offline.mall::frontend.stock.checking' | trans }}
{% endif %}