- Posts: 103
- Thank you received: 1
Add an additional email field.
- Jeff
- Topic Author
- Offline
- Premium Member
Less
More
10 years 6 months ago #45436
by Jeff
Add an additional email field. was created by Jeff
Hi, I'd like to add an additional email field to a subscription form that would then be used to forward a copy of the subscribers confirmation email to the additional email address.
My client wishes to have an affiliate create a subscriber and get a copy of the confirmation with the membership number. Is this possible? I know this would require additional coding but don't know where to start.
Thanks
My client wishes to have an affiliate create a subscriber and get a copy of the confirmation with the membership number. Is this possible? I know this would require additional coding but don't know where to start.
Thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
10 years 6 months ago #45492
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Add an additional email field.
Hi Jeff
It will require some additional programming like you said.
1. First you can go to Membership Pro -> Custom Fields, create the additional field for email, that's not difficult.
2. Then you will need to customize sendEmails function in components/com_osemmbership/helper/helper.php to send that additinal email to the email which the user entered.
Regards,
Tuan
It will require some additional programming like you said.
1. First you can go to Membership Pro -> Custom Fields, create the additional field for email, that's not difficult.
2. Then you will need to customize sendEmails function in components/com_osemmbership/helper/helper.php to send that additinal email to the email which the user entered.
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Jeff
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 103
- Thank you received: 1
10 years 6 months ago #46048
by Jeff
Replied by Jeff on topic Add an additional email field.
Hi,
I have created the addition custom field "osm_ref_email" and located the code (see below) where this needs to go but am unsure how to add this to the code .
Are you able to advise correct insertion of code to get additional email to be sent?
Thanks
/**
* Send email to subscriber to inform them that their membership approved (and activated)
* @param object $row
*/
public static function sendMembershipApprovedEmail($row)
{
$jconfig = new JConfig();
$db = JFactory::getDbo();
$mailer = JFactory::getMailer();
$config = self::getConfig();
if ($config->from_name)
$fromName = $config->from_name;
else
$fromName = $jconfig->fromname;
if ($config->from_email)
{
$fromEmail = $config->from_email;
}
else
{
$fromEmail = $jconfig->mailfrom;
}
$message = self::getMessages();
$fieldSuffix = self::getFieldSuffix($row->language);
$sql = "SELECT *, title " . $fieldSuffix . " AS title FROM #__osmembership_plans WHERE id=" . $row->plan_id;
$db->setQuery($sql);
$plan = $db->loadObject();
I have created the addition custom field "osm_ref_email" and located the code (see below) where this needs to go but am unsure how to add this to the code .
Are you able to advise correct insertion of code to get additional email to be sent?
Thanks
/**
* Send email to subscriber to inform them that their membership approved (and activated)
* @param object $row
*/
public static function sendMembershipApprovedEmail($row)
{
$jconfig = new JConfig();
$db = JFactory::getDbo();
$mailer = JFactory::getMailer();
$config = self::getConfig();
if ($config->from_name)
$fromName = $config->from_name;
else
$fromName = $jconfig->fromname;
if ($config->from_email)
{
$fromEmail = $config->from_email;
}
else
{
$fromEmail = $jconfig->mailfrom;
}
$message = self::getMessages();
$fieldSuffix = self::getFieldSuffix($row->language);
$sql = "SELECT *, title " . $fieldSuffix . " AS title FROM #__osmembership_plans WHERE id=" . $row->plan_id;
$db->setQuery($sql);
$plan = $db->loadObject();
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
10 years 6 months ago #46070
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Add an additional email field.
Hi Jeff
Please explain exactly what email need to be sent ? And send me admin and FTP account of your site (via support ticket), I know you submitted a support ticket so that we can customize the code for you.
Please understand that customize code to meet individual client need is out of scope of our support. So we can only help you this time. Next time, if you want some customization to the code, you will need to find a developer to help you (or pay for our dev for the time we need to spend for the customization),
Regards,
Tuan
Please explain exactly what email need to be sent ? And send me admin and FTP account of your site (via support ticket), I know you submitted a support ticket so that we can customize the code for you.
Please understand that customize code to meet individual client need is out of scope of our support. So we can only help you this time. Next time, if you want some customization to the code, you will need to find a developer to help you (or pay for our dev for the time we need to spend for the customization),
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Jeff
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 103
- Thank you received: 1
10 years 6 months ago #46108
by Jeff
Replied by Jeff on topic Add an additional email field.
Thanks for response. Information provided in ticket as requested.
Regards
Jeff
Regards
Jeff
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
10 years 6 months ago #46115
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Add an additional email field.
Yes Jeff. Received your information on the support ticket. Should have it completed for you within today .
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.