Tickets available in photo view

Home Forums Ticket Products Event Tickets Plus Tickets available in photo view

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1177635
    Bram Huisman
    Participant

    Hi There,

    I am using the events-calendar pro and event-tickets-plus in combination with woocommerce.
    I want to show how many tickets are available in the photo view.. Is this possible? I looked at event-tickets-plus/src/views/wootickets/tickets.php but could not found a function which displays this?

    Greetz!

    #1178042
    Cliff
    Member

    Hi again, Bram.

    I believe I understand what you’re asking for, but we’re limited in helping with customizations, per our Scope of Support / Terms. However, I can try to help point you in the right direction:

    The “quantity remaining” logic for WooCommerce tickets is in this file: /wp-content/plugins/event-tickets-plus/src/views/wootickets/tickets.php

    Which uses the remaining() function located in this file: /wp-content/plugins/event-tickets/src/Tribe/Ticket_Object.php

    You might be able to implement this into your template override for the List View. However, thinking this through, this customization could be a little more complex if there is more than one ticket per event.

    I hope this helps.

    #1178196
    Bram Huisman
    Participant

    Hi Cliff,

    Thx for the reply.. i found this post https://theeventscalendar.com/support/forums/topic/how-to-i-display-how-many-tickets-are-left/#dl_post-1011733

    At the bottom you made a reply about a plugin that you made 😀 Can this help me you think?

    Greetz,

    #1178269
    Cliff
    Member

    Bram, good find! I totally forgot about that. The plugin is linked there, but here’s the link again: http://cl.ly/3w190E1S0o3R

    The potential problems of using this with the current versions of our plugins:

    • It was created for WooTickets, a predecessor to our current Event Tickets Plus product.
    • WooTickets didn’t have the same “in stock” logic that ET+ does.
    • Therefore, it might work but it might not.

    If you try it out, please let me know how it goes for you.

    #1178294
    Bram Huisman
    Participant

    Oh lol it was for WooTickets.. i thought Events tickets plus
    Is it possible to edit the plugin to my needs? Do you have any adviece?

    Greetz,

    #1178345
    Cliff
    Member

    I’ve updated that plugin to work for ET+ and WooCommerce:

    Please note that it is only displayed at the bottom of Single Events, not within Photo View or any other views.

    Also, ET+ has additional “stock” functionality that could be leveraged to show additional information that wasn’t previously available in WooTickets.

    I hope this does help you in some way though. 🙂

    #1178921
    Bram Huisman
    Participant

    Hi,

    Wow this is great support! Thx man 🙂 It works like a charm.. i am gonna edit a little bit, do you want me to share it when it works within the photo view?

    Greetz,

    #1178953
    Cliff
    Member

    Thanks for the kind words, Bram!

    Sure thing. Please do share your code and/or screenshot(s) here if you want.

    Ordinarily, I’d Close this thread since your question is answered, but it’s no problem to leave it Open.

    Please note that threads get Closed automatically after a couple weeks of inactivity.

    Thank you!

    #1190323
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Tickets available in photo view’ is closed to new replies.