bengriff64
Forum Replies Created
-
Sorry to be an absolute pain but I am really new to all of this. How do you also update a checkbox field in the user area? I am using the form as above with a checkbox and button group field in but this isn’t saving the values either.
Thanks a lot in advance.
Apologies.
So this worked for text fields and repeater fields as @tasup suggested.
add_action('user_register', 'add_user_meta_after_registration', 10, 1 ); function add_user_meta_after_registration( $user_id ) { $children_repeater = $_POST['acf']['field_5eb42c8079c7a']; //Get the field from $_POST (note that you need the field key here) if (isset($children_repeater)){ update_field('field_5eb42c8079c7a', $children_repeater, 'user_' . $user_id); //Update the field with the ACF funtion 'update_field'. If you pass in a repeater it will create the right structure for you! } }
But how do I save the value of an image or file field?
Absolutely brilliant, thank you both for your answers. One last thing, how do I update a file or image field?
Hi,
Thank you for your reply.
I have followed this post exactly.
– I have created a field group with the fields I need.
– I have created the form, turned off the submit button, and stopped the validation.
– I have also added a user action to the form of update user and set it to save to current user and save all the fields.
– I have also done the same for load values.
– I am displaying the form in the frontend with:add_action( 'woocommerce_after_order_notes', 'checkout_exta_fields' ); function checkout_exta_fields( $checkout ) { echo '<div><h2>' . __('Apply Form') . '</h2>'; acfe_form('woocommerce-checkout-fields'); echo '</div>'; }
What I want is when clicking buy on the checkout, these fields to save to the user data and to the order data.
I think I may be going wrong at point 3 but I’m not sure.
Thank you so much in advance, you are really helping me out here.
Kind regards.
Hi guys,
Could one of you please tell me how to get the data to save to the user on checkout. I have the fields, the form and displaying the fields at the end of the checkout form, but I can’t get it to display the fields in the users area in WordPress.
Any help would be greatly appreciated.
Forum: Plugins
In reply to: [Advanced Woo Search] Category Imges in Ajax SearchSorry, just read my explanation back and it was really bad.
I have got the pro version but I want Category featured image to show, is that possible?
- This reply was modified 5 years, 11 months ago by bengriff64.