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.

Hello, can you tell me how can I find the key value for the dropdown options? Let me specific, I need to use a snippet something like this:

if ( ‘wpuef_cid_c214’ === $column->get_meta_key() ) { $data[‘type’] = ‘select’; $data[‘options’] = array( ‘0’ => ‘Student’, ‘1’ => ‘Graduate’, );

I am looking for the right values of 0 and 1 here..

I think that the error may be related to the fact that you are not properly passing the user id to the wpuef_get_field() function.

The second parameter is the user_id (in the example, is the 16669 value).

Try the following:
$user_field_data = wpuef_get_field(‘c221’, $order->get_customer_id());

make also sure that the field id is actually “c221”.

Thank you for your support, Yes, I am sure the id is c221 By the way it still unable to retrieve the value :(
$user_field_data = wpuef_get_field('c221', $order->get_customer_id());
$user_field_value = $user_field_data['value'];
$user_phone = substr($user_field_value, 0 ,20);
https://codeshare.io/adLEAg

Unfortunately, I have no clue.

Try performing some debugging by printing the values you are reading.

For example, try print to screen or to WordPress log (you can use the wpuef_var_dump_log() function) the value of the $user_field_data, $user_field_value and then $user_phone in order to see which of those variables is not holding the value that you expect.

Make also sure that the $order->get_customer_id() is properly returning the user id you expect and that for that id there actually is a custom phone number associated.

Hi, Once i showing an extra field in the admin ‘my order’ page, there is a prefix for the field’s name “[wpuef]”.

See this please: https://prnt.sc/q51ipz

How can i make it disappear?

Thanks

Uhm actually there is no plan to remove that in the order page, but I can include in the next release. I’ll release in 10 minutes.

Thank you

Ok, done. I’ve published the 14.6 version. It should be ready to download in 10 minutes from CodeCanyon!

Hello, I like your plugin so much, it is very useful for a complex situations. My question is Woo says: “WordPress User Extra Fields has Not tested with the active version of WooCommerce” Is it safe to update?

Yes, you can safely update the plug-in to the latest version :)

If you have already done, please also consider leaving the 5 stars! I would really appreciate!! :)

I bought a product yesterday and tested it. It have a too simple function,.I look forward to more additional features in the future.

But first there is a bug in this plugin. . Date pop-up calendar do not work in Internet Explorer. . In google chrome it does not show in the popup register window. . The calendar form design is so awkward that it needs improvement. . After you click calendar, when you return to another browser tab, the calendar window appears.

Thanks.

Hi,
for what concerns Internet Explorer, the plugin hasn’t any support for that Browser. Note that it is no longer supported either by Microsoft.

For what concerns the calendar widget, it is implemented used the well know library pickdate.js (https://amsul.ca/pickadate.js/ ). As you can test in the demo site, in a full working environment it works as expected without any issue.

Is your case it could be that a 3rd party plugin is interfering preventing the library to properly work as expected. Without any further clue, however, it is white hard to determine. Please try disabling the other 3rd party plugins to see if you still experience the issue. If not, enable one by one until you find the one that interferes. If none is interfering, try temporarily switching theme.. Once done, you should report the issue to its developer in order to fix it preventing the interference.

I’m not interest to “the well known library”, I just want it work or not in any browser…

Too many datepicker plugin (free or opensource) existed, so it’s not your proud.

https://jqueryui.com/datepicker/#dropdown-month-year It also support IE, chrome,... all browser… And there are many datepicker plugin for wordpress… http://www.websitedesignwebsitedevelopment.com/wordpress/plugins/wp-datepicker

If you are not interested to “the well known library”, then there is no need to report comment about its design.

The plug-in clearly reports in its description page which browser supports. Requirement should be carefully read. No support for unsupported browser will be implemented.

The widget, as you can test in the demo site, works as expected, so it is not a library issue. If you wish to have it working, just identify the cause that make it not working. To do that, perform the operations I’ve reported in the previous comment in order to identify it.

Switching to other javascript libraries could not fix you issue if in your installation exists any 3rd party plugin that generates interference.

Hi i would like to ask if there is a way that using FILE UPLOAD admin could be informed via email of any customer that used this option.

Hi,
If you wish the admin to be alerted every time an user performs an upload, you can enable the special option you find while configuring any upload field: https://www.dropbox.com/s/rp7ccdcremloaks/wcuf_notification_attachment.jpg?dl=0

where can i find this settings? If i am not mistaken this settings is on the Upload Files plugin and not the user extra field plugin. :-) I am using the extra field plugin as part of a application process ( only for selected customer ) where they need to upload some requirement (i used file as a field ) that was located in My Account page and save it in there profile.

