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 9 years, 3 months ago by Barry.
-
AuthorPosts
-
February 5, 2015 at 2:23 pm #940365Mohammad ZubairParticipant
Hi,
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 #940532BarryMemberHi 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 ZubairParticipantHi Barry,
I did some digging in the code and I found the problem!
The first name and last name is fetched from the
post_meta
table 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_name
and_billing_last_name
are 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 #940901BarryMemberOK, 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 ZubairParticipantHi 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_fields
When 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 #941379BarryMemberAh, 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.