Custom field like "Privacy Policy" with link to document

  • x-bit
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 6 months ago - 3 years 6 months ago #149759 by x-bit
Hello,
I would have to create another checkbox which has to be accepted by the user like the 'Privacy Policy' which Membership Pro already provides.

I'm sure that this question has been asked before, but I can't find any documentation about the settings in the back end.

Thanks!
Last edit: 3 years 6 months ago by x-bit.

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

More
3 years 6 months ago #149760 by Tuan Pham Ngoc
Hello

I'm sorry but there is not a way to create a field like that. I guess the easiest way would be customizing the file components/com_osmembership/view/register/tmpl/default_gdpr.php and add similar checkbox

Tuan

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

  • x-bit
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 6 months ago - 3 years 6 months ago #149765 by x-bit
Hm... can I override this file?
If yes, how would I have to do this?

EDIT: Yes, I can and that did the trick. Thanks Tuan!
Last edit: 3 years 6 months ago by x-bit.

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

More
3 years 6 months ago #149792 by Tuan Pham Ngoc
Great. Please remember to move that modified file to PATH_TO_TEMPLATE/html/com_osmembership/register folder so that the change won't be lost when you update to future releases of the extension

PATH_TO_TEMPLATE is path to the template which you are using on your site

Tuan

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

  • x-bit
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 6 months ago - 3 years 6 months ago #150016 by x-bit
I just wanted to give my solution to this problem.

The easiest way to do this, is to group it together with the "Terms and conditions" field by creating a language override of OSM_ACCEPT in the Joomla back end under "Extension - Language - Override".

There I used a mix of descriptive text an <a href=....> statements to the different documents.

As I have to ensure ever new subscriber must check this box, that's doing the work.
Last edit: 3 years 6 months ago by x-bit.

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