I’m terribly sorry, yes your right. That options is for the WooCommerce Upload Files plugin, not the User Extra Fields plugin.

I’m sorry, the User Extra Fields plugin hasn’t such an option :(

Dear Sirs, I need a licence for staging site. Do I’m need to buy another one or can you help me?

Thank you Josephine

Hi Josephine,
for staging site you can use the copy you already have without the need to purchase and dditional one.

Do you need some info about staging site?

nothing :)

Hi,

I sent you an email.

Thanks!

You can post support questions just here.

To private message: go to my profile page (click on my name) the use the low-right box you find in that page.

I just write you in your profile page :)

Got it, check your inbox!

Hi, I have a pre-purchase question:

It is posible to have a specific ID for each extra field added to let do things like this? https://i.gyazo.com/9f0d0f498979f5d96769a4d9d28d83d7.png

I need to add that selected field on an email doing something like this: {{$user_login}} / {{$user_email}} and I don’t know if it is posible to have for example: {{$extra_fields=19}} (or whatever it works)

Thanks!

I’m sorry, but user extra field data cannot be retrieved using that kind of shortcodes :(

Hello, I would like to know when the plugin will be compatible with woocommerce 3.7 version. Since I’ve updated woo commerce I have trouble with editing order status. When I’ve disabled your plugin, it was working fine… Thank you very much. Guilhem

Thank you very much for your quick answer.

In fact I don’t have the latest version. As I don’t want the plugin to be updated automaticcally where can I get the latest version ?

Thank you very much.

kind regards, Guilhem

I’ve found the latest version, thank you very much.

You’re welcome :)

Please, If you enjoyed my efforts to assist you and/or my plugin 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! :)

How do I get the field names of the newly created fields? I’d like to map/synchronize them. I use Ninja Forms for registration and user profile updates. Thank you

If not via code, how then are you exactly performing that mapping operation?
Note that the plugin is not designed to allow 3rd party to directly access its data and data structures if not using the provided functions reported in the paragraph I’ve reported in the last comment.

Anyway, specifc user field values are stored in the usermeta table using the metakey name wpuef_cid_{id} where the {id} is the id of the field.

Generic field data (containing info like field label, options, and so on) are stored in a serialized array in the wp_options table, the option_name key is wpuef_options.

Thanks. We use Ninja Forms to register users, update profiles, etc. I’m not a developer, just a hack. I am not sure how mapping operation happen…I was assuming the Ninja Form performs programatic operations because it just asked for the metakey. Anybody you work with ever integrate WPUEF with Ninja Forms?

Very dumb question, if my custom field is c17, is the metakey wpuef_cid_{c17}, wpuef_cid_{17}, wpuef_cid_c17, wpuef_cid_17?

I’m really sorry, but unfortunately, for now, there is no plan to integrate with Ninja forms :(

For what concerns the name, the metakey will be wpuef_cid_c17!

Hi,

How can we hide the fields from the order page please? http://prntscr.com/p3tbq9

Thank you very much

Hi,
please update to the latest 23.6 version I’ve just released! you find that option in the Settings menu: https://www.dropbox.com/s/ymezcybndgjb2w0/wpuef_hide_option.jpg?dl=0

...I hope you enjoy! :)

What a timing! Thanks a lot!

You’re welcome :)

There seems to be a bug in WP User Extra Fields plugin:

We have a date picker field that works absolutely fine with Chrome, Firefox and Opera, however breaks the checkout page in Safari (Mac).

Check it out there: https://registration.thomashuebl.com/en/cart/?add-to-cart=36050 –> then click on “proceed to checkout” –> on the right column (“Further Details”) there is the field “Birthday”, it works with Chrome etc. but not with Safari.

Can you please help?

Thank you

Rainer

Hi Rainer,
the date picker is build using the 3rd party javascript library https://amsul.ca/pickadate.js/ so there isn’t much I can do. Please make sure you are using the latest Safari version and that it fully supports the latest HTML5 standards.

Try also updating the plugin to the latest 14.2 version in which I’ve updated the date picker library to the latest 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

Hello! Can I retrieve the transmitted information and use it in Qform? Thanks!

Thank you! :)

Hello! Where to find the metakey ?

Hi, the user extra field values are stored in the usermeta table. The metakey name has the following format: wpuef_cid_{id}. The {id} can be found in the field configuration menu, it usually is something like c12, c3, c4.

Hello, I am wanting to export my users with the extra fields included. How should I go about doing that, various plugins I have tried are not including the extra fields in the export.

