Reply To: %%item_name%% not populated

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


Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/ on line 4773

Maybe because in a button there’s no coupon to discount it, so the description doesn’t get modified. If you try the pro-form without the coupon, you will likely get the original description.

not understanding what you mean

I mean modifying the hack so it removes the discount part and leaves the original description of the product. Something like this (untested):

add_filter('ws_plugin__s2member_modification_email_msg', 'my_s2_modification_msg', 10, 2);
function my_s2_modification_msg($s2member_default_msg, $vars = array()) {
	$item_name = $vars['paypal']['item_name'];
	if (strpos($item_name, 'ORIGINALLY:') !== false) {
		$item_name = explode('ORIGINALLY:', $item_name);
		$item_name = trim($item_name[1]);
	return "Thank you " . $vars['user']->data->display_name . "\n\nYou have successfully purchased the " . $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.";