OpenCart can change an order’s requested status while processing order history. A connector should read the status actually saved before it sends a WhatsApp update. This recipe uses the catalog model event in OpenCart 4.1.0.3 and a developer-maintained extension. Map each store’s dispatch status and sender, check the recipient’s permission, and test a repeated history entry and a payment extension. The built-in Notify Customer option handles OpenCart email.
What should the merchant decide first?
Ask staff to demonstrate how an order moves from paid to dispatched. Record the numeric status ID that actually means dispatch in your shop. If a courier module creates a label before pickup, choose wording that matches that milestone. Configure the store ID, sender workspace, service-message permission source and approved template together. OpenCart’s Notify Customer control concerns the order-history email. Turning it on does not configure WhatsApp. OpenCart order management
How do you detect the saved order status?
In the tagged 4.1.0.3 source, the catalog order model’s addHistory method can change a requested status after a fraud check and then write the resulting status to the order and its history. Register an extension for catalog/model/checkout/order.addHistory/after. The loader constructs this model event after the method runs. Read the saved order with getOrder(order_id), then compare the returned order_status_id and store_id with the merchant’s mapping. Ignore a missing order or a status that fails the check. Order model · Event dispatch in the loader
Register a notification candidate from that confirmed change. Queue the work outside the checkout request. If a worker runs later, check for a reversal or hold before sending. Use the extension conventions for the store’s installed release. Verify that each payment or fulfillment extension goes through this model. A direct write by another extension may produce no event. OpenCart extension documentation
What does the connector send to bitbybit?
Resolve the intended buyer and check permission. For a single dispatch notice per order, use a unique key for the store, order and notification type. A repeated history entry should reuse the same key. If you ship in several parcels, add an authoritative shipment ID from your warehouse before promising parcel-specific updates.
Call POST /whatsapp/open/v1/messages/send-template at https://api.bitbybit.studio on the server with a workspace x-api-key. Supply international recipient digits in to, CRM as template_source, the approved template ID as template_name, and params in body-placeholder order. Record the result and reconcile ambiguous responses before retrying. API authentication · Template API
What cases should you test?
Test a manual dispatch, a repeat entry for that status, a payment-extension change and a request that ends on a review status. Only the first confirmed dispatch for an eligible order should generate the message. In a multistore installation, repeat the test with the other shop and inspect the sender and template the customer receives.
How can staff verify the mapping before launch?
Ask an operator to select a test order in each shop and write down its starting status, the status they request and the status shown after saving. Compare that final value to the status the connector read. Use each shop’s own approved test recipient. For a fraud-review case, check that the connector suppressed the dispatch notice even if the operator originally requested a sending status. For a repeated history entry, look for one customer message across both attempts.
When a single installation serves several domains, record which workspace received the reply. The OpenCart storefront guide provides a second way to test whether shoppers reach the intended support team.