Home › Forums › Ticket Products › Event Tickets Plus › Remaining Inventory Not Showing for Tickets
- This topic has 9 replies, 3 voices, and was last updated 12 years, 1 month ago by
Kelly.
-
AuthorPosts
-
February 21, 2014 at 6:29 pm #108163
sbrinley
ParticipantI have told WooCommerce to manage stock (inventory settings) and the Stock Display Format is set to “Always show stock.”
This works for products (http://beesartshop.com/product/test-product-2/) but does not show for events (http://beesartshop.com/event/test-class/). For events it only shows once the ticket is out of stock. This has caused quite a bit of confusion.
February 24, 2014 at 10:39 am #108683Kelly
ParticipantHi, sbrinley. Great question! 🙂
One of our devs here has created a WP Plugin that may help you with this. Here’s an example of how to use it in action:Â https://theeventscalendar.com/support/documentation/adding-sold-out-notices-for-woocommerce-tickets-in-list-view/
Would you mind checking it out and seeing if that will give you the right tool for the job? Thanks!
February 24, 2014 at 10:44 am #108697sbrinley
ParticipantIt still shows “Out of Stock”. What I need is “3 out of 10 remaining”. This still works for products and used to work for tickets. It no longer works.
February 24, 2014 at 10:52 am #108699summukas
ParticipantI need the same thing!
And extra I need price of event. When I disable WooCommerce Tickets plugin and set Event cost, then it shows exactly what I need, but not with using this plugin.
February 24, 2014 at 10:58 am #108700summukas
ParticipantSorry for two comments. I am trying to add “available / all tickets” + “cost” to the category page. I have modified category page as I want it to be. There are all events (in table) of this category and link to specific event where it can be bought.
Oh, by the way – sbrinley. You can alter tickets.php file to show Available tickets by adding this code to the table where tickets are being displayed (make sure you copy this file to your theme folder).
echo “<td class=’tickets_description’> Available: “;
echo $ticket->stock;
echo “</td>”;February 25, 2014 at 11:24 am #109205Kelly
ParticipantHi, sbrinley. Sorry for the delay in getting back to you. We had a higher than usual thread volume over the weekend and it’s set us back a bit in response time.
This is definitely something that you could make happen using a template override of the tickets.php file. Please check out our Themer’s Guide, linked in the sidebar, for complete details on how to make that happen, if you’re not already familiar. Then, you can check out this example of one way to do it:Â http://pastebin.com/rX1SYDsc
The addition of the inventory and count are in lines 92-94. Please play around with it and let me know if that does the trick!
Thanks again for your patience! 🙂
February 25, 2014 at 12:36 pm #109243summukas
ParticipantIt’s easy to display it on specific event page. Can it be displayed on category page (with modified theme)?
February 28, 2014 at 4:49 am #110738summukas
ParticipantAnything?
March 2, 2014 at 11:46 am #111417sbrinley
ParticipantThis reply is private.
March 3, 2014 at 8:35 pm #112046Kelly
ParticipantHi, sbrinley. First, I’m so glad to hear that things are going well for your site now. That’s great news! 🙂
Thank you very much for the feedback. You’re absolutely right, and I’ll do my best to be more helpful in the future!
-
AuthorPosts
- The topic ‘Remaining Inventory Not Showing for Tickets’ is closed to new replies.
