Filter bookings by ticket

This topic contains 4 replies, has 2 voices, and was last updated by  Stephen Harris 9 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20133

    Hi,

    is there any possibility I can filter the bookings in wp-admin by ticket date?
    My client needs to list all bookings made for a certain date/ticket of an event
    and not only view them all at once.

    Or any other route I can take for this?

    Thank you,
    Oliver

    Oliver Efremov
    #20155

    Does anyone from support answer in less than 4 days? I’m a little disappointed…

    Anyway, to add to the question above – is any custom paid work possible in case there is no workaround for this? My client is willing to pay for the customization but I’m not skilled enough to pull it up on my own.

    Thanks, Oliver

    • This reply was modified 9 years, 3 months ago by  Oliver Efremov.
    Oliver Efremov
    #20157

    Hi Oliuver,

    I’m terribly sorry you hadnt got a reply until now.

    Its already possible to filter by date. You can filter by event and then date at the top or alternatively click a date in the event column.

    With a bit of custom development it’s possible to filter by ticket. Would being able to click a ticket name to filter by that ticket be acceotable to your client, or would need a search/filter like they have for dates?

    Stephen Harris
    #20165

    Hi Stephen,

    click a ticket name to filter by that ticket – is the exact thing the client wants, this will do the whole job for me 🙂

    Is there any guidance you can give me on how to achieve this?
    If not that easy, as I noted earlier, happy to receive an estimation an propose to the client if they want to do it.
    Main thing is if it’s possible not to have to change the plugin files but rather do it as an add-on or best with theme functions.
    The theme they use is Enfold.

    Thank you very much!
    Oliver

    Oliver Efremov
    #20182

    Hi Oliver,

    To do is you would need to replace the tickets column with one of your own, which is essentially the same but makes the ticket names links adding a ticket ID query variable to the current url. There’s a filter for adding/removing columns: https://codex.wordpress.org/Plugin_API/Filter_Reference/manage_$post_type_posts_columns

    Then you would need to use the posts_clauses filter (https://codex.wordpress.org/Plugin_API/Filter_Reference/posts_clauses) to modify the query to restricted returned bookings by ticket ID (when filtering by ticket ID). You would need to join the tickets table to do this.

    All this can be done without modifying any files. Nor is it too difficult but would require a working knowledge of the plugin to get it done quickly, so I shall send you an estimate later today.

    Stephen Harris
Viewing 5 posts - 1 through 5 (of 5 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.