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.

Issue: field is not shown in checkout page (In Billing Information form) for non logged users.

The field is shown only for registered users.

In this capture you can see the settings for the fields: https://postimg.cc/image/9p6vq2wff/

In this capture you can see that “Enable guest checkout” is not enabled: https://postimg.cc/image/um33v0x3v/

What am I missing here?

yes, the plugin works in that way. It adds extra fields to the user profile, so the user has to have a valid profile associated. Guest user have no profile so no extra field will be showed.

Is there any way to hide the label and show the red asterisk (required field) next to the checkbox value (when the checkbox has only one option)?

Hi,
the plugin doesn’t offer such a feature however you do in this way:
  1. create a checkbox
  2. name the only existing option in this way:
    <span style="color:red;">*</span>
    
  3. Put somewhere in the page where the checkbox is showed this css code:
    .wpuef_label.wpuef_required::after {
        content: " ";
    }
    
This will be the result: https://www.dropbox.com/s/zj0fnh5w5xh48dv/wpuef_red_asterisk.jpg?dl=0

It will be showed only a red asterisk next to the checkbox.

To inject the custom css code in specific page (without messing with theme or plugin css) you can use this other plugin of mine: Custom JavaScript & CSS in Pages!

I hope this helps :)

Thanks.

Hi,

I bought your plugin, after a failed attempt with a previous plugin. For some reason, your plugin is causing my user and usermeta tables to lock…bringing the entire site down.

Are you aware of this issue? Is there anything you can do to fix this?

Hi,
what do you mean that causes the user and usermeta tables to lock? Coul you provide a more detailed description of the issue (and eventually the error messages)? The plugin writes and retrieves data using the standard wordpress APIs and functions.

No other user reported such an issue and as you can see from the demo site, the site is properly accessible without any issue.

Hi,

I end up with a 503 and it turns out that MySQL falls over. I tried to include the output from a “show processlist” in mysql, but it won’t allow my comment to be posted. I also can’t include a screenshot.

Anyway, when it locks (which happens when I search for a user – though it allows several searches before this happens). Once it locks, any following queries sit in the process list (in mysql) with a status that reads “Waiting for table level lock”. If I kill the above mentioned processes, everything resumes as normal.

I’ve now deactivated your plugin and everything is back to working as per normal.

I see there are 13 joins in that query. Have you seen your plugin working with so many joins? I’ve done some research and “SQL_CALC_FOUND_ROWS”, though used by Wordpress, is quite old and not very efficient. Perhaps, due to all the joins, and given that this method is inefficient, it’s causing this issue?

I look forward to hearing from you.

13 joins are not many. For what concerns the user search, the plugin just “tells” by metakey id in which usermeta table row search to look for the extra field content. Usermeta table is a table with just 4 colums, and joining 13 * 4 rows (each row is approximately 500 byte, total 26kb) is not a big deal. However the query is performed by wordpress not by the plugin.

The issue you are experiencing is the more related to a low-resource (or not properly configured) DBMS that is not capable to properly manage the requests performed by the server.

For this however you should consider contacting your hosting maintainer. If you are using a standard shared web hosting service you should also consider using a more powerful solution.

Ciao, ho rinnovato il supporto e ti ho scritto nella sezione dei messaggi.

Ciao sto provando a far uscire un campo che ho creato con il plugin, inserendo i codici all’interno della pagina php. Ho messo (c29 è l’id del campo) $c29 = wpuef_get_field( $id,’c29’, true);

e per visualizzare il valore, questo: $html .= ’<input type=”text” name=”c29” value=”’.$c29.’” disabled>’;

Però mi vien fuori la scritta “array”. Mi puoi aiutare? Grazie

Devi assicurarti che per quell’id è stato effettivamente salvato un valore per quel campo. In caso non lo fosse stato risulterebbe appunto vuoto.

Eventualmente prova a sostituirlo con un di di un utente per il quale sei sicuro che quel campo è non vuoto. Se vuoi recuperare automaticamente l’id dell’utente corrente, utililizza la funzione get_current_user_id().
Esempio:
$id = get_current_user_id();

get_current_user_id(). è già presente all’inizio della pagina. Il campo è stato valorizzato da un utente dopo un acquisto. Infatti in woocommerce>ordini questo campo risulta compilato. Eppure io ancora non riesco a vederlo.

