Jump to content
  • 0

Formularz kontaktowy bez pola temat


imei

Question

Witam,

 

Przeszukałem cały internet i nie znalazłem rozwiązania na problem formularza kontaktowego w PS 1.5.6.2

 

Jak usunąć wybór tematu wiadomości??

 

Co ciekawe znalazłem opcje zmiany tego:

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

na to:

<input type="hidden" value=2>

Niby fajnie nie widać tego pola ale temat nadal jest wymagany :/

 

W pliku classes/contact.php nie ma w tablicy fields pola subject więc jak się tego pozbyć z wymaganych??

 

 

Pozdrawiam

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Również mam problem z usunięciem tego elementu w Prestashop 1.6.1.3.

Mimo iż udało mi się usunąć Temat i listę rozwijaną to nadal przy ywysłaniu wiadomości temat jest wymagany. Inaczej nie można wysłać wiadomości.

Link to comment
Share on other sites

  • 0

Niestety nie umiem tego zmienić. Czy mógłbyś powiedzieć mi dokładnie którą część kodu zastąpić?

 

  <div class="form-group selector1">
                    <label for="id_contact">{l s='Temat'}</label>
                {if isset($customerThread.id_contact)}
                        {foreach from=$contacts item=contact}
                            {if $contact.id_contact == $customerThread.id_contact}
                                <input type="text" class="form-control" id="contact_name" name="contact_name" value="{$contact.name|escape:'html':'UTF-8'}" readonly />
                                <input type="hidden" name="id_contact" value="{$contact.id_contact}" />
                            {/if}
                        {/foreach}
                {else}
                    <select id="id_contact" class="form-control" name="id_contact">
                        <option value="0">{l s='-- Wybierz --'}</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"> </p>
                    {foreach from=$contacts item=contact}
                        <p id="desc_contact{$contact.id_contact|intval}" class="desc_contact contact-title" style="display:none;">
                            <i class="icon-comment-alt"></i>{$contact.description|escape:'html':'UTF-8'}
                        </p>
                    {/foreach}
                {/if}
                <p class="form-group">
                    <label for="email">{l s='Adres e-mail'}</label>
                    {if isset($customerThread.email)}
                        <input class="form-control grey" type="text" id="email" name="from" value="{$customerThread.email|escape:'html':'UTF-8'}" readonly />
                    {else}
                        <input class="form-control grey validate" type="text" id="email" name="from" data-validate="isEmail" value="{$email|escape:'html':'UTF-8'}" />
                    {/if}
                </p>

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