Code

Discussion on User Extra Fields

Discussion on User Extra Fields

Cart 1,022 sales
Recently Updated

vanquish supports this item

Supported

471 comments found.

Hi there,

I am trying to send my userprofile fields to to Mailchimp. All fields are send correctly to Mailchimp. I use the Wordpress User Extra Fields for 1 extra field. It works fine with simple fields. But when I use a radio button or checkbox field the data is not being send correctly to Mailchimp.

The guys from Mailchimp for Wordpress (the plugin that send the data to Mailchimp) have solved the issue by synchning the right output of the field now. But a new error came up. This is what they said:

“It looks like the update actually worked perfectly, so that’s good. Sadly, a new issue popped-up now that the field is being sent to MailChimp.

The error message indicates that you have a field named BEZORGMOM in Mailchimp that accepts one of these values: Dinsdagochtend (10:00-12:00), Dinsdagmiddag (12:00-16:00), Dinsdagavond (18:00-20:00)

Please note that it has to be exactly one (and not more) of these values and the text must also be an exact match. It looks like your users have the option to either select a value that is not one of those listed or to select more than one of these values, therefore Mailchimp is refusing the entire submission.”

If I check my user data, all of them made 1 choice when checking the radio button field, which is obvious, because you cannot choose more than 1.

How can the output be more than 1, anyway? Could you please find out what’s happing?

Thanks in advance.

Babette

Hi,
I’m sorry but I have no clue on what you are asking :(

I do not know how the customization that you are using to implement the Mailchimp support has been designed, so I do not know what could be the cause of the issue. Furthermore, I cannot give you assistance for customization implemented by 3rd parties :(

What I can say, that to get the value of a field you can use the following snippet:
$result = wpuef_get_field($field_id, $user_id);

In the case of radio/checkbox, that value is the index of the selected option. Please refer to the reply I left to the other comment of yours in which I explain how to retrieve that field index and eventually the label associated: https://www.dropbox.com/s/lrblbsof24m8mu9/wpuef_checkbox.png?dl=0

Once done, make sure that the customization you implemented is properly retrieving the value from that field.

We had the extra user fields up and running on our site and then switched themes. Now all that is showing is the Login. No registration option at all. Help?

Hi,
without any further clue it is quite hard to determine the casue. It could be due to a theme issue or the fact it is not properly triggering the needed wordpress actions used by the plugin to hook and injects its data.

Please make eventually sure you are running the latest 14.1 plugin version. You can manually download the new version via CodeCanyon or receive as an automatic update by installing and configuring the Envato updater plugin: https://goo.gl/pkJS33 (here the guide that explains how to configure: https://envato.com/market-plugin/ ). To manually update just deactivate and delete the old plugin version and then install the new one. Don’t worry you won’t lose any data.

For further help, you need to renew your support license.

Hi, i would like ti know how can i automatically trim a user input text using your plugin. Thank you very much. Kind regards, Guilhem

I’m sorry, but unfortuantely the plugin doesn’t offer such a feature :(

Hi, I’ve a pre-purchase question: I need to have some profile fields that users can’t edit, only admin can do it. I need it for create a search form. I hope I’ve explain well. Could your plugin do something like it? Thank you!

Hi,
yes, you can create fields that can be edited only by the admin, but the plugin doesn’t offer any search feature on those fields.

However, the plugin has a demo site where you can fully test its feature in order to be sure it actually fits your needs and expectations. In case of further info, feel free to ask!

Thank you very much. I don’t need if your plugin doesn’t offer search feature, for search feature I have find anther plugin, so I would to use your plugin to create field and other to create search form. Thank you!

Hi,

I am using woocommerce box office and user extra field.

On the ticket page, there is a ‘who bought?’ link which does not return any result.

I created an event, I bough tickets to this event but when checking on the product page who bought, there is no one listed. Empty list.

I am talking about the product page / Product Data / General / “who bought?”

Thank you.

Hi,
the “who bought” feature is related to the WooCommerce Customers Manager plugin. That features however has been designed to work with standard WooCommerce product types. Using a custom product type (like a “ticket” / “events”) may prevent that particular plugin feature to properly work.

Hi,

I have bought you wonderful plugin. And i have a question about merging my radiobutton field to MailChimp. I keep getting this error:

Bad Request. Invalid Resource. Your merge fields were invalid. – BEZORGM : Value must be one of: Dinsdagochtend 10.00-12.00u, Dinsdagmiddag 12.00-16.00u, Dinsdagavond 18.00-21.00u (not 2) Request: PATCH https://us20.api.mailchimp.com/3.0/lists/3e1649fba6/members/3243d516ceab61b5cd53332e5110cd6d – Response: 400 Bad Request – {type Resource”,status merge fields were invalid.”,instance must be one of: Dinsdagochtend 10.00-12.00u, Dinsdagmiddag 12.00-16.00u, Dinsdagavond 18.00-21.00u (not 2)”}]}

It seems that the output is reading “2” in stead of my one of my 3 options: Dinsdagochtend 10.00-12.00u, Dinsdagmiddag 12.00-16.00u or Dinsdagavond 18:00-21.00u.

The radio button field in Mailchimp is exactly the same as my extra field and “not required” (as recommended).

Could you please advise?

Kind regards,

Babette Gunning

Unfortunately, I have no clue on how the WP Fusion/Mailchimp are performing the “merging” operation, you should ask those support teams.

Most likely however it depends on how the Extra Fields plugin stores the selected value for radio and check fields.
The value is the “index” of the selected option. For example, if you have a radio/check list as follows:
  • Option 1 -> index 0
  • Option 2 -> index 1
  • Option 3 -> index 2
So if the user selecte the “Option 2”, the field value will be 1.

Make sense? Could be this the cause of the merging issue?

If you want to get the option name for the selected value, you can use the following code snippet:
$result = wpuef_get_field($field_id, $user_id]);
$option_name = $result->field_options->options[$result->value];
$option_name holds the option name, the $user_id and $field_id are the field id and the user id for which you wish to retrieve the field value.

Thanks for your reply! I wil use this information to ask for Mailchimp for Woocommerce for help. Kind regards, Babette

You’re welcome!!

At last but not least, If you enjoyed my efforts to assist you and/or my plugin please consider leaving the 5 stars, I would really appreciate! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases).

Have a great day!!! :)

