Jump to content

[solved] remove Subject dropdown of contact form page


Recommended Posts

Hi is it possible to remove the Subject dropdown field of the contact form page. For my business i want only 1 thing, so no reason for people to have to use the dropdown before they can write me. it is for prestashop 1.6 running Leo Mobile theme but the contact-us is stock it seems...

 

the page is:

 

http://billigedufte.dk/mob/contact-us

 

thanks in advance!

Edited by explodedk (see edit history)
Link to comment
Share on other sites

You might want to try out this: open contact.form.tpl (theme's folder)

 

 

Look for

                    <select id="id_contact" class="form-control" name="id_contact">
                        <option value="0">{l s='-- Choose --'}</option>
                        {foreach from=$contacts item=contact}
                            <option value="{$contact.id_contact|intval}" {if isset($smarty.request.id_contact) && $smarty.request.id_contact == $contact.id_contact}selected="selected"{/if}>{$contact.name|escape:'html':'UTF-8'}</option>
                        {/foreach}
                    </select>
 
And change it to, for example <input type="hidden" name="id_contact" value="1">
 
Please notice the value must be a valid contact id
Link to comment
Share on other sites

  • 1 year later...

This works but there is also "Select department" line left that looks out of place. When I remove the entire form-group selector, it sends a confirmation email to the customer but we don't receive the email from the contact us form. 

Link to comment
Share on other sites

  • 4 years later...

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