Home > widget-integration > FormattedVariant
FormattedVariant interface
Variant formatted for template rendering. Primary values (price, compare_at_price) are formatted strings for direct display. Raw numeric values are available with _raw suffix.
Signature:
export interface FormattedVariant
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
boolean | |||
|
string | null |
Formatted compare price (alias) | ||
|
number | null |
Raw numeric compare price or null | ||
|
string | null |
Formatted compare price or null | ||
|
number | |||
|
string |
(Optional) | ||
|
string |
Formatted price string (alias) | ||
|
number | null |
Raw numeric price value or null if not available | ||
|
string |
Formatted price string (e.g., "$19.99" or "100đ") - primary value for templates | ||
|
string |