Jump to content

Edit History

solidbeat

solidbeat

if you use Prestashop 1.7.6.1, you will need to do it the following way:

Affected Files: templates/YOURTEMPLATE/customer/_partials/customer-form.tpl

Original:

    {block "form_fields"}
      {foreach from=$formFields item="field"}
        {block "form_field"}
          {form_field field=$field}
        {/block}
      {/foreach}
      {$hook_create_account_form nofilter}
    {/block}

Customized:

    {block "form_fields"}
    {foreach from=$formFields item="field"}
    {if $field.name=='siret' || $field['name'] == 'company'}
    {continue}
    {else}
    {block "form_field"}
      {form_field field=$field}
    {/block}
    {/if}
    {/foreach}
      {$hook_create_account_form nofilter}
    {/block} 

I hope it does help you guys.

solidbeat

solidbeat

if you use Prestashop 1.7.6.1, you will need to do it the following way:

Affected Files: templates/YOURTEMPLATE/customer/_partials/customer-form.tpl

Original:

    {block "form_fields"}
      {foreach from=$formFields item="field"}
        {block "form_field"}
          {form_field field=$field}
        {/block}
      {/foreach}
      {$hook_create_account_form nofilter}
    {/block}

Customized:

    {block "form_fields"}
    {foreach from=$formFields item="field"}
    {if $field.name=='siret' || $field['name'] == 'company'}
    {else}
    {block "form_field"}
      {form_field field=$field}
    {/block}
    {/if}
    {/foreach}
      {$hook_create_account_form nofilter}
    {/block} 

I hope it does help you guys.

solidbeat

solidbeat

Affected Files: templates/YOURTEMPLATE/customer/_partials/customer-form.tpl

if you use Prestashop 1.7.6.1, you will need to do it the following way:

Original:

    {block "form_fields"}
      {foreach from=$formFields item="field"}
        {block "form_field"}
          {form_field field=$field}
        {/block}
      {/foreach}
      {$hook_create_account_form nofilter}
    {/block}

Customized:

    {block "form_fields"}
    {foreach from=$formFields item="field"}
    {if $field.name=='siret' || $field['name'] == 'company'}
    {else}
    {block "form_field"}
      {form_field field=$field}
    {/block}
    {/if}
    {/foreach}
      {$hook_create_account_form nofilter}
    {/block} 

 

solidbeat

solidbeat

Anyone who does use Prestashop 1.7.6.1 may use the following customized code:
 

    {block "form_fields"}
    {foreach from=$formFields item="field"}
    {if $field.name=='siret' || $field['name'] == 'company'}
    {else}
    {block "form_field"}
      {form_field field=$field}
    {/block}
    {/if}
    {/foreach}
      {$hook_create_account_form nofilter}
    {/block} 

 

×
×
  • Create New...