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

***

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

# Function: updateCartPrices()

> **updateCartPrices**\<`T`, `T2`\>(`cartPrices`, `updatePrices`?): `T`

Updates the prices of products in the cart.

## Type Parameters

• **T** *extends* [`ICartPricingResult`](../interfaces/ICartPricingResult.md)

extends ICartPricingResult

• **T2** *extends* [`IUpdateCartPrices`](../interfaces/IUpdateCartPrices.md)

extends IUpdateCartPrices

## Parameters

• **cartPrices**: `T`

{T} - The cart prices

• **updatePrices?**: `T2`

{T2} - The prices to update. For CATEGORY/GLOBAL flows,
`updatePrices.categories.*` and `updatePrices.subtotal` are subtotal pools
(pre-exclusive-tax).

## Returns

`T`

- The updated cart prices

## Defined in

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