Home › Forums › Calendar Products › Events Calendar PRO › tickets number in photo view
- This topic has 13 replies, 4 voices, and was last updated 6 years, 1 month ago by John Paul.
-
AuthorPosts
-
February 8, 2018 at 3:45 am #1447423John PaulParticipant
Hi, I was hoping you could help me to get some additional ticketing information into my ‘photo view’.
I really like the ‘List View’ , however my client has always preferred the Photo View, but in the Grid format I have created within my child theme (see link below).
http://webnprosper.staging.wpengine.com/events/category/all-courses/photo/
You will notice that by using
and adding it to the single-event.php in the child Pro/Photo folder I have the price published in each grid.
Here’s the ask ! I would also like to add to my new ‘Photo view’ the ‘number of tickets / or sold out’ information that is displayed in the ‘List View’ . I have to confess, that I have always been puzzled as to why the Pro Photo view does not present this information, but anyhoo … if you could advise on the function that I can add to my child/pro/photo/single-event.php to replicate this , I would be grateful.
p.s. I do not need the code to replicate the ‘buy now’ button.
Many thanks is advance
John
February 8, 2018 at 11:00 pm #1448593JenniferKeymasterHi John!
Can you try the tribe_tickets_get_ticket_stock_message function and see if that gets you what you’re looking for? If not, I’d recommend taking a look through our functions list, which has several handy functions that you can use when customizing our plugins.
Let me know if this helps!
Thanks,
Jennifer
February 9, 2018 at 9:03 am #1449143Ann Marie GillParticipantJohn, I love what you did with your Photo view. Would you mind sharing your code on how you set this up? I would be so grateful. Also how did you change the view dropdown from “Photo” to “Grid”? Thank you so much! What you have done is beautiful.
February 10, 2018 at 1:24 am #1449587John PaulParticipantHi Anne Marie… thank you for your nice comments. I had planned to write a tutorial on how I did it. I will hopefully have it completed next week. I will let you know when it is ready.
February 12, 2018 at 12:16 pm #1451005JenniferKeymasterHi John,
That’s awesome that you’re writing a tutorial on this, I’m sure it will be helpful to many other users!
Did the tribe_tickets_get_ticket_stock_message function work out for you?
February 12, 2018 at 8:31 pm #1451290MikeParticipantI would be interested in this as well.
February 13, 2018 at 4:00 am #1451481John PaulParticipantHi, no that wasn’t the right function . This is what worked for me. in my ‘Photo’ child folder, which would be at,
child theme/tribe-events/pro/photo
I copied the plugins single-event.php from the plugins Photo folder into the child. I then constructed the following code
<span class="jp-tribe-events-cost"> </span> <h2 class="jp-tribe-events-from-list">
This nests in the section of the code.
I have added the whole file below so you can see the full picture. Bear in mind that this should also display the “Buy Now!” Button. If you want to get rid of that I used;
.tribe-events-list .tribe-button {
display: none !important;
}
.tribe-events-list .tribe-events-photo-event .tribe-button {
display: none !important;
}.tribe-events-event-cost .tribe-button {
display: none !important;
}which looks rather overkill, but I was getting some wierd cross-browser issues with just the first two lines of code. I daresay the last one is the right one to use., but am waiting confirmation from another support ticket.
Another thing to bear in mind , is that my single.php mentioned above is quite an old version and I intend to replace it with the new version later this week, but I doubt it has changed much (if at all).
THE WHOLE FILE SINGLE.PHP
<a class="url" href="” title=”” rel=”bookmark”>
distance ) ) : ?>
[distance ); ?>]<a class="url" href="” title=”” rel=”bookmark”>
February 13, 2018 at 4:09 am #1451485John PaulParticipantFebruary 14, 2018 at 7:06 am #1452815John PaulParticipantHi, I have got the issues resolved now and I have created a full tutorial on how I got the Photo View to Grid View and many other changes. Here is the link.
Please let me know how you got on and let me know if I can improve the tutorial to make it easier to understand.
Many thanks
February 16, 2018 at 4:42 pm #1455901Ann Marie GillParticipantYour tutorial is amazing John Paul. I can’t wait to follow it. I will let you know how it goes. Thank you so much for your help. Can I donate a few cups of coffee for your time? Or tea?
February 17, 2018 at 6:53 am #1456193John PaulParticipantthank you anne marie , i am just glad to help, hope it works out for you.
best
February 19, 2018 at 10:20 am #1457765JenniferKeymasterThanks so much for sharing this John! It’s always nice to see how users are customizing our plugins and sharing those customizations with the community 🙂
If there’s anything that you would like assistance with, please let me know.
Thanks,
Jennifer
March 13, 2018 at 9:35 am #1477774Support DroidKeymasterHey 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 number in photo view’ is closed to new replies.