S
S
semki0962019-04-26 22:39:26
Twig
semki096, 2019-04-26 22:39:26

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 question

Ask a Question

731 491 924 answers to any question