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

#   Different form fields for guest and user in checkout

##

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

Less More

- Posts: 128
- Thank you received: 3
-
-

9 years 7 months ago [\#267889](#267889) by [deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")  *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#267889 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")* was created by *[deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.3.24

I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?

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

9 years 7 months ago [\#267897](#267897) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#267897 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

Hi,

The guest checkout will revmoe the username and password fields.
There is no setting to have different custom address fields between the registration and the guest checkout.
What you could do is to disable the custom address fields and instead use custom order fields.
With them, you can restrict them by user group thanks to the "access level" setting. That way, you can set the fields you don't want for guests as only for the "registered" user group.

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

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

Less More

- Posts: 128
- Thank you received: 3
-
-

9 years 7 months ago [\#267929](#267929) by [deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")  Replied by *[deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#267929 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

Don't I need the address fields enabled for calculating shipping rates in the checkout and also for if a registered user wants to manage their addresses?

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

9 years 7 months ago [\#267930](#267930) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#267930 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

Hello,

It depends the shipping methods you're using ; but yes, that's best to have the basis address fields (name, street, postcode, state, country) in order to get precise quote from dynamic shipping methods (ups, usps, fedex, canadapost) and some payment plugin might need to have these details too.

Afterwards, a guest account or a regular account would have access to the address edition within the checkout.
For sure a regular account will have the possibility to login later and access to the user control panel, see his order history, manage his addresses, etc.

Regards,

---

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

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

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

Less More

- Posts: 128
- Thank you received: 3
-
-

9 years 7 months ago [\#268147](#268147) by [deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")  Replied by *[deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#268147 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

If I create a new view say named 'guestform' under the com_users/registration directory can I use hikashop_getLayout to display the view? I see in the checkout/login view the code hikashop_getLayout('user','registration',$params,$js), but doesn't that display the default view in the com_users/registration directory?

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

9 years 7 months ago [\#268149](#268149) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#268149 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

Hi,

You could yes, but that won't help. Even if you don't display the fields, the registration/guest checkout systems will check the fields if they are required and if they are missing, it won't accept it.
So you would also have to modify the code in administrator/components/com_hikashop/classes/user.php and/or administrator/components/com_hikashop/classes/field.php
But it won't be easy.

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

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

Less More

- Posts: 128
- Thank you received: 3
-
-

8 years 7 months ago [\#291639](#291639) by [deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")  Replied by *[deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#291639 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

The fields I really need displayed on registration but not on guest are custom user fields not address fields. Can I not set these fields to work like the username and password fields do?

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

8 years 7 months ago -  8 years 7 months ago [\#291657](#291657) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#291657 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

Hello,

Sorry but we don't understand what you mean by "***work like the username and password fields do?***".
Can you precise your idea ?
Awaiting news from you.

Regards

Last edit: 8 years 7 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 128
- Thank you received: 3
-
-

8 years 7 months ago [\#291705](#291705) by [deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")  Replied by *[deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#291705 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

I have specific custom user fields that need to be included in the checkout registration form but not included in the guest checkout form behaving exactly like the username and password fields.

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

8 years 7 months ago -  8 years 7 months ago [\#291729](#291729) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#291729 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

Hello,

Ok so you mean to don't display in the **guest checkout form**, I think that you can use some **css command** with ***display: none;*** in the guest checkout.

Something like this : Code:

.guest_class_form .custom_field_class { display: none; }

See [ **this tutorial**](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html) to see how to proceed to add custom css

Now, if your custom field are **required** that will leads to something more advance like an **override view** to prevent this field to "really" don't displayed in the view, as Nicolas told in his previous message.

See [ **this tutorial**](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout) to learn more about **HikaShop override view**.

The last solution if the custom is too advance for you, you can [ **contact one of our partner**](https://www.hikashop.com/home/our-partners.html).
Hope that you will achieved what you need.

Regards

Last edit: 8 years 7 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 128
- Thank you received: 3
-
-

8 years 7 months ago [\#291789](#291789) by [deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")  Replied by *[deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#291789 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

I know how to do CSS for the fields. How do I handle that the fields are required in the registration checkout form and I don't want them to be in the guest checkout form?

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

8 years 7 months ago -  8 years 7 months ago [\#291818](#291818) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#291818 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

Hello,

By an override view of ***checkout / show\_block\_login*** view that will required some **html &amp; php knowledge**.
For the theory, you have to **add an algorithm in order to prevent displaying** unwanted custom fields when you are in guest html part.

See [ **this documentation**](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout) to learn more about HikaShop override system.

Regards

Last edit: 8 years 7 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 128
- Thank you received: 3
-
-

8 years 6 months ago [\#291983](#291983) by [deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")  Replied by *[deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#291983 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

Which view or file writes the javascript function displayRegistration()? I've looked everywhere I can think of and I can't find it. Thanks

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile")
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 6 months ago [\#291986](#291986) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#291986 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

Hi,

I suggest you to check jquery validator plugin. You then could create custom fields you need and show/hide them based on checked form.... you can set required whenever you need and also custom error messages under every input. It looks much better insteed those annoying joomla messages under checkout.

I have added same thing what you are looking for using that plugin and it looks and works much better....

Thanks

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

8 years 6 months ago [\#292022](#292022) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#292022 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

The displayRegistration function is located in the file "show_block_login" that you can edit via the menu Display&gt;Views:
[ monosnap.com/file/X4x5kcPcfv0ssFLZvazVx0HrSLVmCI](https://monosnap.com/file/X4x5kcPcfv0ssFLZvazVx0HrSLVmCI)

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

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

Less More

- Posts: 128
- Thank you received: 3
-
-

8 years 6 months ago [\#292051](#292051) by [deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")  Replied by *[deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#292051 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

i don't have a "show_block_login" view

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

8 years 6 months ago [\#292075](#292075) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Different form fields for guest and user in checkout](/forum/27-checkout/889910-different-form-fields-for-guest-and-user-in-checkout#292075 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.24  I want to use the switcher in the configuration for the checkout so people have the choice to checkout as a guest or create an account during registration. The problem is if they checkout as guest I need their address fields, email, and DOB to be required. If they checkout as a user and want to register an account I need username, password, address fields, email, DOB, and a couple other fields to be required. Currently when I enable the switcher the same amount of fields are required in the guest checkout as the registration. How can I have it where I only have certain fields in the guest checkout? Does this require a custom plugin or something?")*

Hi,

Ah, I had missed the fact that you were on HikaShop 2.6.1.
In that case, it's the file components/com_hikashop/views/checkout/view.html.php where you'll find that.

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

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