I saw two closed topics about this issue on this plugin. I also saw that the developer has stopped maintenance of this plugin.
I was seeing the values from last user populated in the registration form which is security concern and also a very bad user experience.
I was able to fix it by the following code in the two functions woocommerce_edit_my_account_page_bottom and woocommerce_edit_my_account_page_top
$args = [
'field_groups' => [$reg_top],
'form' => false,
'return' => '',
'post_id' => 'new_post'
];
The line ‘post_id’ => ‘new_post’ is what I added and it fixed my issue.
]]>Hello!
Would you consider adding the possibility to use several ACF field groups (multiple checkbox), rather than just one (with the current single select)?
]]>I have this issue. I see a closed thread from 8 months ago but no solution. Anyone got a workaround?
]]>Hello, how can I show groups of fields in view finalize purchase, so that the user has the possibility to edit them there too? Thank you so much!
]]>Hello!
Thank you for this plugin! It works fine.
Under Account Details, the ACF fields group appears at the bottom of the form.
Is there any way to move the fields to another position?
For example under the email field.
Thank you in advance.
Marek
]]>Hello I’ve create some custom fields for woocommerce account but it doesn’t appear on the user’s profile area in WP-Admin.
May i know how to save those fields in wp-admin ?
WAiting for your reply thanks
]]>For some reason, the custom fields are all coming across already populated with whatever the last person put in them. I don’t even know where to start to figure this one out.
]]>Hey community,
how can I display the custom fields in the “My Account” frontend?
I see all ACFs in the backend. Even when I save, these values remain – that’s perfect.
But I would like to tire of the fact that this information can also be seen when a guest looks at this user profile.
Thanks =)
]]>Hi there,
I have installed this plugin on a site and successfully created additional profile fields which display when a user creates an account.
I can see those fields in my WooCommerce members’ area when I’m logged in, but they do not appear on the user’s profile area in WP-Admin.
My client needs to be able to view the additional fields that customers have filled out – is there any way I can make these appear in the user area?
Thanks
Hannah
]]>Hi there,
I’m trying to set up registration forms in English and Japanese by wpml.
I set up registration – top and bottom in English and likewise in Japanese. But, then, the setting in the other language gets removed and falls back to unselected.
How am I able to set this up correctly so that the forms would display in their languages?
Thank you.
Kiyoshi
I just debugged an issue that relates to this plugin which I installed to be able to use ACF. I import customer accounts programmatically and let woocommerce create a password. But then your plugin complains about “illegal confirmation password” – since there is none. There is also nothing in _POST in that case.
I just added
if(empty($_POST))
return $validation_errors;
to wooc_validate_extra_register_fields which works fine.
]]>Hi,
I use this extension but i have an issue on chekout profile register form. I have the message : “Invalid confirmation password” because i didn’t see this field !
Thanks for your help
Jerome
Hello!
Is there a possibility that this plugin upgrades to WordPress 5.3?
Thank you!
]]>Hi,
I have two different user roles for my frontend users, “employer” and “candidate”. I want to show the ACF fields on the Woocommerce “Edit my account” page only for users of the user role “employer”. Any idea how I could achieve that?
Thanks for your work for this plugin!
]]>I understand that the is not equal to
location rule operator won’t work with the WooCommerce Account Fields location but by hooking into acf/location/rule_operators
and removing it will do so globally.
Maybe instead of removing it globally writing a quick javascript to remove that option if WooCommerce Account Fields is selected or hook into the ACF save fields and check the location rules and throw an error.
]]>At the moment whenever you submit the form and it errors out it will save the metadata to whatever the current post is. This means that the next user who visits the page will have pre-populated information from the previous user.
One possibly solution is to reset the Posted ACF values if it fires after WooCommerce saves that data. If you unset it you may run into index errors down the line by ACF:
/**
* Reset the ACF Array before it saves postmeta
* Priority 5 is Before Save, 10+ After Save
*
* @return void
*/
function acf_account_fields_save_prevention() {
if( is_admin() || ! isset( $_POST['woocommerce-register-nonce'] ) || empty( $_POST['acf'] ) ) {
return;
}
$_POST['acf'] = array();
}
add_action( 'acf/save_post', 'acf_account_fields_save_prevention', 5 );
You may want to do some additional checks or pass something to the $_POST
itself ( form an earlier action hook ) to ensure that it’s from the registration form with your ACF fields. Otherwise this could modify ACF saving that’s not expected to.
– – – – – – – – –
Thanks for putting this plugin together! Other than a few things here and there it’s really solid
]]>Whenever the registration confirm password setting is saved and unchecked it gets saved as no
. This means that the conditional here needs changed:
acf-wc-account-fields.php LN 253
if($conf_password){ /* ... */ }
To something like:
if('yes' == $conf_password){ /* ... */ }