In che senso è già presente nella pagina? nel senso che è usato per valorizzare la variabile $id? o lo $id contiene l’id di un altro utente? Cioè non capisco se il codice deve visualizzare dinamicamente il valore di quel campo per l’utente correntemente loggato o per un utente specifico.

Assicurati di utilizzare l’ultima versione del plugin (13.0).

Per quanto riguarda il campo in questione, è per caso stata attivata l’opzione per copiare il valore nei metadati dell’ordine? in questo caso il valore corrente (salvato sul profilo utente) potrebbe essere diverso da quello salvato in uno qualsiasi degli ordini.

Comunque sia, se mi invi via messaggio privato (clicca sul mio nome quindi usa il box in basso a destra):
  1. accesso admin all’area wp-admin
  2. accesso FTP
  3. percorso ftp del file modificato e come fare per accedere ad esso via backend
  4. l’id dell’utente per quale vuoi recuperare il valore (in caso questo sia diverso dall’id dell’utente attuale)
posso provare a dare un occhiata al codice per capire dove sta l’errore. Grazie.

How do you get shortcodes to work on Slider Revolution?

This one specifically is not working for me: [wpuef_show_field_value field_id=”c2” user_id=”2“]

Sorry, but it seems then that Slider Revolution is not supporting shortcode system.

It does support shortcodes: https://www.themepunch.com/revslider-doc/text-html-icons/

When I insert [wpuef_show_field_value field_id=”c2” user_id=”2“] it will appear blank.

Have you tried using the custom code suggested in that guide?

The plugin hasn’t any specific support for Revolution Slider, it just implement the wpuef_show_field_value as a standard WordPress shortcode.

Note also that when that shortcode is fiered, some additional javascript and css libraries are enqueued by WordPress. It may be that Revolution slider when is firing the shortcodes is preventing those additional assets to be loaded.

Make also sure you are running the latest 13.0 plugin version

If renew your support license and you send me via private message (click on my name and then use the low-right box) the following data:
  1. you email address
  2. Full admin access to the wp-admin area
  3. a FTP access
  4. a detailed step by step guide on how to experience the issue

I can try performing some additional test to see if possible to have more clues about the issue and if is possible to implement a workaround or give you more info to report to that plugin developer in order to grant the support.

Hi I have tried to install this plugin times on my website https://thelashandbrowdircectory.com and each time it crashes the site with a 500 internal error. This is a WordPress site using Listable theme. Have you had this problem before or are there other plugins it could be clashing with? Janine

Hi,
no unfortunately I have no clue and without any other info it is quite hard to determine the cause.

Could you try enabling the wordpress debug mode and the debug log ( https://codex.wordpress.org/Debugging_in_WordPress ) and see if any further info is printed on screen and in the log after the plugin activation? Could you also check the server error log? Let me know.

Can you make the fields have a function when users type their info to make the text capital or lowercase automatically?

Hi,
the plugin hasn’t such a feature. However you can use this other plugin of mine WordPress JS & CSS Everywhere! to include a custom JavaScript or CSS of yours on the page where you are displaying those fields.

Your custom JavaScript or CSS can then automatically change the text to lower/upper of the fields your need.

I would suggest to use a CSS rule, it just requires the following statement:
text-transform: uppercase;

If you purchase I can help you configuring it for the fields you need.

We don’t want the styling of text to be uppercase. We want the characters to be stored as uppercase in database also.

The plugin doesn’t have such a feature.

To try to achieve that goal you could then try including a custom javascript that automatically trasform the text in upper case

Hi, great plugin, perfect for our shop!!

I’m wondering if it’s possible to show one of the fields in the woocommerce orders page in the backend of the site?

We have one field that’s for admin only (not viewable anywhere on the front end) that is called “Customer Code” – this is used by admin as a reference number to allocate a number that’s in our accounts software.

The idea would be that when a new user registers, we type this number in manually to reference their account number.

We’d love to be able to have this field visible and searchable in the woocommerce orders summary so we can quickly search for all orders from that account number.

As there may be 2 or 3 separate users from the same account it would quickly allow us to see all orders.

I hope that makes sense and that you can help / advise.

Thanks again.

Hi,
thank you for your appreciation :)

For what concerns your request, yes it could be possible. You can create a text field with the folliwing options enabled:

  1. Editable ONLY by Admin
  2. Invisible: the field will not be visible in any page. You must use shortcodes to display
  3. Show field content in users/customers table

