[Resolved] How to avoid the register_an_account checkbox

More
7 years 5 months ago #10744 by gmonamour
Hi,
I'd like that every guest that make a reservation is always registered to the site.
Is there a way to do that?
It should be enought that the checkbox is checked by default (please, see my screenshot)
On guestform_(mystyle).php I've tried to give a value to the label class="checkbox" input id="register_an_account_form" type="checkbox".
But it does not work.
Could you tell me what can I do to achieve that? Or what is the file where I can work?
Thanks a lot
Best regards

My site with Solidres www.gmonamour.it/
Attachments:

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

More
7 years 5 months ago #10756 by solidres
Hi,

Registration is optional at this moment.

If you want to force user registration, make sure that both username and password are inserted, otherwise registration will be ignored.

Regards,

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

More
7 years 5 months ago #10759 by gmonamour
Hi,
yes, I know that the system needs the username and password to create a new user.
In fact, I asked you how can I have the check box (Register with us for ...) checked by default?
If the check box will be checked by default the user could set his username and password directly.
So, is there a way to have the " Register with us for ..." (the one on my previous screenshot) check box checked by default?
Thanks a lot
Best regards

My site with Solidres www.gmonamour.it/

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

More
7 years 5 months ago #10772 by solidres
Hi,

You can edit the guestform.php and remove "style="display: none"" around line 259 for div.register_an_account_form

Regards,

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

More
7 years 5 months ago #10779 by gmonamour
yes,
that together the checkbox class="hidden" and value="1" works fine.
Thanks a lot
Best regards

My site with Solidres www.gmonamour.it/

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?