Solved

custom register page

smart_pharm
Visitor
1 0 0

i customized my register by adding new feilds in the code but the new information do not get saved 
please if any one can tell me if missed any thing 

<div class="clearfix form-group">
  <label for="first_name">{{ 'customer.register_form.first_name' | t }}</label>
  <div class=>
    <input type="text" value="" name="customer[first_name]" id="first_name">
  </div>
</div>

<div class="clearfix form-group">
  <label for="last_name">{{ 'customer.register_form.last_name' | t }}</label>
  <div>
    <input type="text" value="" name="customer[last_name]" id="last_name">
  </div>
</div>
              
 <div class="clearfix form-group">
  <label for="email">{{ 'customer.register_form.email' | t }}</label>
  <div>
    <input type="text" value="" name="customer[email]" id="email">
  </div>
</div>
<div class="clearfix form-group">
  <label for="tel">{{ 'customer.register_form.tel' | t }}</label>
  <div>
    <input type="tel" value="" name="customer[tel]" id="tel">
  </div>
</div>
<div class="clearfix form-group">
  <label for="registre_de_commerce">{{ 'customer.register_form.registre_de_commerce' | t }}</label>
  <div>
    <input type="text" value="" name="customer[registre_de_commerce]" id="registre_de_commerce">
  </div>
</div>

<div class="clearfix form-group">
  <label for="nom_du_officine">{{ 'customer.register_form.nom_du_officine' | t }}</label>
  <div>
    <input type="text" value="" name="customer[nom_du_officine]" id="nom_du_officine">
  </div>
</div>

<div class="clearfix form-group">
  <label for="adresse">{{ 'customer.register_form.adresse' | t }}</label>
  <div>
    <input type="text" value="" name="customer[adresse]" id="adresse">
  </div>
</div>
<div class="clearfix form-group">
  <label for="password_1">{{ 'customer.register_form.password' | t }}</label>
  <div>
    <i class="file_eye_el"></i>
    <input type="password" value="" name="customer[password]" id="password_1">
  </div>
</div>

<div class="clearfix form-group">
  <label for="password_2">{{ 'customer.register_form.confirm_password' | t }}</label>
  <div>
    <i class="file_eye_el"></i>
    <input type="password" value="" id="password_2">
  </div>
</div>
Accepted Solution (1)

DominicMruk
Shopify Partner
5 1 2

This is an accepted solution.

Hi @smart_pharm 

 

Please have a look at the documentation "Collect additional customer information" which you can find here: https://shopify.dev/themes/customer-engagement/additional-customer-information

It mentions, that additional information must be stored as a customer note. It seems like this is missing in your code.

 

Best Regards,

Dominic

Shopify Freelancer & Software Developer from Germany.
Need help? Drop me a DM

View solution in original post

Reply 1 (1)

DominicMruk
Shopify Partner
5 1 2

This is an accepted solution.

Hi @smart_pharm 

 

Please have a look at the documentation "Collect additional customer information" which you can find here: https://shopify.dev/themes/customer-engagement/additional-customer-information

It mentions, that additional information must be stored as a customer note. It seems like this is missing in your code.

 

Best Regards,

Dominic

Shopify Freelancer & Software Developer from Germany.
Need help? Drop me a DM