Hello everyone! There will be delay in your ticket respond due developer health issues. Nothing serious just will take day or two. Thank you for understanding!

Okay
  Public Ticket #1836200
Sorting Category Filter
Closed

Comments

  • 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!

  •  92
    Zhivko replied

    Hi,

    Categories should be ordered alphabetically by default.


    Stachethemes Developer

  • 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!

    Attached files:  categories.PNG

  •  92
    Zhivko replied

    What version of the calendar is this?


    Stachethemes Developer

  • gehess replied

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

    Attached files:  version.PNG

  •  92
    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

  •  60
    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.

    Attached files:  top.calfilter.js

    Stachethemes Support
    My Time Zone is GMT+3


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

  • gehess replied

    Thank you so much! It works perfectly!

  • 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!

    Attached files:  category sorting.PNG

  •  92
    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

  • 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!

    Attached files:  version.PNG
      category1.PNG
      category2.PNG

  •  92
    Zhivko replied

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


    Stachethemes Developer

  • gehess replied

    Thanks a lot!

  •  92
    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

  • 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!

  •  92
    Zhivko replied

    Hi,

    I've made yet another review of the code.

    Try out this file.

    Attached files:  top.calfilter.js


    Stachethemes Developer

  • 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).

    Attached files:  inner tags.PNG

  •  92
    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.

    Attached files:  intro.js
      o.event.php


    Stachethemes Developer

  • gehess replied

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

  • 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?

  • 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

  •  92
    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.

    Attached files:  top.calfilter.js


    Stachethemes Developer

  • gehess replied

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