Adding Category to Events Ticket Plus – Themer's override

Home Forums Welcome! Pre-Sales Questions Adding Category to Events Ticket Plus – Themer's override

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1061394
    Melanie Adcock
    Guest

    I found this thread which allows me to add the category of “Ticket” to each event using Events Ticket Plus (needed a category so I can add a custom field in Woocommerce only on the ticket products with the category of “Ticket”) https://theeventscalendar.com/support/forums/topic/missing-function-in-event-tickets-plus/
    by adding this to line 510
    //add ticket category to ticket
    wp_set_object_terms( $ticket->ID, ‘Ticket’, ‘product_cat’, true );

    I added the code to the file in the plugins folder and naturally it worked. But I need to add it to the override folder inside my theme folder as directed in your Themer’s Guide.
    I tried adding to [theme-name]/tribe-events/tickets/src/Tribe/Commerce/WooCommerce/main.php but it didn’t work. I am missing something? Should the first sub folder be called something else? I tried tickets-plus but that didn’t work either.
    Thanks
    Melanie

    #1061431
    Melanie Adcock
    Participant

    I posted this in the wrong place. Reposting in correct forum

    #1061480
    Brian
    Member

    Closing this thread as it is a duplicate of this one:

    Adding Category to Ticket in Woo – Overridding via Themer's Guide not working.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding Category to Events Ticket Plus – Themer's override’ is closed to new replies.