Answer the question
In order to leave comments, you need to log in
How to hide blocks in certain opencart blog categories?
Hello!
Friends, help with advice on how to do it right. There is an opencart website. The idea is to show a brief description of the article in some categories of the blog (news) and not in others. I understand that I need to make an output condition by category id, but I can’t figure out how to do it =((One kind person suggested that you need to check the id in the controller and create a variable for the necessary one, thanks to which the necessary sections should be displayed in the template file. I got completely confused
Answer the question
In order to leave comments, you need to log in
Decided so, again, a kind person suggested how:
In the controller
In the template file we wrap
<?php if (!$ne_pokazivat) { ?>нужный участок кода<?php } ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question