Skip to content

addItem

Add an item to the cart by id.

If the item is already in the cart, the quantity will be incremented by 1.

Example

import { addItem } from "fullcart"
addItem("your-product-id")