Champs de création de compte

3 posts in this topic

Posted · Report post

Bonjour,

Mes clients sont des particuliers, je voudrai supprimer les champs concernant les entreprises dans la page d'inscription.
Exemples:
Société :
Numéro d'identification de la société :
N° TVA Intracom
Fonction :

Je ne trouve pas comment faire.
Pouvez-vous m'aider?

En vous remerciant.

Cordialement,
Christian

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,

le HTML de la page de création de compte est généré par le fichier modeles\peel9\smarty\user_register_form.tpl Vous pouvez donc modifier le HTML de cette page pour supprimer de l'affichage les champs souhaités.

				<div class="enregistrement">
					<span class="enregistrementgauche"><label for="societe">{$STR_SOCIETE}{if !empty($mandatory_fields['societe'])} <span class="etoile">*</span>{/if}{$STR_BEFORE_TWO_POINTS}:</label></span>
					<span class="enregistrementdroite"><input type="text" class="form-control" id="societe" name="societe" value="{$societe|html_entity_decode_if_needed|str_form_value}" /></span>{$societe_error}
				</div>
				<div class="enregistrement">
					<span class="enregistrementgauche"><label for="siret">{$siret_txt}{if !empty($mandatory_fields['siret'])} <span class="etoile">*</span>{/if}{$STR_BEFORE_TWO_POINTS}:</label></span>
					<span class="enregistrementdroite"><input type="text" class="form-control" id="siret" name="siret" value="{$siret|html_entity_decode_if_needed|str_form_value}" /></span> {$siret_error}
				</div>
		{if !empty($STR_INTRACOM_FORM)}
				<div class="enregistrement">
					<span class="enregistrementgauche"><label for="intracom_for_billing">{$STR_INTRACOM_FORM}<br/>{$STR_INTRACOM_FORM_ALERT}{if !empty($mandatory_fields['intracom_for_billing'])} <span class="etoile">*</span>{/if}{$STR_BEFORE_TWO_POINTS}:</label></span>
					<span class="enregistrementdroite"><input type="text" class="form-control" id="intracom_for_billing" name="intracom_for_billing" value="{$intracom_form|html_entity_decode_if_needed|str_form_value}" /></span>{$intracom_form_error}
				</div>
		{/if}

et

		{if !empty($STR_FONCTION)}
				<div class="enregistrement">
					<span class="enregistrementgauche"><label for="fonction">{$STR_FONCTION} {if $is_fonction_mandatory}<span class="etoile">*</span>{/if}{$STR_BEFORE_TWO_POINTS}:</label></span>
					<span class="enregistrementdroite">
						<select class="form-control" id="fonction" name="fonction">
							<option data-description="" value="">{$STR_CHOOSE}...</option>
							{$fonction_options}
						</select>
					</span>{$fonction_error}
				<div id="popover" class="hidden" style="display: block; top: 685px; left: 910px;"><div class="arrow"></div><div id="message_option" class="popover-content"></div></div>
				</div>
		{/if}

 

Share this post


: post
Share on other sites

Posted · Report post

Bonsoir,

Mille merci, ça fonctionne nickel.

Cordialement,
Christian

Share this post


: 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

Twitter Advisto ecommerce

Facebook PEEL Shopping