mundoreballing Posted March 13, 2014 Share Posted March 13, 2014 Dear Prestashop community, i need some help (sorry my bad english). I'm working on my new prestashop webpage : http://www.mundoreballing.cl/tienda/en The problem is with contact form : http://www.mundoreballing.cl/tienda/en/contactenos As you can see, on "email address" field, it show my email ([email protected]). I need this field show nothing, like the "Message" field. Annex to this, need to get out some fields. In short, I need to change several things. How do I do all these changes? Thank you very much! Felipe Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted March 13, 2014 Share Posted March 13, 2014 As you can see, on "email address" field, it show my email ([email protected]). I need this field show nothing, like the "Message" field. Nothing showing in the email field for me. Must be a browser cache on your end. Marty Shue Link to comment Share on other sites More sharing options...
Paulito Posted March 13, 2014 Share Posted March 13, 2014 Hello http://screencast.com/t/7HoWDUSI Is this how you want it to look ? Should it show something else ? Or, what do you want to change? Paul Link to comment Share on other sites More sharing options...
mundoreballing Posted March 13, 2014 Author Share Posted March 13, 2014 You're right. it's my browser cache. But now, if i want to "not show" or delete some fields.... How can i do that? Nothing showing in the email field for me. Must be a browser cache on your end. Marty Shue Link to comment Share on other sites More sharing options...
mundoreballing Posted March 13, 2014 Author Share Posted March 13, 2014 I want to show only: Subject Heading E-mail Address Message Hello http://screencast.com/t/7HoWDUSI Is this how you want it to look ? Should it show something else ? Or, what do you want to change? Paul Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted March 13, 2014 Share Posted March 13, 2014 You're right. it's my browser cache. But now, if i want to "not show" or delete some fields.... How can i do that? What field(s) do you want to get rid of? Marty Shue Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted March 13, 2014 Share Posted March 13, 2014 I want to show only: Subject Heading E-mail Address Message In your BO go to Customers > Customer Service in section Contact Options set "Allow file uploading" to 'No'. Marty Shue Link to comment Share on other sites More sharing options...
mundoreballing Posted March 13, 2014 Author Share Posted March 13, 2014 In your BO go to Customers > Customer Service in section Contact Options set "Allow file uploading" to 'No'. Marty Shue Thanks !! Now how i take off "Order Reference" and "Product" ??? Link to comment Share on other sites More sharing options...
Paulito Posted March 13, 2014 Share Posted March 13, 2014 Good morning Why not try going to: public_html/Your Shop/themes/default/contact-form.tpl and comment out: </p> {if !$PS_CATALOG_MODE} {if (!isset($customerThread.id_order) || $customerThread.id_order > 0)} {*<p class="text select"> <label for="id_order">{l s='Order reference'}</label> {if !isset($customerThread.id_order) && isset($isLogged) && $isLogged == 1} <select name="id_order" > <option value="0">{l s='-- Choose --'}</option> {foreach from=$orderList item=order} <option value="{$order.value|intval}" {if $order.selected|intval}selected="selected"{/if}>{$order.label|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> {elseif !isset($customerThread.id_order) && empty($isLogged)} <input type="text" name="id_order" id="id_order" value="{if isset($customerThread.id_order) && $customerThread.id_order|intval > 0}{$customerThread.id_order|intval}{else}{if isset($smarty.post.id_order) && !empty($smarty.post.id_order)}{$smarty.post.id_order|intval}{/if}{/if}" /> {elseif $customerThread.id_order|intval > 0} <input type="text" name="id_order" id="id_order" value="{$customerThread.id_order|intval}" readonly="readonly" /> {/if} </p>*} {/if} {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} http://screencast.com/t/DLgvIoHL Paul Link to comment Share on other sites More sharing options...
mundoreballing Posted March 13, 2014 Author Share Posted March 13, 2014 Good morning Why not try going to: public_html/Your Shop/themes/default/contact-form.tpl and comment out: </p> {if !$PS_CATALOG_MODE} {if (!isset($customerThread.id_order) || $customerThread.id_order > 0)} {*<p class="text select"> <label for="id_order">{l s='Order reference'}</label> {if !isset($customerThread.id_order) && isset($isLogged) && $isLogged == 1} <select name="id_order" > <option value="0">{l s='-- Choose --'}</option> {foreach from=$orderList item=order} <option value="{$order.value|intval}" {if $order.selected|intval}selected="selected"{/if}>{$order.label|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> {elseif !isset($customerThread.id_order) && empty($isLogged)} <input type="text" name="id_order" id="id_order" value="{if isset($customerThread.id_order) && $customerThread.id_order|intval > 0}{$customerThread.id_order|intval}{else}{if isset($smarty.post.id_order) && !empty($smarty.post.id_order)}{$smarty.post.id_order|intval}{/if}{/if}" /> {elseif $customerThread.id_order|intval > 0} <input type="text" name="id_order" id="id_order" value="{$customerThread.id_order|intval}" readonly="readonly" /> {/if} </p>*} {/if} {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} http://screencast.com/t/DLgvIoHL Paul Thanks, but I don't want the users can upload files. Can you help me? Thanks ! I show you what i have actually in that file (contact-form.tpl) . {capture name=path}{l s='Contact'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} <h1>{l s='Customer service'} - {if isset($customerThread) && $customerThread}{l s='Your reply'}{else}{l s='Contact us'}{/if}</h1> {if isset($confirmation)} <p>{l s='Your message has been successfully sent to our team.'}</p> <ul class="footer_links"> <li><a href="{$base_dir}"><img class="icon" alt="" src="{$img_dir}icon/home.gif"/></a><a href="{$base_dir}">{l s='Home'}</a></li> </ul> {elseif isset($alreadySent)} <p>{l s='Your message has already been sent.'}</p> <ul class="footer_links"> <li><a href="{$base_dir}"><img class="icon" alt="" src="{$img_dir}icon/home.gif"/></a><a href="{$base_dir}">{l s='Home'}</a></li> </ul> {else} <p class="bold">{l s='For questions about an order or for more information about our products'}.</p> {include file="$tpl_dir./errors.tpl"} <form action="{$request_uri|escape:'htmlall':'UTF-8'}" method="post" class="std" enctype="multipart/form-data"> <fieldset> <h3>{l s='send a message'}</h3> <p class="select"> <label for="id_contact">{l s='Subject Heading'}</label> {if isset($customerThread.id_contact)} {foreach from=$contacts item=contact} {if $contact.id_contact == $customerThread.id_contact} <input type="text" id="contact_name" name="contact_name" value="{$contact.name|escape:'htmlall':'UTF-8'}" readonly="readonly" /> <input type="hidden" name="id_contact" value="{$contact.id_contact}" /> {/if} {/foreach} </p> {else} <select id="id_contact" name="id_contact" onchange="showElemFromSelect('id_contact', 'desc_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:'htmlall':'UTF-8'}</option> {/foreach} </select> </p> <p id="desc_contact0" class="desc_contact"> </p> {foreach from=$contacts item=contact} <p id="desc_contact{$contact.id_contact|intval}" class="desc_contact" style="display:none;"> {$contact.description|escape:'htmlall':'UTF-8'} </p> {/foreach} {/if} <p class="text"> <label for="email">{l s='Email address'}</label> {if isset($customerThread.email)} <input type="text" id="email" name="from" value="{$customerThread.email|escape:'htmlall':'UTF-8'}" readonly="readonly" /> {else} <input type="text" id="email" name="from" value="{$email|escape:'htmlall':'UTF-8'}" /> {/if} </p> {if !$PS_CATALOG_MODE} {if (!isset($customerThread.id_order) || $customerThread.id_order > 0)} <p class="text select"> <label for="id_order">{l s='Order reference'}</label> {if !isset($customerThread.id_order) && isset($isLogged) && $isLogged == 1} <select name="id_order" > <option value="0">{l s='-- Choose --'}</option> {foreach from=$orderList item=order} <option value="{$order.value|intval}" {if $order.selected|intval}selected="selected"{/if}>{$order.label|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> {elseif !isset($customerThread.id_order) && empty($isLogged)} <input type="text" name="id_order" id="id_order" value="{if isset($customerThread.id_order) && $customerThread.id_order|intval > 0}{$customerThread.id_order|intval}{else}{if isset($smarty.post.id_order) && !empty($smarty.post.id_order)}{$smarty.post.id_order|intval}{/if}{/if}" /> {elseif $customerThread.id_order|intval > 0} <input type="text" name="id_order" id="id_order" value="{$customerThread.id_order|intval}" readonly="readonly" /> {/if} </p> {/if} {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} {/if} {if $fileupload == 1} <p class="text"> <label for="fileUpload">{l s='Attach File'}</label> <input type="hidden" name="MAX_FILE_SIZE" value="2000000" /> <input type="file" name="fileUpload" id="fileUpload" /> </p> {/if} <p class="textarea"> <label for="message">{l s='Message'}</label> <textarea id="message" name="message" rows="15" cols="10">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}{/if}</textarea> </p> <p class="submit"> <input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large" /> </p> </fieldset> </form> {/if} Link to comment Share on other sites More sharing options...
Paulito Posted March 13, 2014 Share Posted March 13, 2014 Hello {/if} </p> {/if} {/if} {if $fileupload == 1} {*<p class="text"> <label for="fileUpload">{l s='Attach File'}</label> <input type="hidden" name="MAX_FILE_SIZE" value="2000000" /> <input type="file" name="fileUpload" id="fileUpload" /> </p>*} {/if} <p class="textarea"> <label for="message">{l s='Message'}</label> <textarea id="message" name="message" rows="15" cols="10">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}{/if}</textarea> </p> Result http://screencast.com/t/ybt19vaVC Paul Link to comment Share on other sites More sharing options...
mundoreballing Posted March 13, 2014 Author Share Posted March 13, 2014 i have to DELETE the red text from my actual code? And if i want to add a field for "NAME" ? Thanks !!! Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted March 13, 2014 Share Posted March 13, 2014 i have to DELETE the red text from my actual code? And if i want to add a field for "NAME" ? Thanks !!! No, you don't have to. You can toggle this off/on in your BO like I outlined above. It will only show the upload field if you set it to 'Yes' in your BO (notice the {if $fileupload == 1}). Marty Shue Link to comment Share on other sites More sharing options...
mundoreballing Posted March 13, 2014 Author Share Posted March 13, 2014 Yes, i put NO on the option for upload files. So the option dissapear from the contact form. But i still didn't understand what i have to do to show only these fields: Subject Heading Name E-mail Address Message Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted March 13, 2014 Share Posted March 13, 2014 See post #9 where Paul tells you exactly how to do it Marty Shue Link to comment Share on other sites More sharing options...
mundoreballing Posted March 13, 2014 Author Share Posted March 13, 2014 See post #9 where Paul tells you exactly how to do it Marty Shue I put the code in post #9 . I have this result : http://www.mundoreballing.cl/tienda/es/contactenos COMPLETELY CODE: {capture name=path}{l s='Contact'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} <h1>{l s='Customer service'} - {if isset($customerThread) && $customerThread}{l s='Your reply'}{else}{l s='Contact us'}{/if}</h1> {if isset($confirmation)} <p>{l s='Your message has been successfully sent to our team.'}</p> <ul class="footer_links"> <li><a href="{$base_dir}"><img class="icon" alt="" src="{$img_dir}icon/home.gif"/></a><a href="{$base_dir}">{l s='Home'}</a></li> </ul> {elseif isset($alreadySent)} <p>{l s='Your message has already been sent.'}</p> <ul class="footer_links"> <li><a href="{$base_dir}"><img class="icon" alt="" src="{$img_dir}icon/home.gif"/></a><a href="{$base_dir}">{l s='Home'}</a></li> </ul> {else} <p class="bold">{l s='For questions about an order or for more information about our products'}.</p> {include file="$tpl_dir./errors.tpl"} <form action="{$request_uri|escape:'htmlall':'UTF-8'}" method="post" class="std" enctype="multipart/form-data"> <fieldset> <h3>{l s='send a message'}</h3> <p class="select"> <label for="id_contact">{l s='Subject Heading'}</label> {if isset($customerThread.id_contact)} {foreach from=$contacts item=contact} {if $contact.id_contact == $customerThread.id_contact} <input type="text" id="contact_name" name="contact_name" value="{$contact.name|escape:'htmlall':'UTF-8'}" readonly="readonly" /> <input type="hidden" name="id_contact" value="{$contact.id_contact}" /> {/if} {/foreach} </p> {else} <select id="id_contact" name="id_contact" onchange="showElemFromSelect('id_contact', 'desc_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:'htmlall':'UTF-8'}</option> {/foreach} </select> </p> <p id="desc_contact0" class="desc_contact"> </p> {foreach from=$contacts item=contact} <p id="desc_contact{$contact.id_contact|intval}" class="desc_contact" style="display:none;"> {$contact.description|escape:'htmlall':'UTF-8'} </p> {/foreach} {/if} <p class="text"> <label for="email">{l s='Email address'}</label> {if isset($customerThread.email)} <input type="text" id="email" name="from" value="{$customerThread.email|escape:'htmlall':'UTF-8'}" readonly="readonly" /> {else} <input type="text" id="email" name="from" value="{$email|escape:'htmlall':'UTF-8'}" /> {/if} </p> {if !$PS_CATALOG_MODE} {if (!isset($customerThread.id_order) || $customerThread.id_order > 0)} {*<p class="text select"> <label for="id_order">{l s='Order reference'}</label> {if !isset($customerThread.id_order) && isset($isLogged) && $isLogged == 1} <select name="id_order" > <option value="0">{l s='-- Choose --'}</option> {foreach from=$orderList item=order} <option value="{$order.value|intval}" {if $order.selected|intval}selected="selected"{/if}>{$order.label|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> {elseif !isset($customerThread.id_order) && empty($isLogged)} <input type="text" name="id_order" id="id_order" value="{if isset($customerThread.id_order) && $customerThread.id_order|intval > 0}{$customerThread.id_order|intval}{else}{if isset($smarty.post.id_order) && !empty($smarty.post.id_order)}{$smarty.post.id_order|intval}{/if}{/if}" /> {elseif $customerThread.id_order|intval > 0} <input type="text" name="id_order" id="id_order" value="{$customerThread.id_order|intval}" readonly="readonly" /> {/if} </p>*} {/if} {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} {/if} {if $fileupload == 1} <p class="text"> <label for="fileUpload">{l s='Attach File'}</label> <input type="hidden" name="MAX_FILE_SIZE" value="2000000" /> <input type="file" name="fileUpload" id="fileUpload" /> </p> {/if} <p class="textarea"> <label for="message">{l s='Message'}</label> <textarea id="message" name="message" rows="15" cols="10">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}{/if}</textarea> </p> <p class="submit"> <input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large" /> </p> </fieldset> </form> {/if} Link to comment Share on other sites More sharing options...
mundoreballing Posted March 14, 2014 Author Share Posted March 14, 2014 Link to comment Share on other sites More sharing options...
mundoreballing Posted March 26, 2014 Author Share Posted March 26, 2014 (edited) Hey friends, Now I get this message on my contact page (http://www.mundoreballing.cl/tienda/es/contactenos): This page is not available We're sorry, but the Web address you've entered is no longer available. To find a product, please type its name in the field below. What i have to do to solve this problem? Thanks!!! Edited March 26, 2014 by mundoreballing (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts