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

#   Change display of switcher method

##

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

Less More

- Posts: 25
- Thank you received: 2
-
-

13 years 1 month ago [\#127889](#127889) by [mgainey](/forum/user/22191-mgainey "View mgainey's Profile")  *[Change display of switcher method](/forum/27-checkout/862795-change-display-of-switcher-method#127889 "-- url of the page with the problem -- :   www.infinitygadgets.com  -- HikaShop version -- : Latest version -- Joomla version -- : 3.1 -- PHP version -- : 5.3  I wish to achieve the following: When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'. BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.  I would also like to change the heading on the guest module from'address information' to 'biling address'  Many thanks")* was created by *[mgainey](/forum/user/22191-mgainey "View mgainey's Profile")*

-- url of the page with the problem -- : [ www.infinitygadgets.com](http://www.infinitygadgets.com)
-- HikaShop version -- : Latest version
-- Joomla version -- : 3.1
-- PHP version -- : 5.3

I wish to achieve the following:
When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'.
BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.

I would also like to change the heading on the guest module from'address information' to 'biling address'

Many thanks

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

13 years 1 month ago [\#127948](#127948) 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 *[Change display of switcher method](/forum/27-checkout/862795-change-display-of-switcher-method#127948 "-- url of the page with the problem -- :   www.infinitygadgets.com  -- HikaShop version -- : Latest version -- Joomla version -- : 3.1 -- PHP version -- : 5.3  I wish to achieve the following: When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'. BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.  I would also like to change the heading on the guest module from'address information' to 'biling address'  Many thanks")*

Hi,

Your problem is coming from a [ CSS ](http://www.hikashop.com/support/84-css-styling.html)issue, using this [ CSS ](http://www.hikashop.com/support/84-css-styling.html)code will probably do the job : Code:

.hikashop_hidden_checkout{ display:none; }

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

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

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

Less More

- Posts: 25
- Thank you received: 2
-
-

13 years 1 month ago [\#127976](#127976) by [mgainey](/forum/user/22191-mgainey "View mgainey's Profile")  Replied by *[mgainey](/forum/user/22191-mgainey "View mgainey's Profile")* on topic *[Change display of switcher method](/forum/27-checkout/862795-change-display-of-switcher-method#127976 "-- url of the page with the problem -- :   www.infinitygadgets.com  -- HikaShop version -- : Latest version -- Joomla version -- : 3.1 -- PHP version -- : 5.3  I wish to achieve the following: When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'. BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.  I would also like to change the heading on the guest module from'address information' to 'biling address'  Many thanks")*

Many thanks for your quick reply.
I can't find where to change the login preference text from identification to something else? I would also like to have the page be on guest as default, how would I do this?

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

13 years 1 month ago [\#128005](#128005) 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 *[Change display of switcher method](/forum/27-checkout/862795-change-display-of-switcher-method#128005 "-- url of the page with the problem -- :   www.infinitygadgets.com  -- HikaShop version -- : Latest version -- Joomla version -- : 3.1 -- PHP version -- : 5.3  I wish to achieve the following: When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'. BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.  I would also like to change the heading on the guest module from'address information' to 'biling address'  Many thanks")*

1. You'll probably be able to change it by editing your[ translation file ](http://www.hikashop.com/download/languages.html#translate)
2. If you want "guest" to be the default value you'll have to edit the **login** file of your **checkout** view of your **front-end template** through "*Hikashop-&gt;Display-&gt;Views*" : Code:

if($display_login){ $defaultSelection = 'login'; }

By : Code:

if($display_login){ $defaultSelection = '2'; }

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

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

Less More

- Posts: 25
- Thank you received: 2
-
-

13 years 1 month ago [\#128050](#128050) by [mgainey](/forum/user/22191-mgainey "View mgainey's Profile")  Replied by *[mgainey](/forum/user/22191-mgainey "View mgainey's Profile")* on topic *[Change display of switcher method](/forum/27-checkout/862795-change-display-of-switcher-method#128050 "-- url of the page with the problem -- :   www.infinitygadgets.com  -- HikaShop version -- : Latest version -- Joomla version -- : 3.1 -- PHP version -- : 5.3  I wish to achieve the following: When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'. BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.  I would also like to change the heading on the guest module from'address information' to 'biling address'  Many thanks")*

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 2.2.2
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;?php
if(!$this-&gt;identified){
$this-&gt;nextButton = false;
$params = null; $js = null;
$classLogin = "hikashop_hidden_checkout";
$classRegistration = "";
$defaultSelection = '2';
$span='';

$display_login = $this-&gt;config-&gt;get('display_login',1);

$sr = explode(',', $this-&gt;simplified_registration);
$this-&gt;registration = array(0=&gt;false,1=&gt;false,2=&gt;false,3=&gt;false);
foreach($sr as $r) {
$this-&gt;registration[ (int)$r ] = true;
}
$registration_count = count($sr);

if($display_login){
$classLogin = '';
$classRegistration = 'hikashop_hidden_checkout';
$defaultSelection = 'login'; &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; I changed this to 2 with no effect, did I do this right, am i in the right place?

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

13 years 1 month ago [\#128117](#128117) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Change display of switcher method](/forum/27-checkout/862795-change-display-of-switcher-method#128117 "-- url of the page with the problem -- :   www.infinitygadgets.com  -- HikaShop version -- : Latest version -- Joomla version -- : 3.1 -- PHP version -- : 5.3  I wish to achieve the following: When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'. BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.  I would also like to change the heading on the guest module from'address information' to 'biling address'  Many thanks")*

Hi,

You have to add this line: Code:

$defaultSelection = '2';

Before: Code:

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

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

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

Less More

- Posts: 25
- Thank you received: 2
-
-

13 years 1 month ago [\#128131](#128131) by [mgainey](/forum/user/22191-mgainey "View mgainey's Profile")  Replied by *[mgainey](/forum/user/22191-mgainey "View mgainey's Profile")* on topic *[Change display of switcher method](/forum/27-checkout/862795-change-display-of-switcher-method#128131 "-- url of the page with the problem -- :   www.infinitygadgets.com  -- HikaShop version -- : Latest version -- Joomla version -- : 3.1 -- PHP version -- : 5.3  I wish to achieve the following: When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'. BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.  I would also like to change the heading on the guest module from'address information' to 'biling address'  Many thanks")*

Thanks for your reply,
I added the code as shown and whne checking out the radio button was on 'Guest' but the login module was displayed and not the guest details section, as the shop is currently live I have removed the code to sotp confusion.

Any ides on how to rectify this?

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

13 years 1 month ago [\#128198](#128198) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Change display of switcher method](/forum/27-checkout/862795-change-display-of-switcher-method#128198 "-- url of the page with the problem -- :   www.infinitygadgets.com  -- HikaShop version -- : Latest version -- Joomla version -- : 3.1 -- PHP version -- : 5.3  I wish to achieve the following: When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'. BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.  I would also like to change the heading on the guest module from'address information' to 'biling address'  Many thanks")*

At the end of the view, thanks to add the following code: Code:

&lt;script type="text/javascript"&gt; var guest = { value: '2', checked: '1' }; displayRegistration(guest); &lt;/script&gt;

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

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

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

Less More

- Posts: 22
- Thank you received: 1
-
-

13 years 1 month ago [\#129438](#129438) by [jarinz](/forum/user/7778-jarinz "View jarinz's Profile")  Replied by *[jarinz](/forum/user/7778-jarinz "View jarinz's Profile")* on topic *[Change display of switcher method](/forum/27-checkout/862795-change-display-of-switcher-method#129438 "-- url of the page with the problem -- :   www.infinitygadgets.com  -- HikaShop version -- : Latest version -- Joomla version -- : 3.1 -- PHP version -- : 5.3  I wish to achieve the following: When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'. BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.  I would also like to change the heading on the guest module from'address information' to 'biling address'  Many thanks")*

I have followed the info on this thread and all is now good except I wanted to change the 'Register' button to say 'Confirm' for guest users but I can't find where/how to do this?

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

13 years 1 month ago [\#129498](#129498) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Change display of switcher method](/forum/27-checkout/862795-change-display-of-switcher-method#129498 "-- url of the page with the problem -- :   www.infinitygadgets.com  -- HikaShop version -- : Latest version -- Joomla version -- : 3.1 -- PHP version -- : 5.3  I wish to achieve the following: When you have the checkout in switcher mode, I would like it so the default display is 'guest' with the option to choose 'register' or 'login'. BUT when you choose the various options it only displays the needed infomation, so if you select 'login' ONLY the login form displays, or if you chose 'guest' only the email and address section is displayed.  I would also like to change the heading on the guest module from'address information' to 'biling address'  Many thanks")*

Hi,

You have to make a translation override, here is the documentation:
[ www.hikashop.com/support/faq.html#tran](http://www.hikashop.com/support/faq.html#tran)

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

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