• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 08.09.17, 21:40
  • Opened by: Nathalia
  • Closed by: Marek
  • Closed on: 29.10.17, 15:37
  • Reason: Closed
  • Comment: Glad to help!

Ticket #10774 - register fields order

Hi, I’d like to know how to change register form fields sequence.

Comments

Marek 09 Sep 2017, 15:15

Hi Nathalia.
Please take a screenshot and ьфкл fields you want to reorder

Nathalia 11 Sep 2017, 16:13

Hi,

There it is

Marek 12 Sep 2017, 12:38
Nathalia 12 Sep 2017, 17:42

Actually, i already did reorder the register form.
I just didnt get it the address form.

Marek 12 Sep 2017, 23:44

Great!

Marek 12 Sep 2017, 23:47

So you just can’t find where to reorder those fields?

Nathalia 12 Sep 2017, 23:52

Yes.

Marek 13 Sep 2017, 00:00

The file is /themes/alysum/templates/customer/address.tpl

Nathalia 13 Sep 2017, 18:03

This file that you mention loads the file “_partials/address-form.tpl” And i didn’t see how to change the order, cause that file didnt call all the fields.

   {block name="address_form_fields"}
      <section class="form-fields">
        {block name='form_fields'}
          {foreach from=$formFields item="field"}
            {block name='form_field'}
              {form_field field=$field}
            {/block}
          {/foreach}
        {/block}
      </section>
    {/block}

Marek 13 Sep 2017, 23:26

Yes, I see now. I have no idea how to reorder it

Andreea Savu 18 Sep 2017, 11:42

Hi Nathalia,

You might find this post helpful: https://stackoverflow.com/questions/41867148/prestashop-1-6-change-my-account-address-field-order.

Cheers,
Andreea

Marek 18 Sep 2017, 13:59

That is not a solution for prestashop 1.7

Nathalia 21 Sep 2017, 23:08

I think i found the solution:
Go to International → locations → Your country → Edit.
In this form there’s a layout of the adress.
I change the order’s field on the template and then the form changes too.
I little strange, but works.

Marek 21 Sep 2017, 23:09

Great, I don’t even know about such option. Thank you for sharing!