Home > widget-integration > FormattedProduct
FormattedProduct interface
Product formatted for template rendering. Primary values (price_min, etc.) are formatted strings for direct display. Raw numeric values are available with _raw suffix.
Signature:
export interface FormattedProduct
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string | null |
Formatted compare_at_price_max (alias) | ||
|
number | null |
Raw numeric compare_at_price_max or null | ||
|
string | null |
Formatted compare_at_price_max or null | ||
|
string | null |
Formatted compare_at_price_min (alias) | ||
|
number | null |
Raw numeric compare_at_price_min or null | ||
|
string | null |
Formatted compare_at_price_min or null | ||
|
string | |||
|
number | |||
|
Array<{ src: string; alt?: string; }> | |||
|
string |
Formatted price_max (alias) | ||
|
number | null |
Raw numeric price_max or null | ||
|
string |
Formatted price_max string | ||
|
string |
Formatted price_min (alias) | ||
|
number | null |
Raw numeric price_min or null | ||
|
string |
Formatted price_min string (e.g., "$19.99" or "100đ") - primary value for templates | ||
|
string | |||