Home › Forums › Ticket Products › Event Tickets Plus › Remove number of tickets available
- This topic has 14 replies, 6 voices, and was last updated 9 years, 5 months ago by
Edward Barker.
-
AuthorPosts
-
October 10, 2016 at 4:03 am #1174431
Edward Barker
ParticipantHi there,
I’m urgently trying to remove the function which displays how many tickets are left for my event. How do I do that please?
Thanks,
Ed Barker.October 10, 2016 at 7:34 pm #1174748Geoff B.
MemberGood evening Edward and welcome back!
Thank you for reaching out to us.
I would love to help you with this topic.There a couple of ways to accomplish exactly what you are looking for:
- You can do a template override where you simply remove that field. You might want to read our Themer’s guide to get a sense of how that works. I can help with that if you want.
- You can hide the quantity using a simple CSS rule
.tribe-events-tickets .tribe-tickets-remaining (display:none !important;}Let me know if that helps.
Have a great day!
Geoff B.
October 11, 2016 at 1:34 am #1174813Edward Barker
ParticipantThanks. I read the guide but can’t work out exactly where to put this. Can you give me a step by step guide please?
Thanks,
Ed
October 11, 2016 at 9:33 pm #1175235Geoff B.
MemberGood evening Edward,
Thank you for writing back.
Here’s the skinny on how to do a customization:
- You create a /tribe-events/ folder in your theme (or even better, in your child theme)
- Based on the Themer’s guide you find the files you want to edit (generally in the /src/views/ folder of the plugin you want to tweak.
- You download a copy of these files on your computer.
- You edit them to your liking
- You upload them to the appropriate folder. In your case, that would be /tribe-events/wootickets/tickets.php
Let me know how that goes.
Best regards,
Geoff B.October 14, 2016 at 8:18 am #1176561Edward Barker
ParticipantGeoff,
I need to resolve this quickly please. I need to know the name of the file I need to edit and where exactly it is found. In my plugin folder I have either Event Tickets or Event Tickets Plus to choose from. The files are event-tickets.php or event-tickets-plus.php. I then need to know where I paste the following code:
.tribe-events-tickets .tribe-tickets-remaining (display:none !important;}
Which line do I put it on?
Thanks,
EdOctober 15, 2016 at 12:37 am #1177015Geoff B.
MemberGood evening Ed,
The simplest solution is the CSS one. You can paste the code:
- In your WordPress theme or child theme style.css file
- In the custom CSS box of your theme options (if there is such a thing in your theme)
- Using this plugin: https://wordpress.org/plugins/simple-custom-css/
If you prefer the more complicated solution, you need to:
- Grab a copy of /event-tickets-plus 3/src/views/wootickets/tickets.php
- Remove the code for the span that contains tribe-tickets-remaining
- Create a /tribe-events/ folder in your theme (or even better, in your child theme)
- upload them to the appropriate folder. In your case, that would be /tribe-events/wootickets/tickets.php
Let me know if that helps.
Have a great day!
Geoff B.
October 16, 2016 at 3:09 pm #1177518Edward Barker
ParticipantThis reply is private.
October 17, 2016 at 1:10 pm #1177897Geoff B.
MemberGood evening Ed,
Thank you for writing back.
I must say that the CSS rule not kicking it is very odd.Looking a bit deeper at your site, I am suspecting some kind of caching issue (between W3TC, the CDNs, etc…). For testing purposes, I would recommend deactivating all of it temporarily
Also, would you mind using your child theme and using the edited tickets.php file ?
As for your second question about the spam, my best recommendation is to use, configure and test a plugin such as https://wordpress.org/plugins/easy-wp-smtp/
This should resolve that issue.
Let me know how that goes.
Best regards,
Geoff B.October 19, 2016 at 4:57 pm #1179548Sean
ParticipantHey Geoff,
I’m following this thread as I’m trying to do the same thing as Ed. I’ve tried the CSS code you’ve listed (.tribe-events-tickets .tribe-tickets-remaining (display:none !important;}) and had the same issue. I then tried turning off all of my plug-ins to see if I had a cache issue, and that didn’t solve the issue either.
Any other thoughts on what I might be able to do to remove the “Quantity Remaining” text under the ticket box?
October 20, 2016 at 1:41 am #1179718Edward Barker
ParticipantHi Sean,
I finally got it working last night.
I basically just found this file:
/event-tickets-plus 3/src/views/wootickets/tickets.php
And I ‘commented out’ the bit the mentions ‘tribe-tickets-remaining’.
Ed
October 25, 2016 at 2:05 pm #1182790Geoff B.
MemberGood evening Sean and Edward,
I believe I answered this thread last Friday, but for some reason, my answer vanished.
I am sorry about that.As I was saying back then, Ed has the perfect solution.
However, this will get overwritten as soon as you update the plugin.You can simply take your edited file and do the following:
- Create a /tribe-events/ folder in your theme (or even better, in your child theme)
- upload them to the appropriate folder. In your case, that would be /tribe-events/wootickets/tickets.php
This way, the edit will stay even when the plugin updates.
Let me know how that goes.
Best regards,
Geoff B.October 26, 2016 at 3:15 pm #1183441chuck
ParticipantI opened tickets.php searched for “remaining” and commented (#) out the entire line and it works like a charm. Thank you.
October 26, 2016 at 7:50 pm #1183532Geoff B.
MemberGood evening Chuck,
Thank you for chiming in.
I am glad it worked well for you too.My recommendation from the previous answer still applies.
If you want to make sure your edited file does not get overwritten when you update the plugin, I highly recommend a template customization.You might want to read our Themer’s guide to get a sense of how that works.
Best regards,
Geoff B.
November 17, 2016 at 8:35 am #1193926Support Droid
KeymasterHey 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 ‘Remove number of tickets available’ is closed to new replies.
