More control on required registration user fields

  • Posts: 719
  • Thank you received: 3
11 years 6 months ago #99877

Hi,
i use the hikashop user registration plugin.
I notice that the required field has a weak control.
I mean that it is sufficient to insert just a space to circumventing the system control
How can i have more control?


my site with Hikashop
www.lacasettabio.it
Last edit: 11 years 6 months ago by lacasetta.

Please Log in or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 6 months ago #99942

Hi,

There are three different control level in user registration.
- Javascript: which is more informative than restrictive.
- HikaShop: which make some test (and retest what the javascript previously checked).
- Joomla: which is called by HikaShop to create the Joomla user.

If you want to add more controls, you potentially need to update the three different parts.
But HikaShop uses Joomla for the user creation, we just call the functions like it is done in the Joomla registration section.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 719
  • Thank you received: 3
11 years 6 months ago #99991

For more control i mean to set a minimum font to enter or if the field is a numeric field something that set only number to enter.
I searched in your plugins you said me but i'm not be able to do that.


my site with Hikashop
www.lacasettabio.it

Please Log in or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 6 months ago #100258

Hi,

A minimum font ?

Does your values are custom fields ?
Because, if I understand right what you want to do, it could be done by creating new custom fields. Custom fields could add some javascript checks and PHP checks.
If the field is required and the field is not validate by the checks, the registration would be stopped.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 719
  • Thank you received: 3
11 years 6 months ago #101039

No they are the registration fields: name, address, city, phone, etc., etc.


my site with Hikashop
www.lacasettabio.it

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #101323

If you want more controls on these field, you could do it by adding custom javascript on your website. Potentially via a system plugin.

Otherwise, That's something that we have on our todo list to be able to specify a regex on custom fields. that is however not available for now.

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum