Skip to main content

change order of fields on the registration form

14 years 3 weeks ago #69720 by peterhaze
Hi I have an odd issue.

In the registration form, the order of the fields is: ...last name, address, post code, city...

I'd like to change that to ...last name, address, city, post code...

how would I do that?
thanks in advance!

Please Log in or Create an account to join the conversation.

14 years 3 weeks ago #69788 by Xavier
Hi peterhaze,

Go in HikaShop > Display > Custom fields, and change the order of your custom fields for the address fields.

Please Log in or Create an account to join the conversation.

14 years 3 weeks ago #69846 by peterhaze
Hi Xavier,

thanks for the reply.

The fields in the registration form are not custom fields. They are the default fields for shop registration.

Here's the code of custom_fields. What would I have to do here in order to put post code after city?
Code:
<?php $type = $this->type; foreach($this->extraFields[$type] as $fieldName => $oneExtraField) { ?> <tr class="hikashop_registration_<?php echo $fieldName;?>_line" id="hikashop_<?php echo $type.'_'.$oneExtraField->field_namekey; ?>"> <td class="key"> <?php echo $this->fieldsClass->getFieldName($oneExtraField);?> </td> <td> <?php $onWhat='onchange'; if($oneExtraField->field_type=='radio') $onWhat='onclick'; echo $this->fieldsClass->display($oneExtraField,$this->$type->$fieldName,'data['.$type.']['.$fieldName.']',false,' '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\''.$type.'\',0);"'); ?> </td> </tr> <?php } ?>

Please Log in or Create an account to join the conversation.

14 years 3 weeks ago #69849 by Xavier
The fields for the registration form are custom fields, created by default in HikaShop.
You just have to change the order of them and don't forget to save by clicking on the icon next to the "order" column title.

Please Log in or Create an account to join the conversation.

14 years 3 weeks ago #69853 by peterhaze
seems i was looking in the wrong area. thanks for your help!!

Please Log in or Create an account to join the conversation.

Time to create page: 0.106 seconds
Powered by Kunena Forum