VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Pcwolf on July 30, 2013, 18:52:54 PM

Title: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Pcwolf on July 30, 2013, 18:52:54 PM
Hello,

I removed the code field username, disabled username in vm fields and i still getting a message in registration that i need to fill the username  :o
Yes, i created i menu item -> type: Registration
My url looks good, site.com/registration
(http://i44.tinypic.com/20r01sz.png)

VM version: 2.0.22a and i tested with the template beez5, same problem
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Maxim Pishnyak on July 31, 2013, 11:52:29 AM
Username is a special (protected by VM core) field. Like ToS user field for example.
http://forum.virtuemart.net/index.php?topic=111063
http://forum.virtuemart.net/index.php?topic=95669.0
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Pcwolf on July 31, 2013, 14:03:24 PM
Thank you.

I have read that. I have done that with the

$coreField = (in_array($row->name, $this->lists['coreFields']));
and has copied tha file in me template/virtuemart etc...
But it shows again
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Pcwolf on July 31, 2013, 15:30:49 PM
I removed the

/components/com_virtuemart/views/user/tmpl/edit_address_userfields.php file and the message still come back  :-\

I follow this topic: https://forum.virtuemart.net/index.php?topic=107226.0 (https://forum.virtuemart.net/index.php?topic=107226.0)

Anyone can help my ?
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Maxim Pishnyak on July 31, 2013, 16:30:53 PM
Is username not required any more in shopper fields?
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Pcwolf on July 31, 2013, 16:35:01 PM
No, you can see it on the pic, all are red, disabled  :-\
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Maxim Pishnyak on July 31, 2013, 16:40:12 PM
Sorry, my bad. Even didn't check your screen shot.

Are you using guest checkout procedure?
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Pcwolf on July 31, 2013, 16:44:38 PM
No, people need to register on my webshop.

I used the plugin email as username and removed the Username html tag. So people can login with there email.
It's in the registration on my site. They said: Registration failed: Enter a username.
I removed the html username field and disabled in Virtuemart shopper fields.
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Pcwolf on July 31, 2013, 18:35:03 PM
I found the problem:

components > com_users > models > forms > registration.xml

<field name="username" type="text"
class="validate-username"
description="COM_USERS_DESIRED_USERNAME"
filter="username"
label="COM_USERS_REGISTER_USERNAME_LABEL"
message="COM_USERS_REGISTER_USERNAME_MESSAGE"
required="false"
size="30"
validate="username"
/>


Because i deleted this they don't work normal and the system (joomla) has used the normal settings, required so=TRUE
But i set the code back and change it to false, but they already asking for username. When i fill the field and then it works ?

But i don't need that field!!
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Maxim Pishnyak on July 31, 2013, 20:30:37 PM
What language constant used when you'd got a message in registration that you need to fill the username?
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Pcwolf on August 01, 2013, 10:35:26 AM
In Dutch, NL
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Pcwolf on August 01, 2013, 11:10:36 AM
      <field name="name" type="text"
         description="COM_USERS_REGISTER_NAME_DESC"
         filter="string"
         label="COM_USERS_REGISTER_NAME_LABEL"
         message="COM_USERS_REGISTER_NAME_MESSAGE"
         required="false"
         size="30"
      />

If i set the Name field required false then it works, they dont give a error message.
So the problem  is only in username
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Maxim Pishnyak on August 01, 2013, 15:20:16 PM
I can't back trace with the help of COM_USERS_REGISTER_NAME_MESSAGE.
<field name="name" type="text"
'name' is not so unique to start digging.

You could challenge with
1. VM forum search - you need formulate you search query in a smart way somehow, cos search in forum with the query alike "field name" could be not very successful.
2. 3rd party Joomla extensions which could really disallow using 'name' in the web site. Their tricks could be useful for doing the same task in VM environment.
3. Use main Joomla forum/docs. It's necessary to discover what native Joomla commands where used in VM for doing business with users.
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Pcwolf on August 01, 2013, 15:59:31 PM
Yes, i already search for this problem.

With,

- Joomla required fields
- Delete joomla registration fields

and many others searches. I found the community builder joomla. Then you can choose what you want in the registration form. But the only problem is the link.
You can choose a menu item type registration page, password reset for community builder, but in virtuemart when you tried to click on Reset password then it redirect you to standard joomla password reset.
I need to change the link to reset password  of community builder.

Any idea how i can place the link ?
Title: Re: Username field, code removed disabled in VM Still getting message Please enter..
Post by: Pcwolf on August 01, 2013, 18:11:48 PM
aaaacccchhhh.

Joomla forum is dead. Asked same question, no one help my. Its viewed more than 300 times.

2 Days busy with this  >:(
I changed the text username to Display name in shop.

Itsn't professional but okayyyyyyy.