Sort the line_items in order printer template by a metafield key/value

abhi58
Visitor
1 0 1

Hello,

 

I am trying to sort the line_items in order printer template by a metafield. I tried to create a new object by iterating the line_items and storing data in a key value pair, but it seems liquid has its limitations. Is there a way to create a new object like line_items and then access it using key-value?

Replies 0 (0)