DocumentationAmertaThemeUtilitiesGet product optionsFunctions

Get All Product Options

amerta


amerta / amerta/theme/utilities/get-product-options / getAllProductOptions

Function: getAllProductOptions()

getAllProductOptions(locale?): Promise<ProductOption[]>

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

Fetches all product options

Parameters

| Parameter | Type | | ------ | ------ | | locale? | string |

Returns

Promise<ProductOption[]>

Array of all ProductOption objects