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

#   Registration fields order

##

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

Less More

- Posts: 80
- Thank you received: 0
-
-

8 years 3 months ago [\#295991](#295991) by [idimarco](/forum/user/40745-idimarco "View idimarco's Profile")  *[Registration fields order](/forum/27-checkout/895374-registration-fields-order#295991 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.7 -- PHP version -- : 7.0.3  Hi  How to move the Terms and Privacy boxes at the bottom of the registration form? Please note that Terms and Privacy boxes have been created as USER custom fields (see printscreen).  How to align the check box line &quot;Tick the box to receive our ads (optional)&quot; ?  Thanks in advance Imma")* was created by *[idimarco](/forum/user/40745-idimarco "View idimarco's Profile")*

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.7
-- PHP version -- : 7.0.3

Hi

How to move the Terms and Privacy boxes at the bottom of the registration form?
Please note that Terms and Privacy boxes have been created as USER custom fields (see printscreen).

How to align the check box line "Tick the box to receive our ads (optional)" ?

Thanks in advance
Imma

- [ ![boxes.JPG](/forum/attachment/44375) ](/forum/attachment/44375 "boxes.JPG") [ ](/forum/attachment/44375?download=1 "boxes.JPG")
- [ ![checkoutregistration.JPG](/forum/attachment/44376) ](/forum/attachment/44376 "...gistration.JPG") [ ](/forum/attachment/44376?download=1 "...gistration.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTM3NC1yZWdpc3RyYXRpb24tZmllbGRzLW9yZGVyP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

8 years 3 months ago [\#296034](#296034) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Registration fields order](/forum/27-checkout/895374-registration-fields-order#296034 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.7 -- PHP version -- : 7.0.3  Hi  How to move the Terms and Privacy boxes at the bottom of the registration form? Please note that Terms and Privacy boxes have been created as USER custom fields (see printscreen).  How to align the check box line &quot;Tick the box to receive our ads (optional)&quot; ?  Thanks in advance Imma")*

Hi,

You'll have to edit the file "sub_block_login_registration.php" via the menu Display-&gt;Views and move the piece: Code:

// Custom fields $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 } }

after the piece: Code:

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) { // $oneExtraField-&gt;registration_page = @$this-&gt;registration_page; ?&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'; // if($oneExtraField-&gt;field_required) // $classname .= ' required'; 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;options['same_address'])) { ?&gt; &lt;div class="hkform-group control-group hikashop_registration_same_address_line" id="hikashop_address_&lt;?php echo $this-&gt;step . '_' . $this-&gt;module_position . '_same_address'; ?&gt;"&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;input class="hikashop_checkout_same_address_checkbox" id="hikashop_address_&lt;?php echo $this-&gt;step . '_' . $this-&gt;module_position . '_same_address_input'; ?&gt;" type="checkbox" name="data[same_address]" value="1"/&gt; &lt;label for="hikashop_address_&lt;?php echo $this-&gt;step . '_' . $this-&gt;module_position . '_same_address_input'; ?&gt;"&gt;&lt;?php echo JText::_('SAME_FOR_SHIPPING'); ?&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } }

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

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

Less More

- Posts: 80
- Thank you received: 0
-
-

8 years 3 months ago [\#296096](#296096) by [idimarco](/forum/user/40745-idimarco "View idimarco's Profile")  Replied by *[idimarco](/forum/user/40745-idimarco "View idimarco's Profile")* on topic *[Registration fields order](/forum/27-checkout/895374-registration-fields-order#296096 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.7 -- PHP version -- : 7.0.3  Hi  How to move the Terms and Privacy boxes at the bottom of the registration form? Please note that Terms and Privacy boxes have been created as USER custom fields (see printscreen).  How to align the check box line &quot;Tick the box to receive our ads (optional)&quot; ?  Thanks in advance Imma")*

Thanks a lot. It works fine for the registration form which is desplayed during the checkout.
However, regarding the registration form desplayed once I click on the button “register” ( user/form php), I still see 2 different user/custom_fields.php sections: one dedicated to checkboxes for Privacy and Terms which is desplayed before the one dedicated to telephone field and checkbox for newsletter (from AcyMailing).

I would like to move checkboxes for Privacy and Terms at the bottom of the registration form. How to do that?
Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTM3NC1yZWdpc3RyYXRpb24tZmllbGRzLW9yZGVyP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

8 years 3 months ago [\#296103](#296103) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Registration fields order](/forum/27-checkout/895374-registration-fields-order#296103 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.7 -- PHP version -- : 7.0.3  Hi  How to move the Terms and Privacy boxes at the bottom of the registration form? Please note that Terms and Privacy boxes have been created as USER custom fields (see printscreen).  How to align the check box line &quot;Tick the box to receive our ads (optional)&quot; ?  Thanks in advance Imma")*

Hi,

For the registration form page, it's indeed in another view file.
You need to edit the file "registration" of the view "user" and swap: Code:

$this-&gt;type = 'user';

and: Code:

$this-&gt;type = 'address';

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

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

Less More

- Posts: 80
- Thank you received: 0
-
-

8 years 3 months ago [\#296136](#296136) by [idimarco](/forum/user/40745-idimarco "View idimarco's Profile")  Replied by *[idimarco](/forum/user/40745-idimarco "View idimarco's Profile")* on topic *[Registration fields order](/forum/27-checkout/895374-registration-fields-order#296136 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.7 -- PHP version -- : 7.0.3  Hi  How to move the Terms and Privacy boxes at the bottom of the registration form? Please note that Terms and Privacy boxes have been created as USER custom fields (see printscreen).  How to align the check box line &quot;Tick the box to receive our ads (optional)&quot; ?  Thanks in advance Imma")*

Thanks a lot!

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

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