Auto Assign Category to Tickets

Home Forums Ticket Products Event Tickets Plus Auto Assign Category to Tickets

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1439247
    Shayne
    Participant

    How would I auto-assign a category like “tickets” when a ticketed event is created. The way my woocommerce is set up, tickets need to be categorized as such as they have different payment options. It is easy enough to go into woocommerce to do this after creating the event, however, I can forsee myself or someone on my staff forgetting to do this and would love to have it assigned automatically.

    Regards,
    Shayne

    #1440805
    Sky
    Keymaster

    Shayne,

    Here is a code snippet that may help. https://gist.github.com/skyshab/ca8dbb3b9b8639b50e36c9e2bff91bc8 It will automatically add a category of “ticket” to the woocommerce product when creating a ticket.

    This could be added either to a custom plugin (preferred) or else to your theme’s functions.php file.

    Let me know if that works for you!

    Thanks,
    Sky

    #1461040
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Auto Assign Category to Tickets’ is closed to new replies.