# バリエーションの「在庫切れの時でも販売を続ける」の値をliquidで参照する

**URL:** <https://community.shopify.com/t/liquid/247304>\
**Category:** 技術的なQ＆A\
**Created:** [September 4, 2023, 8:32am UTC](https://community.shopify.com/t/liquid/247304 "2023-09-04T08:32:43Z")\
**Posts on this page:** 3\
**Page:** 1

## AI-generated summary

バリエーションの「在庫切れの時でも販売を続ける」設定をLiquidで参照する方法についての質問。

**解決方法:**
- `variant.inventory_policy`を使用することで参照可能
- Shopify公式ドキュメントに詳細が記載されている

**ステータス:** 解決済み
質問者は提供された回答に感謝し、問題が解決したことを確認。

<div class="post-metadata">

**Author:** ![r-irisawa](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@r-irisawa](https://community.shopify.com/u/r-irisawa)\
**Post date:** [September 4, 2023, 8:32am UTC](https://community.shopify.com/t/liquid/247304/1 "2023-09-04T08:32:43Z")

</div>

![スクリーンショット 2023-09-04 17.30.25.png](https://canada1.discourse-cdn.com/shopifyforum/original/4X/7/6/0/760d174f7eea5ee1622c9dbde830f5bb73cf259d.png)

↑の箇所になります。

variatntのオブジェクトから参照できるとは思うのですが、それっぽいの見当たらず…

よろしくお願いいたします。

---

<div class="post-metadata">

**Author:** ![ogasawarakyohei](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/ogasawarakyohei/32/28415_2.png) [@ogasawarakyohei](https://community.shopify.com/u/ogasawarakyohei)\
**Post date:** [September 4, 2023, 9:45pm UTC](https://community.shopify.com/t/liquid/247304/2 "2023-09-04T21:45:00Z")

</div>

「在庫切れの時でも販売を続ける」はvariant.inventory\_policyです。

[https://shopify.dev/docs/api/liquid/objects/variant#variant-inventory\_policy](https://shopify.dev/docs/api/liquid/objects/variant#variant-inventory_policy)

---

<div class="post-metadata">

**Author:** ![r-irisawa](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@r-irisawa](https://community.shopify.com/u/r-irisawa)\
**Post date:** [September 5, 2023, 4:51am UTC](https://community.shopify.com/t/liquid/247304/3 "2023-09-05T04:51:43Z")

</div>

ありがとうございます！
