Add or set a product in the cart
add_to_cartAdd a product to your cart by specifying its slug and quantity. Requires sign-in and a delivery slot set beforehand.
Instructions
Set the quantity of one product in the cart (adds it if absent). Accepts a product slug from search_products. Requires sign-in AND an existing cart: call set_delivery_slot first, otherwise this fails with 404 'Le panier est introuvable'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Product slug from search_products | |
| quantity | No | Quantity to set (default 1) |