t}} {% endif %} {% for product in products %} {% assign first_available_variant = false %} {% for variant in product.variants %} {% if first_available_variant == false and variant.available %}{% assign first_available_variant = variant %}{% endif %} {% endfor %} {% if first_available_variant == false %}{% assign first_available_variant = product.variants[0] %}{% endif %} {% if product.images[0] %} {% assign featured_image = product.images[0] | img_url: '000x' %} {% else %} {% assign featured_image = no_image_url | img_url: '000x' %} {% endif %} {% if product.id == cur_product_id %}{{translation.this_item}} {% endif %}{{product.title}}{% unless product.available %} - {{translation.sold_out}}{% endunless %} {% assign variants_size = product.variants | size %} {% for variant in product.variants %} {{variant.title}}{% unless variant.available %} - {{translation.sold_out}}{% endunless %} {% endfor %} {% if box.template.elements contains 'price' %} {{first_available_variant.price | money}} {% if first_available_variant.compare_at_price > first_available_variant.price %} {{first_available_variant.compare_at_price | money}} {% endif %} {% endif %} {% endfor %} {% elsif box.template.id == 0 or box.template.id == '0' %} {{box.title.text}} {% if box.subtitle %} {{box.subtitle.text}} {% endif %} {% assign total_price = 0 %} {% for product in products %} {% assign first_available_variant = false %} {% for variant in product.variants %} {% if first_available_variant == false and variant.available %}{% assign first_available_variant = variant %}{% endif %} {% endfor %} {% if first_available_variant == false %}{% assign first_available_variant = product.variants[0] %}{% endif %} {% if first_available_variant.available and box.template.selected %} {% assign total_price = total_price | plus: first_available_variant.price %} {% endif %} {% if product.images[0] %} {% assign featured_image = product.images[0] | img_url: '000x' %} {% else %} {% assign featured_image = no_image_url | img_url: '000x' %} {% endif %} {% unless product.available %} {{translation.sold_out}} {% endunless %} {% if product.id == cur_product_id %}{{translation.this_item}} {% endif %}{{product.title}}{% unless product.available %} - {{translation.sold_out}}{% endunless %} {% assign variants_size = product.variants | size %} {% for variant in product.variants %} {{variant.title}}{% unless variant.available %} - {{translation.sold_out}}{% endunless %} {% endfor %} {% if box.template.elements contains 'price' %} {{first_available_variant.price | money}} {% if first_available_variant.compare_at_price > first_available_variant.price %} {{first_available_variant.compare_at_price | money}} {% endif %} {% endif %}