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

Opencart 3.0.2.0 with bugs fixed | Free extensions


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

Opencart 3.0.2.0 with bugs fixed | Free extensions


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 923 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


Opencart 3.0.2.0 with bugs fixed | Free extensions


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by kanaksoni85 » Wed Oct 24, 2018 2:53 pm

xxvirusxx wrote:
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 %}
Even I wanted to do this (want to remove Refine Search and categories). I tried this solution but it is not working. I removed lines(27 to 51), I cleared cache from admin side, I even refreshed from modification but nothing happens. It is still showing refine search. Pls help

New member

Posts

Joined
Thu May 10, 2018 1:25 pm

Post by xxvirusxx » Wed Oct 24, 2018 3:04 pm

Did you cleared Theme Cache, SASS Cache?

Opencart 3.0.2.0 with bugs fixed | Free extensions


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by kanaksoni85 » Wed Oct 24, 2018 3:12 pm

xxvirusxx wrote:
Wed Oct 24, 2018 3:04 pm
Did you cleared Theme Cache, SASS Cache?
Yes I have cleared THEME and SASS cache both.

New member

Posts

Joined
Thu May 10, 2018 1:25 pm

Post by xxvirusxx » Wed Oct 24, 2018 3:15 pm

Default theme?

Opencart 3.0.2.0 with bugs fixed | Free extensions


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by kanaksoni85 » Wed Oct 24, 2018 3:56 pm

xxvirusxx wrote:
Wed Oct 24, 2018 3:15 pm
Default theme?
No its volga theme

New member

Posts

Joined
Thu May 10, 2018 1:25 pm

Post by xxvirusxx » Wed Oct 24, 2018 4:07 pm

So that`s why...

Try to find correct code

Opencart 3.0.2.0 with bugs fixed | Free extensions


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by usamamehfooz » Mon Jan 14, 2019 4:41 am

i remove it but it still available i have default theme and remove cashe as well

Newbie

Posts

Joined
Mon Jan 14, 2019 3:41 am
Who is online

Users browsing this forum: No registered users and 31 guests