Home › Forums › Ticket Products › Event Tickets Plus › Showing Stock on the Calendar
- This topic has 6 replies, 2 voices, and was last updated 12 years, 3 months ago by
Kelly.
-
AuthorPosts
-
January 14, 2014 at 11:37 am #92342
vesbro
ParticipantHello!
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:But now I’m looking to put similar functionality on the calendar.
January 14, 2014 at 6:23 pm #92717Kelly
ParticipantHi, vesbro. 🙂 Great question!
Please check out this tutorial:
It should be just what you’re looking for! 🙂
January 16, 2014 at 6:56 pm #93829vesbro
ParticipantI’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!
January 17, 2014 at 8:07 am #94014Kelly
ParticipantHi, 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?
January 17, 2014 at 8:42 am #94049vesbro
ParticipantThis reply is private.
January 17, 2014 at 9:43 am #94076vesbro
ParticipantWhich 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?
January 20, 2014 at 1:29 pm #94841Kelly
ParticipantHi, 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! 🙂
-
AuthorPosts
- The topic ‘Showing Stock on the Calendar’ is closed to new replies.
