VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: olgri on February 20, 2013, 09:48:00 AM

Title: "Error: Please enter your name" - required fields bug on checkout registration
Post by: olgri on February 20, 2013, 09:48:00 AM
I get "Error: Please enter your name" error on Joomla 2.5.9 & VM 2.0.18a when trying to register on checkout. If I ignore it and try to get through checkout anyway, the order gets placed but new account doesn't get created.
I made sure First Name and Last Name are filled in but still was getting the error.
I searched a lot but couldn't find a solution.
After a while I have finally realised that this is because of the Displayed Name form field!! You have to fill it in! However there is no indication that this is a required field. In fact, there is no asterisk ("star" symbol) for User Name field either but it IS a required field as well.

Also, why are Password and Confirm Password fields NOT required during  registration on checkout??? How are new users supposed to login next time without a password if they haven't entered one??

This all would be very confusing for the customers so expect a lot of "drop outs" :(

I've tried adding asterisks to the labels using Joomla language overrides (Extensions->Language Manager->Overrides) but then on Account Maintenance you get double asterisks!
And why Password and Confirm Password ARE required on Account Maintenance page???

I do not understand VM developers' logic at all... Please someone explain to me...  ???


For now, I am using language override for JLIB_DATABASE_ERROR_PLEASE_ENTER_YOUR_NAME ("Please enter your Displayed Name" instead of "Please enter your name") - at list it will point users to the correct form field but......

....Is there anyway the above could be fixed (properly)???
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: Milbo on February 20, 2013, 11:11:00 AM
It depends on your mode set in vm config tab checkout.

Assume you let anonymous checkout and you offer registration, then it depends on the button you are using. Of course for registration you need to enter a login name and a displayed name and the passwords. When you checkout as anonymous you dont need that. You can still track your order (even as anonymous, yes).
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: olgri on February 20, 2013, 12:06:41 PM
Yep, you've guessed the settings correctly :)

On checkout, ask for registration - YES
Only registered users can checkout - NO

--------------------------------------------------------

Ah now I see what the logic behind is... I guess if you add asterisks then those users who want to checkout as guests will be confused... BUT with the current set up, those who want to register are confused. Moreover, if you don't enter passwords, you won't be able to access your account next time so have to retrieve "forgotten" password and most users won't bother with such complications :(

Could it be handled a little bit differently? i.e.  you display the login form and a couple of radio buttons (or normal buttons) "Checkout as a Guest" and "Register and Checkout" on the checkout page. When you click "Checkout as a Guest", "Bill To" form is displayed and the registration form is NOT and when click "Register and Checkout" both are displayed. Email field should be displayed in both cases though.

Is this doable?

PS: tracking orders anonymously is a great feature!!  :)
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: olgri on February 20, 2013, 12:23:16 PM
Also, I have tried testing checkout without filling out any of the fields and came across another bug in validation: http://forum.virtuemart.net/index.php?topic=113238.0
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: aarondwyer on March 19, 2013, 05:37:18 AM
I've got

On checkout, ask for registration (YES)
and
Only registered users can checkout (YES)

And the Display Name, Username, Password, Confirm Password are still not displaying with an * asterix to prompt the user that they are required.

They are locked as required in the shopper fields.

How can I get an * asterix next to the labels in my checkout screens?.

Thanks
Aaron
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: lindapowers on April 15, 2013, 08:28:37 AM
I'm facing the same issue in the virtuemart account page.

Username    
Displayed Name    
Password    
Confirm Password

All these are set as required fields but they do not show the *
If you try to register it does say "Please enter your name" etc but is quite confusing not showing the * in the register required fields.

I understand your logic with the checkout but is not applicable to the register, specially when those fields are marked as required for it. Customers should be able to see exactly what fields they are required to register no?

Regards
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: lindapowers on April 15, 2013, 09:54:32 AM
I just noticed is the same effect as in here http://extensions.virtuemart.net/my-account

If you click register without entering anything the shopper fields are not marked neither show the asterisk*

Any idea on how to solve it?
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: Milbo on April 15, 2013, 22:40:25 PM
Hmmm, we assumed that registering is optional, so it should show the asterisk only, when you press register and you missed something. So we just missed the case for the "only registered are allowed to checkout" in the js, imho.
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: lindapowers on April 16, 2013, 01:13:04 AM
 I understand your logic however even with optional register (as we do) those fields are required to create an account.

I think you are considering it as the checkout and not as the register itself + the * are not even showed if the shopper fields are not entered.

