Post by rajatjaiwal » Tue Apr 24, 2018 3:51 pm

Remove refine search from opencart 3.x

Newbie

Posts

Joined
Tue Apr 24, 2018 3:44 pm

Post by xxvirusxx » Wed Apr 25, 2018 12:33 am

catalog/view/theme/default/template/product/category.twig, line 28

Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by rajatjaiwal » Thu Apr 26, 2018 5:56 pm

i edited this but still it's visible on the product page i am only able to change the row condition
{% if categories|length <= 1 %}

Newbie

Posts

Joined
Tue Apr 24, 2018 3:44 pm

Post by xxvirusxx » Fri Apr 27, 2018 4:53 pm

Line 28 is this:

Code: Select all

      <h3>{{ text_refine }}</h3>
Comment or remove and will not show Refine text when press on category...

And if you want to remove Refine text and subcategories remove this (lines 27-->51)

Code: Select all

      {% if categories %}
      <h3>{{ text_refine }}</h3>
      {% if categories|length <= 5 %}
      <div class="row">
        <div class="col-sm-3">
          <ul>
            {% for category in categories %}
            <li><a href="{{ category.href }}">{{ category.name }}</a></li>
            {% endfor %}
          </ul>
        </div>
      </div>
      {% else %}
      <div class="row">{% for category in categories|batch((categories|length / 4)|round(1, 'ceil')) %}
        <div class="col-sm-3">
          <ul>
            {% for child in category %}
            <li><a href="{{ child.href }}">{{ child.name }}</a></li>
            {% endfor %}
          </ul>
        </div>
        {% endfor %}</div>
      <br />
      {% endif %}
      {% endif %}

Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by rajatjaiwal » Fri Apr 27, 2018 5:15 pm

Thanks bro it worked out.

Newbie

Posts

Joined
Tue Apr 24, 2018 3:44 pm

Post by rajatjaiwal » Fri Apr 27, 2018 5:19 pm

how to remove this ?
can you please help

Attachments

bb.PNG

bb.PNG (36.49 KiB) Viewed 426 times


Newbie

Posts

Joined
Tue Apr 24, 2018 3:44 pm

Post by xxvirusxx » Fri Apr 27, 2018 8:55 pm

Install atached ocmod. Is made to work on oc3 installation

And for you info, is this module
https://www.opencart.com/index.php?rout ... n_id=29963

Attachments


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Who is online

Users browsing this forum: No registered users and 15 guests