Home › Forums › Ticket Products › Event Tickets Plus › Tickets available in photo view
- This topic has 9 replies, 4 voices, and was last updated 9 years, 5 months ago by
Bram Huisman.
-
AuthorPosts
-
October 17, 2016 at 6:49 am #1177635
Bram Huisman
ParticipantHi 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!
October 17, 2016 at 5:48 pm #1178042Cliff
MemberHi 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.
October 18, 2016 at 3:29 am #1178196Bram Huisman
ParticipantHi 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,
October 18, 2016 at 7:07 am #1178269Cliff
MemberBram, 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.
October 18, 2016 at 7:31 am #1178294Bram Huisman
ParticipantOh 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,
October 18, 2016 at 8:41 am #1178345Cliff
MemberI’ve updated that plugin to work for ET+ and WooCommerce:
- .zip file: https://cl.ly/2U3P1D0a2y2X
- Screenshot: https://cl.ly/1e2B190T3A1K
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. 🙂
October 19, 2016 at 12:44 am #1178921Bram Huisman
ParticipantHi,
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,
October 19, 2016 at 2:42 am #1178953Cliff
MemberThanks 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!
November 10, 2016 at 8:35 am #1190323Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Tickets available in photo view’ is closed to new replies.
