You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in the context, custom fields are an array of objects. This makes it not possible to cleanly get a specific field value by name. In the template you'd have to loop over the array, and only print the value if the name matches what you want. It would be nice if there was some kind of helper like {{customField 'my_field_name'}}, or even a more generic {{valueFromObjectArray 'name' 'my_field_name' product.custom_fields}}
The text was updated successfully, but these errors were encountered:
Currently in the context, custom fields are an array of objects. This makes it not possible to cleanly get a specific field value by name. In the template you'd have to loop over the array, and only print the value if the name matches what you want. It would be nice if there was some kind of helper like
{{customField 'my_field_name'}}
, or even a more generic{{valueFromObjectArray 'name' 'my_field_name' product.custom_fields}}
The text was updated successfully, but these errors were encountered: