Messages
🔑 Redis Key
tenant_slug:modal_messages
📝 Description
This section lists the system messages presented to the user. When a /mo/v200/init call returns a negative outcome, the code returned in /mo/v200/validate_order is searched within these messages: if found, it is shown; otherwise, a generic error is displayed.
Some actions use predefined system codes which are recommended to be configured:
delete_item: remove an item from the cartedit_item: edit a product in the cartcancel_order: empty the cart
Each modal message contains the list of operations, and each operation shows a specific button.
The system automatically manages confirmation and cancel buttons. Additional operations can be configured using the message slug:
removeforedit_item: removes the selected itemchange_scheduleforbooking_changed: opens a time slot selection popup
🧾 Fields
| # | Field | Description |
|---|---|---|
| 1 | operations | Array of available operations |
| 2 | labels | title, body and operation-text for customizing the button text |
| 3 | colors | Colors per operation: operation-border, operation-background, operation-text. Remove operation- prefix for defaults |
💾 JSON Example
{
"edit_item": {
"operations": [
"cancel",
"remove",
"confirm"
],
"labels": {
"it": {
"title": "Modifica o rimuovi",
"body": "Modifica la composizione del tuo prodotto box o rimuovilo dal carrello",
"cancel-text": "ANNULLA",
"remove-text": "RIMUOVI PRODOTTO",
"confirm-text": "MODIFICA PRODOTTO"
},
"en": {
"title": "Edit or remove",
"body": "Edit the composition of your box product or remove it from the cart",
"cancel-text": "CANCEL",
"remove-text": "REMOVE PRODUCT",
"confirm-text": "EDIT PRODUCT"
}
},
"colors": {
"border": "#adaeae",
"background": "#fefefe",
"text": "#26251d",
"confirm-border": "#26251d",
"confirm-background": "#26251d",
"confirm-text": "#fffccc"
}
},
"delete_item": {
"operations": [
"cancel",
"confirm"
],
"labels": {
"it": {
"title": "Elimina prodotto",
"body": "Confermi di voler eliminare il prodotto?",
"cancel-text": "NO, ESCI",
"confirm-text": "SÌ, ELIMINA PRODOTTO"
},
"en": {
"title": "Delete product",
"body": "Do you confirm to delete the product?",
"cancel-text": "NO, EXIT",
"confirm-text": "YES, DELETE PRODUCT"
}
},
"colors": {
"border": "#e2e2e2",
"background": "#e2e2e2",
"text": "#969696",
"confirm-border": "#26251d",
"confirm-background": "#26251d",
"confirm-text": "#fffccc"
}
},
"cancel_order": {
"operations": [
"confirm",
"cancel"
],
"labels": {
"it": {
"title": "Perdi l’ordine",
"body": "Svuotando il carrello rimuoverai tutti gli articoli del tuo ordine. L’ordine andrà perso, confermi?",
"cancel-text": "ANNULLA",
"confirm-text": "SÌ, RIMUOVI TUTTO"
},
"en": {
"title": "Lose the order",
"body": "By emptying the cart you will remove all items from your order. The order will be lost, do you confirm?",
"cancel-text": "CANCEL",
"confirm-text": "YES, REMOVE ALL"
}
},
"colors": {
"confirm-border": "#e2e2e2",
"confirm-background": "#e2e2e2",
"confirm-text": "#969696",
"border": "#26251d",
"background": "#26251d",
"text": "#fffccc"
}
},
"booking_changed": {
"operations": [
"cancel",
"change_schedule",
"confirm"
],
"labels": {
"it": {
"title": "booking_changed_title",
"body": "booking_changed_description",
"cancel-text": "NO, ANNULLA",
"change_schedule-text": "SCEGLI ORARIO",
"confirm-text": "AGGIORNA ORARIO"
},
"en": {
"title": "booking_changed_title",
"body": "booking_changed_description",
"cancel-text": "NO, CANCEL",
"change_schedule-text": "CHOOSE TIME SLOT",
"confirm-text": "UPDATE TIME SLOT"
}
},
"colors": {
"confirm-border": "#26251d",
"confirm-background": "#26251d",
"confirm-text": "#fffccc",
"border": "#adaeae",
"background": "#fefefe",
"text": "#26251d"
}
}
}