In stock number of tickets on event page

Home Forums Ticket Products Event Tickets Plus In stock number of tickets on event page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #889319
    marshpaddler
    Participant

    Is it possible to add the ‘left in stock’ number of tickets from Woo’s inventory tracking to the event page where wootix are being sold?

    #889346
    Geoff
    Member

    Hi there, Frederick! Thanks for getting in touch and welcome to the forums. We hope you’re enjoying the plugin so far. šŸ™‚

    Great question. I do want to note first of all, though, that we are fairly limited in terms of helping out with custom development questions like this one. That said, we’d love to point you in the right direction if we can.

    If you check out ourĀ Themer’s Guide, you could probably make a template override to display what you want.

    You just need to make a copy of the template file (located at /wp-content/plugins/wootickets/views/wootickets/tickets.php), add it to the override in the appropriate spot, and print out $ticket->stock where you would like to put it.

    For example if you add

    71 echo ā€œ<td nowrap=’nowrap’ class=’tickets_stock’>ā€;
    72 echo $ticket->stock . ā€˜ left’;
    73 echo ā€œ</td>ā€;

    After the ā€˜tickets_price’ column, it will add a stock column to the table.

    Does that make sense? Will that work for you? Please let me know. šŸ™‚

    Cheers!
    Geoff

    #890743
    marshpaddler
    Participant

    Thanks Geoff.
    I gave it a quick try this morning and obviously did something wrong as it blew up the page and started throwing class errors. I’ll look into it more thoroughly later today.

    #891402
    Geoff
    Member

    Thanks for following up! Keep me posted and watch out for more blow ups. šŸ™‚

    Cheers!
    Geoff

    #899534
    Geoff
    Member

    Hey there, Frederick!Ā Just checking in to see if there’s been any further update or if you still need assistance on this one–let me know. šŸ™‚

    Cheers!
    Geoff

    #907788
    Geoff
    Member

    Hey there, Frederick! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to open a new thread. We’d be happy to help. šŸ™‚

    Cheers!
    Geoff

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘In stock number of tickets on event page’ is closed to new replies.