{% for product in products %} {% set image = product.imageUrl ? product.imageUrl : getImage(products_images ~ product.image.name) %} {% set data = [product.id,categoryId] %}
{% if product.new %}
{{ 'app.shop_owner.pages.products.form.general.newest'|trans }}
{% endif %}
{{ product|truncate(12) }}
{% if true == productShopModes is defined %} {{ productShopModes.first.price | price }} {% endif %}
{% else %} {{ 'app.global.detail.no_record_found'|trans }} {% endfor %}