DocumentationAmertaThemeUtilitiesGet product priceFunctions

Get Product Price

amerta


amerta / amerta/theme/utilities/get-product-price / getProductPrice

Function: getProductPrice()

getProductPrice(product, variantOptions?): { price: number; salePrice: number | null; type: string; }

Defined in: amerta/theme/utilities/get-product-price.ts:4

Parameters

| Parameter | Type | | ------ | ------ | | product | Product | | variantOptions? | { option: string | ProductOption; value: string; }[] |

Returns

{ price: number; salePrice: number | null; type: string; }

price

price: number

salePrice

salePrice: number | null

type

type: string = "simple"