{% set product = variant.product %}
{{ item.productName }} {{ variant.code }} {% if product.hasOptions() %}
{% for option_value in variant.optionValues %}
{{ option_value.name }}: {{ option_value.value }}
{% endfor %}
{% elseif item.variantName is not null %}
{{ item.variantName }}
{% endif %}