Hide Add to Cart Button on Event Page

Home Forums Ticket Products Event Tickets Plus Hide Add to Cart Button on Event Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1086708
    rachel
    Participant

    I would like to hide the “Add to Cart” button at the bottom of the event page. I have set these tickets as grouped products in my woo commerce store and want customers to go to the store to purchase and not purchase on the event page. Is there a way to remove the ticket information at the bottom of the event page and instead add a link to my store?

    #1086833
    Geoff
    Member

    Howdy Rachel and welcome to the forums!

    Good question. You can remove both the “Add to Cart” button and the quantity selection input by adding this to your theme’s style.css file or using the Simple Custom CSS plugin:

    .tribe-events-style-full table.tribe-events-tickets td.woocommerce.add-to-cart,
    .tribe-events-style-full table.tribe-events-tickets td:first-child {
    display: none;
    }

    If you want to add a link to the product page for a ticket itself, you will want to do that using a template override. Our Themer’s Guide walks through template overrides, but it basically boils down to this:

    • Make a copy of the tickets.php file. It’s located at /plugins/event-tickets-plus/src/views/wootickets/tickets.php
    • Make a new folder in your theme folder called tribe-events
    • Make another folder in that one called wootickets
    • Drop the copied tickets.php file in that last folder

    Now that the template is in your theme it can be customized to suit your needs. In this case, wrap the ticket name in a link to the product.

    Will this help you get started? Please let me know. 🙂

    Cheers!
    Geoff

    #1093480
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hide Add to Cart Button on Event Page’ is closed to new replies.