Reply To: %%item_name%% not populated

Forums General %%item_name%% not populated Reply To: %%item_name%% not populated

#454

Thanks for waiting. I think I sorted it out.

add_filter('ws_plugin__s2member_modification_email_msg', 'my_s2_modification_msg', 10, 2);
function my_s2_modification_msg($s2member_default_msg, $vars = array()) {
	return "Thank you " . $vars['user']->data->display_name . "\n\nYou have successfully purchased the " . $vars['paypal']['item_name'] . "\n\nIf you have not already done so, the next step is to Register a Username for the Campus.\n\n Please complete your registration here: " . wp_login_url() . "\n\nIf you have any trouble, please feel free to contact us.";
}

I did a few test purchases and the last ones sent me the email correctly:

Thank you Cristian Test1

You have successfully purchased the Discount: 100% off. (Now: $0.00) ~ ORIGINALLY: 12 Cards for Christmas

If you have not already done so, the next step is to Register a Username for the Campus.

Please complete your registration here: http://scrapbookcampus.com/wp-login.php

If you have any trouble, please feel free to contact us.

Could you test it too and tell me if you notice anything wrong with it now?