Displaying tickets left in category page

Home Forums Ticket Products Event Tickets Plus Displaying tickets left in category page

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #112146
    summukas
    Participant

    Hi! Is this possible via custom category page?

    #112525
    Barry
    Member

    Certainly – anything is possible!

    Check out for instance this library of helper functions. Though not officially supported by us and not something you need to use “as is” it does illustrate some basic ways to approach this sort of problem. You can get a sense for how it works here.

    I hope that helps!

    #115815
    summukas
    Participant

    Thanks! How can I use it dynamically? Let’s say I could write woot_low_stock() multiple times, but if I have 10 tickets, another event 20 tickets… I can’t do it dynamically, can I?
    woot_how_many_tickets() need now! 🙂 Okay, any help appreciated! Thanks!

    #117226
    summukas
    Participant

    Anything?

    #118597
    Barry
    Member

    Apologies for the delay, for some reason the thread wasn’t flagged up as being in need of a reply.

    Let’s say I could write woot_low_stock() multiple times, but if I have 10 tickets, another event 20 tickets… I can’t do it dynamically, can I?

    There are lots of things you could do here – please remember though this isn’t something we officially support – it’s more a toolset you can use “as is” if you like or indeed you can look at how it works under the hood and re-purpose various parts for your own project (as of course it is free and open source).

    But we’re going to need to leave it to you to put together a solution that neatly fits with your own project requirements.

    Good luck!

    #118995
    summukas
    Participant

    I don’t think it would be that hard to display it there, isn’t it? I just can’t figure it out by myself and thus I think it would remain unsolved for me.

    #119733
    Barry
    Member

    You could use the woot_get_tickets() function and inspect the inventory of each product and display appropriate messaging that way – unfortunately we just can’t go in to too much depth here since it’s very much a customization. I do hope you can figure things out, but since we can’t really help any further I’ll go ahead and close this thread.

    Thanks again and good luck 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Displaying tickets left in category page’ is closed to new replies.