Increasing character limit on a form field

  • Posts: 110
  • Thank you received: 0
13 years 6 months ago #15261

Hi

I know on an HTML form field its maxlength="100" etc, but on 212.113.133.235/~englishr/index.php?opti...m_user&view=register I have tried to increase the username to compensate for email addresses, but no amount of maxlength seems to be working. I have looked in Views > registration and the actual PHP of the form, but nothing is making any difference.

Please could you advise where I need to update this. I am hitting a wall (not literally!).

TIA

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #15262

Hi,

That page is not in HikaShop but in Joomla. You can't edit it via the Display->Views menu of HikaShop so that's normal you don't see your changes.
That form is in the file components/com_user/views/register/tmpl/default.php

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

  • Posts: 110
  • Thank you received: 0
13 years 5 months ago #17607

Hi Nicolas

Sorry to resurrect this email, but using www.englishrosebooks.co.uk/index.php/com...t/user/register.html as an example, is there a way we can change the registration form so email is used rather than username?

Please advise.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 5 months ago #17610

That is not a hikashop page but the joomla registration page. You would have to edit the view and add some javascript in order to remove the username field and set it as a hidden input and set its value to the email input when the form is submitted.

In HikaShop, if you change the "registration" option of the configuration to simplified registration, the username field will be removed automatically and the email will be used as username.

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

  • Posts: 110
  • Thank you received: 0
13 years 5 months ago #17614

Is this only in commercial versions of HikaShop?

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 5 months ago #17616

Indeed. But note that it won't change the joomla user registration screen. It will only affect the hikashop registration screen.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum