A small addition allows you to use conditions in theme or module template files to show or hide blocks based on its position. Show or hide blocks based on their position in layouts.
For example:
{% if position == 'column_left' or position == 'column_right' %}
Show a block if it is in the left or right column
{% else %}
Show a block if it is not in the right or left column
{% endif %}
Attention! Some templates may use similar modifications. Before using a modifier, make sure you really need it.
Verified forversions Opencart 3.0.4.0, OcStore 3.0.2.0, OcStore 3.0.3.7, OcStore 3.0.3.9
Distribution method:
AllFree
Opencart version:
OpenCart 3.*LiveStore 3.*OCStore 3.*
PHP verision:
PHP 7.0PHP 7.1PHP 7.2PHP 7.3PHP 7.4
Activation:
Not required
Protection system:
No
VQmod:
No
Ocmod:
Yes
Events:
No
Uploaded:
13.04.2025
Updated:
15.04.2025
Viewed:
2563