Home › Forums › Ticket Products › Event Tickets Plus › ticket stock
- This topic has 15 replies, 5 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
January 12, 2016 at 11:48 am #1054782
František Lipták
ParticipantHi,
I don’t like the feature which displays number of tickets sold and tickets remaining (e.g. 10 out of 20 available). Can I stop displaying this on my web?
thank you
FeroJanuary 13, 2016 at 12:00 am #1055000Brook
ParticipantHowdy Fero,
You can absolutely stop that from displaying by creating a theme override. What ecommerce plugin are you using? WooCommerce? Easy Digital Downloads? If you let me know I can give you more specific insructions.
Cheers!
– Brook
January 13, 2016 at 12:01 am #1055003František Lipták
ParticipantHi Broke,
I am using woocommerce.January 13, 2016 at 1:53 pm #1055568Tipiwa
ParticipantGreat question! I would like to know the answer as well. Thank you.
January 13, 2016 at 2:04 pm #1055574František Lipták
ParticipantHi,
I got an answer from Geoff on another link. Let me know whether you can access it. There is no easy solution.January 13, 2016 at 2:26 pm #1055589Tipiwa
ParticipantThanks František, but I believe that answer was to a different question from the one I have.
I would like for the text ‘x out of y available’ number to not display next to where the user selects how many tickets they are purchasing. I tried the custom css .tribe-events-tickets .tribe-tickets-remaining {
display: none;
}
as suggested on another thread, removed the whole table, which isn’t what I am after.I am still looking forward to an answer…
January 13, 2016 at 2:41 pm #1055607František Lipták
ParticipantOh yes , sorry I got confused. I had two questions pending 🙂
January 13, 2016 at 10:17 pm #1055758Brook
ParticipantHowdy Guys,
The easiest way to modify the front-end ticket form is by creating a theme override. Our Themer’s Guide walks you through creating those. You will then want to modify one of the templates inside of public_html/wp-content/plugins/event-tickets-plus/src/views/ and remove the section you’re not interested. Which template and which thing to remove though depends on which exommerce platform you are using. Hence why I was wondering, that way i could give you more specific instructions.
Fero, it sounds like you found a solution then. Awesome! Let me know if you need anything else.
Tipiwa, if you need more specific instructions than the above we’d love to walk you through it. Mind opening a topic dedicated to your issue, and let us know what platform you’re using? That way we’ll avoid spamming Fero’s inbox.
Cheers!
– Brook
January 13, 2016 at 11:01 pm #1055763František Lipták
ParticipantHi Brook,
I still don’t have the solution, so I would welcome more guidance. As I said I am using woocommerce.
What I pasted above was an answer to a different topic, I am sorry for the confusion.
January 14, 2016 at 6:49 am #1056020Tipiwa
ParticipantThanks for the response, Brook. I’m guessing I can continue to post here as Fero is also still looking for an answer.
I am using Woocommerce too. I tried the override that you suggested here: https://theeventscalendar.com/support/forums/topic/remove-tickets-sold-stock/#dl_post-1045631
and it makes complete sense. I deleted line 54, but that did not get rid of the text on my site. Maybe I’m doing it wrong?
Please let me know if it is still best I open a separate thread. I would greatly appreciate a walk-through.
Thanks
January 14, 2016 at 1:56 pm #1056214Tipiwa
ParticipantI tried again, paying closer attention and it worked. Thank you for your help.
Fero, I hope you figure it out as well.January 14, 2016 at 2:15 pm #1056221František Lipták
ParticipantI need my friend to have a look at it. I am sort of install and activate plug in guy 🙂 but on the second look it actually does not look as complicate. I might have a go myself. Cheers guys
January 14, 2016 at 8:33 pm #1056329Brook
ParticipantExcellent Tipiwa! Thanks for confirming it worked. Happy to hear you’re where you want to be. 🙂
If I can be of more help Fero please let me know. To summarize, you should create a “theme override” for: public_html/wp-content/plugins/event-tickets-plus/src/views/wootickets/tickets.php On about line 54 you will see this:
echo sprintf( esc_html__( '%1$s out of %2$s available', 'event-tickets-plus' ), esc_html( $remaining ), esc_html( $ticket->original_stock() ) );If you delete this line you should no longer see any mention of how many tickets are available. We have a step by step guide for creating theme overrides here: Themer’s Guide. I must admit that it takes a little knowhow to follow the guide, unfortunately that is somewhat necessary for changes like this. But if you have questions along the way, or if you friend does, we’ll be here.
Cheers!
– Brook
January 18, 2016 at 2:51 pm #1058117barback
ParticipantI hid the number of tickets sold by adding this to my custom css:
.tribe-tickets-remaining {display:none;}
January 18, 2016 at 9:21 pm #1058290Brook
ParticipantThanks for chiming in Barback! That is an easier solution.
Using CSS like that does prevent it from being easily visible. But the information is still there if a competitor or interested party investigates, they can still find out how many tickets you’ve sold and how many total are available. The last person who requested this was quite privacy conscious, so I only thought to share the same method I shared with them – which does fully remove the info from the public. But if you’re really only interested in masking over the data then Barback’s solution is much easier and does the job perfectly.
As always, let me know if I can be anymore help.
– Brook
-
AuthorPosts
- The topic ‘ticket stock’ is closed to new replies.
