What it sends
- A new order: once for every order, with the order number, the total, the customer and the status.
- An order that reaches a status you choose (for example Failed, Canceled, Refunded): once for each order and status.
- Low stock: after an order, for each product in it that has the number of pieces you set or fewer. At most once a day for each product.
- A new return filed by a customer.
- The texts are yours to edit, with placeholders such as {order_id}, {total}, {customer}, {status}, {product}, {qty}.
Channels
- Telegram (bot token and chat id), Slack (incoming webhook) and Discord (webhook). Use one, two or all three at the same time.
- A "Send a test message" button for each channel.
- The addresses are checked: a Slack or Discord address must be a real webhook of that service, so it cannot be pointed at another site.
- Your token and webhook addresses are stored in your database and are never shown again on the page (a mask is shown); saving with the mask keeps them.
Safe and calm
- A customer name or product name cannot ping your whole channel (@everyone and @here are made harmless) or add markup.
- A chat service that is down never stops an order: the message is logged as failed with the reason, and a "Send again" button in the log sends it later. A short time limit keeps a slow service from slowing the checkout.
- Each message is sent once: an order is never announced twice as new, even after a reinstall.
- A message log shows the last 100 messages with their result.
- Admin permissions: opening needs view rights, saving, tests and sending again need change rights. Everything is off after install until you switch it on.
Works with
OpenCart 2.3, 3.0, 4.0 and 4.1 (one zip for each).
Good to know
Screenshots are still to be added.
- The message goes out while the order is saved, so the order page waits for the chat service for up to a few seconds if the service is slow (3 seconds to connect, 6 in all). A failed message is only logged.
- Low stock is checked when an order is saved, not when you change stock by hand in the admin.
- The messages are plain text, in the language of your texts.
- The log stays in your database when you uninstall the module.
- Tested on the four versions with the real admin installer, 81 to 86 checks each, against a local stand-in server that plays Telegram, Slack and Discord (the real services were not contacted, because that needs your own bot and webhooks): the exact requests for each channel, test messages, failures and refusals, sending again, new orders, listed statuses, low stock, returns, names with mentions and markup, switches, permissions, uninstall and reinstall. The real order history code and the real return code were driven for the order and return messages. The page was also opened in a real browser on 4.1.