annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Aggiunta campo modulo regristrazione

Highlighted
Nuovo membro
1 0 0

{%- assign error_html = '' -%}
<div class="page-head pr tc{%- if settings.login_bg_image != blank %} lazyload{%- endif -%}"{%- if settings.login_bg_image != blank %} data-bgset="{%- include 'bgset', image: settings.login_bg_image -%}" data-sizes="auto" data-parent-fit="cover" style="background-image: url({{ settings.login_bg_image | img_url: '50x50' }})"{%- endif -%}> <div class="jas-container pr">
<h1 class="tu mb__10 cw" itemprop="headline">{{ 'customer.account.title' | t }}</h1>
<p></p>
<ul class="jas-breadcrumb dib oh">
<li class="fl home"><a href="/" title="{{ 'general.layout.breadcrumb.home' | t }}">{{ 'general.layout.breadcrumb.home' | t }}</a></li>
<li class="fl separator"> <i class="fa fa-angle-right"></i> </li>
<li class="fl current"> {{ 'customer.account.title' | t }}</li>
</ul>
</div>
</div>
<div class="jas-container">
<div class="jas-row jas-page">
<div class="jas-col-md-12 jas-col-xs-12 mt__60 mb__60" role="main" itemscope="itemscope" itemtype="http://schema.org/CreativeWork">
<div class="shopify">
<ul id="gl_shopify_error" class="shopify-error" style="display:none;">
<li class="html_li" id="jas_html_frm"></li>
</ul>
<div class="jas-container login-form">
<div class="form-login">
<h2>{{ 'customer.register.title' | t }}</h2>
{%- form 'create_customer',class:'register' -%}
{%- if form.errors -%}
{%- assign gl_shopify_error = true -%}
{%- for field in form.errors -%}
{%- if field == 'form' -%}
{%- assign error_html = form.errors.messages[field] -%}
{%- else -%}
{%- assign error_html = form.errors.translated_fields[field] | append:form.errors.messages[field] -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
<p class="shopify-FormRow shopify-FormRow--wide form-row form-row-wide">
<label for="FirstName">{{ 'customer.register.first_name' | t }}</label>
<input type="text" class="shopify-Input shopify-Input--text input-text" name="customer[first_name]" id="FirstName"{%- if form.first_name %} value="{{ form.first_name }}"{%- endif %} autofocus>
</p>
<p class="shopify-FormRow shopify-FormRow--wide form-row form-row-wide">
<label for="LastName">{{ 'customer.register.last_name' | t }}</label>
<input type="text" class="shopify-Input shopify-Input--text input-text" name="customer[last_name]" id="LastName"{%- if form.last_name %} value="{{ form.last_name }}"{%- endif -%}>
</p>
<p class="shopify-FormRow shopify-FormRow--wide form-row form-row-wide">
<label for="reg_email">{{ 'customer.register.email' | t }} <span class="required">*</span></label>
<input type="email" class="shopify-Input shopify-Input--text input-text{%- if form.errors contains 'email' %} input--error{%- endif -%}" name="customer[email]" required="required" id="reg_email"{%- if form.email %} value="{{ form.email }}"{%- endif -%}>
</p>
<p class="shopify-FormRow shopify-FormRow--wide form-row form-row-wide">
<label for="reg_password">{{ 'customer.register.password' | t }} <span class="required">*</span></label>
<input type="password" class="shopify-Input shopify-Input--text input-text{%- if form.errors contains 'password' %} input--error{%- endif -%}" name="customer[password]" id="reg_password" required="required">
</p>
{%- if settings.use_privacy_policy -%}
<div class="shopify-privacy-policy-text"><p>{%- if settings.privacy_policy_link != blank -%}{%- assign page_url = pages[settings.privacy_policy_link].url -%}{{ 'customer.register.privacy_policy_html' | t:link: page_url }}{%- else -%}{{ 'customer.register.privacy_policy' | t }}{%- endif -%}</p></div>
{%- endif -%}
<p class="shopify-FormRow form-row">
<input type="submit" class="shopify-Button button" name="register" value="{{ 'customer.register.submit' | t }}">
<a href="/account/login" class="shopify-Button button fr">{{ 'customer.login.sign_in' | t }}</a>
</p>
{%- endform -%}
</div>
</div>
</div>
</div>
<!-- $classes -->
</div>
<!-- .jas-row -->
</div>
<script type="text/javascript">
{%- if gl_shopify_error -%}
{%- if error_html != blank -%}
var html = {{error_html | json }};
var element = document.getElementById("jas_html_frm");
element.innerHTML = '{{ 'customer.login.error' | t }} '+html;

{%- endif -%}
document.getElementById('gl_shopify_error').style.display = 'block';
{%- endif -%}
</script>

 

come modificare il codice per poter aggiungere un campo del tipo

 

Sono un => opzioni privato - sacerdote - parrocchia - consacrato - azienda

 e nel caso fosse azienda deve uscire anche il campo p iva sdi 

0 Likes