I am trying to read from order.attributes an element I saved during the order.
I want to read from the object saved as json, for example:
{
“object1”: {
“arr1”: [“product-item-1”],
“arr2”: [“Product-Item-2”]
},
“object2”: {“note1”: [“”], “note2”: [“”]}
}
I’m trying to read {{order.attributes.jsonObject.object1}} - but it’s failed.
Even with the addition of a json filter or json_string the call fails.
I tried to work around this issue by adding a link to the JS file as defined in the API: {{‘script.js’ | asset_url | script_tag}}
The file is stored under the Assets folder in the store, but it seems that the definition of the link to the file is not received.