Hi Tec,
For each event in the plugin’s settings, the second text input field is the message text (the first is the topic). You can enter the text there that gets sent when the event occurs.
Se the little “help” tab in the top right corner of the screen for more details, such as how to use placeholders.
Thread Starter
tecxie
(@tecxie)
Hi Roy,
Is it possible that I can print the Woocommerce receipt format via MQTT?
Looking forward to your reply.
I’m not very familiar with WooCommerce, but from their docs, it looks like they do not have hook that contains the receipt content.
https://docs.woocommerce.com/wc-apidocs/hook-docs.html
There appears to be a hook called ‘woocommerce_thankyou’ that fires after a sale, so you could use it to trigger an MQTT message. Its only parameter is the order ID. There are many more action hook, some with different data being passed along.