woocommerce-pos icon indicating copy to clipboard operation
woocommerce-pos copied to clipboard

Product meta data in order items are no longer showing in receipts

Open 1000camels opened this issue 3 years ago • 4 comments

I am not sure when this changed, but the meta data used to appear in our receipts. I have had a go at understanding what is happening, but I cannot seem to fully understand how the app works. I have reported this as part of support for my Pro license, but i have yet to get a response. I would love some help trying to understand what is happening in the POS app. Any help debugging this would be appreciated. This is very important to our business.

1000camels avatar Jan 12 '22 03:01 1000camels

Ok, I was able to figure out that the only metadata returned for an order is _pos_store_title, _pos, _pos_user, _pos_user_name, _pos_payment_result and _pos_payment_message.

1000camels avatar Jan 12 '22 03:01 1000camels

I can see now I was misunderstanding the data. Those meta values are for the order, not for the line_items, however the line_items have empty meta_data and meta properties. Whereas when I make an API call to my order (using /wp-json/wc/v2/orders/####), I can see the appropriate metadata. So any idea where the API call you are using or why the metadata for the line_items are removed?

1000camels avatar Jan 12 '22 04:01 1000camels

Nothing has changed in the plugin code - that is one of biggest problems I'm trying to fix now, I want to issue updates more regularly 😬

Can you please compare the JSON response for /wp-json/wc/v2/orders/#### vs /wp-json/wc/v2/orders/####?pos=1. You can post it here or alternatively you can email to support and I'll pick up the conversation on a private channel.

kilbot avatar Jan 12 '22 09:01 kilbot

There was no difference between the two. I sent you a support request

1000camels avatar Jan 12 '22 21:01 1000camels