Title: Data format
Last modified: August 15, 2018

---

# Data format

 *  [tecxie](https://wordpress.org/support/users/tecxie/)
 * (@tecxie)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/data-format-3/)
 * Hi Roy,
 * I installed your plugin and tried to print out the text to my WebSocket printer,
 * I can receive your message from the same topic, but I am not sure if I can edit
   the message format from your plugin?
 * Regards,
    Tec

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Roy Tanck](https://wordpress.org/support/users/roytanck/)
 * (@roytanck)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/data-format-3/#post-10605448)
 * 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](https://wordpress.org/support/users/tecxie/)
 * (@tecxie)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/data-format-3/#post-10701526)
 * Hi Roy,
 * Is it possible that I can print the Woocommerce receipt format via MQTT?
 * Looking forward to your reply.
 *  Plugin Author [Roy Tanck](https://wordpress.org/support/users/roytanck/)
 * (@roytanck)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/data-format-3/#post-10716901)
 * 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](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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Data format’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-mqtt_349bce.svg)
 * [WP-MQTT](https://wordpress.org/plugins/wp-mqtt/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mqtt/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mqtt/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mqtt/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mqtt/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mqtt/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Roy Tanck](https://wordpress.org/support/users/roytanck/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/data-format-3/#post-10716901)
 * Status: not resolved