[CLASSIPRESS] No emailnotification ofMembership packs after Membership was activated
Dear support,
After doing some heavy testing with the Membership packs we are almost there. I found a bug after the Membership is activated by Admin.
Example; After activation of the Membership pack i found out it suppose to send an email to the buyer... but it doesn't and it looks like this (theme-email.php)
1.
}
// send notification email to buyer when membership was activated
function cp_owner_activated_membership_email($user, $order) {
global $app_abbr;
if (get_option($app_abbr.'_membership_activated_email _owner') == 'yes') {
$membership_user_email = stripslashes($user->user_email);
$membership_user_login = stripslashes($user->user_login);
$membership_pack_name = stripslashes($order['pack_name']);
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
$siteurl = trailingsla****(get_option('home'));
$mailto = $membership_user_email;
$subject = __('Your Membership is activated.', 'appthemes');
$headers = 'van: '. sprintf(__('%s Admin', 'appthemes'), $blogname) .' <'. get_option('admin_email') .'>' . "\r\n";
$message = sprintf(__('Dear %s,', 'appthemes'), $membership_user_login) . "\r\n\r\n";
$message .= sprintf(__('Your membership, "%s" is activated on my url', 'appthemes'), $membership_pack_name) . "\r\n\r\n";
$message .= __('Place your deal blabla:', 'appthemes') . "\r\n";
$message .= CP_ADD_NEW_URL . "\r\n\r\n\r\n\r\n";
$message .= __('Kind regards,', 'appthemes') . "\r\n\r\n";
$message .= sprintf(__('Admin's name', 'appthemes'), $blogname) . "\r\n";
$message .= $siteurl . "\r\n\r\n\r\n\r\n";
// ok let's send the email
wp_mail($mailto, $subject, $message, $headers);
}
}
But the email is never send..! Why...
2. I also found out in the first email to the admin the link to view the transactions :
http://www.myurl.com/wp-admin/admin....e=transactions is not an active hyperlink.
Theme-emails.php
It's something like here; $message .= __('View transacties:', 'appthemes') . $transactionsurl . "\r\n";
Could you take a look into that too ? Thanx!
Kind regards,
Frank | Villadecker