{% block ftsCustomFieldsPropertyRows %}
{# Custom fields key that will be used as property in table #}
{% set keysToShow = [
"akeneo_packboxkg",
"akeneo_packboxm",
"akeneo_packboxm2",
"akeneo_packboxstk",
"akeneo_packpalletbox",
"akeneo_packpalletkg",
"akeneo_packpalletm2"
] %}
{# Filter only populated properties #}
{% set cfToShow = [] %}
{% for cf in page.product.translated.customFields|keys %}
{% if cf in keysToShow %}
{% set cfToShow = cfToShow|merge([cf]) %}
{% endif %}
{% endfor %}
{# Show filtered CF as properties #}
{% for cfKey in cfToShow %}
{% if page.product.translated.customFields[cfKey] %}
{% set propertyLabel= "fts.uom."~cfKey %}
{% set propertyValue= page.product.translated.customFields[cfKey] %}
{# @fourtwosix-edit: add snippet for imported Uom in Custom fields properties#}
{% if cfKey === 'akeneo_packboxstk' and context.salesChannel.languageId === '2fbb5fe2e29a4d70aa5854ce7ce3e20b' %}
{% set propertyValue = propertyValue|replace({' Pc' : " " ~ 'fourtwosix.customFields.unit'|trans|sw_sanitize}) %}
{% endif %}
<tr class="properties-row">
<th class="properties-label">{{ propertyLabel|trans }}:</th>
<td class="properties-value">
{% apply spaceless %}
{{ propertyValue }}
{% endapply %}
</td>
</tr>
{% endif %}
{% endfor %}
{% endblock %}