Skip to product information
1 of 1
Published:2026.06.15

[Horizon] How to display a per-variant inventory table on the product detail page

[Horizon] How to display a per-variant inventory table on the product detail page

Applications

  • 商品情報管理・編集
View full details

In Shopify you can combine one to three option types (such as size and color) into up to 100 variants per product, but once the combinations grow, checking the stock one by one becomes tedious. Here is how to show a per-variant inventory table on the product page in the "Horizon" theme. It also handles irregular variations where not every combination exists.

How to show a per-variant inventory table on the product detail page in the "Horizon" theme (also supports irregular variations)

Result: per-variant inventory table


[Setup] Add a Custom Liquid block to the product information section of the product template and paste the code

Setup: add a Custom Liquid block to product information


In Horizon, the product information section is built from blocks. Open the target product template in the theme editor, choose "Custom Liquid" from "Add block" inside "Details", and paste the code from your purchase. The per-variant stock quantities will then appear as a table.

This code is almost identical to the Dawn version — the only real change is a single line at the top. Because Horizon references the product via closest.product inside a block, the first line resolves product to closest.product (falling back to the bare product). Everything after that works exactly the same as the Dawn version.


The Dawn theme version of this TIPS is here: How to display a per-variant inventory table on the product detail page (Dawn)

After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Horizon 3.5.1

商品詳細テンプレート > 商品情報 > 詳細 に「カスタムLiquid」ブロックを追加して貼り付け