Untitled
unknown
plain_text
a year ago
1.1 kB
3
Indexable
Never
{%- comment -%} -------------------------------------------------------------------------------------- REVIEWS -------------------------------------------------------------------------------------- {%- endcomment -%} {%- when 'reviews' -%} <div class="product-block-list__item product-block-list__item--reviews" {{ block.shopify_attributes }}> <span id="product-reviews" class="anchor"></span> <div class="card"> <div class="card__section"> {%- assign reviews_count = product.metafields.spr.reviews | split: '<meta itemprop="reviewCount" content="' | last | split: '">' | first | times: 1 -%} <div id="shopify-product-reviews" class="spr-reviews {% if reviews_count > 0 %}spr-reviews--has-reviews{% endif %}" data-id="{{ product.id }}">{{ product.metafields.spr.reviews }}</div> </div> </div> </div> {%- comment -%}