Post by Majkooo » Thu Aug 20, 2020 3:31 pm

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 )

Attachments

2020-08-20 (2).png

2020-08-20 (2).png (13.18 KiB) Viewed 365 times


Newbie

Posts

Joined
Thu Aug 20, 2020 3:26 pm

Post by cyclops12 » Thu Aug 20, 2020 5:29 pm

Very vague request
Do you mean you just want Mac instead of pc/mac

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by paulfeakins » Thu Aug 20, 2020 6:07 pm

Majkooo wrote:
Thu Aug 20, 2020 3:31 pm
I want to make the menu that appears in the categorie disappear without me deleting the Sub-categorie
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.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by letxobnav » Thu Aug 20, 2020 6:54 pm

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Majkooo » Fri Aug 21, 2020 9:01 am

Guys , I want delete Drop-down lists
So that when you click, you can enter directly without showing a drop-down menu ...
I just want to hide the drop down menu or the option to select a person for the Sub categories

Newbie

Posts

Joined
Thu Aug 20, 2020 3:26 pm

Post by i.am.retailer » Sat Aug 22, 2020 7:25 am

In catalog>>view>>theme>>default>>template>>common>>menu.twig

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 %}
        
Replace :

Code: Select all

	{% for category in categories %}
        	 <li><a href="{{ category.href }}">{{ category.name }}</a></li>        
        {% endfor %}

New member

Posts

Joined
Thu Jun 04, 2020 2:10 pm

Post by khnaz35 » Sat Aug 29, 2020 11:29 am

i.am.retailer wrote:
Sat Aug 22, 2020 7:25 am
In catalog>>view>>theme>>default>>template>>common>>menu.twig

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 %}
        
Replace :

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.
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 ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 26 guests