Jump to content

Foundation address fields using required


Recommended Posts

I'm having trouble making "Phone" NOT a required field in the user profile when using the Foundation skin (CCV6.0.2)

 

Simply removing the "required" class parameter from the <input> tag does not achieve it. It appears to be also hard coded into the javascript validation functions in /js/3.cubecart.validate.js

 

And simply removing that javascript file (temporarily to test), left me with a PHP validation failure

 

Have I misunderstood how required fields are meant to be handled in V6?

 

Link to comment
Share on other sites

Hi Nathan,

Three changes are required;

- remove required from the html template file

- remove required from the JS file

- remove the server side validation from classes/cubecart.class.php

I'm not at my desk right now to look at the exact files and line numbers so this is just a pointer. Sounds like you are on track though!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...