Home › Forums › Calendar Products › Events Calendar PRO › Displaying availability in single-event.php
- This topic has 7 replies, 4 voices, and was last updated 9 years, 11 months ago by
Pierre Kindler.
-
AuthorPosts
-
May 24, 2016 at 7:17 am #1118172
Pierre Kindler
ParticipantHi there,
I´m facing a problem. I try to show the availability of tickets on the list-widget by adding code to single-event.php.
Does anybody has a hint?Thanks and best regards, Pierre
May 24, 2016 at 3:17 pm #1118442Nico
MemberHi there Pierre,
Thanks for reaching out to us on this!
George replied to this same question a while back (for sites using WooCommerce) → https://theeventscalendar.com/support/forums/topic/event-information/#dl_post-985921
Please review the given solution and let me know if it woks for you,
Best,
NicoMay 24, 2016 at 11:19 pm #1118599Pierre Kindler
ParticipantHi Nico,
That´s great! I didn´t find that 🙁
But there´s one problem now. It says
Fatal error: Class 'Tribe__Events__Tickets__Woo__Main' not found in ***/wp-content/themes/enfold/functions.php on line 517The class seems to deprecated. But I found the solution here
Best regards, Pierre
-
This reply was modified 9 years, 11 months ago by
Pierre Kindler.
May 25, 2016 at 12:59 am #1118612Pierre Kindler
ParticipantI wanted to post this link:
May 25, 2016 at 6:27 am #1118654Pierre Kindler
ParticipantHi Nico,
I came across another problem while using this function. I wanted to add it to related-events.php
It shows the availability but it always uses the stock of the ticket I currently look at.I can´t find the issue.
Best regards, Pierre
May 26, 2016 at 12:53 pm #1119347Nico
MemberHey great find Pierre, thanks so much for searching for the updated code. Great find!
I came across another problem while using this function. I wanted to add it to related-events.php
It shows the availability but it always uses the stock of the ticket I currently look at.Well, not sure about the above… Can you clarify a bit?
The code is using the get_the_id function to get the post ID, so probably this is why you always get the same results. We might need to tweak the function to accept the event ID as a parameter. Anyway I’m not sure if I’m understanding this correctly!
Please let me know about it so I can tweak + test the snippet,
Best,
NicoJune 10, 2016 at 9:35 am #1125160Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
This reply was modified 9 years, 11 months ago by
-
AuthorPosts
- The topic ‘Displaying availability in single-event.php’ is closed to new replies.
