Home › Forums › Ticket Products › Event Tickets Plus › How to get address and country to ticket?
- This topic has 6 replies, 3 voices, and was last updated 7 years, 2 months ago by Ilkka.
-
AuthorPosts
-
January 16, 2017 at 5:43 am #1218942IlkkaParticipant
Hi,
I have been trying to get additional customer info to ticket. The custom fields are not an option as in my case there are many people buying tickets 10 or more so they would have to be filling fields all the time, not convenient for the customer Also another problem that arises from these custom fields is that these have to be activated manually one by one and i have hundreds of tickets.
so my question is. Is there some handy way getting woocommerce billing city and country to ticket. I quess there is not but do you have any suggestions.
Thanks.
January 17, 2017 at 9:03 am #1219676AndrasKeymasterHello Ilkka,
Thanks for reaching out! That’s a super question you have there.
Please give me some time to look around and I’ll let you know soon what I found.
Cheers,
AndrasJanuary 17, 2017 at 9:10 am #1219681IlkkaParticipantHi,
Thanks, but i got this solved by adding this in:
echo get_post_meta( $ticket[‘order_id’], ‘_billing_city’, true);
$country = get_post_meta( $ticket[‘order_id’], ‘_billing_country’, true);
echo $country;so this is solved.
January 18, 2017 at 8:03 am #1220254AndrasKeymasterHi Ilkka,
I am glad to see you were able to figure it out. Super awesome!
Could you share where you added those lines? It might be helpful for other people who are looking for something similar.
Thanks and cheers,
AndrasJanuary 20, 2017 at 9:00 am #1221573IlkkaParticipantHi, i added those lines in email.php file.
January 23, 2017 at 2:51 am #1222246AndrasKeymasterHello again,
Thanks for sharing that!
Since the topic is resolved I’m going to close this. If you need any help in the future just open a new ticket and we’ll help you out.
Cheers,
Andras
PS: If you like our plugins we’d be happy if you would rate us in the .org repo:
PS2: We would also appreciate if you could rate your support experience below. Thanks!
-
AuthorPosts
- The topic ‘How to get address and country to ticket?’ is closed to new replies.