Skip Navigation

[Resolved] How to add a custom field to WooCommerce Checkout page

This support ticket is created 6 years, 7 months 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Anthony 6 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#649477

Tell us what you are trying to do?
I want to add a radio button field to the WooCommerce Checkout page and store the entered data in the resulting order post.

Is there any documentation that you are following?
I haven't found anything about this specific issue.

Is there a similar example that we can see?
Not that I've found.

What is the link to your site?
hidden link

#649975

Hi, WooCommerce Views gives you the ability to design the product page and the product archives. The Checkout page is controlled by WooCommerce, and Toolset does not offer any options for customizing that part of the workflow. WooCommerce offers some filters for the checkout page you may be able to use to customize things:
https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

If you want to save the custom field values in a Types custom field, you can use the update_post_meta function. Types custom field slugs in the database use the format "wpcf-fieldslug". I can help you with this part once you have the checkout fields implemented.

#649995

reply is in the feedback section 'above'