I
I
Ilya Filonov2020-05-21 22:14:47
Twig
Ilya Filonov, 2020-05-21 22:14:47

How to hide elements on specific pages in Opencart?

Good afternoon. I have a sale element that I want to show ONLY on the home page. On the rest - a basket. Wrote this code.

{% if home == true %}
  <div class="sale">
  </div>
{% else %}
  <div class="items-in-bag">
  </div>
{% endif %}


Where did you go wrong?

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