How to save form fields in Order details
-
Hi,
I am looking to insert a repeatable field in woocommerce checkout form and display them in order details page.
I have created repeatable fields in ACF and created a form using ACF extended.
I added below code in functions.php to display in checkoutadd_action( 'woocommerce_after_order_notes', 'checkout_exta_fields' ); function checkout_exta_fields( $checkout ) { echo '<div><h2>' . __('Details') . '</h2>'; acfe_form('travellerdetails'); echo '</div>'; }
Form is getting displayed in checkout page but the data is not getting saved anywhere. Also, when i click place order button, i get a browser popup which says your data might not be saved.
How do i save this data to Order details page in admin. If possible in email also.
I used these options in ACF extended form.
Form element – NO
Submit button – NO
Honeypot – NO
Kses – Yes
Action -> Post Action -> Update post
Thanks.The page I need help with: [log in to see the link]
- The topic ‘How to save form fields in Order details’ is closed to new replies.