Skip to content

setQuantity

Set the quantity of an item in the cart by id and quantity.

If the items is not yet in the cart, it will be added.

Example

import { setQuantity } from "fullcart"
setQuantity("your-product-id", 10)
setQuantity("your-product-id", 1)
setQuantity("your-product-id", 0)