Forums

Custom field in the Admin email Registration

stefanato 04 Feb, 2016
I use chronoform 5 as Joomla registration with some custom fields. I have activated the option that the registration must be approved by ADMIN; and it's works.
The thing I need, is to insert in the ADMIN activation email also some custom fields. How it's possible ? it' necessary to hack joomla core ?

Suggestions are welcome. Thanks in advance.
GreyHead 05 Feb, 2016
Hi Stefanato,

I have just replied to your email with the same question.

The administration confirmation email is sent by Joomla!, not by ChronoForms. I don't know any simple way of adding form data to it.

You can send a confirmation email from the form including form data. You will need to get the user validation link to build the confirmation URL though. I think that you can get that from the User information after the Joomla! Registration action is complete.

Bob
sh-si 29 Feb, 2016
Hey Greyhead,

i think i have to correct you a little bit:
The definition of mail contents is located in chronoforms, for sending chronoforms5 uses Joomla Core.

I just spent some (too much๐Ÿ˜Ÿ ) hours to investigate where the code of the ConfirmationEmail from Chronoforms5 exactly is.

First i tried
components\com_users\models\registration.php

But none of my debug code was executed.๐Ÿ˜Ÿ

Then i found
administrator\components\com_chronoforms5\chronoforms\actions\joomla_registration\joomla_registration.php


And there it is!
In Line 256 I found the code for the emailsubject and so on...

My challenge is: Adding some custom fields to user registration process mails.

When Chronoforms would be using those core components, then there would be an ability to override this code.
Have a look at: https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core

But now i'm lost๐Ÿ˜Ÿ

Do you have an idea how to get closer to any solution?๐Ÿ˜‰

Thanks,
Stefan
GreyHead 01 Mar, 2016
Hi sh-si,

My apologies, I didn't know that. It's still probably simpler to use a ChronoForms email and edit the template there rather than to hack the Joomla! language files.

Bob
This topic is locked and no more replies can be posted.