DocumentationAmertaThemeUtilitiesGet available product optionsFunctions

Get Available Product Options

amerta


amerta / amerta/theme/utilities/get-available-product-options / getAvailableProductOptions

Function: getAvailableProductOptions()

getAvailableProductOptions(product, qty?): {[optionId: string]: { name: string; value: string; }; }[] | null

Defined in: amerta/theme/utilities/get-available-product-options.ts:3

Parameters

| Parameter | Type | Default value | | ------ | ------ | ------ | | product | Product | undefined | | qty | number | 1 |

Returns

{[optionId: string]: { name: string; value: string; }; }[] | null