Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
Situation 1: Adding a metafield to an order doesn't seem to work. No errors on logs but no meta is added to the specific order.
Situation 2: Adding a note to an order overrides any existing notes on the order. This means that modifying notes via the API is useless for non-private apps because one app could override another apps stored note
Situation 3: Adding a note attribute to an order overrides any existing attributes. So the same scenario applies.
Notes and Note Attributes are only useful strictly for private apps to avoid the possibility of one app overwriting another apps notes/attributes.
Is this normal or does shopify limit each app to its own note/attribute so apps cannot override another apps notes or attributes?
My Goal is to mark an order with a piece of data that I can check for in liquid. My app needs a way to mark these orders on shopify. How can I achieve this as it seems metafields, notes and note attributes will cause issues.
Any advice?
nevermind i choose a different method. i no longer need to mark orders.
Gonna bump this.
I am thinking this is a bug of some sort.
When an order has meta stored you are unable to pull it in liquid.
{% for order in customer.orders %}
{% order.metafields %} -- Is empty
{% order.metafields.MyNameSpace %} -- Is empty
{% endfor %}
Can we not pull metafields from a customers orders in liquid?
Do you know if Situation 1 was fixed? I am trying to update an order with a metafield, I get no error but no data is being saved.
R
Hello!
I have a similar situation in my store. I made a custom metafield within my orders page 'download.link' using ShopifyFD:
- Namespace: download
- Key: link
- Value: somelink
when I try to pull it within a liquid variable ('{{ order.metafields.download.link }}') nothing seems to happen. But when I do the same thing with a customer ('{{ customer.metafields.donwload.link }}') everything works perfectly. Can anybody help me with this situation?
I also have this problem, is there any fix yet?
No fix yet for this as far as I am aware.