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.

EOT Date change depending on time of the year

Home Forums Community Forum EOT Date change depending on time of the year

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 3 years, 5 months ago.

Topic Author Topic
Posted: Monday Jul 29th, 2013 at 5:14 am #54328
Lesley Vick
Username: dissent

Hi,

So I’m trying to change the EOT date for a subscription depending on what time of the year it is – I’ve referenced this thread to find the proper hook, but it doesn’t seem to be firing when I upgrade my subscription – does anyone have any ideas why this wouldn’t work?

Thanks

= $decemberstart) && ($user_ts = $aprilstart) && ($user_ts = $auguststart) && ($user_ts = $decemberstart) && ($user_ts = $aprilstart) && ($user_ts = $auguststart) && ($user_ts = $decemberstart) && ($user_ts = $aprilstart) && ($user_ts = $auguststart) && ($user_ts <= $decemberend)) {
			$eot = $decemberend;
		}

		$end =  strtotime(date('M d Y', $eot) . " +2 Years");
	}

	update_user_option ($user_id, "s2member_auto_eot_time", $end);
}

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Jul 31st, 2013 at 12:32 am #54449
Bruce
Username: Bruce
Staff Member

but it doesn’t seem to be firing when I upgrade my subscription – does anyone have any ideas why this wouldn’t work?

The reason it’s not working for upgrades is because you’re using a hook designed for signups:

ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars

Try using this hook along with that one:

ws_plugin__s2member_during_paypal_notify_during_subscr_modify
Viewing 1 replies (of 1 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.