Home › Forums › Ticket Products › Event Tickets Plus › Ticket_ID per each product of an event
- This topic has 9 replies, 2 voices, and was last updated 8 years, 5 months ago by
joffrey.
-
AuthorPosts
-
October 18, 2017 at 8:38 pm #1365775
joffrey
ParticipantI have multiple products per event and I had thought each product will generate its own “numbering system”
For instance:
Event 1
– Ticket a – 500 stock
– Ticket b -500 stockAnd when one person purchases both Ticket A and B, I had thought it would generate TICKET A-1, TICKET B-1. But instead it is doing Ticket A-1, Ticket B-2.
How can I change this so that each product has its own numbering? I can manually change the post_meta values for the old orders but going forward I need to make sure it creates itws own numbering.
October 18, 2017 at 8:40 pm #1365777joffrey
ParticipantThis reply is private.
October 20, 2017 at 7:57 am #1366494Victor
MemberHi Joffrey!
Thanks for getting in touch with us! Let me try to help you with that.
The ticket unique ID works that way by default and there is no built in option to modify it. However, you could modify this behaviour with some custom coding.
We are limited in the amount of support we can give for this type of customizations, but we always like helping out and at least point you in the right direction as much possible.
If you decide to go into customizing this, you should take a look at the ‘event_ticket_woo_attendee_created’ action hook provided to modify the unique id for the attendees generated.
I hope that helps. Let me know if you have follow up questions.
Best,
VictorOctober 20, 2017 at 2:00 pm #1366844joffrey
ParticipantI would appreciate some help or direction on this. Thanks I wil wait
October 23, 2017 at 2:52 pm #1367757Victor
MemberHi Joffrey!
I will reach out to the team to see if we can come up with a snippet to have as a starting point to achieve that.
I’ll get back to you as soon as we have something. Please hang in there.
Thanks,
VictorOctober 26, 2017 at 4:47 pm #1369644joffrey
ParticipantFilter hook: tribe_events_tickets_attendees_table_attendee_id_column
Are there any implications in overriding $unique_id from that hook with non unique value?
October 27, 2017 at 7:15 am #1370010Victor
MemberHi Joffrey!
Thanks for following up with this.
I don’t think there any implications in terms of the integrity of the records using that filter, as it does not affect the database.
Trying to come up with a working snippet using the ‘event_ticket_woo_attendee_created‘ action hook, I did find there might be certain security implications as the assign_unique_id() function triggered does affect the database. So I could not think of a way to accomplish that.
If using the ‘tribe_events_tickets_attendees_table_attendee_id_column’ filter works for you by overriding the $unique_id that is returned, then that’s one way to go. I’m not exactly sure the goal of this change, but bear in mind that will only modify the output in the attendees table.
I hope that helps! Let me know if you have any follow up questions.
Best,
VictorNovember 3, 2017 at 2:40 am #1374473joffrey
ParticipantThank you for your help, we managed to override and do a customization. We are using our own unique ticket id and replaced it with the ticket_id generated via tribe for each ticket per event. Which helps trumendously for our setup!
Thanks for your responses and guidance!
November 3, 2017 at 5:43 am #1374568Victor
MemberHi Joffrey!
That’s great to hear! I’m glad you could accomplish that.
I’ll go ahead and close this thread, but don’t hesitate to open a new topic if anything comes up and we’ll be happy to help.
Cheers,
Victor -
AuthorPosts
- The topic ‘Ticket_ID per each product of an event’ is closed to new replies.
