# Cart Service

# Show the minicart

Emits true to the minicart observable

showMiniCart(): void;

# Hide the minicart

Emits false to the minicart observable

hideMiniCart(): void;

# Clear all items from cart

Runs /cart/clear.js, and emits a clean cart to the cart observable

clearCart(): void;

# Add a product to cart

Update the quantity of a variantId in the cart

updateQuantity(variantId: number, quantity: number): Promise<void>;