PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Conditionals in the Confirmation email message

s2Member Plugin. A Membership plugin for WordPress®.

Conditionals in the Confirmation email message

Postby cassel » August 26th, 2011, 1:00 pm

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.
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Conditionals in the Confirmation email message

Postby Cristián Lávaque » August 27th, 2011, 1:10 am

No, shortcode doesn't work in the emails at this moment. :|
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Conditionals in the Confirmation email message

Postby cassel » August 27th, 2011, 5:08 am

Darn. Maybe something to consider in future releases? It would add a lot of flexibility for users with multiple products.
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Conditionals in the Confirmation email message

Postby Cristián Lávaque » August 27th, 2011, 9:08 pm

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. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron