Some Customers Able to Bypass Mandatory Information & Still Register

I’m made our site www.phantomcables.com a registration only site. Naturally, I’ve made some information mandatory when a customer registers (e-mail, name, address, etc.). This was done by checking the boxes in the Profile: Show / Required forms. I thought this would prevent a customer from being able to register if they don’t fill in all of the pieces required, but I’ve recently found 3 users who were able to get through the registration without filling in require pieces of information.



I tried it, and I was able to register after hitting the submit button several times and just ignoring the warnings.



Is there away to prevent this? or is this just a bug that I’m going to have to get used to.



We are running CS-Cart 2.1.4



Thank you for any help.

Check for any javascript errors in your browser's error console right after you submit the form. The Javascript should detect that there is data in the required fields. And some fields have additional checking for format like email address.

I have a required dropdown field during checkout asking the customer if they want a sales receipt with the order. Even though it is required, I still get orders that say “please select”. Not sure how to fix this either.

Bob

[quote name='pbannette' timestamp='1327007042' post='129607']

I have a required dropdown field during checkout asking the customer if they want a sales receipt with the order. Even though it is required, I still get orders that say “please select”. Not sure how to fix this either.

Bob

[/quote]



Sounds like the “please select” option has a value assigned maybe, It might be worth having a look at the source code for the page that contains the form if the “please select” option contains a value=“please select” then thats the problem.

When on the checkout page with the field showing, do a view-source and see that the field has a class of 'cm-required'. That is the class they use to validate there is data there. Note that an empty space can be considered data… But as @wartornskull states, if there is a default value and associated onfocus event, that could definitley be the issue.

Thanks for the suggestions guys. I'll try these out and update the topic right after.

So I tried this and I've gotten a TON of errors, and the registration went through.



This repeated a bunch of times, I assume it's because of the empty fields:



[size=2]Warning: The 'charCode' property of a keydown event should not be used. The value is meaningless.

Source File: https://phantomcables.com/index.php?dispatch=profiles.add[/size]



This came up less, but still over 10 times:



[size=2]Warning: Empty string passed to getElementById().[/size]



Then this showed once:



[size=2]Error: val.replace is not a function

Source File: https://phantomcables.com/js/core.js

Line: 49[/size]



Then these:



[size=2]Warning: Unknown property '-moz-opacity'. Declaration dropped.

Source File: https://phantomcables.com/skins/electro/customer/styles.css

Line: 1086[/size]



[size=2]Warning: Unknown property 'zoom'. Declaration dropped.

Source File: https://phantomcables.com/skins/electro/customer/dropdown.css

Line: 21[/size]



[size=2]Warning: Unknown property '-moz-opacity'. Declaration dropped.

Source File: https://phantomcables.com/skins/electro/customer/styles.base.css

Line: 119[/size]



[size=2]Warning: Expected color but found 'auto'. Expected color but found '-webkit-focus-ring-color'. Expected end of value but found '-webkit-focus-ring-color'. Error in parsing value for 'outline'. Declaration dropped.

Source File: http://forum.cs-cart.com/public/js/3rd_party/ckeditor/skins/ips/editor.css?t=B8DJ5M3

Line: 191[/size]



Followed by a whole bunch of these:



[size=2]Warning: Unknown property 'border-radius'. Declaration dropped.

Source File: http://forum.cs-cart.com/public/js/3rd_party/ckeditor/skins/ips/editor.css?t=B8DJ5M3

Line: 331[/size]

I'm thinking it might by the rotating image script I'm using which is causing the error but that's on a block on the homepage, and not on this one.