on ‎2019 Jan 28 5:41 PM
I would like to know is if possible now to create plugins for the kiosk or hospitality mode?
Request clarification before answering.
Hello Robert:
Let me take the opportunity to describe our requirement. Isaac works with me.
We are trying to localize CCO for the Dominican Republic. As part of that process we need to accomplish the following:
We love the UI of the kiosk mode and also have several prospects for restaurant mode, which has a lot of similarities with the kiosk mode, so we have been trying to figure out the correct events/hooks for our needs in kiosk mode. However, we have noticed that several events (even in the backend) are never fired in kiosk mode. Such is the case for example for this event, which works fine in Retail mode but not in kiosk mode:
@PluginAt(pluginClass=IReceiptManager.class, method="dirtyStore", where=POSITION.BEFORE)
So, I guess the main questions for us are these:
With regards to selecting the invoice type, since injecting JS to the sales screen is not currently possible, we came up with two options:
So, I know it's been an extensive message, but this is more or less our scenario. Kindly let me know your thoughts to point us in the right direction if you can.
Thanks in advance!
Best regards,
Joerg.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @isaacceo,
you can develop plugins for these UI Modes but afaik it is currently not possible to inject your own javascript like you can in retail mode.
Can you be more precise about what you do want to achieve?
Regards
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Isaac,
depending on what you want to achieve, you currently have the following options:
1. create a quick selection button in ccom where you can insert custom js code which could call your cco plugin via REST.
2. There are some paths you can use to send JSON Data via a broadcaster.
BroadcasterHolder.INSTANCE.getBroadcaster().broadcastActionForPath("/ws/tech", "myPlugin", oJSON);
The serialized oJSON object (from net.sf.json.JSONObject) should look something like this:
{ "type": "event", "eventId": "your_event_id", "eventName": "SET_USER_DEFINED_MESSAGE", "eventPayload": { elements: [ "key", "value"], "width" : "200"}}
With this you can send e.g. a message to the cashier which is displayed left of the logout and config button.
If, when and how a method like the JSInject in Retail mode will be available I really don't know.
But you can drop me a line with further details on what features your plugin should implement and maybe it is already possible with the given functionality.
Regards
Robert
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.