Remove number of tickets available

Home Forums Ticket Products Event Tickets Plus Remove number of tickets available

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1174431
    Edward Barker
    Participant

    Hi 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.

    #1174748
    Geoff B.
    Member

    Good 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:

    1. 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.
    2. 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.

    #1174813
    Edward Barker
    Participant

    Thanks. 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

    #1175235
    Geoff B.
    Member

    Good evening Edward,

    Thank you for writing back.

    Here’s the skinny on how to do a customization:

    1. You create a /tribe-events/ folder in your theme (or even better, in your child theme)
    2. 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.
    3. You download a copy of these files on your computer.
    4. You edit them to your liking
    5. 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.

    #1176561
    Edward Barker
    Participant

    Geoff,

    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,
    Ed

    #1177015
    Geoff B.
    Member

    Good evening Ed,

    The simplest solution is the CSS one. You can paste the code:

    1. In your WordPress theme or child theme style.css file
    2. In the custom CSS box of your theme options (if there is such a thing in your theme)
    3. Using this plugin: https://wordpress.org/plugins/simple-custom-css/

    If you prefer the more complicated solution, you need to:

    1. Grab a copy of /event-tickets-plus 3/src/views/wootickets/tickets.php
    2. Remove the code for the span that contains tribe-tickets-remaining
    3. Create a /tribe-events/ folder in your theme (or even better, in your child theme)
    4. 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.

    #1177518
    Edward Barker
    Participant

    This reply is private.

    #1177897
    Geoff B.
    Member

    Good 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.

    #1179548
    Sean
    Participant

    Hey 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?

    #1179718
    Edward Barker
    Participant

    Hi 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

    #1182790
    Geoff B.
    Member

    Good 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:

    1. Create a /tribe-events/ folder in your theme (or even better, in your child theme)
    2. 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.

    #1183441
    chuck
    Participant

    I opened tickets.php searched for “remaining” and commented (#) out the entire line and it works like a charm. Thank you.

    #1183532
    Geoff B.
    Member

    Good 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.

    #1193926
    Support Droid
    Keymaster

    Hey 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

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Remove number of tickets available’ is closed to new replies.