[Skip to main content](#vessel-content)

#   HikaShop template override Guest Registration

##

- **[Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")**
- [![Hikarioo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56346-hikarioo "View Hikarioo's Profile") Topic Author
- [ Offline](/forum/user/56346-hikarioo)

Less More

- Posts: 50
- Thank you received: 1
-
-

8 years 8 months ago -  8 years 8 months ago [\#289821](#289821) by [Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")  *[HikaShop template override Guest Registration](/forum/27-checkout/894154-hikashop-template-override-guest-registration#289821 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3..8.6 -- PHP version -- : 7.0.25 -- Browser(s) name and version -- : Google Chrome  How can I change the order of fields on the checkout Guest Registration screen?  FROM: Email Confirm email Name  TO: Your name: Email:  Thanks!")* was created by *[Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")*

-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3..8.6
-- PHP version -- : 7.0.25
-- Browser(s) name and version -- : Google Chrome

How can I change the order of fields on the checkout Guest Registration screen?

FROM:
Email
Confirm email
Name

TO:
Your name:
Email:

Thanks!

- [ ![2018-03-16&#95;10-22-56.275.png](/forum/attachment/43026) ](/forum/attachment/43026 "...-22-56.275.png") [ ](/forum/attachment/43026?download=1 "...-22-56.275.png")

Last edit: 8 years 8 months ago by [Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDE1NC1oaWthc2hvcC10ZW1wbGF0ZS1vdmVycmlkZS1ndWVzdC1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 8 months ago [\#289837](#289837) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[HikaShop template override Guest Registration](/forum/27-checkout/894154-hikashop-template-override-guest-registration#289837 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3..8.6 -- PHP version -- : 7.0.25 -- Browser(s) name and version -- : Google Chrome  How can I change the order of fields on the checkout Guest Registration screen?  FROM: Email Confirm email Name  TO: Your name: Email:  Thanks!")*

Hi,

You'll have to edit the view file displaying these fields and swap the different blocks of code for each field.
You want to use the "Display view files" setting of the Hikashop configuration to find out which view file is used there:
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

The following user(s) said Thank You: [Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDE1NC1oaWthc2hvcC10ZW1wbGF0ZS1vdmVycmlkZS1ndWVzdC1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")**
- [![Hikarioo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56346-hikarioo "View Hikarioo's Profile") Topic Author
- [ Offline](/forum/user/56346-hikarioo)

Less More

- Posts: 50
- Thank you received: 1
-
-

8 years 7 months ago [\#290677](#290677) by [Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")  Replied by *[Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")* on topic *[HikaShop template override Guest Registration](/forum/27-checkout/894154-hikashop-template-override-guest-registration#290677 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3..8.6 -- PHP version -- : 7.0.25 -- Browser(s) name and version -- : Google Chrome  How can I change the order of fields on the checkout Guest Registration screen?  FROM: Email Confirm email Name  TO: Your name: Email:  Thanks!")*

I'm not sure which view to change. The "guest" check out has an email and name option.
Email is in the user table, the column name is "name", field type is Text. Email is I guess default Joomla thing.  [ ![2018-04-02&#95;09-29-28.595.png](/forum/attachment/43226) ](/forum/attachment/43226 "...-29-28.595.png")

**Suggestion:** some type of search by either table or column name would be a nice addition to Display &gt; Views.

- [ ![2018-04-02&#95;09-29-28.595.png](/forum/attachment/43226) ](/forum/attachment/43226 "...-29-28.595.png") [ ](/forum/attachment/43226?download=1 "...-29-28.595.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDE1NC1oaWthc2hvcC10ZW1wbGF0ZS1vdmVycmlkZS1ndWVzdC1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 7 months ago [\#290682](#290682) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[HikaShop template override Guest Registration](/forum/27-checkout/894154-hikashop-template-override-guest-registration#290682 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3..8.6 -- PHP version -- : 7.0.25 -- Browser(s) name and version -- : Google Chrome  How can I change the order of fields on the checkout Guest Registration screen?  FROM: Email Confirm email Name  TO: Your name: Email:  Thanks!")*

Hi,

If you would activate the "Display view files" setting like I told you, you would quickly see that it's the "sub_block_login_registration" file you need to edit.

Searching a table or a column name doesn't make sense for view files. Tables are never mentioned in the view files, and the column names are sometimes mentioned but not necessarily. Using the Display view files setting is much better to see which view file is used where.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDE1NC1oaWthc2hvcC10ZW1wbGF0ZS1vdmVycmlkZS1ndWVzdC1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")**
- [![Hikarioo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56346-hikarioo "View Hikarioo's Profile") Topic Author
- [ Offline](/forum/user/56346-hikarioo)

Less More

- Posts: 50
- Thank you received: 1
-
-

8 years 7 months ago [\#290832](#290832) by [Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")  Replied by *[Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")* on topic *[HikaShop template override Guest Registration](/forum/27-checkout/894154-hikashop-template-override-guest-registration#290832 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3..8.6 -- PHP version -- : 7.0.25 -- Browser(s) name and version -- : Google Chrome  How can I change the order of fields on the checkout Guest Registration screen?  FROM: Email Confirm email Name  TO: Your name: Email:  Thanks!")*

Code:

To know which view you have to edit, just set the "Display view files" setting to "all" under the "Advanced" tab of the HikaShop configuration. This will add dashed borders around eah view file used with the name of the view file used on the top left corner of the view file. It will have 2 parts separated by a /. The left part will be the view name and the right part will be the file name so you'll be able to easily find what you need to edit.

I had a little difficulty following the instructions but I think I finally got it. Thanks.

I can see that in checkout / sub_block_login_registration.php name is listed first.
Code:

... &lt;input type="text" name="data[register][name]" id="register_name" value="&lt;?php echo $this-&gt;escape($this-&gt;mainUser-&gt;get( 'name' ));?&gt;" class="hkform-control" size="30" maxlength="50"/&gt; ... ... &lt;input&lt;?php if($this-&gt;config-&gt;get('show_email_confirmation_field',0)){echo ' autocomplete="off"';} ?&gt; type="text" name="data[register][email]" id="register_email" value="&lt;?php echo $this-&gt;escape($this-&gt;mainUser-&gt;get( 'email' ));?&gt;" class="hkform-control validate-email" maxlength="100" size="30" /&gt; ...

but for some reason, I get E-mail block on top of it. I added "Your Name" (table user, column name, type text).

I'm missing something obvious. Any pointers would be helpful. Thanks.

Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 3.4.0 * @author hikashop.com * @copyright (C) 2010-2018 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;fieldset class="hkform-horizontal" style=" margin-left: 69%!important;"&gt; &lt;?php $labelcolumnclass = 'hkc-sm-4'; $inputcolumnclass = 'hkc-sm-8'; if(!empty($this-&gt;options['registration_registration'])) { ?&gt; &lt;div class="hkform-group control-group hikashop_registration_name_line" id="hikashop_registration_name_line"&gt; &lt;label id="namemsg" for="register_name" class="&lt;?php echo $labelcolumnclass;?&gt; hkcontrol-label" title=""&gt;&lt;?php echo JText::_('HIKA_USER_NAME'); ?&gt;*&lt;/label&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;input type="text" name="data[register][name]" id="register_name" value="&lt;?php echo $this-&gt;escape($this-&gt;mainUser-&gt;get( 'name' ));?&gt;" class="hkform-control" size="30" maxlength="50"/&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="hkform-group control-group hikashop_registration_username_line" id="hikashop_registration_username_line"&gt; &lt;label id="usernamemsg" for="register_username" class="&lt;?php echo $labelcolumnclass;?&gt; hkcontrol-label" title=""&gt;&lt;?php echo JText::_('HIKA_USERNAME'); ?&gt;*&lt;/label&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;input type="text" name="data[register][username]" id="register_username" value="&lt;?php echo $this-&gt;escape($this-&gt;mainUser-&gt;get( 'username' ));?&gt;" class="hkform-control validate-username" maxlength="25" size="30" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;div class="hkform-group control-group hikashop_registration_email_line"&gt; &lt;label id="emailmsg" for="register_email" class="&lt;?php echo $labelcolumnclass;?&gt; hkcontrol-label" title=""&gt;&lt;?php echo JText::_('HIKA_EMAIL'); ?&gt;*&lt;/label&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;input&lt;?php if($this-&gt;config-&gt;get('show_email_confirmation_field',0)){echo ' autocomplete="off"';} ?&gt; type="text" name="data[register][email]" id="register_email" value="&lt;?php echo $this-&gt;escape($this-&gt;mainUser-&gt;get( 'email' ));?&gt;" class="hkform-control validate-email" maxlength="100" size="30" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php if(!empty($this-&gt;options['registration_email_confirmation'])) { ?&gt; &lt;div class="hkform-group control-group hikashop_registration_email_confirm_line"&gt; &lt;label id="email_confirm_msg" for="register_email_confirm" class="&lt;?php echo $labelcolumnclass;?&gt; hkcontrol-label" title=""&gt;&lt;?php echo JText::_('HIKA_EMAIL_CONFIRM'); ?&gt;*&lt;/label&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;input autocomplete="off" type="text" name="data[register][email_confirm]" id="register_email_confirm" value="&lt;?php echo $this-&gt;escape($this-&gt;mainUser-&gt;get('email'));?&gt;" class="hkform-control validate-email" maxlength="100" size="30" onchange="if(this.value!=document.getElementById('register_email').value){alert('&lt;?php echo JText::_('THE_CONFIRMATION_EMAIL_DIFFERS_FROM_THE_EMAIL_YOUR_ENTERED',true); ?&gt;'); this.value = '';}" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } if(!empty($this-&gt;extraData[$this-&gt;module_position]) &amp;&amp; !empty($this-&gt;extraData[$this-&gt;module_position]-&gt;top)) { echo implode("\r\n", $this-&gt;extraData[$this-&gt;module_position]-&gt;top); } ?&gt; &lt;?php if(!empty($this-&gt;options['registration_registration']) &#124;&#124; !empty($this-&gt;options['registration_password'])) { ?&gt; &lt;div class="hkform-group control-group hikashop_registration_password_line" id="hikashop_registration_password_line"&gt; &lt;label id="pwmsg" for="register_password" class="&lt;?php echo $labelcolumnclass;?&gt; hkcontrol-label" title=""&gt;&lt;?php echo JText::_('HIKA_PASSWORD'); ?&gt;*&lt;/label&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;input autocomplete="off" type="password" name="data[register][password]" id="register_password" value="" class="hkform-control validate-password" size="30" &gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="hkform-group control-group hikashop_registration_password2_line" id="hikashop_registration_password2_line"&gt; &lt;label id="pw2msg" for="register_password2" class="&lt;?php echo $labelcolumnclass;?&gt; hkcontrol-label" title=""&gt;&lt;?php echo JText::_('HIKA_VERIFY_PASSWORD'); ?&gt;*&lt;/label&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;input autocomplete="off" type="password" name="data[register][password2]" id="register_password2" value="" class="hkform-control validate-password" size="30" &gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } if(!empty($this-&gt;extraData[$this-&gt;module_position]) &amp;&amp; !empty($this-&gt;extraData[$this-&gt;module_position]-&gt;middle)) { echo implode("\r\n", $this-&gt;extraData[$this-&gt;module_position]-&gt;middle); } $type = 'user'; if(!empty($this-&gt;extraFields[$type])) { foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $field) { ?&gt; &lt;div class="hkform-group control-group hikashop_registration_&lt;?php echo $fieldName;?&gt;_line" id="hikashop_&lt;?php echo $type . '_' . $this-&gt;step . '_' . $this-&gt;module_position . '_' . $field-&gt;field_namekey; ?&gt;"&gt; &lt;?php $classname = $labelcolumnclass.' hkcontrol-label'; echo $this-&gt;fieldsClass-&gt;getFieldName($field, true, $classname); ?&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;?php $onWhat = ($field-&gt;field_type == 'radio') ? 'onclick' : 'onchange'; echo $this-&gt;fieldsClass-&gt;display( $field, @$this-&gt;$type-&gt;$fieldName, 'data['.$type.']['.$fieldName.']', false, ' class="hkform-control" '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\''.$type . '_' . $this-&gt;step . '_' . $this-&gt;module_position.'\',0,\'hikashop_\');"', false, $this-&gt;extraFields[$type], @$this-&gt;$type, false ); ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } } if(!empty($this-&gt;options['affiliate_registration'])) { $plugin = JPluginHelper::getPlugin('system', 'hikashopaffiliate'); if(!empty($plugin)) { ?&gt; &lt;div class="hkform-group control-group hikashop_registration_affiliate_line"&gt; &lt;div class="&lt;?php echo $labelcolumnclass;?&gt; hkcontrol-label"&gt;&lt;/div&gt; &lt;div class=" &lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;div class="checkbox"&gt; &lt;?php $affiliate_terms = $this-&gt;config-&gt;get('affiliate_terms', 0); if(!empty($affiliate_terms)) { ?&gt; &lt;input class="hikashop_affiliate_checkbox" id="hikashop_affiliate_checkbox" type="checkbox" name="hikashop_affiliate_checkbox" value="1" &lt;?php echo $this-&gt;affiliate_checked; ?&gt; /&gt; &lt;span class="hikashop_affiliate_terms_span_link" id="hikashop_affiliate_terms_span_link"&gt; &lt;a class="hikashop_affiliate_terms_link" id="hikashop_affiliate_terms_link" target="_blank" href="&lt;?php echo JRoute::_('index.php?option=com_content&amp;view=article&amp;id='.$affiliate_terms); ?&gt;"&gt;&lt;?php echo JText::_('BECOME_A_PARTNER'); ?&gt;&lt;/a&gt; &lt;/span&gt; &lt;?php } else { ?&gt; &lt;label&gt; &lt;input class="hikashop_affiliate_checkbox" id="hikashop_affiliate_checkbox" type="checkbox" name="hikashop_affiliate_checkbox" value="1" &lt;?php echo $this-&gt;affiliate_checked; ?&gt; /&gt; &lt;?php echo JText::_('BECOME_A_PARTNER');?&gt; &lt;/label&gt; &lt;?php } ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } } if(!empty($this-&gt;options['address_on_registration']) &amp;&amp; !empty($this-&gt;extraFields['address'])) { $type = 'address'; ?&gt; &lt;div class=""&gt; &lt;legend&gt;&lt;?php echo JText::_( 'ADDRESS_INFORMATION' ); ?&gt;&lt;/legend&gt; &lt;/div&gt; &lt;?php foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $oneExtraField) { ?&gt; &lt;div class="hkform-group control-group hikashop_registration_&lt;?php echo $fieldName;?&gt;_line" id="hikashop_&lt;?php echo $type . '_' . $this-&gt;step . '_' . $this-&gt;module_position . '_' . $oneExtraField-&gt;field_namekey; ?&gt;"&gt; &lt;?php $classname = $labelcolumnclass.' hkcontrol-label'; echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField, true, $classname); ?&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;?php $onWhat = ($oneExtraField-&gt;field_type == 'radio') ? 'onclick' : 'onchange'; echo $this-&gt;fieldsClass-&gt;display( $oneExtraField, @$this-&gt;$type-&gt;$fieldName, 'data['.$type.']['.$fieldName.']', false, 'class="hkform-control" '.$onWhat.'="window.hikashop.toggleField(this.value,\''.$fieldName.'\',\''.$type . '_' . $this-&gt;step . '_' . $this-&gt;module_position.'\',0,\'hikashop_\');"', false, $this-&gt;extraFields[$type], @$this-&gt;$type, false ); ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } } if(!empty($this-&gt;extraData[$this-&gt;module_position]) &amp;&amp; !empty($this-&gt;extraData[$this-&gt;module_position]-&gt;bottom)) { echo implode("\r\n", $this-&gt;extraData[$this-&gt;module_position]-&gt;bottom); } ?&gt; &lt;div class="hkform-group control-group hikashop_registration_required_info_line"&gt; &lt;div class="&lt;?php echo $labelcolumnclass;?&gt; hkcontrol-label"&gt;&lt;/div&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt;&lt;?php echo JText::_('HIKA_REGISTER_REQUIRED'); ?&gt;&lt;/div&gt; &lt;/div&gt; &lt;input type="hidden" name="data[register][id]" value="&lt;?php echo (int)$this-&gt;mainUser-&gt;get('id');?&gt;" /&gt; &lt;input type="hidden" name="data[register][gid]" value="&lt;?php echo (int)$this-&gt;mainUser-&gt;get('gid');?&gt;" /&gt; &lt;?php if(!empty($this-&gt;options['show_submit'])) { ?&gt; &lt;div class="hkform-group control-group"&gt; &lt;div class="&lt;?php echo $labelcolumnclass;?&gt; hkcontrol-label"&gt;&lt;/div&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;button type="submit" onclick="window.checkout.submitLogin(&lt;?php echo $this-&gt;step; ?&gt;,&lt;?php echo $this-&gt;module_position; ?&gt;, 'register'); return false;" class="&lt;?php echo $this-&gt;config-&gt;get('css_button','hikabtn'); ?&gt; hikabtn_checkout_login_register" id="hikashop_register_form_button"&gt;&lt;?php echo !empty($this-&gt;options['registration_simplified']) &#124;&#124; !empty($this-&gt;options['registration_guest']) ? JText::_('HIKA_NEXT') : JText::_('HIKA_REGISTER'); ?&gt;&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;/fieldset&gt; &lt;?php if(!empty($this-&gt;options['js'])) { ?&gt; &lt;script type="text/javascript"&gt; &lt;?php echo $this-&gt;options['js']; ?&gt; &lt;/script&gt; &lt;?php } ?&gt; &lt;script type="text/javascript"&gt; window.hikashop.ready(function() { if(!document.formvalidator) return; var container = document.getElementById('hikashop_checkout_login_&lt;?php echo $this-&gt;step; ?&gt;_&lt;?php echo $this-&gt;module_position; ?&gt;'); if(container) document.formvalidator.attachToForm(container); }); &lt;/script&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDE1NC1oaWthc2hvcC10ZW1wbGF0ZS1vdmVycmlkZS1ndWVzdC1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 7 months ago [\#290856](#290856) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[HikaShop template override Guest Registration](/forum/27-checkout/894154-hikashop-template-override-guest-registration#290856 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3..8.6 -- PHP version -- : 7.0.25 -- Browser(s) name and version -- : Google Chrome  How can I change the order of fields on the checkout Guest Registration screen?  FROM: Email Confirm email Name  TO: Your name: Email:  Thanks!")*

Hi,

The name field isn't displayed by that code. That name field is only displayed when your checkout is configured to accept registrations as that information is stored as the name of the user account in Joomla.
But on your checkout, you have it configured in guest mode.

No, the name field on your checkout comes from the custom field of the table "user" that you've created.
So it is actually displayed by that block of code: Code:

$type = 'user'; if(!empty($this-&gt;extraFields[$type])) { foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $field) { ?&gt; &lt;div class="hkform-group control-group hikashop_registration_&lt;?php echo $fieldName;?&gt;_line" id="hikashop_&lt;?php echo $type . '_' . $this-&gt;step . '_' . $this-&gt;module_position . '_' . $field-&gt;field_namekey; ?&gt;"&gt; &lt;?php $classname = $labelcolumnclass.' hkcontrol-label'; echo $this-&gt;fieldsClass-&gt;getFieldName($field, true, $classname); ?&gt; &lt;div class="&lt;?php echo $inputcolumnclass;?&gt;"&gt; &lt;?php $onWhat = ($field-&gt;field_type == 'radio') ? 'onclick' : 'onchange'; echo $this-&gt;fieldsClass-&gt;display( $field, @$this-&gt;$type-&gt;$fieldName, 'data['.$type.']['.$fieldName.']', false, ' class="hkform-control" '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\''.$type . '_' . $this-&gt;step . '_' . $this-&gt;module_position.'\',0,\'hikashop_\');"', false, $this-&gt;extraFields[$type], @$this-&gt;$type, false ); ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } }

The following user(s) said Thank You: [Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDE1NC1oaWthc2hvcC10ZW1wbGF0ZS1vdmVycmlkZS1ndWVzdC1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")**
- [![Hikarioo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56346-hikarioo "View Hikarioo's Profile") Topic Author
- [ Offline](/forum/user/56346-hikarioo)

Less More

- Posts: 50
- Thank you received: 1
-
-

8 years 7 months ago [\#290901](#290901) by [Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")  Replied by *[Hikarioo](/forum/user/56346-hikarioo "View Hikarioo's Profile")* on topic *[HikaShop template override Guest Registration](/forum/27-checkout/894154-hikashop-template-override-guest-registration#290901 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3..8.6 -- PHP version -- : 7.0.25 -- Browser(s) name and version -- : Google Chrome  How can I change the order of fields on the checkout Guest Registration screen?  FROM: Email Confirm email Name  TO: Your name: Email:  Thanks!")*

OMG I think sorta understand it thanks to your great explanation. ![:-)](/media/kunena/emoticons/3.png ":-)") Wow. Thanks for taking the time. I appreciate you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDE1NC1oaWthc2hvcC10ZW1wbGF0ZS1vdmVycmlkZS1ndWVzdC1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.067 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
