Products are managed fromDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JAQA20/LaComanda/llms.txt
Use this file to discover all available pages before exploring further.
views/admin/productos.php, which lists every item in the catalog alongside its category, price, icon, and active status. Administrators can create new products, update existing ones, and control visibility in the waiter’s order interface by toggling the activo flag. Product routing to the kitchen or barista queue is determined entirely by the category a product belongs to — choosing the right category is essential for correct order flow.
Product Fields
| Field | Type | Description |
|---|---|---|
categoria_id | integer | Required. Links the product to a category. This determines whether orders for this product route to the kitchen or the barista queue. |
nombre | string (max 120) | Required, unique within category. The display name shown in the waiter’s interface and on order tickets. |
precio | decimal(10,2) | Required. Unit price in local currency, used to calculate order totals. |
icono | string | FontAwesome icon class displayed alongside the product (e.g. fa-mug-hot, fa-bread-slice). Defaults to fa-mug-hot if left blank. |
activo | boolean | Default 1. Inactive products are hidden from the order-taking interface but remain in the database. |
Creating a Product
New products are created through the form atviews/admin/nuevoProducto.php, which submits to:
Editing a Product
Existing products are updated via the form atviews/admin/editarProducto.php, which submits to:
categoria_id. Changing the categoria_id immediately changes the routing for that product — if moved from a kitchen category to a barista category (e.g. cafes or bebidas), future orders for that product will appear in the barista queue instead of the kitchen queue.
Deleting a Product
To permanently remove a product, submit:| Parameter | Description |
|---|---|
id | The ID of the product to delete |
detalle_orden records are protected by a foreign key constraint and cannot be deleted until those order detail records are cleared. If a product needs to be retired while historical orders still reference it, use the activo=0 toggle instead of deletion.
Active/Inactive Toggle
Setting a product’sactivo flag to 0 removes it from the waiter’s order interface without deleting it. Inactive products are excluded from:
activo=1) instantly restores its visibility. This is the recommended approach for temporarily removing seasonal or out-of-stock items.
Default Product Catalog
La Comanda ships with 60 seeded products spread evenly across 6 categories:| Category | Count | Example Products |
|---|---|---|
| Cafés | 10 | Espresso, Capuccino, Latte, Americano, Macchiato |
| Comidas | 10 | Sandwich de Pollo, Panini Toscana, Club Sándwich |
| Especialidades | 10 | Frappé Caramelo, Matcha Latte, Chai Latte |
| Postres | 10 | Cheesecake, Tiramisú, Brownie, Croissant |
| Bebidas Frías | 10 | Iced Latte, Smoothie de Fresa, Limonada |
Product routing (kitchen vs barista) is determined by the product’s category slug, not by the product itself. Changing a product’s category changes where its orders appear in the preparation queues.