Jump to content

[Solved]Change select options in the contact form


Recommended Posts

The contact form by default comes with 2 options for the message subject: enquires and webmaster

I 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

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

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...