Home › Forums › Ticket Products › Event Tickets Plus › Purchase name and email not visible in attendee view
- This topic has 5 replies, 2 voices, and was last updated 11 years, 2 months ago by
Barry.
-
AuthorPosts
-
February 5, 2015 at 2:23 pm #940365
Mohammad Zubair
ParticipantHi,
Currently I don’t see the purchaser name in the attendee view.
I assume the purchaser name is taken from WooCommerce’s billing_first_name and billing_last_name, and the email from billing_email. Which is correctly filled in. When I view the order in woocommerce, I see that information also present.February 6, 2015 at 8:52 am #940532Barry
MemberHi Nazeem,
That sounds unusual.
Certainly if I test this out locally I see no such issues in the attendee list. It looks like you noted having run through our standard troubleshooting steps already, did that reveal anything?
I wonder also if there is there anything “atypical” about the way you are creating these orders – or are they regular orders created by customers in the usual way?
Thanks!
February 8, 2015 at 6:12 am #940777Mohammad Zubair
ParticipantHi Barry,
I did some digging in the code and I found the problem!
The first name and last name is fetched from the
post_metatable in WordPress, thus the first name and last name are stored as meta data for the order.
However, I ‘disabled’ all the WooCommerce fields (billing_first_name, billing_last_name and others), so the meta key:_billing_first_nameand_billing_last_nameare never stored in the order.
When WooTickets tries to fetch this data, it’s empty.I fixed this by re-enabling the necessary WooCommerce fields and it worked!
February 9, 2015 at 6:31 am #940901Barry
MemberOK, glad you found the problem. So, out of interest – in case we hit up against this again in the future – when you note that you ‘disabled’ those fields do you mean that this was the result of some customization work?
February 9, 2015 at 5:08 pm #941177Mohammad Zubair
ParticipantHi Barry,
Yes. In WooCommerce it’s possible to ‘disable’ the billing/shipping/account fields in the sense that they are not used to check for its presence (for example in the checkout) with the following code:
unset($fields['billing']['billing_first_name']); unset($fields['billing']['billing_last_name']); unset($fields['billing']['billing_email']);in filter:
woocommerce_checkout_fieldsWhen you do this, the reference to the values of these fields in the orderdata is not created. This means that the meta_keys _billing_first_name, _billing_last_name and _billing_email are not stored.
However, WooTickets is using these keys to acquire the name and email. So I just enabled those fields.February 10, 2015 at 10:11 am #941379Barry
MemberAh, ok. Thanks for confirming 🙂
I’ll close this topic since it sounds like we’re all set, but of course if anything else should crop up please don’t hesitate to open a new thread and one of the team will be only too happy to help.
Thanks again!
-
AuthorPosts
- The topic ‘Purchase name and email not visible in attendee view’ is closed to new replies.
