Skip Navigation

[Gelöst] How to add a custom field to WooCommerce Checkout page

This support ticket is created vor 6 Jahren, 7 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Anthony vor 6 Jahren, 7 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#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?
versteckter 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'