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

#   field layout of address fields on checkout page

##

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

Less More

- Posts: 68
- Thank you received: 2
-
-

11 years 10 months ago [\#188619](#188619) by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")  *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#188619 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")* was created by *[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")*

-- HikaShop version -- : latest
-- Joomla version -- : latest
-- PHP version -- : 5.3
-- Browser(s) name and version -- : latest

Hi,
I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view.
I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.

See screenshot please

thanks in advance.

Mark

- [ ![hika1.jpg](/forum/attachment/21988) ](/forum/attachment/21988 "hika1.jpg") [ ](/forum/attachment/21988?download=1 "hika1.jpg")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#188633](#188633) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#188633 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Hi,

Just change their ordering in the custom fields.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 68
- Thank you received: 2
-
-

11 years 9 months ago [\#188671](#188671) by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")  Replied by *[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#188671 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Sorry Jerome,

I haven't been clear enough, my bad.
The ordering is not a problem, I do want to rearrange the label / input field / asterisk (on one line) like the user-fields above the address fields. See the attachment in previous post.

Thanks

Mark

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 9 months ago [\#188744](#188744) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#188744 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Hello Mark,
The solution will be to :
- Use some CSS code : [ www.hikashop.com/support/documentation/1...the-display.html#css](http://www.hikashop.com/support/documentation/153-customize-the-display.html#css)
OR
- Directly edit the code of the "Registration" file of the "User" View of your front-end template via "Hikahsop-&gt;Display-&gt;Views".

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

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

Less More

- Posts: 68
- Thank you received: 2
-
-

11 years 9 months ago [\#188894](#188894) by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")  Replied by *[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#188894 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Thanks Mohammed,

That is what i was thinking also but whatever I change in the registration-file nothing happens.
Also the way the user-fields are displayed is different then the way of displaying the address-fields.

That is why I was able to change the layout of user fields (see first attachment) but I'm tucked with the address-fields.

Seems there is another file loaded which I can't find?

Any ideas?

Thanks again.

Mark

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDYwNC1maWVsZC1sYXlvdXQtb2YtYWRkcmVzcy1maWVsZHMtb24tY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) 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
-
-

11 years 9 months ago [\#188941](#188941) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#188941 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Hi,

You must have the "use bootstrap design" option activated in the HikaShop configuration. In that case, it's the registraion_bootstrap view file that you want to edit instead.

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

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

Less More

- Posts: 68
- Thank you received: 2
-
-

11 years 9 months ago [\#189083](#189083) by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")  Replied by *[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#189083 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Thanks Nicolas,

In this file there are no address fields. only below code loading the address.
I try to find the file with the address fields so I can change the layout like I did with the user-fields (above address fields on checkout page).
Code:

$this-&gt;type = 'address'; echo $this-&gt;loadTemplate();

Thanks again.

Mark

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#189090](#189090) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#189090 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Hi,

For the address and user custom fields ; when using bootstrap design, view is "user &#124; custom_fields_bootstrap".
If you're not using the bootstrap design, the view is "user &#124; custom_fields".

The view "registration / registration_bootstrap" are the containers for the main fields and call the other view for display the custom fields.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 68
- Thank you received: 2
-
-

11 years 9 months ago [\#189125](#189125) by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")  Replied by *[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#189125 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Thanks Jerome,

Indeed I've found the file user &#124; custom_fields_bootstrap.

But how can I re-arrange the layout of the fields in one line, I don't like to change the order but just the position of the label &#124; field &#124; mandatory-asterisk (*)

I'd like to arrange the fields like:

label * field

now its showing like

label field *

the code says: Code:

echo $this-&gt;fieldsClass-&gt;display( $oneExtraField, @$this-&gt;$type-&gt;$fieldName, 'data['.$type.']['.$fieldName.']', false, ' '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\''.$type.'\',0);"', false, $this-&gt;extraFields[$type], $this-&gt;$type );

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#189138](#189138) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#189138 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Hi,

Great !
So the explanation of the next step is there (even if it's for HIkaMarket, the trick is the same):
[ www.hikashop.com/forum/23-market-how-to/...ion-form.html#180669](http://www.hikashop.com/forum/23-market-how-to/873165-change-style-of-ver-registration-form.html#180669)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 68
- Thank you received: 2
-
-

11 years 9 months ago -  11 years 9 months ago [\#190709](#190709) by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")  Replied by *[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#190709 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Thanks Jerome,

I'll have a look at that.

Mark

Last edit: 11 years 9 months ago by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile").

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

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

Less More

- Posts: 68
- Thank you received: 2
-
-

11 years 9 months ago [\#190715](#190715) by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")  Replied by *[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#190715 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Jerome,

Since the required update I'd like to submit is affecting the HS-core-class "administrator/components/com_hikashop/classes/field.php",
what is the best way to realise this? My view file is: user &#124; custom_fields_bootstrap. The only function which I'd like to redefine is the field "display" function in the field.php (class). So I tried to copy this function from the field class into my view-file and rename it.... but this was not working probably because there are more (helper) classes needed.

I'd like to change the display-function in the field.php class-file without losing changes after hockshop-upgrade (see function-code below).

Hop you can guide me in right direction.

Thanks in advance.

Mark
Code:

function display(&amp;$field, $value, $map, $inside = false, $options = '', $test = false, $allFields = null, $allValues = null, $requiredDisplay = true) { $field_type = $field-&gt;field_type; if(substr($field-&gt;field_type,0,4) == 'plg.') { $field_type = substr($field-&gt;field_type,4); JPluginHelper::importPlugin('hikashop', $field_type); } $classType = 'hikashop'.ucfirst($field_type); if(!class_exists($classType)) return 'Plugin '.$field_type.' missing or deactivated'; $class = new $classType($this); if(is_string($value)) $value = htmlspecialchars($value, ENT_COMPAT,'UTF-8'); $html = $class-&gt;display($field,$value,$map,$inside,$options,$test,$allFields,$allValues); if($requiredDisplay &amp;&amp; !empty($field-&gt;field_required)) $html .=' &lt;span class="hikashop_field_required"&gt;*&lt;/span&gt;'; return $html; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDYwNC1maWVsZC1sYXlvdXQtb2YtYWRkcmVzcy1maWVsZHMtb24tY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) 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
-
-

11 years 9 months ago [\#190725](#190725) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#190725 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Hi,

There is no need to copy that function in your view or change the code of the core field.php file.

There are just two simple change to do if you want the * after the label instead of after the input:
1. Add that CSS on your website in order to hide the * after the input: .hikashop_field_required{ display : none; }
2. In your view file, after the line:
&lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt;
which displays the label, just add such code:
&lt;?php if($oneExtraField-&gt;field_required) echo '*'; ?&gt;

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

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

Less More

- Posts: 68
- Thank you received: 2
-
-

11 years 9 months ago -  11 years 9 months ago [\#190786](#190786) by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")  Replied by *[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#190786 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Thanks Nicolas,

Thats fine, but I do need a div-structure which is different than the core structure.
See my screen print and watch the e-mail-field. This is what I want for the address-fields to display like.

The label and asterisks are placed just before the input-field (see the e-mail-div-structure which I altered myself in the view).

Thanks so far.

Mark

- [ ![Screen&#95;Shot&#95;2015-02-15&#95;at&#95;12&#95;00&#95;35.jpg](/forum/attachment/22397) ](/forum/attachment/22397 "...t&#95;12&#95;00&#95;35.jpg") [ ](/forum/attachment/22397?download=1 "...t&#95;12&#95;00&#95;35.jpg")
- [ ![Screen&#95;Shot&#95;2015-02-15&#95;at&#95;12&#95;01&#95;57.jpg](/forum/attachment/22398) ](/forum/attachment/22398 "...t&#95;12&#95;01&#95;57.jpg") [ ](/forum/attachment/22398?download=1 "...t&#95;12&#95;01&#95;57.jpg")
- [ ![Screen&#95;Shot&#95;2015-02-15&#95;at&#95;12&#95;02&#95;39.jpg](/forum/attachment/22399) ](/forum/attachment/22399 "...t&#95;12&#95;02&#95;39.jpg") [ ](/forum/attachment/22399?download=1 "...t&#95;12&#95;02&#95;39.jpg")

Last edit: 11 years 9 months ago by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDYwNC1maWVsZC1sYXlvdXQtb2YtYWRkcmVzcy1maWVsZHMtb24tY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) 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
-
-

11 years 9 months ago [\#190796](#190796) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#190796 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Hi,

So what is the problem with that ?
Just change the div structure in the view file to have what you want.
It is not related to what I said in my previous message with the * placement.

You want to move the lines:
&lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt;
&lt;?php if($oneExtraField-&gt;field_required) echo '*'; ?&gt;

after:
&lt;div class="controls"&gt;

in the view file as far as I can see in your screenshots.

The following user(s) said Thank You: [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")

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

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

Less More

- Posts: 68
- Thank you received: 2
-
-

11 years 9 months ago [\#190844](#190844) by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")  Replied by *[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")* on topic *[field layout of address fields on checkout page](/forum/27-checkout/874604-field-layout-of-address-fields-on-checkout-page#190844 "-- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.3 -- Browser(s) name and version -- : latest  Hi, I'd like to re-arrange field-layout of address fields on checkout page. Can't find the right view. I've managed to do the same with the user-fields on the checkout-page but the address fields seem to be rendered different.  See screenshot please  thanks in advance.  Mark")*

Nicolas,

Your totally right, sometimes I'm thinking to difficult....

I've done it (see screenshot).

Thanks again.

Mark

- [ ![Screen&#95;Shot&#95;2015-02-16&#95;at&#95;09&#95;03&#95;44.jpg](/forum/attachment/22411) ](/forum/attachment/22411 "...t&#95;09&#95;03&#95;44.jpg") [ ](/forum/attachment/22411?download=1 "...t&#95;09&#95;03&#95;44.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDYwNC1maWVsZC1sYXlvdXQtb2YtYWRkcmVzcy1maWVsZHMtb24tY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) 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.099 seconds

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