Jump to content

Contact form - přidání pole


yuriix1

Recommended Posts

Zdravím,

když chci přidat pole upravím soubory podle návodů co jsem zde na foru našel:

 

contact-from.php

 

elseif (!($name = nl2br2(Tools::getValue('name'))))

$errors[] = Tools::displayError('Jméno produktu je prázdné');

 

contact-from.tpl

 

<p class="text">

<label for="name">{l s='Název nebo ID číslo zboží'}</label>

<input type="text" id="name" name="name" value="{if isset($smarty.post.name)}{$smarty.post.name|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />

</p>

 

 

 

http://www.prestasho...e-contact-form/

 

bohužel po použití formuláře se podle name v emailu neobjeví... PROč? co dělám špatně?

 

 

Děkuji

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

  • 2 weeks later...

Zdravím,

když chci přidat pole upravím soubory podle návodů co jsem zde na foru našel:

 

contact-from.php

 

elseif (!($name = nl2br2(Tools::getValue('name'))))

$errors[] = Tools::displayError('Jméno produktu je prázdné');

 

contact-from.tpl

 

<p class="text">

<label for="name">{l s='Název nebo ID číslo zboží'}</label>

<input type="text" id="name" name="name" value="{if isset($smarty.post.name)}{$smarty.post.name|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />

</p>

 

 

 

http://www.prestasho...e-contact-form/

 

bohužel po použití formuláře se podle name v emailu neobjeví... PROč? co dělám špatně?

 

 

Děkuji

 

 

----

 

Notak lidí, uz se to tu řešilo jen nevím jak na to....

Link to comment
Share on other sites

No, zkoušet se mi to nechce, jestli tam není chyba, ale napadá mne klasická chybka, - když upravujete tpl, musíte vynutit kompilaci smarty, vymazáním tools/smarty/compile nebo v BO podle verze Presty, jinak se Vám úprava prostě neprojeví .... :)

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