Skip Navigation

[Closed] Pulling data from custom Woocommerce checkout fields for use on front-end

This support ticket is created 3 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by Luo Yang 3 years ago.

Assisted by: Luo Yang.

Author
Posts
#2253961

We would like to add a custom field to our Woocommerce checkout page. I have read several other support threads found on this subject and understand that Toolset cannot handle doing this. I understand that I need another 3rd party plugin to accomplish this.

My question here is if we get the custom field added through a 3rd party plugin, and that field data is then present in all our Woocommerce orders, is there any way we can then make that field accessible in Toolset so that we can display the contents of that field as one of the fields in a front-end View showing Woocommerce orders?

#2253963

Note that the use here is we want to have a field called Heard About? where we ask people where they found out about us and provide multiple options they can select from for the field data. It only makes sense to have this field on the Woocommerce checkout page. I understand that we could add it as a custom field on the product pages, but that would force people to make a selection for this on every product they order. That wouldn't make sense. So we really want it on the Checkout page only.

But then we want to create custom reports using your Views that can contain this field from the WooCommerce orders.

Any ideas on how to accomplish this?

#2254633

Hello,

You are right, there isn't such kind of built-in feature, in most cases, you can setup it as a custom user field "Heard About", and put it into the register user form:
https://toolset.com/course-lesson/creating-forms-for-registering-users/

One user can hear about your website the first time only once.

#2254643

Yes, that makes sense to include it in a form at the point the user account is first created. Let's see how the remainder of the other ticket goes with assigning a user role on product purchase before looking more at this. If we stick with using your form, we can add this field there as you suggest. But if we end up going with a 3rd party plugin and not using your form, then I'll want to revisit this to see if it is possible to make the field that gets added to the checkout page through the 3rd party plugin available for Toolset to use for reports. We'll leave this unresolved for the moment but don't worry about replying further until we finish the other ticket. You're working with me on that one as well.

#2254649

OK, I have marked this thread as "Waiting for feedback" status, please update when you need more assistance for it.

The topic ‘[Closed] Pulling data from custom Woocommerce checkout fields for use on front-end’ is closed to new replies.