change order of fields on the registration form

  • Posts: 4
  • Thank you received: 0
12 years 1 month ago #69720

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.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #69788

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.

  • Posts: 4
  • Thank you received: 0
12 years 1 month ago #69846

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?

<?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.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #69849

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.

  • Posts: 4
  • Thank you received: 0
12 years 1 month ago #69853

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.060 seconds
Powered by Kunena Forum