Viewing 9 replies - 1 through 9 (of 9 total)
  • This feature is scheduled for the next update.

    Alternatively, you could check this out.

    I was able to accomplish this by integration with Mailchimp through the listserve section of s2member. You then have Mailchimp send reminders based around a certain date, the EOT date.

    You do have to force the EOT date to be sent through a must use plugin because S2 only sends name and email.

    Definitely something I’d need too, but don’t want to clog up my w/p site with extra plugins – any idea of the timescale for this development yet? And when it’s out will it be in both s2m versions?

    many thanks.

    but don’t want to clog up my w/p site with extra plugins

    That isn’t how WordPress works. More plugins is the same as more code in one plugin, or more code in functions.php or the mu-plugins folder.

    What you should be careful about is the quality of the code, not what wrapper it has. The wrapper won’t make any difference to the speed of the site.

    Thanks – hadn’t thought of it like that! My thoughts are the only other issues with more plugins are: having more to update (or replace if they aren’t updated and they break something); more to sort out any plugin conflicts for; and as you said, finding quality plugins that are kept up to date in the first case.
    I’ve checked out your plugin, which certainly looks an option once we’re ready to go live.
    Cheers.

    @5high, it’s certainly not my plugin!

    I understand your point about updates, replacements, and conflicts. But I have found that, if the plugin is well-coded, either those problems don’t arise or else they are fixed quickly after being reported.

    The problem with expecting one plugin to do several things is that no developer is Superman; no-one does everything well. Sadly, I have seen too many plugins get bloated, slow, and progressively less useful because their developers attempted to build in ever more functions that users asked for.

    So, while it is often rather difficult to find useful, well-written plugins, I have found that, in the long run, it is well worth the effort.

    Thanks KTS915 – really useful advice, and always good to have recommendations for things.I’ll definitely keep this on my possible plugin list and review when go live.
    Cheers.

    I accomplished this through these steps…

    1. Create a MailChimp account.
    2. Create a profile field on your integrated list named eot_date
    3. Create the file s2-hacks.php in the MU (must use) plugins folder
    (There is a ton on google about how to do this)
    4. Add the following code to that file.

    <?php
    add_filter('ws_plugin__s2member_mailchimp_merge_array', 'my_filter', 10, 2);
    function my_filter($merge, $vars) {
    	// $merge: Array of existing MERGE fields that s2Member passes by default.
    	// $vars:  Array of defined variables in the scope/context of this Filter.
    
    	$custom_merge = array(
    		'eot_date'   => date('m/d/Y',get_user_option('s2member_auto_eot_time', $vars['user_id']))
    	);
    
    	return array_merge($merge, $custom_merge);
    }

    5. This will now automatically send the EOT date over when people register if you have the Mailchimp integration configured correctly.
    6. Set up ‘Renewal Reminders’ using the schedule an email based on a date function in Mail Chimp. You can have emails sent however long before, day of, days after or all of them or whatever you want.

    I had to wrap the get_user_option in a strtotime function for it to work properly, otherwise the following error was thrown:

    PHP Warning: date() expects parameter 2 to be long, string given in …

    So the following line worked for me on a LAMP stack (PHP 5.4.41):

    $custom_merge = array(
                    'eot_date'   => date('m/d/Y', strtotime(get_user_option('s2member_auto_eot_time', $vars['user_id'])))
            );
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Automatic Renewal Notifications’ is closed to new replies.