Variant Option Counter
A display-only text element showing how many values a product option has (e.g. "Available in 8 Colors").
Last updated
How to use
Connect
⛁ Butter Datato the product'sButter DataCMS field.Set
Option Titleto the option you want to count (case-insensitive, e.g. "Color").Set
↳ Singularand↳ Pluralfor the label after the count (e.g. "Color" vs. "Colors").Optionally add
Prefix/Suffixcopy (include spaces as needed, e.g. "Available in ").Style
Font,Color, andTransform.
Static count, not live selection
This is a display-only element — it counts the values available for the given option in the connected Butter Data and does not react to what the customer has currently selected. It switches automatically between ↳ Singular and ↳ Plural based on the count, and subscription choices don't count toward the tally — only real product options like Color or Size. It renders an empty, invisible placeholder when Butter Data is missing, Option Title doesn't match any option on the product, or the count is 0.