• 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

    (@roytanck)

    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.

    Plugin Author Roy Tanck

    (@roytanck)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Data format’ is closed to new replies.