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

#   Adjust Login Switcher Page

##

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 3 months ago [\#166072](#166072) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166072 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")* was created by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.x

Hello.
I need to adjust the login "switcher" page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot).
What view(s) will I need to edit in order to complete this and can you give me any tips.

I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.

Unless you can tell me how I add/edit views to the Hikashop component.

- [ ![reg-page-switcher.jpg](/forum/attachment/18787) ](/forum/attachment/18787 "...e-switcher.jpg") [ ](/forum/attachment/18787?download=1 "...e-switcher.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#166087](#166087) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166087 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

Hi,

To have it in two steps you will mainly have to edit the view "checkout / login".
In this view, edit the display to have what you want, and then add some checks on the current step ($this-&gt;step).

If the step is, for example, 1 so display the different options, if it is 2, hide the options but display the form.
In step 1, when selecting the desired method, you can store the value in session, this way when on the second step load the desired form. When clicking on a button of the first step, submit the whole checkout form to move to step 2.

It can potentially require the edition of core file regarding the checks made on the forms to see if the fields are filled or not.

Conclusion, there is a lot of changes to do.

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 3 months ago [\#166159](#166159) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166159 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

How do I find these two files/data.
Code:

$this-&gt;loadTemplate('form');

and all the text loaded by the JTEXT class for example
Code:

JText::_('HIKA_REGISTRATION')

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MDEwNS1hZGp1c3QtbG9naW4tc3dpdGNoZXItcGFnZT90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

12 years 3 months ago [\#166175](#166175) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166175 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

The template form is: login_form that you can also find via Display-&gt;Views

All the text loaded by JText comes from the HikaShop language file that you can edit via the Languages tab of the HikaShop configuration.

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 3 months ago -  12 years 3 months ago [\#166254](#166254) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166254 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

It looks like the registration form is loaded in the "login" view using Code:

echo hikashop_getLayout('user','registration',$params,$js);

Could you explain that function to me or direct me to the source code for it.

Also, where would I find the javascript file (file location and code lines) that handles dynamically changing the switcher form from Login to Registration to Guest when the pertinent radio button is selected. It looks like it is the function named "displayRegistration()".

Thanks.

Last edit: 12 years 3 months ago by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MDEwNS1hZGp1c3QtbG9naW4tc3dpdGNoZXItcGFnZT90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

12 years 3 months ago [\#166259](#166259) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166259 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

That function allows us to load a view file's HTML from anywhere in HikaShop. Usually, we try to use the loadTemplate function of Joomla instead, but it only works for view files of the same view.
You can find the source code of that function in the file administrator/components/com_hikashop/helpers/helper.php, the core file of HikaShop. That's where you'll find the definition of all the functions starting with hikashop_

That's indeed the displayRegistration function you're looking for. It's defined in the login function of the file components/com_hikashop/views/checkout/view.html.php

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 3 months ago [\#166329](#166329) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166329 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

Thanks for your help on this I am getting there.

From this line in the checkout/login view Code:

echo JHTML::_('hikaselect.radiolist', $values, 'data[register][registration_method]', ' onchange="displayRegistration(this)"', 'value', 'text', $defaultSelection, false, false, true );

Where would I find the 'hikaselect.radiolist' helper function in the code. I think I want to either create my own helper or maybe just replace the JHTML function with my own php code.

Should I search the Joomla documentation for how to create a new helper? I am sure the original helper will be a good starting point as well.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MDEwNS1hZGp1c3QtbG9naW4tc3dpdGNoZXItcGFnZT90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

12 years 3 months ago [\#166377](#166377) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166377 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

The radiolist code is in administrator/components/com_hikashop/helpers/joomla30.php
We had to override the radiolist system of Joomla on 3.x so that it works properly on the frontend.

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 3 months ago [\#166656](#166656) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166656 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

How do I tell which view is being called by the load template call. For example from the user/registration view there are calls for:
Code:

echo $this-&gt;loadTemplate('bootstrap');

However there is are two bootstrap views "custom_fields_bootstrap" and "registration_bootstrap"

I am having similar problems understanding Code:

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

Since there are multiple address views.

Basically, I am trying to track down where the all the code that generates the HTML code for the various registration fields in the login switcher as shown in the screenshot. I have found the code for the login radiolist on the left thanks to your comments. I hope you can help.

- [ ![registration-page.jpg](/forum/attachment/18875) ](/forum/attachment/18875 "...ation-page.jpg") [ ](/forum/attachment/18875?download=1 "...ation-page.jpg")

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

12 years 3 months ago [\#166659](#166659) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166659 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

Hi,

loadTemplate is a Joomla function which allow to load a view (or sub view).
If your current view is "registration", loadTemplate('bootstrap') will load "registration_bootstrap".

$this-&gt;type is used in the view custom_fields in order to know which time of custom field the view as to display (user, address, etc).

Regards,

---

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

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 3 months ago [\#166749](#166749) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166749 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

Ok. Thanks. That makes sense. One last thing, if I want to add a view is that hard to do or would it be easier to just add the code to the existing pertinent view.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MDEwNS1hZGp1c3QtbG9naW4tc3dpdGNoZXItcGFnZT90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

12 years 3 months ago [\#166757](#166757) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#166757 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

It's way easier to add the code to an existing one.
When you add it to an existing one via the menu Display&gt;views, you don't loose the changes when you update HikaShop.
If you add new views, it's highly probable that you will loose your changes during each update.

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 3 months ago [\#167711](#167711) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#167711 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

Hi.
I have completed most of the changes however I have a problem with Guest Checkout. When the guest form is submitted I get the message "Please enter a value for the field password" in an alert box. I have included attachments of the files I edited. If you could look it over and help me identify the problem that would be great. At very minimum I need to know where the function that displays that error is defined and/or where the function validates the fields. Any help would be much appreciated. The Login and the Registration parts work fine. The link to the test site is [ www.inkacollective.com/testing/consilium/](http://www.inkacollective.com/testing/consilium/)

The only file I changed was the login view. I copy and pasted the javascript from the displayRegistration() function and modified it slightly for my uses, mainly just changing it so it got the value 2 and 3 from the div.id instead of the radio buttons. I left the extra code in there just to be safe. On a side note, in the part of the code where the js declaration is whenever I scroll to that section in the backend of joomla the screen freezes. I have tried copy and pasting from a text file to the login view as well.

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 3 months ago [\#167926](#167926) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Adjust Login Switcher Page](/forum/27-checkout/870105-adjust-login-switcher-page#167926 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.x  Hello. I need to adjust the login &quot;switcher&quot; page slightly. Basically, I will be changing the page to separate the login in to two more steps. Step 1 - user selects register, login or guest checkout and Step 2 - the process for their selection (See screenshot). What view(s) will I need to edit in order to complete this and can you give me any tips.  I will most likely do this using javascript/CSS in order to avoid having to hack the actual php code much. The reason I think this will be hard to do in two steps is because I think your code is set up that it would be hard to submit the page.  Unless you can tell me how I add/edit views to the Hikashop component.")*

Seemed to have figured it out. Just added back the login switcher radio list and hid it. Then added javascript code that switches the radio buttons when the custom divs are selected. That way it still calls hikashops field Check Function.

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

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

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