Reply To: %%item_name%% not populated

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

#428
Carole Asselin
Participant

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/s2member.net/html/wp-includes/functions.php on line 4777

I’ll send it by email to you.

As i was testing a few things, i tried to see if the variable was actually retrieved. I am not 100% sure i did it right, but i tried this:

    {
        $a = $vars["first_name"];
        $b = $vars["item_name"];
        return "Thank you ". $a . $vars["first_name"] . "\n\nYou have successfully complete your purchase" . $b . $vars["item_name"] . "\n\nIf you have not already done so, the next step is to Register a Username for the Campus.\n\nPlease complete your registration here:" . wp_login_url () . "\n\nIf you have any trouble, please feel free to contact us.";   
    }

I tried more test purchases after, but notice that the $a and the $b variables NEVER appeared in the thank you email.
In the mean time, in order to avoid sending odd looking emails to customers, i reworded the text so that the missing first_name and item_name won’t be noticeable.

Would that help?