Showing Stock on the Calendar

Home Forums Ticket Products Event Tickets Plus Showing Stock on the Calendar

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #92342
    vesbro
    Participant

    Hello!
    My site is using Calendar PRO and Wootickets. Because my business is based on ticket sales, a big complaint I have from my customers is that they just want to see the events that have availability as opposed to scrolling through all of the events to find tickets. Is there any way to add a custom event field that shows the amount of stock remaining on the Events Calendar for each particular event?
    This thread below was very helpful:

    stock management on front end

    But now I’m looking to put similar functionality on the calendar.

    #92717
    Kelly
    Participant

    Hi, vesbro. 🙂 Great question!

    Please check out this tutorial:

    https://theeventscalendar.com/support/documentation/adding-sold-out-notices-for-woocommerce-tickets-in-list-view/

    It should be just what you’re looking for! 🙂

    #93829
    vesbro
    Participant

    I’m still looking to actually just show the amount of tickets (# out of 10) to my customers in the calendar view. Not just the stock or out of stock.

    Thanks!

    #94014
    Kelly
    Participant

    Hi, vesbro! Sorry that I misunderstood.

    For this sort of customization, we can really only point you in the right direction. You would need to be the one to ultimately figure it out and implement a solution that works for you. That said, if you’ll look at the plugin that’s used in the tutorial, Woot Library, checking out this list of functions  should give you some great ideas about what’s possible.

    Basically, instead of using woot_has_soldout(), you could do something like this:

    $tickets = woot_get_tickets();
    echo count( $tickets );

    That should display the number of tickets for the current event that are on sale. You could then use something like that in List View or wherever – so long as, in WP tradition, it’s within the almighty loop (in this case, an event loop). So, List View where it already displays the title, summary, etc. is a good place.

    Does that make sense? Will it work for you?

    #94049
    vesbro
    Participant

    This reply is private.

    #94076
    vesbro
    Participant

    Which files would you recommend inserting this in to? Is there any way you could give me the the code as demonstrated in the previous post?

    #94841
    Kelly
    Participant

    Hi, vesbro! To take advantage of the instructions in my previous post, you’ll need to have a solid grounding in PHP.

    If you’d like, I’d be happy to pass along a list of third-party developers that we’ve had good experiences with. I’m sure one of them would be perfect to help you out.

    Please let me know if you’d like that list! 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Showing Stock on the Calendar’ is closed to new replies.