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

compare_at_price_max_formatted

string | null

Formatted compare_at_price_max (alias)

compare_at_price_max_raw

number | null

Raw numeric compare_at_price_max or null

compare_at_price_max

string | null

Formatted compare_at_price_max or null

compare_at_price_min_formatted

string | null

Formatted compare_at_price_min (alias)

compare_at_price_min_raw

number | null

Raw numeric compare_at_price_min or null

compare_at_price_min

string | null

Formatted compare_at_price_min or null

handle

string

id

number

images_info

Array<{ src: string; alt?: string; }>

price_max_formatted

string

Formatted price_max (alias)

price_max_raw

number | null

Raw numeric price_max or null

price_max

string

Formatted price_max string

price_min_formatted

string

Formatted price_min (alias)

price_min_raw

number | null

Raw numeric price_min or null

price_min

string

Formatted price_min string (e.g., "$19.99" or "100đ") - primary value for templates

title

string

variants

FormattedVariant[]