Page 1 of 1

Conditionals in the Confirmation email message

PostPosted: August 26th, 2011, 1:00 pm
by cassel
I was looking for a way to redirect customers to their proper "bonus" page, depending on what package they purchased. Today, i got an idea but i am afraid of trying it for fear of messing what works so far, so i will ask instead.

Is it possible to include conditionals in the Confirmation Email Message sent to the customer after transaction? Something like this:

Thanks %%first_name%%!

You have successfully purchased the %%item_name%%.

If you haven't already done so, the next step is to Register a Username for the Campus.

Complete your registration here:
%%registration_url%%

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

Once your registation is completed, you can login and access your bonuses here:
[_s2If current_user_can(access_s2member_ccap_basic)]
http://scrapbookcampus.com/success-basic
[/_s2If]
[_s2If current_user_can(access_s2member_ccap_element)]
http://scrapbookcampus.com/success-element
[/_s2If]

Enjoy your stay in the Campus,

Cassel
Scrapbook Campus


This scenario is assuming that the person purchased EITHER the Basic or the Element package.
Would that make sense? It seems almost too simple so i would love to know if this would display correctly for the user.

Re: Conditionals in the Confirmation email message

PostPosted: August 27th, 2011, 1:10 am
by Cristián Lávaque
No, shortcode doesn't work in the emails at this moment. :|

Re: Conditionals in the Confirmation email message

PostPosted: August 27th, 2011, 5:08 am
by cassel
Darn. Maybe something to consider in future releases? It would add a lot of flexibility for users with multiple products.

Re: Conditionals in the Confirmation email message

PostPosted: August 27th, 2011, 9:08 pm
by Cristián Lávaque
I agree with you. I mentioned it to Jason some weeks ago, we just haven't gotten to it yet. We're working on several things for the plugin, and many have more priority right now. But thanks for the vote! Feel free to suggest other things that you think of in the future. :)