Post by storm-cloud » Fri May 22, 2015 7:35 am

I have been attempting to improve the default filters to provide a better user experience.

There are plenty of filter extensions available but I would much rather work with the core code, hopefully to help others also improve their store.

The first improvement I made was to change the logic from "or" to "and": http://www.opencart.com/index.php?route ... n_id=19621

Now, the next improvement required is to hide empty filters dynamically. What is meant by this is that once a filter is applied and the page is reloaded, the product count will need to be updated in order to use this logic and hide the empty filters. However, the issue I am facing is that the default filter module does not update the product count once a filter is applied.

Basically the behaviour I am looking for is that a new count is performed on the updated product list/grid which then displays a product count relative to the filtered products currently visible.

Can anyone suggest a method to achieve this? Happy to consider a custom quote.
Last edited by storm-cloud on Sun May 24, 2015 5:32 pm, edited 2 times in total.

Active Member

Posts

Joined
Wed Feb 22, 2012 8:07 am

Post by storm-cloud » Sun May 24, 2015 5:30 pm

I am beginning to wonder if this is perhaps far more difficult than I had anticipated.

If there are any developers who feel that they could achieve this, please feel free to comment in this thread or even provide a quote via PM.

Active Member

Posts

Joined
Wed Feb 22, 2012 8:07 am

Post by Jinoraneo » Thu Aug 18, 2016 4:10 pm

Has anyone ever come up with a way to make this work?? I have been searching everywhere and can't find any extensions or code changes suggested for this. I am using 2.2 currently and would love for this to work as it looks way more professional to have the number update as the filters are applied.

Newbie

Posts

Joined
Thu Aug 18, 2016 4:08 pm

Post by anand2064 » Sat Oct 01, 2016 2:06 am

This Extension might be your solution!

http://www.opencart.com/index.php?route ... =43&page=2

Newbie

Posts

Joined
Sun Feb 14, 2016 11:16 pm

Post by storm-cloud » Thu Mar 30, 2017 7:29 am

anand2064 wrote:
Sat Oct 01, 2016 2:06 am
This Extension might be your solution!

http://www.opencart.com/index.php?route ... =43&page=2
As noted in the first post, this does not update the product count once a filter is applied. We need a fix that will loop through the products after the filter has been applied and update the product count.

Once this has been achieved we can then apply various techniques to hide inactive filters. Whether your preference is to apply a disabled attribute or perhaps display: none via CSS, this can only be realised once product counts are updated dynamically.

So much time has passed and it seems there is still no solution for this. :(

Active Member

Posts

Joined
Wed Feb 22, 2012 8:07 am
Who is online

Users browsing this forum: Bing [Bot] and 50 guests