Then for search for a particular user, you cannot do via the order table. This is because Extra fields are associated to the user profile, not to the order.
You have to search for user via that code in the user table page. Just go there, then search for the user and copy his email address. Then search for user orders by typing that email in the order search box (in the order table page).

NOTE: make sure you are running the latest 10.5 version that I’ve released today: You can manually download the new version via codecanyon or receive as 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/)

In this way you should good to go :)

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

Thanks, that exactly what I did to create the field, was hoping I could show it in the order table as I can see it in the individual order page. As there could be more than one users account with the same customer code it’d have made it a lot easier to filter the orders. Thanks anyway.

You’re welcome :)

Hi, I’m overriding two woocommerce fields, first and lastname.

Firstname is working fine but the lastname is not saved as woocommerce lastname.

Could you please advie me what to do ?

Thank you very much.

Best regards,

Guilhem

Hi,
I’ve just performed a test and the overwrite option seems to properly working, so the issue may be related to a configuration issue.

To which “woocommerce” last name are you referring? To the Shipping or the Billing? if you just select the last name option, the plugin will overwrite the account last name. So make sure you have selected the right option.

Make also sure to be using the latest 12.8 plugin version. can manually download the new version via codecanyon or receive as 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/)

Let me know.

Yes you’re right it is working ok with woocommerce billing lastname.

In fact what I would like to do is to overide the account lastname. I can overide account firstname but not lastname, I don’t know why.

Could you please check it ?

Thank you very much.

Best regards,

Guilhem

Yes,
I’ve performed another test using the demo site and as you can see from the following screen: https://www.dropbox.com/s/hxmlf1uquab5xj9/wpuef_last_name.png?dl=0

Once the new last name is enterend and then saved, the original is overridden.

the override option for the account last name works. You can test by your self:
http://www.codecanyon.eu/wpuef/my-account/edit-account/
user: demo
pass: demo

Are you running the latest 12.8 plugin version? Could you reproduce the configuration you are using in the demo site and report me if you still experience the issue? If so, could you report me the exact configuration and steps you take to experience the issue?

In case give a look in the demo field configuration and report it to your site and try if it works.

Hi. Can you update the plugin to include the custom (extra) fields in the new pop-up quick view that was added to the latest woocommerce update?

The pop-up is the new feature on the latest version of woocommerce, on the order admin page there is a little ‘eyeball’ in the first column that when clicked, shows a pop-up (lightbox) preview of the order details.

Thank you for your suggestion. I’ll try to understand if the actions triggered during that popup rendering allow to report the user extra fields before the order billing data.

I’ll let you know here in case of news.

I’ve just purchase the User Extra Fields plug in but when I try to install it from my wordpress dashboard i see an error message the tell me that the plug in in invalid.

What’s happens?

marco

Ciao marco,
forse è dovuto dal fatto che stai cercando di installare lo zip file sbagliato. Forse stai installando lo zip che contiene sia il plugin che la documentazione. Prova a decompattarlo e al suo interno dovresti trovare un file chiamato wp-user-extra-fields.zip. Quello è lo zip da installare :)

Fammi sapere!

Ciao, si avevo preso il file zip sbagliato. ora ho un altro problema non so come utilizzarlo :-) come faccio ad aggiungere dei check box nella pagina di registrazione dell’account woocommerce. grazie marco

Per creare un nuovo field clicca sul menu User – > Extra field.
Da la crea un nuovo campo di tipo Checkbox abilitando le opzioni che ti servono. Il nuovo campo verrà automaticamete visualizzato nella pagina di registrazione di WooCommerce.

Hi, I had lately a few comments that my users have issue entering birthdate while on mobile, when they do the checkout. I use 50% so the birth date and sex are the same line but 2 columns. In the mobile that results that half of the calendar is missing. I attached 2 screenshot from standing and laying position of the phone: https://www.dropbox.com/s/ceqjfxxcsl3lh9f/Screenshot_20180526-124914.png?dl=0 https://www.dropbox.com/s/rkkov5lt64w0krd/Screenshot_20180526-124942.png?dl=0 Please get back to me about this! Huge thanks and keep up the good work!
Hi,
unfortuantely it seems that in your installation your theme (or any other 3rd party plugin) is overriding the calendar widget style.

