Did you have any luck figuring this out? I'm looking for a similar solution to display a message based on if cart contents had an extra field value. I have the basic idea, but I'm not sure how to call the extra field array. Any thoughts?
PHP Code:
{if $extra_fields.11.field_value ne ""}
<span>{$lng.lbl_haz_prod}</span>
{/if}