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

#   Custom Message for Guest Registration

##

- **[ji\_jenny2110](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile")**
- [![ji&#95;jenny2110's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile") Topic Author
- [ Offline](/forum/user/57207-ji-jenny2110)

Less More

- Posts: 3
- Thank you received: 0
-
-

8 years 2 months ago [\#298184](#298184) by [ji\_jenny2110](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile")  *[Custom Message for Guest Registration](/forum/27-checkout/895767-custom-message-for-guest-registration#298184 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  We are using the Business Edition of Hikashop.  I am using the switcher on the checkout. But I would like to publish custom messages for each option (login, registration and guest). I have managed to publish custom messages for login (view: sub&#95;block&#95;login&#95;form) and registration (view: sub&#95;block&#95;login&#95;registration - inside the div id=&quot;hikashop&#95;registration&#95;name&#95;line&quot; as it is not published on the guest view), but I cant find a way to publish a custom message on the Guest view. Always when I try, for example, in the div class=&quot;hikashop&#95;registration&#95;email&#95;line&quot;, it is also published on the registration tab, as these fields are used for both tabs.  Unfortunaly I have not much (better say none) knowledge of php.  Could you give me a hint to archieve that?  Thanks and best regards Jenny")* was created by *[ji\_jenny2110](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile")*

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.10
-- PHP version -- : 7.2
-- Browser(s) name and version -- : chrome

We are using the Business Edition of Hikashop.

I am using the switcher on the checkout. But I would like to publish custom messages for each option (login, registration and guest).
I have managed to publish custom messages for login (view: sub_block_login_form) and registration (view: sub_block_login_registration - inside the div id="hikashop_registration_name_line" as it is not published on the guest view), but I cant find a way to publish a custom message on the Guest view. Always when I try, for example, in the div class="hikashop_registration_email_line", it is also published on the registration tab, as these fields are used for both tabs.

Unfortunaly I have not much (better say none) knowledge of php.

Could you give me a hint to archieve that?

Thanks and best regards
Jenny

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

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

Less More

- Posts: 200
- Thank you received: 75
-
-

8 years 2 months ago [\#298188](#298188) by [GW](/forum/user/33851-gw "View GW's Profile")  Replied by *[GW](/forum/user/33851-gw "View GW's Profile")* on topic *[Custom Message for Guest Registration](/forum/27-checkout/895767-custom-message-for-guest-registration#298188 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  We are using the Business Edition of Hikashop.  I am using the switcher on the checkout. But I would like to publish custom messages for each option (login, registration and guest). I have managed to publish custom messages for login (view: sub&#95;block&#95;login&#95;form) and registration (view: sub&#95;block&#95;login&#95;registration - inside the div id=&quot;hikashop&#95;registration&#95;name&#95;line&quot; as it is not published on the guest view), but I cant find a way to publish a custom message on the Guest view. Always when I try, for example, in the div class=&quot;hikashop&#95;registration&#95;email&#95;line&quot;, it is also published on the registration tab, as these fields are used for both tabs.  Unfortunaly I have not much (better say none) knowledge of php.  Could you give me a hint to archieve that?  Thanks and best regards Jenny")*

Hi,

you can't achieve that with PHP only since switching between the registration and guest form is done with Javascript, without reloading the entire page. You can find the Javascript code for this in the view file **show\_block\_login** from line 199 onwards.

If you study the code for a bit, you can see for example that the password field is given the variable *pwd*, which gets a display of "none" when the guest tab is selected (line 311).

If you want to add a custom message only when the guest form is selected, you could add your message in the view **sub\_block\_login\_registration** wherever you want and give the html element a unique id. Then add it along with the Javascript in the view **show\_block\_login**, simply follow along with the pwd, everywhere it gets a display of none you want to show your message, and vice versa.

Hope that helps!

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile"), [ji\_jenny2110](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile")

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

- **[ji\_jenny2110](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile")**
- [![ji&#95;jenny2110's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile") Topic Author
- [ Offline](/forum/user/57207-ji-jenny2110)

Less More

- Posts: 3
- Thank you received: 0
-
-

8 years 2 months ago [\#298191](#298191) by [ji\_jenny2110](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile")  Replied by *[ji\_jenny2110](/forum/user/57207-ji-jenny2110 "View ji&#95;jenny2110's Profile")* on topic *[Custom Message for Guest Registration](/forum/27-checkout/895767-custom-message-for-guest-registration#298191 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  We are using the Business Edition of Hikashop.  I am using the switcher on the checkout. But I would like to publish custom messages for each option (login, registration and guest). I have managed to publish custom messages for login (view: sub&#95;block&#95;login&#95;form) and registration (view: sub&#95;block&#95;login&#95;registration - inside the div id=&quot;hikashop&#95;registration&#95;name&#95;line&quot; as it is not published on the guest view), but I cant find a way to publish a custom message on the Guest view. Always when I try, for example, in the div class=&quot;hikashop&#95;registration&#95;email&#95;line&quot;, it is also published on the registration tab, as these fields are used for both tabs.  Unfortunaly I have not much (better say none) knowledge of php.  Could you give me a hint to archieve that?  Thanks and best regards Jenny")*

Thanks a lot! That worked like a charm!

Best regards Jenny

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

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