Add Event Title to WooCommerce "Name" Column

Home Forums Ticket Products Event Tickets Plus Add Event Title to WooCommerce "Name" Column

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1207710
    Jeseph
    Participant

    I would like to add the Event Title to my WooCommerce product list (within the admin dashboard).

    It seems the name column is a public function (https://docs.woocommerce.com/wc-apidocs/source-class-WC_Admin_Post_Types.html#286-421) how would I be able to create the event relationship to output the event title here.

    Ideally I would like to do this via conditional (if product is an event ticket -> add event title).

    I have attached a screenshot of the ideal output.

    Thanks!

    #1207898
    Jeseph
    Participant

    I’m not sure if this is the most elegant solution but it worked for me:

    https://gist.github.com/jeseph/d748dc6ce50e7ae526a83152a88dcabc

    • This reply was modified 9 years, 4 months ago by Jeseph.
    #1208189
    Geoff
    Member

    Hi Jeseph,

    Nice work! It’s really awesome of you to both write the customization yourself and share it here with the rest of the community. I’m sharing it with others on the team to so it’s on everyone’s radar if similar requests pop up.

    I’ll go ahead and close this thread but let us know if any other questions come up and we’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add Event Title to WooCommerce "Name" Column’ is closed to new replies.