Home > widget-integration > ProductService > formatPriceWithSettings
ProductService.formatPriceWithSettings() method
Signature:
formatPriceWithSettings(priceMin: number | string, compareAtPriceMin: number | string | null, priceMax: number | string | null, settings: PriceDisplaySettings & {
productItemAmountTranslation?: string;
productItemSavingAmountTranslation?: string;
}): FormattedPriceResult;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
priceMin |
number | string | |
|
compareAtPriceMin |
number | string | null | |
|
priceMax |
number | string | null | |
|
settings |
PriceDisplaySettings & { productItemAmountTranslation?: string; productItemSavingAmountTranslation?: string; } |
Returns: