How can I effectively order metaobject entries for e-commerce flavors?

How can I effectively order metaobject entries for e-commerce flavors?

maxgrind
Shopify Partner
17 0 2

For our e-commerce store, we have the same flavours used across a lot of different products which we currently manage by using blocks on the templates, but this means there's a lot of duplication and if one of the flavours changes, we have to update it across multiple different product templates.


Metaobjects seems like a good solution for this, but if I just enter an entry for each flavour, they'll output in a seemingly unknown order. Because each flavour has more than 1 setting I can't just use a "List of entries". 


The only way I can think to achieve this is create 1 Metaobject for the individual flavours, then create another Metaobject which is a list of entries of my flavour Metaobject... Just feels a little off - is this the only way to achieve this?

 

Thanks!

Replies 2 (2)

eatinsnax
Shopify Partner
1 0 0

I ran into the same issue and came up with the same solution, which doesn't sound great. Did you ever find anything better?

maxgrind
Shopify Partner
17 0 2

If it's a metaobject you're using on a section, schemas now accept `metaobject_list` as a setting, so you can add it like this then order how you like in the admin. If it's a metaobject that you use outside of sections, then no i don't think there's a better way.