Answer the question
In order to leave comments, you need to log in
Why doesn't a simple OpenCart condition work?
Hello.
I'm trying to display my text if there is an installed option in the product card, but the condition does not work to the end.
Version 3.X
{% if option.type == 'file' %}
{%if option.required %}
<p>Нужно</p>
{%else%}
<p>Не нужно</p>
{% endif %}
{% else %}
<p>Опция отсутствует</p>
{% endif %}
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