WooCommerce Tickets – Ticket Order

Home Forums Ticket Products Event Tickets Plus WooCommerce Tickets – Ticket Order

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #64854
    joeleadedesign
    Participant

    Hi Guys,

    I have a single event that has a ticket available for 19 x 20 minute sessions. I’ve created the tickets in the order they’ll occur during the day e.g. 9am-9:20am, 9:20am-9:40am etc. On the front end the tickets appear to be sorted descending by ID. I’ve looked at tickets.php to see if I can sort the list, either ascending by ID or perhaps by the ticket name, but can’t find a fix.

    Is there a code snippet I can be given to do so or is it not possible?

    Thanks!

    Joel

    #64956
    Kelly
    Participant

    Hi, Joel. Thanks for getting in touch.

    There’s a brand new tutorial on adding a sorting option for tickets. Please check it out: https://theeventscalendar.com/knowledgebase/changing-the-order-of-tickets/

    Let me know how it goes!

    • This reply was modified 11 years, 1 month ago by Leah.
    #64996
    joeleadedesign
    Participant

    That’s awesome, thanks Kelly. I’ve sorted my tickets by ID and everything is working perfectly. Thanks!!!

    One note – when copying the code from the tutorial (using Chrome on OSX) it also copied some extra info regarding the URL for the tutorial e.g. when I copied the first code snippet this is what appeared when pasted into Sublime Text:

    function tribe_wootickets_custom_sort($p, $q) { if ($p->name name) return -1; if ($p->name > $q->name) return 1; return 0; } – See more at: https://theeventscalendar.com/knowledgebase/changing-the-order-of-tickets/

    Nothing I couldn’t fix by deleting the extra code but it might catch out some people.

    Cheers!

    • This reply was modified 11 years, 1 month ago by Leah.
    #65107
    Kelly
    Participant

    I’ll pass along the feedback, Joel. Thanks for letting us know that the tutorial helped you out!

    #982367
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘WooCommerce Tickets – Ticket Order’ is closed to new replies.