latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Can Pro version do this?

Home Forums Community Forum Can Pro version do this?

This topic contains 5 replies, has 2 voices. Last updated by  Randy King 3 years, 11 months ago.

Topic Author Topic
Posted: Friday Jan 25th, 2013 at 10:46 am #39511

Can the PRO version create a different “Thank You ” Page for each membership level? I am using the free version right now and I think I am stuck using the same Thank You page for every membership level.

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Friday Jan 25th, 2013 at 2:59 pm #39537
Randy King
Username: RandyKing

Hey, Frank –

I am answering this off-the-cuff, so you may have to test it to be sure. If the person registering is logged in at the time the thank-you page is posted, then here’s what you can do. Put the following shortcodes on the thank-you page…

[s2If current_user_is(s2member_level4)]
    Thank you for registering for our diamond-studded platinum package.
[/s2If]

[s2If current_user_is(s2member_level3)]
    Thank you for becoming a master jedi warrior.
[/s2If]

[s2If current_user_is(s2member_level2)]
    Thank you for becoming a silver member.
[/s2If]

[s2If current_user_is(s2member_level1)]
    Thank you for registering as a bronze member.
[/s2If]

[s2If current_user_is(s2member_level0)]
    Thank you for registering with us.
[/s2If]
Posted: Friday Jan 25th, 2013 at 4:20 pm #39551

Thanks for your help Rodney.

The reason why I am trying to do different Thank You pages for each membership level is for conversion tracking. This way I can associate Thank-You-Page-1 with a $20 purchase and Thank-You-Page-2 with a $40 purchase, etc.

Posted: Friday Jan 25th, 2013 at 5:40 pm #39554
Randy King
Username: RandyKing

Frank,

Got it. So inside of the short-code conditionals I showed in the first response, you could insert the code needed to do your tracking. If you are telling me that you need to do a “thank you” on another website all together, then modify your short-code conditionals as follows:

[s2If current_user_is(s2member_level4)]
	<script type="text/javascript">
		window.location = 'http://www.YourWebsite.com/level4/';
	</script>
[/s2If]

[s2If current_user_is(s2member_level3)]
	<script type="text/javascript">
		window.location = 'http://www.YourWebsite.com/level3/';
	</script>
[/s2If]

[s2If current_user_is(s2member_level2)]
	<script type="text/javascript">
		window.location = 'http://www.YourWebsite.com/level2/';
	</script>
[/s2If]

[s2If current_user_is(s2member_level1)]
	<script type="text/javascript">
		window.location = 'http://www.YourWebsite.com/level1/';
	</script>
[/s2If]

[s2If current_user_is(s2member_level0)]
	<script type="text/javascript">
		window.location = 'http://www.YourWebsite.com/level0/';
	</script>
[/s2If]
Posted: Saturday Jan 26th, 2013 at 5:58 pm #39710

Randy. Thank you again for your help.

So will this code essentially re-direct my users to various thank you pages that I will need to setup?

Posted: Saturday Jan 26th, 2013 at 7:44 pm #39716
Randy King
Username: RandyKing

Yes – AS LONG AS when the thank-you page is launched, the system knows what level that user is assigned to. I have not tried this scenario myself, but I have used the re-direct code based on levels. So I know that the methodology works, I’m just not sure if the credentials, specifically the package level, is set for the user that just logged in.

Perhaps Jason or one of the other developers will jump in and let us know – I’m not in a position to test this anywhere at the moment to let you know for certain.

Another approach that I know would work for sure is to allow the user to complete their registration with a single thank-you page. Then, when the user logs in for the first time, you re-direct them to your tracking page ONCE. I don’t have specific tested code for that handy, but what you would do is query the login counter which s2Member gives you access to, and IF that counter = 1, THEN do the re-direct to the specific level-counter page.

Viewing 5 replies - 1 through 5 (of 5 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.