# バリエーション画像の下に売り切れを表示

**URL:** <https://community.shopify.com/t/topic/35302>\
**Category:** 技術的なQ＆A\
**Created:** [February 9, 2021, 3:08am UTC](https://community.shopify.com/t/topic/35302 "2021-02-09T03:08:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![matsudaira](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@matsudaira](https://community.shopify.com/u/matsudaira)\
**Post date:** [February 9, 2021, 3:08am UTC](https://community.shopify.com/t/topic/35302/1 "2021-02-09T03:08:10Z")

</div>

もう少しのところでつまずいており、どうぞ知恵をお貸しください。

Q：バリーエーション画像ごとに在庫数を表示し、売り切れと表示させたい

バリエーションのproductオブジェクトが  
画像は「image in product.images」  
在庫数は「variant in product.variants 」  
と違っている為、一度のFor文の中で回せないのですが、  
Liquidで「&」に当たる様な方法はあるのでしょうか？

{% for image in product.images & variant in product.variants %}- ![{{ image.alt | escape }}]() {% if variant.inventory\_quantity ==1 %}

在庫あり

{% else %}

SOLD OUT

{% endif %}
{% endfor %}

の中に- どうぞよろしくお願い致します。

---

_[View the full topic](https://community.shopify.com/t/topic/35302)._