I’m looking for a plugin where I can add custom fields to a Wordpress / User Profile, and with shortcode be able to drag them forward for the logged in user to create a size, or, personal fit profile – is this something your Plugin will allow me to do?

I’m sorry but the plugin hasn’t such a feature :(

Hello, are there any way to not to echo the wpuef_description span on the front-end when it is empty at the back-end? Why: I wanted to add “i” icon before the wpuef_description span but it seems the wpuef_description span field always visible even it is empty.

Hi,
you can customize the output by modifing the files you find in the templates folders.
For example, if you want to modify fields shown in the register form, edit the any_register_form.php file.

The description is prited at the bottom of any template, look for the:
<?php //Description
        if( isset($extra_field->field_options->description)): ?>
            <span class="description wpuef_description"> <?php echo $extra_field->field_options->description; ?></span>
        <?php endif; ?>
snippet.
Ciao, ho installato il tuo plugin, ma ho un problema sulla visualizzazione del calendario che ho nella pagina prodotto https://snag.gy/cxNJ5k.jpg mentre se disattivo il tuo plugin si vede correttamente, https://snag.gy/JxtFyi.jpg c’è qualcosa che posso fare per risolvere? Grazie per l’aiuto

Ciao,
senza maggiori dettagli è difficile stabilire la causa e quindi suggeriti un metodo per risolvere.

Se mi invii tramite messaggio privato (clicca sul mio nome e quindi usa il box in basso a destra) i seguenti dati:
  1. tuo indirizzo email
  2. accesso admin all’area wp-admin
  3. accesso FTP
  4. link alla pagina dove posso verificare l’errore
Posso provare ad effettuare ulteriori test per vedere se è possibile stabilire la causa e quindi ripararlo. Grazie.

Hello, are there any way to show/hide fields based on a conditional (logic)? Thanks.

I’m sorry but the plugin is not designed for that :(

Hi! It seems that users cannot update their user profiles. When you change a field and save your profile it’s not updates when you check the profile afterwords.

Hopefully you can advise!

Regards, Babette

Hi Babette,
unfortunately, without any further clue, it is quite hard to determine the cause.

I’ve performed several tests, and the user extra field data is properly saved and loaded in the My Account -> Account details page.

Could you use the demo site:
https://www.codecanyon.eu/wpuef/wp-admin
user: demo
pass: demo
to recreate your scenario and report me if you still experience the issue?

If not, could you try to disable all the 3rd party plugins, make sure you are running the latest 14.1 plugin version and report me if you still experience the issue?

I have a issue with extra field. First issue is that the field repeat the same value on the each new order that one single user/customer makes. The second issue is that on User Orders tab the extra field shows as editable, despite the fact that I marked it as not editable. Can you help?

  1. Have you enabled the option to copy the usermeta into ordermeta? If so, the current user value will be always copied into the order meta
  2. Are you accessing the My account page via and admin account? If so it will be always editable even the edit option has been disabled

You can share the configuration screen here or send me a private message (click on my name then use the low-right box) reporting your email. I’ll reply with mine where you can send the screen.

Make also sure you are running the latest 14.1 plugin version.

Ok, I sent you private message with more details.

Got it, check your inbox.

Hi, I’m having some issues with the plugin – there’s some shortcodes which aren’t displaying at all (dates and names), and when customers change user fields in the my account section it’s not updating the database. Can you help?

What do you mean that you have assigned all the correct fields to the User Extra Fields? note that the plugin hasn’t any support for those 3rd party plugin.

Are you saving data from those plugin into the User Extra Field metadata? if so, could it be that you inserted the wrong values? note that for example the date fields requires that the saved value must have the following format yyyy/mm/dd. If not, the plugin won’t be able to properly display it.

times format is HH:i and for radio input, you must save the index of the selected option.

Thanks for this info. Managed to get the date and time to work.

Can you please elaborate on what you mean by “save the index” for the radio buttons.

For example I have the field name and metakey set like this field_1|wpuef_cid_c102 for the id of the radio field but what would I need to add to this to show the different radio options. Lets say the options were Yes or No?

You’re welcome

Currently, the plugin stores in the user profile the index of the selected option. This is the field “value.
For example, if you have a radio/check list as follows:
  1. Option 1 -> index 0
  2. Option 2 -> index 1
  3. Option 3 -> index 2
So if the user selectes the “Option 2”, the stored field value for that user will be 1. If you want to get the option name for the selected value, you can use the following code snippet:
$result = wpuef_get_field($field_id, $user_id]);
$option_name = $result->field_options->options[$result->value];
where $field_id is the field id and $user_id the user id.

If you want to retrieve all the available options, use the follwing:
$result = wpuef_get_field($field_id, $user_id]);
$option_names = $result->field_options->options[];
$option_names will hold an array containing the option names.

