Jump to content

PS 1.5 - Úprava formuláře objednávky/registrace - jméno


Recommended Posts

Dobrý den,

používám PS 1.5, chtěl bych změnit objednávkový formulář / registrační formulář. Tak, aby jméno a příjmení bylo v jednom políčku ne ve dvou jako je to doposud.

 

Nemá někdo správně fungující řešení?

 

Díky

  • Like 1

Share this post


Link to post
Share on other sites
  • 3 years later...

Tohle se dá upravit ve složce theme vaše thema a pak address.tpl a v něm konkretně 
 

 

{/if}

{if $field_name eq 'firstname'}
<div class="required form-group">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" name="firstname" id="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{else}{if isset($address->firstname)}{$address->firstname|escape:'html':'UTF-8'}{/if}{/if}" />
</div>
{/if}
{if $field_name eq 'lastname'}
<div class="required form-group">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{else}{if isset($address->lastname)}{$address->lastname|escape:'html':'UTF-8'}{/if}{/if}" />

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More