Jump to content

Cannot find and translate fields in contact-form


newage

Recommended Posts

Hello!

Please take a look at the contact form http://www.beinsa.info/prestashop/bg/contact-us

In the drop-down field there are
Customer service

Webmaster

 

I can't find and translate them anywhere. They are not in the translations.

 

In the "contact-form.tpl" file I found

 

<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>
                    </div>
                        <p id="desc_contact0" class="desc_contact{if isset($smarty.request.id_contact)} unvisible{/if}"> </p>
                        {foreach from=$contacts item=contact}
                            <p id="desc_contact{$contact.id_contact|intval}" class="desc_contact contact-title{if !isset($smarty.request.id_contact) || $smarty.request.id_contact|intval != $contact.id_contact|intval} unvisible{/if}">
                                <i class="icon-comment-alt"></i>{$contact.description|escape:'html':'UTF-8'}
                            </p>
                        {/foreach}
                    {/if}
                    <p class="form-group">
                        <label for="email">{l s='Email address'}</label>

However I am not knowledgeable in programming and databases. What is "{$contact.id_contact|intval}" I have no clue

Edited by newage (see edit history)
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...