Filter & Pagination Bug

  • Posts: 45
  • Thank you received: 0
13 years 1 week ago #29958

Hi Nicolas,

I have already mentioned in another thread that i have found a little bug with filtering & pagination, but here is some more info about:

When i have for example...

Category "Music" - 20 products inside
Category "New" - 15 prods
Category "2hand" - 5 prods

All 20 prods belongs to "Music" category and also to one of "New" or "2hand"

When i browse category "Music" which contains all products and pagination is for ex. 5 products per page
then when i am on the 2nd (3rd / 4th) page and then i filter "2hand" no products appear.

When i'm on the first page of all products, filter goes well.

That means i can't be on a page# which is more then filtered results have and use filter, because no products appear then.

Best Regards,
Karloz

Last edit: 13 years 1 week ago by Karloz.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 1 week ago #29974

Hi,

Could you give a link to that page so that we can have a look at the problem ?

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
13 years 1 week ago #30033

Hi,

For example here: new.ufolabz.net/index.php?option=com_hik...hno&Itemid=9&lang=en

when you are on the 3rd page and then filter, no product appears ... if you are on the 1st or 2nd , its ok , because it always stays on the same page

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
13 years 1 week ago #30037

Btw by what is handled the filter items order ?

Because as you can see the order is changing in each category...

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 1 week ago #30199

Hi,

Thank you for that.

I was indeed able to reproduce the problem and fixed it on our end.
The modification being extensive, you can either wait for next release and display all the products on one page for the time being or contact us via our contact form to request a pre version install package that you could use to update the files and get that problem fixed on your website.

For your second question I would need more information. Could you do a screenshot of the options of your filter ?

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
13 years 5 days ago #30428

hello,

thats great news! i must also thank you, for your great extension and all the fish ! :-)

regarding my second question, screenshot of filter settings is attached.

( what hadles the filter items order ? they are changing, once "new" is first, but in another category "second hand" is first etc... )
( new.ufolabz.net/index.php?option=com_hik...hno&Itemid=9&lang=en )

maybe it would be useful to put something like "filter items order" into filter bakcend settings, for manufacturers, and laso others, alphabeticaly, order, id, ... , ?

Attachments:
Last edit: 13 years 5 days ago by Karloz.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 5 days ago #30439

Hi,

You can change the line:
$query='SELECT * FROM '.hikashop_table('category').' AS a '.$left.' WHERE category_parent_id='.$parentCat.' '.$optionElement.'';

to:

$query='SELECT * FROM '.hikashop_table('category').' AS a '.$left.' WHERE category_parent_id='.$parentCat.' '.$optionElement.'ORDER BY a.category_ordering ASC';

in the file administrator/components/com_hikashop/classes/filter.php and that will always order the categories based on their ordering.

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
13 years 5 days ago #30470

again thanks a much !

please i would have one more thing, please is it possible to add a "reset" button next to the "select" button in filter section for reset filter settings somehow ?

i believe its just a piece of code, unfortunately i'm unable to reproduce it.

in my case i found it useful, since there will be a more options to filter, based on various sources and because the filter options always stands selected (which i good indeed), so there would be an easy option to deselect all filter options and have full category listing via one click.

best regards

Last edit: 13 years 5 days ago by Karloz.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 4 days ago #30484

There is no reset filter button option so you won't be able to do it easily for now.

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum