number of tickets remaining

Home Forums Ticket Products Event Tickets Plus number of tickets remaining

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #82588
    bradystarr
    Participant

    I just updated my woocommerce to include the ticketing feature but need each product to display how many tickets are left. Help this is important! πŸ˜€
    +thanks for a great product

    #82664
    Kelly
    Participant

    Hi, bradystarr. Great question!

    Your best bet is to check out the functions here: https://github.com/barryhughes/woot-library/blob/master/aliases.php

    That should have what you need to get you pointed in the right direction. Let me know if you get stuck anywhere along the way! πŸ™‚

    #82802
    bradystarr
    Participant

    Thanks so much for the response! Please forgive me, I am not an advanced web designer. I see the code you have sent me but no instructions about what I do with it. πŸ™‚
    Any help in this direction? Thanks again!

    #82817
    Kelly
    Participant

    No worries, bradystarr. Doing template overrides is quite straightforward. The Themer’s Guide is written with the themer in mind, rather than a programmer, so it should walk you through what you need.

    For a little extra help on modifying a template, you can check out this tutorial: https://theeventscalendar.com/altering-or-removing-headings-on-calendar-views/

    The part where I show how to make a template override starts at about 2:20 in the video. Obviously, this is for a different file and making a different change to it, but it should get you pointed in the right direction.

    Please let us know how it goes! πŸ™‚

    #82831
    bradystarr
    Participant

    Thanks Kelly! The video was really helpful and I learned a lot, but I am still not showing the tickets remainig. I pasted the snippet your linked to into my themes function.php file, is this the right place for it?

    #82833
    Kelly
    Participant

    Ah, let me give you a simpler solution then. If you wouldn’t mind removing what you added to the functions.php, for housekeeping purposes, that’s a good start.

    Then, you can add a few lines of code to your wootickets/tickets.php file. Here’s an example of the modified file:

    http://pastebin.com/rX1SYDsc

    The code that controls showing the tickets available is on lines 92-94. You should be able to just slip those lines into your overridden tickets.php to affect the change.

    Hope that helps! πŸ™‚

    #82842
    bradystarr
    Participant

    I am not quite sure where to past this snippet into my wootickets/tickets.php file. I have experimented in a few areas (lol) and crashed my site haha.. but i reverted and am still confused. thanks again for your patience!

    #82843
    bradystarr
    Participant

    oh, just override the entire file?

    #83120
    Kelly
    Participant

    Hi, bradystarr. You should just be able to override the entire file. Did that work for you?

    #92464
    Rob
    Member

    Since it’s been 2 weeks and no activity, I’m closing this out.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘number of tickets remaining’ is closed to new replies.