I just finished another Whatsapp send order modification.
What's different from the last one?
Well, to start, this one use callmebot API, and yes the mod is in server-side PHP (customer NodeJS untouched)
For sure MY VERSION has better functions, because it is very well-thought, systematic, and I positioned myself as Super-admin, store-owner, store-manager, and customer when I decide how the flow should go.
note:
resto owner X have resto A, B, and C
resto owner Y have resto K, and L
resto owner Z have resto P (managing himself)
scenarios:
1.customer order food from resto A
2.payment accepted -> automatic send WA msg to resto manager A (not owner X, unless owner managing resto A)
1.customer order food from resto K
2.payment accepted -> automatic send WA msg to resto manager K (not owner Y, unless owner managing resto K)
1.customer order food from resto C
2.payment accepted -> automatic send WA msg to resto manager C (not owner X, unless owner managing resto C)
1.customer order food from resto P
2.payment accepted -> automatic send WA msg to resto manager P (or owner Z, because owner managing resto P)
Criterias:
- Customization in the Server files, not in Customer (NodeJS files)
- Editable by resto manager or owner (phone no, callmebot api, and the msg)
- Each resto manager may edit (with emoji) the header and footer WA message different from other restos.
- No modification on the database structure (No need to worry, safe for Foodomaa future Upgrades)
- DO NOT depend on OneSignal notification settings. No need to set OneSignal if you don't need to.