- Posts: 272
- Thank you received: 13
Change Registration form order
- deltafidesign
-
Topic Author
- Offline
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.1
-- Browser(s) name and version -- : every
-- Error-message(debug-mod must be tuned on) -- : none
Hi,
I would change the way the registration form displays "tabs" for Registration fields and for Adress fields.
I would show first Adress fields for Hikashop, then show the Registration fields.
How to?
Please Log in or Create an account to join the conversation.
You have to override the view "user | registration_bootstrap" (if you are using the bootstrap design mode, if not, override the view "user | registration").
You will be able to change all html element position.
The registration view use the view "user | custom_fields_bootstrap" (or "user | custom_fields") to display the user custom fields and the address (custom) fields.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
- deltafidesign
-
Topic Author
- Offline
- Posts: 272
- Thank you received: 13
I've already edited registration_bootstrap this way:
This way I can show 2 text area fields, one for privacy policy and another one for terms and conditions. After those 2 text areas I would like to show 2 radio fields (yes or not) to accept those policy and terms. I've created 2 radio fields in user Tab. But those are shown after the core registration fields.
How can I show those 2 custom radio fields soon after the 2 texarea I've created in the view and put them all the the bottom of the registration form, also after the address fields?
Please Log in or Create an account to join the conversation.
$this->type = 'user';
echo $this->loadTemplate();
after the lines:
$this->type = 'address';
echo $this->loadTemplate();
Please Log in or Create an account to join the conversation.
- deltafidesign
-
Topic Author
- Offline
- Posts: 272
- Thank you received: 13
Please Log in or Create an account to join the conversation.
- deltafidesign
-
Topic Author
- Offline
- Posts: 272
- Thank you received: 13
Please Log in or Create an account to join the conversation.
By creating the custom fields and change their position (the ordering) ?
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
- deltafidesign
-
Topic Author
- Offline
- Posts: 272
- Thank you received: 13
Jerome wrote: By creating the custom fields and change their position (the ordering) ?
How can I change their order if they are into user table and I want them to be shown into Registration tab fields (name, username, email, password etc...)
I've created those fields in user tab because no "registration" tab is allowed between options. Any solution?
Please Log in or Create an account to join the conversation.
User custom fields are displayed thanks to this part of code:
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
- deltafidesign
-
Topic Author
- Offline
- Posts: 272
- Thank you received: 13
That's where I tryed to put it, soon after:
Where can I move it so it can display custom fields before "registration" default fields?
Please Log in or Create an account to join the conversation.
- deltafidesign
-
Topic Author
- Offline
- Posts: 272
- Thank you received: 13
Missing the first line if move at the top of the form. Seems work fine now
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I'm not sure what you're asking.
If you want to change the order of the custom address fields, you can do that in the menu Display>Custom fields.
If you want to change the order of other fields or the address position, with the new checkout, you'll have to edit the file "sub_block_login_registration" via the menu Display>Views.
The exact modification will depend on what you exactly want to do.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I don't see how it can't be there with recent versions of HikaShop as that's the view file displaying the registration for the new checkout:
monosnap.com/file/U3CU61MKrsoeFvf5ZudardbejjVHvK
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.