[**@bondsports/general**](../README.md) • **Docs**

***

[@bondsports/general](../globals.md) / getPriceDataKey

# Function: getPriceDataKey()

> **getPriceDataKey**(`productId`, `priceId`, `unitPrice`): `string`

Returns the key for a cart item, by concatenating the product ID, price ID and unit price.

## Parameters

• **productId**: `number`

{number} - The product ID

• **priceId**: `number`

{number} - The price ID

• **unitPrice**: `number`

{number} - The unit price

## Returns

`string`

- The cart item key

## Defined in

[utils/cart.util.ts:45](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/utils/cart.util.ts#L45)
