Skip to main content

Type Alias: RemoveCartItem()

RemoveCartItem: (cartId, cartItemId) => Promise<void>

Removes a specified item from the cart.

Parameters

cartId: string

The unique identifier for the cart.

cartItemId: string

The unique identifier for the cart item to be removed.

Returns

Promise<void>

A promise that resolves when the item has been successfully removed from the cart.

Throws

Error Will throw an error if cartId or cartItemId is missing.

Example usage:

await window.mimeeqApp.actions.removeCartItem('cart123', 'item456');
console.log('Item removed from cart');