Route: /products/{slug}/questions
Path Operation: product_questionsVariables#
| Variable | Type |
|---|
product | Product |
questions | QuestionList |
store | Store |
session | Session |
Question Properties#
| Property | Description |
|---|
question.question | Question text |
question.name | Asker name |
question.is_anonymous | Anonymous flag |
question.answers | List of answers |
Example#
{% extends "layout.jinja" %}
{% block main_content %}
<h1>{{ product.name }} - {{ _("Questions") }}</h1>
{% for question in product.questions.results %}
<div class="question">
{% if not question.is_anonymous %}
<strong>{{ question.name }}</strong>
{% endif %}
<p>{{ question.question }}</p>
{% if question.answers %}
<div class="answer">
{{ question.answers[0].answer }}
</div>
{% endif %}
</div>
{% endfor %}
{% endblock %}
Modified at 2026-02-17 07:02:10