• Hi,

    thank you for the great plugin.
    I need to display post meta that is added by another plugin to orders on receipts. In invoice creating plugins it is possible to use get_post_meta() function, however in pos template it does not get any data. I suppose it is because your plugin uses REST API. Could you please point me to what I need to do to display order meta? Do need to do something like this?
    Thank you very much for any help.

    Radim

Viewing 1 replies (of 1 total)
  • Plugin Author kilbot

    (@kilbot)

    Hi Radim,

    You are on the right track looking at the REST API, but you should look at using the ‘woocommerce_api_order_response’ filter. This will allow you to add a custom meta property to the order JSON.

    I hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Display order meta in template instead of get_post_meta()’ is closed to new replies.