Experience - auto registration

More
5 years 7 months ago #11995 by Thellie
Replied by Thellie on topic Experience - auto registration
Oh hang on, this isn't doing quite what I want it to at the moment...

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #12002 by Thellie
Replied by Thellie on topic Experience - auto registration
I'm stuck on this after all...

I had a look in the com_solidres->controller.php for some clues. There's some redirect code in a switch statement for guests, which I wondered whether could be adapted for what I want to do?

The 'Book Now' button on the experience page - I would like it to redirect to the login popup, if the user isn't logged in. Is this possible?

Book Now button


Redirect to login popup for guests only
Attachments:

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #12007 by solidres
Replied by solidres on topic Experience - auto registration
Hi,

We are sorry but it is not a minor modification therefore you may want to request our Custom Development service.

Regards,
The following user(s) said Thank You: Thellie

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #12008 by Thellie
Replied by Thellie on topic Experience - auto registration
Ah okay... I may have to think of another way then...

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #12011 by Thellie
Replied by Thellie on topic Experience - auto registration
FINALLY worked out a way of doing this...

In your plugins/solidres/experience/components/com_solidres/views/experience/tmpl/default_form.php

I added some code to check whether the user is logged in or not. If logged in, the 'Book Now' button shows, but if not, a message shows instead, and links to the login page:

LOGGED IN USER


GUEST USER
Attachments:

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #12014 by solidres
Replied by solidres on topic Experience - auto registration
Hi,

Thank you for your update, it seems to be a very nice way to solve this issue without changing a lot of code.

You should also make it as a template override to avoid being overwritten in future update.

Regards,

Please Log in or Create an account to join the conversation.

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?