Answer the question
In order to leave comments, you need to log in
How to display a product with id = 5 in a template, using Twig as an example?
I have a collection of products. I can display the name of the first product {{ product[0].name}}
. Or product id {{ product[0].id}}
Question. How to display the name of the product with id=5 for example? I will be grateful for help.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question