{% if articlesCheckDiscountArray[article.id] is not defined %}
{% if article.getAbsolutePathBarcode() %}
{{ article.alias }}
{% endif %}
{% if article.ref | length > 17 %}
{{ article.ref | truncate(14, false, '...') }}
{% else %}
{{ article.ref }}
{% endif %}
PVP:
{{ articlesPriceArray[article.id] | number_format(2, ',', '.')}}€
{{ article.brand.name | slice(0, 23) }}
{% else %}
{% if article.getAbsolutePathBarcode() %}
{{ article.alias }}
{% endif %}
{% if article.ref | length > 17 %}
{{ article.ref | truncate(14, false, '...') }}
{% else %}
{{ article.ref }}
{% endif %}
AHORA:
{{ articlesCheckDiscountArray[article.id] }}
ANTES:
{{ articlesPriceArray[article.id] | number_format(2, ',', '.')}}€
{{ article.brand.name | slice(0, 23) }}
{% endif %}