Re: Order metafields & notes/note_attributes errors

Order metafields & notes/note_attributes errors

Jonathan57
Shopify Partner
82 0 8

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?

Replies 6 (6)

Jonathan57
Shopify Partner
82 0 8

nevermind i choose a different method. i no longer need to mark orders.

Jonathan57
Shopify Partner
82 0 8

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?

 

Rafael_Casado
Visitor
3 0 0

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

 

Aurelio_Sanchez
Tourist
4 0 1

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?

Filipe_Catarino
Shopify Partner
13 0 4

I also have this problem, is there any fix yet?

Jonathan57
Shopify Partner
82 0 8

No fix yet for this as far as I am aware.