skip to Main Content

OpenCart provides more default features than I wish to offer my users. My current challenge is how to remove menu entries such as "Recurring payments" and "Downloads" from the default menu that is populated by the column_right.twig template file.

The code in view/theme/default/template/common/column_right.twig is:

{% if modules %}
<aside id="column-right" class="col-sm-3 hidden-xs">
  {% for module in modules %}
  {{ module }}
  {% endfor %}
</aside>
{% endif %}

I presume that the menu entries are populated by iterating over the collection called modules, but I have not been able to find where the modules collection is initialised.

I can’t find a way to control initialisation from the admin portal. And I’ve not worked out how to control initialisation by modifying the underlying code.

Any help would be appreciated.

2

Answers


  1. i think by checking design/layout from admin panel
    you can check which modules are injected in column_right in every page

    Login or Signup to reply.
  2. view/theme/default/template/account/account.twig
    Line No. 38
    Line No. 42

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search