They are not marked or showing the *, so a not very smart customer will be ???:
(http://s24.postimg.org/62lqgrilx/account_VM.png)

Shouldn't those shopper fields be marked with an * and in red if not filled? Don't understand what does the checkout have to do with the fact that those fields are required in order to create an account, I guess they are probably the same used for the checkout and there comes the issue no?

Currently if you enter BT details and register the page will reload and say "please enter your name"

Regards
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: inthysite on July 16, 2013, 18:51:56 PM
Okay I see where Milbo acknowledges that they missed setting these fields as required when the setting is "only registered users can checkout"

So the question remains; is there a fix for this.

When I try to register and I leave these fields blank I am redirected back to the registration form and the top message area states "Please enter your name" but nothing is highlighted or marked as missing.  This is confusing, especially since there is no "name" field.  There is a username and a first name and a last name.

I entered a username, left the password blank and upon submission I am taken back to the registration form with the exact same message at the top "Please enter your name", further adding to the confusion.

I know it seems sensible to you and me that we would enter a username and password when registering for an account but you would be surprised at the number of non-tech savy users who don't realize this.

I have a client who wants these fields marked as required.  They only allow registered users to checkout.  What needs to be done to correct this?
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: jenkinhill on July 16, 2013, 23:27:07 PM
In the default VM templates the unfilled fieds are highlighted. So maybe you are using template overrides for checkout?
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: lindapowers on July 17, 2013, 03:10:25 AM
Quote from: jenkinhill on July 16, 2013, 23:27:07 PM
In the default VM templates the unfilled fieds are highlighted. So maybe you are using template overrides for checkout?

Only the fields with * are highlighted in red.

Nickname, username and password aren't when they are required, so is really something confusing
Regards
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: illPhever on August 07, 2013, 05:27:40 AM
Quote from: olgri on February 20, 2013, 12:06:41 PM
Yep, you've guessed the settings correctly :)

On checkout, ask for registration - YES
Only registered users can checkout - NO

--------------------------------------------------------

Ah now I see what the logic behind is... I guess if you add asterisks then those users who want to checkout as guests will be confused... BUT with the current set up, those who want to register are confused. Moreover, if you don't enter passwords, you won't be able to access your account next time so have to retrieve "forgotten" password and most users won't bother with such complications :(

Could it be handled a little bit differently? i.e.  you display the login form and a couple of radio buttons (or normal buttons) "Checkout as a Guest" and "Register and Checkout" on the checkout page. When you click "Checkout as a Guest", "Bill To" form is displayed and the registration form is NOT and when click "Register and Checkout" both are displayed. Email field should be displayed in both cases though.

Is this doable?

I recall that it was done similar to this way in Virtuemart 1.  There was a checkbox that said something like, "Checkout as Guest," and when you checked it, the registration fields for Username and Password would disappear...collapse away.  This was much more straightforward to me because it was easy for customers to know which fields they needed to complete.  I'd like to be able to do it that way in VM2.
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: eumedia on August 13, 2013, 23:10:08 PM
I've asked and many other users, but not the answer - this is a serious error to be solved as soon as possible!

http://forum.virtuemart.net/index.php?topic=117893.0
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: eumedia on August 14, 2013, 14:02:20 PM
Developers us not answer what will be and how to solve this problem? How can customers buy without registration?
Thank you very much
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: mowlman on October 11, 2013, 21:46:25 PM
Is this answered elsewhere and I am just missing it, or is this just left undone?
in process of upgrading from 20b to latest VM, perhaps it will be fixed?
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: jhoompk on June 02, 2015, 09:45:11 AM
I think VM forum has very few moderators and they cant solve issues quickly.
This is the reason i found many issues on this forum remain unsolved
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: Milbo on June 02, 2015, 10:47:36 AM
Totally Bonkers jhoompk,

Read the thread correctly. There was no real bug, it was just not nice solved in vm2, so it  some people thought there is a bug.

VM 2 and VM3 show the form and offer the choice, if you want to register or proceed as guest. So we show the "required stars" not for the fields for the registration, if checkout as guest is allowed. In vm2, even you used the register button, they were not marked as required. This is enhanced in vm3.

The rest of this 2 year old thread is about wrong configurations or misunderstandings.

We have a lot moderators, but also a lot users. We have a lot not answered threads because

People tend to open a lot threads for the same issue.  People tend to ignore the already given answer (as here!). This forum is done by volunteers, this is not a "customer" forum, this is a user forum.

So if you want that people answer, show that you are not just too lazy to read the answers.
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: jenkinhill on June 02, 2015, 12:35:17 PM
@jhoompk be aware that this is a peer support forum, it is VirtueMart users and developers helping other VirtueMart users in their own time and free of charge. Any member can offer advice to others. Please feel free to offer useful advice or support to any of the issues you find to be unsolved.
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: tonsenson on July 22, 2015, 17:01:52 PM
Thank you olgri for that post!!!!! I had the displayed name turned off, also that it is not required and the error message popped up but I did not recognize the displayed name was meant. I solved my problem after hours of try and error!!! :)

Tonsenson
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: maks on October 15, 2015, 12:30:31 PM
Quote from: Milbo on June 02, 2015, 10:47:36 AM
Totally Bonkers jhoompk,

Read the thread correctly. There was no real bug, it was just not nice solved in vm2, so it  some people thought there is a bug.

VM 2 and VM3 show the form and offer the choice, if you want to register or proceed as guest. So we show the "required stars" not for the fields for the registration, if checkout as guest is allowed. In vm2, even you used the register button, they were not marked as required. This is enhanced in vm3.

The rest of this 2 year old thread is about wrong configurations or misunderstandings.

We have a lot moderators, but also a lot users. We have a lot not answered threads because

People tend to open a lot threads for the same issue.  People tend to ignore the already given answer (as here!). This forum is done by volunteers, this is not a "customer" forum, this is a user forum.

So if you want that people answer, show that you are not just too lazy to read the answers.

For me this is a bug.
If i have config
On checkout, ask for registration yes
Only registered users can checkout yes

Then there are missing asteriks on essential fields. This is confusing and only can be solved with a hack.

People "ignore" the already given answers, because they are often wrong ;)
Title: Re: "Error: Please enter your name" - required fields bug on checkout registration
Post by: Milbo on October 15, 2015, 13:00:58 PM
You are right with that, but it has nothing todo with the thread. The original thread is 2 years old and vm3 has a new handling.

Btw, fixed it, next version will show asteriks when you have "only registered" activated