Hide Number of tickets available

Home Forums Ticket Products Event Tickets Plus Hide Number of tickets available

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1301979
    paulcrawford
    Participant

    Hi
    This problem seems to come up after each upgrade…
    I was using css rule to hide number of tickets on the single events page…

    .tribe-tickets-remaining {
    display: none !important;
    }

    since todays update the number of tickets remaining now appears on my default list view – how can I hide it?
    Thanks
    Paul

    #1302131
    Jennifer
    Keymaster

    Hi Paul,

    Thanks for reaching out! I’m sorry you’re running into this issue.

    Your CSS should work, but make sure you are adding it to the Custom CSS area under Appearance > Customize (if you have one) or in the style.css file of your child theme. This will prevent your changes from being lost during updates, where theme and plugin files are overwritten.

    I think there may be a simpler solution for you here though…try going into WooCommerce > Settings > Products > Inventory and changing the Stock display format setting to “Never show quantity remaining in stock”.

    Let me know how that works for you!

    Thanks,

    Jennifer

    #1302157
    paulcrawford
    Participant

    No, that didn’t work – the number of tickets left still appears on the events list page

    #1302716
    Jennifer
    Keymaster

    Hi Paul,

    I’m sorry that didn’t work for you…just to make sure I am understanding correctly, you had that CSS working before you updated and then lost it during the update…now you tried adding it back in, and it’s not working?

    I took a look at your site, and that CSS should be working for you. Can you tell me where you’re adding it now that it’s not working?

    Thanks,

    Jennifer

    #1308347
    paulcrawford
    Participant

    This reply is private.

    #1309881
    Jennifer
    Keymaster

    Thanks for sending those links! I took a look at the list view page, and this hid it from there:

    .tribe-events-event-cost .tribe-tickets-left {
    display: none;
    }

    If that doesn’t work, you can also try adding !important like in the first example.

    Let me know how it goes!

    #1309996
    paulcrawford
    Participant

    Yes! That worked – thank you!
    Just need some css to hide the “buy Now” button that has appeared on that page since update…

    #1312032
    Jennifer
    Keymaster

    I’m glad that worked for you…sorry the update created a new issue for you! You can hide it with the following CSS:

    .tribe-events-event-cost .tribe-button {
    display: none;
    }

    or by adding this to your functions.php file:

    add_filter( 'tribe_tickets_buy_button', '__return_empty_string' );

    I hope that helps!

    #1312479
    paulcrawford
    Participant

    That worked perfectly – thanks for your help

    #1314763
    Jennifer
    Keymaster

    Perfect! Glad to hear that worked.

    I’ll go ahead and close this thread out, but please feel free to open a new one if you have any further questions!

    Thanks,

    Jennifer

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Hide Number of tickets available’ is closed to new replies.