As you can see from the demo site, using a mobile browser: https://www.dropbox.com/s/xluaydfhsmlc4pr/Screenshot_20180528-152111.jpg?dl=0 https://www.dropbox.com/s/whkli13txwkerql/Screenshot_20180528-152130.jpg?dl=0 The widget is properly adapted.

I can only advice to try updating the plugin to the latest 12.8 version, to invert the date and gender fields (in this way the date would be on the left) or manually redifine that widget style in order to ovverride the interfering style rule.

I have the latest plugin version. I try to swap them and lets see if that will fix it. Thanks

Hi,

Can I use a extra field at the guest checkout?

Hi,
no it is not possible. Fields and their content are associated to the user profile, so it requires the user to be logged.

This is also reported in the plugin description page, under the WooCommerce compatible paragraph:

[...]Note however that Extra fields will not be showed if the guest checkout option is enabled. In this case fields will be automatically displayed only if the ‘create account’ checkbox is checked by the user.[...]

Hi, Updated the latest user field and this error come up when I want to add a new customer via your other plugin the customer manager: Parse error: syntax error, unexpected ‘&&’ (T_BOOLEAN_AND) in /home/clients/8b2f57ac97153457723e2b64e97096c3/aiguass/wp-content/plugins/wp-user-extra-fields/templates/woocommerce_register_form_wccm.php on line 29

This replacing the save button and the layout is messed up.

https://www.dropbox.com/s/g5mcghc59wt31mk/Add%20new%20user.png?dl=0

You can see it here. Thanks

Hi,
thank you so much for reporting the issue! I’ve just released the new 12.8 version that fixes it! Please redownload and let me know :)

Meanwhile If you enjoyed my support 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)

Hi, we would like to know if it is possible to define three different registration forms based on user roles.

Or maybe is it possible to define conditions in the form : if the user choose a particular registration type a particular regsitration form will be displayed.

Thank you very much for your answer.

Best regards, Guilhem

As far as I know, not it is not possible.

Yes it is, we just add some js logic to do it. Unfortunatly it is a bit tricky because we can’t group inputs, for instance adding an input group wrapper. That would be a great improvment to the plugin. Thank you for your answers.

Thank you for your suggestion, I’ll see what it will be possible in a future release! :)

Some of the extra fields that I have setup are required but somehow spam registrations are coming in without those fields being entered. Is there any other way that registrations may be coming in via another form of some sort?

Hi,
as far as I know, not there isn’t any other method to do that. Maybe they are exploiting a wordpress vulnerability by using user registration via rest api.

Does this plugin work with admin columns pro? I can’t find the custom field from admin columns pro plugin

Hi,
no the plugin hasn’t any particular support to that 3rd party plugin.

Hi, there’s a problem with the way the date picker is shown on the user profile page. it looks like the width for the days headers are somehow being overwritten to 200px. Can you take a look at this screenshot? https://prnt.sc/jg6347

Thanks!!

Hi,
thank you for reporting the issue!

I’ve found the cause of the issue and fixed it! I’ve just released the new 12.6 version that addresses it! Once installed remember to clear the browser cache and you should not experience the issue any more! :)

Hi.

Great plugin, and it’s helping me get GDPR compliant for my site, but I have one quick question.

Is it possible to change the error message when a field is not checked (required)?

The “Required fields cannot be left empty.” is a bit vague and I’d like it to say something more specific to the field that’s required.

Thanks

Hi,
yes to customize that text open the following templates (according to where you are rendering the extra fields) located in the templates folder inside the plugin:
  1. any_register_form_extra_fields.php : line 229
  2. shortcode_custom_form_extra_fields.php : line 242
and customize the string as you wish! :)

P. S.
If you enjoyed my support and/or my plugin please consider leaving the 5 stars, I would rerrrrally appreciate! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases)

Thanks, but that means if I update the plugin in future, it’ll remove the modification?!

Could I suggest/request a way to modify the error message in each field, for example, I may have a privacy policy checkbox that I want to say “please accept our terms” whilst another checkbox that does something else, so I can have more targeted messages in future.

Thanks again.

Yes, on update you will have to restore the customization!

Thank you for your suggestion, I’ll try to include in a future release! :)

Meanwhile please consider leaving the rating, I would really appreciate! :)

Have a nice day! :)

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