Okay
  Public Ticket #1836200
Sorting Category Filter
Closed

Comments

  •  2
    gehess started the conversation

    Hi guys,

    I need help with the category filter. Right now, all categories appear in an unsorted "order", neither numeric nor alphabetic. But I need them to be chronologically/numeric sorted like class1, class2, class 3 etc. 

    How can I sort those entries? 

    Thanks a lot!

  •  878
    Zhivko replied

    Hi,

    Categories should be ordered alphabetically by default.


    Stachethemes Developer

  •  2
    gehess replied

    Hi Zhivko,

    thanks for your answer. I thought so too, but they are not in my case (see attachment).

    Any suggestions how to control them? I know a bit css, but don´t know where to start in this case

    Cheers!

  •  878
    Zhivko replied

    What version of the calendar is this?


    Stachethemes Developer

  •  2
    gehess replied

    Version 2.4.6. Should be the current one, isn´t it?

  •  878
    Zhivko replied

    Yes, this is the latest version. 

    I'll look into the problem and will send you fix when I'm ready.


    Stachethemes Developer

  •  94
    Valentin replied

    Hi, 

    Sorry for the delay.

    Place the attached file in stachethemes_event_calendar\front\js\adds

    This should fix the order issue. The fix will be added in the next update as well.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  •  2
    gehess replied

    Thank you so much! It works perfectly!

  •  2
    gehess replied

    Hi again, 

    unfortunately, the sorting isn´t completely how it should be. Just updated the calendar today and tried it with your top.calfilter.js given in this ticket aswell. "Klasse 10" ist still listed above "Klasse 9". Any suggestions how to fix this?

    Thank you in advance!

  •  878
    Zhivko replied

    Hi,

    Please update to version 2.4.8 via the calendar updater. 

    I've added the sorting function in this version.


    Stachethemes Developer

  •  2
    gehess replied

    Hi and thanks for your reply! Calendar is up to date (see attachment) but the sorting of my categories is still not in the right order (see attachment). Everything looks fine, but form "9" to "10" it´s not correct.

    Any suggestions to fix this?

    Thx a lot!

  •  878
    Zhivko replied

    I'll look further into this and will provide you with solution.


    Stachethemes Developer

  •  2
    gehess replied

    Thanks a lot!

  •  878
    Zhivko replied

    Could you provide me with link to your front-end to take a look because I can't replicate the problem on my end?


    Stachethemes Developer

  •  2
    gehess replied

    Thanks for your reply! The link to my calendar page is as follows:

    https://taus-gymnasium.de/aktuelle-termine/

    See 1) the categorie filter  and 2) for example the event on Feb, 1st for categories in the description. 

    In both cases, "Klasse 10" is not in the right order!

    Thanks in advance!

  •  878
    Zhivko replied

    Hi,

    I've made yet another review of the code.

    Try out this file.


    Stachethemes Developer

  •  2
    gehess replied

    Thank you very much for your effort! Filter looks great now! But the problem still exists at the inner tags of an event (see attachment).

  •  878
    Zhivko replied

    Replace file \stachethemes_event_calendar\front\js\adds\intro.js 

    Replace file \stachethemes_event_calendar\admin\class\o.event.php

    These changes will be included in the next update.


    Stachethemes Developer

  •  2
    gehess replied

    Thank so much for your support! Now it´s perfect!! 

  •  2
    gehess replied

    And again, bummer! It seems like the filter isn´t working anymore. Although everything is in the right order, choosing any category in the filter doesn´t have any effect of the events which are shown. (Check https://taus-gymnasium.de/aktuelle-termine/)

    Any ideas?

  •  2
    gehess replied

    Update: Even replacing your new files with the original one´s didn´t fix the functionality of the filter. Would be so great if you´d have some magic trick to repair this

  •  878
    Zhivko replied

    For some reason jQuery uniqueSort function is not working properly on your server so I've written a custom one.

    Try out this version of top.calfilter.js file.


    Stachethemes Developer

  •  2
    gehess replied

    Wow, I´m impressed! It works now! Thank you very much!