Add to cart
foran_cart_addAdd a product to a customer's cart from one grocery or restaurant store, including quantity, variants, or food options, so an order can be built before checkout.
Instructions
Add a product to the customer's cart. All items in one order must come from the same store. If the product has options, pass them (see foran_product_details).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | No | mart = groceries and daily needs; bites = restaurant food. | mart |
| item_id | Yes | ||
| options | No | Food options, e.g. [{group:'Size', choice:'Large'}]. | |
| variant | No | Grocery variant name, if the product has variants. | |
| quantity | No | ||
| session_key | Yes | The session_key returned by foran_login. |