Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Is there any way to reorder metafields in the store admin UI?
And now that metafields are 'officially' supported, it still doesn't seem that exporting/importing products including metafields is supported, is that right?
Both of these a pretty basic features that I would've hoped would be released with the initial launch of Shopify's metafields feature this year.
Having the ability to reorder would be a huge help to make the UI on products pages make sense to clients
Solved! Go to the solution
This is an accepted solution.
Hi @timd
It is possible to reorder the native metafields in Shopify but it's a bit hacky. I don't get why reordering wasn't thrown in as part of the first release of this feature we've all been screaming for since 2014. With all of Shopify's React ninja skills a simple drag and drop UI would have been the cherry on this metafield-flavoured cake. Onwards to Unite 2022's announcements!
Anyway, the trick to doing this is to unpin everything and then pin each item in the reverse order you need to display them. After pinning an item hit refresh and then pin your next item, hit refresh and so on.
For example, if you have three metafields called:
Extra product info 1
Extra product info 2
Extra product info 3
and you want to display them in that order at the bottom of the admin product page you would unpin everything, hit refresh, then pin "Extra product info 3", hit refresh, then pin "Extra product info 2", hit refresh, then pin "Extra product info 1" and hit refresh. If your list is longer than 5 or 6 items you may also want to take two valium after you have completed the task because if you mess up the sequence you will have to start again.
Hope that helps!
Dear @timd
Yes it can be be. Are you using any meta fields app?
No I've just been using Shopify's native functionality
Yes, it is quite annoying, but at the moment is seems not possible re-order custom metafields.
This is a shame, its such a basic feature that I would have hoped would make a v1 release. Hopefully they are working on this
Just like @drakedev mentioned, change the order of native metafields is actually not supported, hoping that this is implemented in the near future, next quarter.
This is an accepted solution.
Hi @timd
It is possible to reorder the native metafields in Shopify but it's a bit hacky. I don't get why reordering wasn't thrown in as part of the first release of this feature we've all been screaming for since 2014. With all of Shopify's React ninja skills a simple drag and drop UI would have been the cherry on this metafield-flavoured cake. Onwards to Unite 2022's announcements!
Anyway, the trick to doing this is to unpin everything and then pin each item in the reverse order you need to display them. After pinning an item hit refresh and then pin your next item, hit refresh and so on.
For example, if you have three metafields called:
Extra product info 1
Extra product info 2
Extra product info 3
and you want to display them in that order at the bottom of the admin product page you would unpin everything, hit refresh, then pin "Extra product info 3", hit refresh, then pin "Extra product info 2", hit refresh, then pin "Extra product info 1" and hit refresh. If your list is longer than 5 or 6 items you may also want to take two valium after you have completed the task because if you mess up the sequence you will have to start again.
Hope that helps!
User | RANK |
---|---|
10 | |
9 | |
9 | |
8 | |
7 |