lufa_add_to_basket
Add a product to the Lufa Farms basket using product ID. Optionally specify a quantity increment; changes take effect immediately.
Instructions
Add a product to the basket. Changes take effect immediately (there is no separate draft state) — verified live: basket total updated right after the call, with no save_basket needed to see it reflected.
Products that come in multiple sizes/formats (e.g. "family format") are
listed as separate product IDs, not a weight variant of the same product
— check the sub_products field from lufa_get_product_details to find
them, then add the desired variant's ID directly. Requires an active
session.
Args: product_id: Product ID to add. quantity: Number of units to add on top of the current basket quantity (default 1). This is an increment, not an absolute target quantity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | ||
| product_id | Yes |