Home › Forums › Community Forum › Fixed EOT during registration?
Tagged: EOT, registration, renewal, upgrades
This topic contains 9 replies, has 2 voices. Last updated by Cristián Lávaque 3 years, 12 months ago.
Topic Author | Topic |
---|---|
Posted: Friday Dec 7th, 2012 at 11:33 am #33898 | |
|
|
Hi, I’m wondering how I can give members a fixed EOT? No matter when the member registers, their EOT should always be set to 31/12/current year. Any suggestions what might be suitable? |
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Friday Dec 7th, 2012 at 5:22 pm #33932 | |
|
|
Posted: Wednesday Dec 19th, 2012 at 2:54 pm #35085 | |
|
|
Hi again, Thanks for the advice. This works great. When a new member registers, EOT is set to ‘current-year/12/31’. Question for next step: Then EOT should be set to ‘current-year+1/12/31’, but what would be the best method to do that? Another form? Paypal button (using paypal express checkout)? Are there hooks for renewals? (After ‘current-year/12/31’ has passed, non paid members gets demoted, and can only see an upgrade page if they try to log in.) |
|
Posted: Thursday Dec 20th, 2012 at 8:47 am #35149 | |
|
|
Glad that helped. :)
If they can only renew during that time, then you can show/hide the pro-form with a conditional that checks if the current month is November using the date function. |
|
Posted: Thursday Dec 20th, 2012 at 3:45 pm #35188 | |
|
|
Do you mean the same form that new members use to register or a completely new form? Since this time, the EOT should be set to ‘current-year+1/12/31′ instead of ‘current-year/12/31′. |
|
Posted: Saturday Dec 22nd, 2012 at 8:20 am #35310 | |
|
|
I don’t know if you need it to be a different pro-form… I thought the renewal would only be possible in November, then a pro-form wouldn’t be available the rest of the time. But if payments were possible the other months, you can have a different pro-form show up in the same page using the conditional: if it’s November show this pro-form, if not show this other one. |
|
Posted: Thursday Jan 3rd, 2013 at 7:38 am #36099 | |
|
|
Hello again, Here are some more info: The renewal pro-form will be available say during november-december only and only for current members. So the forms will, at some point, be avaliable at the same time. Are there different hooks to use in the s2hacks-file for the renewal form, for setting the right form of EOT? Would it be a good idea to check if user is loged in and if month nov-dec then show the renewal form? Then it’s the third option, when a member don’t/ forgets to renew and gets demoted – then we need the upgrade pro-form/button or something similar? Does upgrades work differently? Thanks in advance |
|
Posted: Saturday Jan 5th, 2013 at 6:28 am #36243 | |
|
|
That’s fine.
Okay. This one would need a conditional around it to determine if time to show it or not.
No need to use a hacks file. You can have a page accessible to Level 1 users (assuming that’s the paid access you sold), so only them would see this page. And in it you’d have a condition that checks the month and shows the renewal pro-form during November and December only.
Upgrade works just like the original sale, but when the user is logged in. So you’d have this pro-form in a page protected at Level 0 and you can have the pro-form inside a condition that checks if the user is at Level 0 and not higher. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals -> Example 3[/hilite] [hilite pre_code][[s2If current_user_is(s2member_level0)] Some content for Free Subscribers. [/s2If]] [/hilite] |
|
Posted: Tuesday Jan 8th, 2013 at 5:54 am #36561 | |
|
|
Hi and thank you for answering :)
But the EOT-code for renewal/upgrade must be in the s2hacks file, no? Sorry if the questions are confusing. |
|
Posted: Wednesday Jan 9th, 2013 at 6:03 am #36720 | |
|
|
No, that can be in the same page too. |
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.