mirko77 Posted July 8, 2010 Share Posted July 8, 2010 The contact form by default comes with 2 options for the message subject: enquires and webmasterI would like to change that text and add other options, so It will be easier to forward the emails to the interested person.For example, I would use:- General enquiries about products- Enquiries about orders- Complains- Technical problems with the website Thanks Link to comment Share on other sites More sharing options...
rocky Posted July 9, 2010 Share Posted July 9, 2010 Go to the Employees > Contacts tab in the Back Office to change the contact form dropdown values and emails. Link to comment Share on other sites More sharing options...
mirko77 Posted July 9, 2010 Author Share Posted July 9, 2010 Thank you! It works, but I have a character number limitWhere can I change that variable? Link to comment Share on other sites More sharing options...
rocky Posted July 9, 2010 Share Posted July 9, 2010 The increase the size of the email field, you'll need to edit the structure of the ps_contact table in your database and change the type of the email field from varchar(128) to however many characters you need. To increase the size of the name field, you'll need to edit the structure of the ps_contact_lang table in your database and change the type of the name field from varchar(32) to however many characters you need.Then edit classes/Contact.php and change the 128 on line 29 to match the new maximum number of email characters: protected $fieldsSize = array('email' => 128); and edit line 32 to match the new maximum number of name characters: protected $fieldsSizeLang = array('name' => 32); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now