Hi,
extra fields values are stored in the user profile as normal metakey. The metakey name has the following format: wpuef_cid_{id}. The id can be found in the field configuration menu, it usually is something like c12, c3, c4.

Here an example: https://www.dropbox.com/s/zzkquu0ngtrdl92/wpuef_metakey_example.jpg?dl=0

So to export, you have to just export all the metakey associated with the user or just the ones that star with <stong>wpuef_cid

I’m looking for my client to be able to easily export users who have answered “yes” to my extra field, do you have a suggestion or plugin recommendation that would accomplish this?

If you are able to write custom code to export user data, it would require just a SQL query to retrieve all the user id for which a particular meta key name is equal to the desired value.
Once done, you just have to create a csv file containing the data only for those users. It is not a complex operation but requires some time to be implemented and tested.

Otherwise, you can give a look to the WP All Export plugin. It is a very powerful plugin with tons of features. As you can see in the User export explanation page (see the video): http://www.wpallimport.com/tour/export-wordpress-users/

It seems to be able to filter users event by custom fields.

However, contact their support team to be totally sure that it can actually be done.

I hope this helps!

Hi, we used theme my login and aren’t happy with the plugin any longer so I tried using the short code on a page. This is what I used and it will not show anything, in any browser or even in incognito mode. [wpuef_extra_fields_custom_form field_ids="c3,c55,c7,c12,c20,c24,c52,c28,c32,c37,c96,c49,c57,c61,c65,c81,c56"]

When I look at the source it’s there but it’s not displaying on the page. Any ideas?

Hi,
please make sure you are running the latest plugin 14.1 version. Please give also a look to the browser error console to see if any error is reported and try eventually disabling the other 3rd party plugins to see if any is interfering.

For further support, you need to renew your support license. Once done, if you send the following data

  1. you email address
  2. full admin access to the wp-admin area
  3. a FTP access
  4. link to the page where you are using that shortcode

I can give a further look. Thank you.

Hi there

You stated in your describption that

FIELDS CAN BE EDITABLE ONLY BY ADMIN Shop admin can choose to create fields to be editable only by him and visible on user profile page

Could you elaborate on this please

Hi,
fields have a special option that makes them uneditable via the frontend. They can only be edited via backend (user profile page) by the admin.

How to show extra field on checkout page?

I think I have set it correectly. Sure.

But it still not show extra field on my checkout page…

Please help

To show a field on checkout page, just enable the special option while configuring it: https://www.dropbox.com/s/j4orc6cebldzrgj/wpuef_checkout.jpg?dl=0

Note fields will be displayed only for registered users.

Hello,

I need to get a registration form element value from a action in function.php.

Problem is that the element (a checkbox) has no ‘name’. I tried with the ‘data-id’, but it is not working.

I just need help to retrieve the value of the element.

Capture: https://nimb.ws/oCHpB4

Link: https://giser.es/wp-login.php?action=register

MY FUNCTION in functions.php

function myplugin_registration_save( $user_id ) {

$my_elemnt_value = $_POST['c25-0'] ;

... then I send this value by email….

}

add_action( ‘user_register’, ‘myplugin_registration_save’, 10, 1 );

Hi,
to have an idea to know how the plugin manages fields when the user_register action is triggered give a look to the register_extra_fields() function defined in the WPUEF_UserProfileFormsAddon.php located in the classes\frontend folder.

It invokes save_fields() method defined in the WPUEF_User.php class located in the classes\com folder.

If you need further info, I’m sorry, but you need to renew your support license.

Good morning

This is a pre-sale question regarding this plugin.

We basically need an option to be able to import the different options into for example drop-down options. Its going to be for a school system.

So a province is going to be selected, from their choice they have chosen a selected set of schools in that province will then be selected. Now there is going to be over 18 000 schools for this system. Is it possible?

So when choosing to select a drop-down field, to then import the various options of schools?

Thank You Look forward to hearing from you!

Hi,
I’m sorry but the plugin hasn’t any import feature :(

Hi, My download had a file for documents but it was empty. Where can I find a copy? Thank you

The plugin documetantion is an html file. Just open with a browser. However the plugin documentation can be found directly in the description page.

If the /wpuef folder is empty, make sure that your webserver has assigned the right permission to that folder (should be 755) in order the plugin to be able to properly store files in there.

Ok, got it. The navigation wasn’t working on the docs.

But, am I missing something? Your demo show a frontend my account page.

https://www.codecanyon.eu/wpuef/my-account/

Thanks

Yes, the “my account” page is part of the WooCommerce plugin.

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