Jump to content

Field Requirements & Validation


Recommended Posts

Hi everyone,

I have 3 questions I hope you all can help me with fairly quickly :)

1) Which file contains the validation to say that firstname, lastname, etc are required? I need to remove firstname as a requirement. (I don't see it in Address.php, Authentication.tpl, or customer.php)

[Edit] I removed the firstname field, and tried <input type="hidden" name="firstname" value="."> but it doesn't seem to accept that either. No matter what I do, after I remove this box, I get the error "firstname is required" I also see the protected $fieldsRequired array in address.php, but removing the firstname requirement doesn't seem to do anything. In the $fieldsValidate, I've tried removing firstname, changing it to null, etc. Nothing seems to work.


2) Which file contains the error response language? (In this case, I need the error verbiage to read 'username" instead of 'lastname' when they don't specify a lastname.)


3) Does anyone know which file contains the price limit of 9,999,999.99? (eg, you set a price of 85,000,000.00 and 9,999,999.99 saves & displays) [sOLVED] http://www.prestashop.com/forums/viewthread/4480/bug_report/bug_when_i_input_price_10000000/ (I hope the developers have made this change for v1.2)


Appreciate any help I can get!

Using PrestaShop version 1.1.0.5

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...