How do I add another context variable to a template file in SCA? I want to add a “short description” field. Does this have anything to do with field sets or the backend section in configuration?
Since I want to add it to the Facets.Item view (category page, not item page) it seems like that extension wouldn’t work… unless I’m mistaken, but using {{log this}} on that template doesn’t yield my already existing custom fields from that extension that are on the PDP
m
Matt Gochee
08/01/2025, 2:39 PM
Try the following handlebar in your code. You will need to add your custom item field to to the search fieldsets, and potentially other fieldsets as well
{{model.custitem_customitemfield}}
m
Mitchell Mudd
08/01/2025, 4:42 PM
No luck - model itself returns undefined and so does any combination of using the field
m
Mia Li
08/04/2025, 5:30 AM
You can add an extension, then find the view file where you want to add the variable, and extend the view file. Like this: