Palgie Posted April 25, 2009 Share Posted April 25, 2009 Hey,I've been requested by my client to make the registration form as simple as possible, I know the seriousness of changing the registration information as it reflects everything. But the client stressed how badly this feature was needed as Its being developed for a small country which have limited computer knowledge and wouldnt feel happy giving away uneeded information. (More than usual)I've removed fields that wont be required in the invoice and I've also removed the first name field, and change last name to Full name to make it one less field. Because i've done this the order invoice's should hopefully display as Mr Full Name... (I've not looked into what format is used but that is what id presume it will be now iv changed it) And thus the title wouldnt be needed so i've removed that also.Now the problem im faced with is upon submitting the form. 3 errors are showing because the fields that have been removed are still set somewhere to be required.I've looked through almost every file that I would think the error handling is managed but have not managed to find it, and this is the reason for my post as i've been looking for a very long time.I looked through the forum search extensively and tried to find a solution to the problem but with no luck...So my question is, Does anyone know where the file is that checks if the first name, Country ID and alias has been entered so that I can remove these rules for my client.Kind Regards,Phil. Link to comment Share on other sites More sharing options...
bigboy16 Posted April 25, 2009 Share Posted April 25, 2009 if you modify the form you must modify php file to,couse all function include at the php file, if u not modify this file, the sistem will report the form are you delete was not find,find the function in the php file and find the code was refer to the form that you delete, and delete it Link to comment Share on other sites More sharing options...
Palgie Posted April 25, 2009 Author Share Posted April 25, 2009 Hi, Thanks for your reply.I know the reason why its giving me errors, if you read the post you will know that I need to find which php actually contains the function so that I can delete it...As i've checked almost every file and still havent found the function that performs the checks.Thanks,Phil. Link to comment Share on other sites More sharing options...
bigboy16 Posted April 25, 2009 Share Posted April 25, 2009 you can find what are you need at classes/address.php in line 80 Link to comment Share on other sites More sharing options...
Palgie Posted April 25, 2009 Author Share Posted April 25, 2009 Brilliant that was exactly the file I was looking for =) Never thought it be under address.php :sI do now have a problem however... I've removed the Alias and Country ID and the form reponds as it should by no longer showing the errors. However when I delete the first name from the required fields array the error for the first name is still there...Don't suppose it required in another file aswell?Thanks again Link to comment Share on other sites More sharing options...
bigboy16 Posted April 25, 2009 Share Posted April 25, 2009 no. all required field are in this file,can you see line 107?name is a main database required, if you delete this it cant be insert at the database.and if you delete the item, please change the null field table are you delete from no null to null at database Link to comment Share on other sites More sharing options...
Palgie Posted April 25, 2009 Author Share Posted April 25, 2009 Just checked the Customer.php file, it had the details required to remove first name.However thanks for bringing these requirements to light as I now have a better reason to tell the client not to do it. I've kept first name and country ID seen as they cannot be removed Cheers for the quick replys and helping out!Phil. Link to comment Share on other sites More sharing options...
bigboy16 Posted April 25, 2009 Share Posted April 25, 2009 thanks philas i know you are a member team of prestathats true?(sorry out of topic) Link to comment Share on other sites More sharing options...
Palgie Posted April 25, 2009 Author Share Posted April 25, 2009 I wish this was true!Sadly, nope I'm not a member of the presta team. Perhaps theres also a guy called Phil in the team but its not me im affraid. Link to comment Share on other sites More sharing options...
bigboy16 Posted April 25, 2009 Share Posted April 25, 2009 hahahahano wayonly a member team can change status of the thread, Link to comment Share on other sites More sharing options...
Palgie Posted April 25, 2009 Author Share Posted April 25, 2009 You can change the status of a threat by editing the first post and changing the title Link to comment Share on other sites More sharing options...
Recommended Posts