Jump to content

Contact Form Remove Heading


Recommended Posts

Hello,

Having a problem removing Subject Heading and Product in the prestashop 1.5.1 version.

I've tried various methods over the internet but i get errors when i test it, sometimes it works, sometimes it says: Please select a subject heading (or something similar).

Please tell me how to completly remove those two fields so my customers wont need to select them

Thank you!

Link to comment
Share on other sites

contact-form.tpl file located in your theme directory, open it and search for:

 

{if isset($isLogged) && $isLogged}
  <p class="text select">
  <label for="id_product">{l s='Product'}</label>
   {if !isset($customerThread.id_product)}
   {foreach from=$orderedProductList key=id_order item=products name=products}
 <select name="id_product" id="{$id_order}_order_products" class="product_select" style="width:300px;{if !$smarty.foreach.products.first} display:none; {/if}" {if !$smarty.foreach.products.first}disabled="disabled" {/if}>
  <option value="0">{l s='-- Choose --'}</option>
  {foreach from=$products item=product}
   <option value="{$product.value|intval}">{$product.label|escape:'htmlall':'UTF-8'}</option>
  {/foreach}
 </select>
   {/foreach}
   {elseif $customerThread.id_product > 0}
 <input type="text" name="id_product" id="id_product" value="{$customerThread.id_product|intval}" readonly="readonly" />
   {/if}
  </p>
  {/if}

 

 

you can:

  1. remove it
  2. comment it (with {* COMMENT *} this method)

Link to comment
Share on other sites

×
×
  • Create New...