Home › Forums › ACF PRO › Custom fields for registration woocommerce › Reply To: Custom fields for registration woocommerce
Hi @wax
You can always create a field group with a repeater field in it. Then, you can add the field group to the order post type and use acf_form()
instead of woocommerce_form_field()
with ‘form’ option set to false in the checkout form. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/acf_form/. After that, just update the repeater values by using the update_field()
function.
You can get the posted repeater value like this:
$repeater_values = $_POST['acf']['field_1234567890abc'];
Where ‘field_1234567890abc’ is the field key.
I hope this makes sense 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.