Skip to main content

Add link to registration form

More
15 years 6 months ago #12078 by emergentec
Hi!

We would like to add a link "view" above the "accept EULA" radio button (see attached file) which shows the terms and conditions in a pop-up window? Where can I add this link?

Best regards

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

More
15 years 6 months ago #12080 by nicolas
All the custom fields labels can be translated.
You could add something like below in the override zone of your translation file (that you can find in the config under the tab languages when editing a translation):

ACCEPT_EULA="Accept <a target='_blank' href='LINK_TO_EULA'>EULA</a>"

That will open in a new window. If you want to make it a popup, that's a bit more complicated as you first need to load the modal.js library of joomla on that page (in your template maybe ?) and then you can use something like that:
ACCEPT_EULA="Accept <a class='modal' href='LINK_TO_EULA'>EULA</a>"

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

More
15 years 6 months ago #12084 by emergentec
Can't i do something like this?
Code:
ACCEPT_EULA="<a href='#' onclick='window.open('index.php','NewWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=400')'>view</a> and<br />accept EULA"

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

More
15 years 6 months ago #12089 by nicolas
That HTML code is not valid. You need to do like that:
Code:
ACCEPT_EULA="<a href='#' onclick='window.open(\'index.php\',\'NewWindow\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=400\')'>view</a> and<br />accept EULA"

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

More
15 years 6 months ago #12220 by emergentec
Thanks!

The problem is that the same message is displayed if you didn't accept the terms during registration. How can we avoid this and show a different message?

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

More
15 years 6 months ago #12234 by nicolas
Could you do a screenshot of the problem ?

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

More
15 years 6 months ago - 15 years 6 months ago #12356 by emergentec
The registration form

Last edit: 15 years 6 months ago by emergentec.

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

More
15 years 6 months ago - 15 years 6 months ago #12357 by emergentec
The warning message
Last edit: 15 years 6 months ago by emergentec.

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

More
15 years 6 months ago - 15 years 6 months ago #12359 by emergentec
And after correting this bug ( www.hikashop.com/en/support/forum/4-how-...istration.html#12221 ) it looks like this
Last edit: 15 years 6 months ago by emergentec.

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

More
15 years 6 months ago #12360 by emergentec
And now the text written in the language override isn't working either!

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

More
15 years 6 months ago #12369 by nicolas
If you edit your custom field, you should be able to customize the error message in order to display what you want when the checkbox is not ticked.

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

More
15 years 6 months ago #12381 by emergentec
nicolas wrote:

Code:
ACCEPT_EULA="<a href='#' onclick='window.open(\'index.php\',\'NewWindow\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=400\')'>view</a> and<br />accept EULA"

This code isn't working either, there is no pop-up coming up.

If you edit your custom field, you should be able to customize the error message in order to display what you want when the checkbox is not ticked.

Where can I customize the error message in the backend? There is no field custom error message with the checkbox option!

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

More
15 years 6 months ago #12383 by nicolas
Ah yes, you need to change the code:
allTypes = new Array('multivalues');
to:
allTypes = new Array('multivalues','required');

in the file administrator/components/com_hikashop/types/fields.php

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

Time to create page: 0.260 seconds
Powered by Kunena Forum