Hi, is it possible to make a check box with hierarchy support, like as post category?

Hi,
I’m sorry but unfortuantely it is not possible :(

Hi there,

I have purchased the plugin for my client. Very happy with it. Do have one question.

How do I add the correct snippet in my admin email for showing a customers profile update?

I have 3 extra fields all of the are ‘radio’ fields.

Could you please advice how to add the right code?

Kind regards,

Babette

Yes clear! Use the snipped I’ve reported in the previous commnet:
$result = wpuef_get_field($field_id, $user_id);
$value = $result->value;
$value_label = $result->field_options[$value]->label; //This is useful in case the field is a radio or a select field. The $value is the idex the user selected used to retrieve the label used for it

The wpuef_get_field allows you to retrieve the field content of the $user_id user. That function will return an object that contains the value selected by the user + all the field metadata (like the labels used for select or radio option indexes).

In the plugin description page, under the Retrieve And Save Fields Data Programmatically paragraph you find more details about that function.

Hi! One last question. When I add the code in the snippet above. Nothing shows. Do you have any idea where to add the code so the profile update admin email will show the changed profile with extra fields? Regards, Babette

I’m sorry, but unfortunately I have no clue :(

try eventually make some debug by printing via a var_dump on the email the value of the returned $result, then the value of the $result->value and at last the $result->field_options[$value]->label;

To see what it returns.

Hi,

I’m using your User Extra Fields plug-in together with WooCommerce Membership, Bookings, and Subscription. On my site, I sell event tickets and membership subscriptions. Only customers who purchase a membership will have to create an account. Customers who only book events, don’t need to create an account.

To achieve above, I enable Woo Guest Checkout in Woo Settings (so that customers who only book events don’t need to create account). If customer buys membership, Woo Membership overrides guest checkout and ask customer to provide username and password during checkout screen. I want to use your plug in to get additional info during check out (when customer buys membership), but I can’t seem to get the extra fields to display.

Please help!

Hi,
to display fields on checkout page, just enable the special option while configuring the field: https://www.dropbox.com/s/0q4q61orxv1l6zm/wpuef_checkout.jpg?dl=0

Note however that the plugin is designed to work with default Checkout form and hasn’t any specific support for those plugins. If they are altering in any way the Checkout form, it may not work as expected.

Hi, I did what you had suggested but the form does not show, perhaps because the guest checkout setting is on. Is there a way for me to display the extra fields, even if the guest checkout setting is turned on?

I’m sorry, but it is not possible. As reported in the plugin description page, user extra fields associate extra fields to the registered user profile. Guest users have not any profile, so extra field content cannot be associated with any profile, this is why fields are not displayed in case the user is not performing the login.

Disable the guest checkout settings, and extra fields will be properly shown on the checkout form.

Hello, How do I restrict extra fields from showing on customer account page?

I’m sorry, but unfortuantely there isn’t any option to hide that section. If you wish to hide.

If you wish to hide, edit the WCCM_CustomerDetails.php file located in the classes\com folder iniside the WooCommerce Customers Manager directory and remove from line 226 to 232.

Ok, thanks

Logs says that the last version is 14.1, but I downloaded the package and it is version 14.0. I need to update.

Thank you for reporting, I’ve just republished the 14.1! It shold work, let me know! :)

Hi, still 14.0 in the package.

Can you send me by email please? I have an issue in my site and I need to update your plugin.

Retry now! (unfortuantely the CodeCanyon update systems take a while to publish new updates!)

Hello, first of all, this is great plugin. Thank you for your efforts. I have some questions for you. I hope you can help me through

- Can you tell me how can we display the file name (if the field is file type) above the Download / View button? - Is it possible to use a PDF icon (or custom image) for preview pdf files? - And is it possible to hide “wpuef_file_uploader_container” if the filed has already a meta value?

Thanks.

Hello, this shortcode doesn’t retrieve the meta value (c172) for the current user, am I missing something? [wpuef_show_field_value field_id=”c172” user_id=”“]

+By the way are there any simple way to retrieve the meta values without shortcode, I mean I need to retrieve values without shortcode in classic editor (posts).

Thanks.

That worked [wpuef_show_field_value field_id=’c172’] I think you should update your examples. ” doesn’t work ’ works

Shortcodes are not managed directly by plugins but by wordpress. According to the shortcode name, checks if any plugin has registered it and passes the parameters.

If you however are using the ” character instead of the ” character, it won’t work. WordPress only recognize single or double quote characters.
HTML pages many times render the ” as ”, so if you copy and pasted the code, this was the cause of the issue.

Can I add an extra authentication field like worker number identification or something else into the login page?

I’m sorry but unfortunately the plugin hasn’t such an option

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey