Skip to main content

Support Policy

We only provide official support for Solidres's subscribers, all subscribers can request support by using forum or support ticket system. For more information please check our Support Policy at www.solidres.com/support-policy

Experience - auto registration

More
8 years 2 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
8 years 2 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

Attachment book-now-button.png not found



Redirect to login popup for guests only

Attachment login-popup.png not found

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

More
8 years 2 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
8 years 2 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
8 years 2 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

Attachment logged-in-user.png not found



GUEST USER

Attachment guest-user.png not found

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

More
8 years 2 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

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