Add link to registration form

  • Posts: 137
  • Thank you received: 2
13 years 7 months ago #12078

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

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12080

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.

  • Posts: 137
  • Thank you received: 2
13 years 7 months ago #12084

Can't i do something like this?

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12089

That HTML code is not valid. You need to do like that:

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.

  • Posts: 137
  • Thank you received: 2
13 years 7 months ago #12220

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12234

Could you do a screenshot of the problem ?

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

  • Posts: 137
  • Thank you received: 2
13 years 7 months ago #12356

The registration form

Attachments:
Last edit: 13 years 7 months ago by emergentec.

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

  • Posts: 137
  • Thank you received: 2
13 years 7 months ago #12357

The warning message

Attachments:
Last edit: 13 years 7 months ago by emergentec.

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

  • Posts: 137
  • Thank you received: 2
13 years 7 months ago #12359

And after correting this bug ( www.hikashop.com/en/support/forum/4-how-...istration.html#12221 ) it looks like this

Attachments:
Last edit: 13 years 7 months ago by emergentec.

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

  • Posts: 137
  • Thank you received: 2
13 years 7 months ago #12360

And now the text written in the language override isn't working either!

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12369

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.

  • Posts: 137
  • Thank you received: 2
13 years 7 months ago #12381

nicolas wrote:

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12383

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.054 seconds
Powered by Kunena Forum