Hello ,
I want to make the menu that appears in the categorie disappear without me deleting the Sub-categorie
Just Click and get "categorie" Direct without show list for Sub-categorie !
Any Help !! ( Check Attachment photo )
I want to make the menu that appears in the categorie disappear without me deleting the Sub-categorie
Just Click and get "categorie" Direct without show list for Sub-categorie !
Any Help !! ( Check Attachment photo )
Attachments
2020-08-20 (2).png (13.18 KiB) Viewed 619 times
If you can't find an extension that does it and you don't know how to do it, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
I think he only wants the top level cats in the menu.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
In catalog>>view>>theme>>default>>template>>common>>menu.twig
find category for loop :
Replace :
find category for loop :
Code: Select all
{% for category in categories %}
{% if category.children %}
<li class="dropdown"><a href="{{ category.href }}" class="dropdown-toggle" data-toggle="dropdown">{{ category.name }}</a>
<div class="dropdown-menu">
<div class="dropdown-inner"> {% for children in category.children|batch(category.children|length / category.column|round(1, 'ceil')) %}
<ul class="list-unstyled">
{% for child in children %}
<li><a href="{{ child.href }}">{{ child.name }}</a></li>
{% endfor %}
</ul>
{% endfor %}</div>
<a href="{{ category.href }}" class="see-all">{{ text_all }} {{ category.name }}</a> </div>
</li>
{% else %}
<li><a href="{{ category.href }}">{{ category.name }}</a></li>
{% endif %}
{% endfor %}
Code: Select all
{% for category in categories %}
<li><a href="{{ category.href }}">{{ category.name }}</a></li>
{% endfor %}
i think he want's to hide, not totally replace and delete.i.am.retailer wrote: ↑Sat Aug 22, 2020 7:25 amIn catalog>>view>>theme>>default>>template>>common>>menu.twig
find category for loop :
Replace :Code: Select all
{% for category in categories %} {% if category.children %} <li class="dropdown"><a href="{{ category.href }}" class="dropdown-toggle" data-toggle="dropdown">{{ category.name }}</a> <div class="dropdown-menu"> <div class="dropdown-inner"> {% for children in category.children|batch(category.children|length / category.column|round(1, 'ceil')) %} <ul class="list-unstyled"> {% for child in children %} <li><a href="{{ child.href }}">{{ child.name }}</a></li> {% endfor %} </ul> {% endfor %}</div> <a href="{{ category.href }}" class="see-all">{{ text_all }} {{ category.name }}</a> </div> </li> {% else %} <li><a href="{{ category.href }}">{{ category.name }}</a></li> {% endif %} {% endfor %}
Code: Select all
{% for category in categories %} <li><a href="{{ category.href }}">{{ category.name }}</a></li> {% endfor %}
can use
Code: Select all
<div class="Your class which want to hide">
{# We hide the comments to render below. #}
{{ content|without('comments', 'links') }}
</div>
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Who is online
Users browsing this forum: niagato, TheDeerKami and 433 guests