Username field, code removed disabled in VM Still getting message Please enter..

Started by Pcwolf, July 30, 2013, 18:52:54 PM

Previous topic - Next topic

Pcwolf

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


VM version: 2.0.22a and i tested with the template beez5, same problem

Maxim Pishnyak

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
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Pcwolf

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

Pcwolf

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

Anyone can help my ?

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Pcwolf


Maxim Pishnyak

Sorry, my bad. Even didn't check your screen shot.

Are you using guest checkout procedure?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Pcwolf

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.

Pcwolf

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!!

Maxim Pishnyak

What language constant used when you'd got a message in registration that you need to fill the username?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart


Pcwolf

      <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

Maxim Pishnyak

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.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Pcwolf

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 ?

Pcwolf

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.