Home › Forums › Ticket Products › Event Tickets Plus › number of tickets remaining
- This topic has 9 replies, 3 voices, and was last updated 12 years, 3 months ago by
Rob.
-
AuthorPosts
-
December 18, 2013 at 12:56 pm #82588
bradystarr
ParticipantI just updated my woocommerce to include the ticketing feature but need each product to display how many tickets are left. Help this is important! π
+thanks for a great productDecember 18, 2013 at 6:04 pm #82664Kelly
ParticipantHi, bradystarr. Great question!
Your best bet is to check out the functions here: https://github.com/barryhughes/woot-library/blob/master/aliases.php
That should have what you need to get you pointed in the right direction. Let me know if you get stuck anywhere along the way! π
December 19, 2013 at 7:35 am #82802bradystarr
ParticipantThanks so much for the response! Please forgive me, I am not an advanced web designer. I see the code you have sent me but no instructions about what I do with it. π
Any help in this direction? Thanks again!December 19, 2013 at 9:04 am #82817Kelly
ParticipantNo worries, bradystarr. Doing template overrides is quite straightforward. The Themer’s Guide is written with the themer in mind, rather than a programmer, so it should walk you through what you need.
For a little extra help on modifying a template, you can check out this tutorial: https://theeventscalendar.com/altering-or-removing-headings-on-calendar-views/
The part where I show how to make a template override starts at about 2:20 in the video. Obviously, this is for a different file and making a different change to it, but it should get you pointed in the right direction.
Please let us know how it goes! π
December 19, 2013 at 9:48 am #82831bradystarr
ParticipantThanks Kelly! The video was really helpful and I learned a lot, but I am still not showing the tickets remainig. I pasted the snippet your linked to into my themes function.php file, is this the right place for it?
December 19, 2013 at 9:53 am #82833Kelly
ParticipantAh, let me give you a simpler solution then. If you wouldn’t mind removing what you added to the functions.php, for housekeeping purposes, that’s a good start.
Then, you can add a few lines of code to your wootickets/tickets.php file. Hereβs an example of the modified file:
The code that controls showing the tickets available is on lines 92-94. You should be able to just slip those lines into your overridden tickets.php to affect the change.
Hope that helps! π
December 19, 2013 at 10:24 am #82842bradystarr
ParticipantI am not quite sure where to past this snippet into my wootickets/tickets.php file. I have experimented in a few areas (lol) and crashed my site haha.. but i reverted and am still confused. thanks again for your patience!
December 19, 2013 at 10:25 am #82843bradystarr
Participantoh, just override the entire file?
December 20, 2013 at 5:08 pm #83120Kelly
ParticipantHi, bradystarr. You should just be able to override the entire file. Did that work for you?
January 14, 2014 at 2:23 pm #92464Rob
MemberSince it’s been 2 weeks and no activity, I’m closing this out.
-
AuthorPosts
- The topic ‘number of tickets remaining’ is closed to new replies.
