We set up an input on our Cart Template to capture a custom value, “Order Reference”:
<input id=“order-reference” type=“text” name=“attributes[Order Reference]” value=“{{ cart.attributes[“Order Reference”] }}” maxlength=“50” placeholder=“e.g. Allen Wedding”>
This is working fine, and the value is displaying in the backend as expected.
Now, I’d like to display this value on the Account page inside the Order History table so customers can see the reference they attached to their order. But I can’t for the life of me figure out how to do this. I’m relatively new to Liquid, and I’m not sure it’s even possible. I thought maybe a Metafield might be the way to go, but our theme at the moment doesn’t support them for Customers yet, and I prefer to do a custom solution as opposed to an app.
Any help or suggestions would be much appreciated.