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.

Custom Values in Notifications Email

Home Forums Community Forum Custom Values in Notifications Email

This topic contains 5 replies, has 3 voices. Last updated by  Eduan 3 years, 9 months ago.

Topic Author Topic
Posted: Saturday Mar 2nd, 2013 at 7:54 pm #43648

Hello,

I am seeking to add a dynamic value to Custom Values (cv1|cv2|cv3) in a notification email (API/Notifications).

It is no problem to add static content via custom=”example.com|Test Data” in the shortcode, but I need to add dynamic content.

Specifically I want to insert the auto_eot_time in human readable form.

print date('F j, Y, g:i a', get_user_field("s2member_auto_eot_time"));

Any ideas?

Thank you very much.

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Wednesday Mar 6th, 2013 at 6:01 pm #43907

funny (strange), I just got the same request from a client today…

Posted: Thursday Mar 7th, 2013 at 6:07 pm #44007
Eduan
Username: Eduan
Moderator

I’ll ask Jason about this, however it’s very probable it’s not possible.

– Eduan

Posted: Monday Mar 11th, 2013 at 11:52 pm #44313
Eduan
Username: Eduan
Moderator

Here’s what he answered:

If they get the ezPHP plugin, they can do something like this:

[s2Member-PayPal-Button custom="www.example.com|<?php echo get_user_field("s2member_auto_eot_time"); ?>" /]

See also: http://www.s2member.com/kb/using-variables-in-a-shortcode/

– Eduan

Posted: Tuesday Mar 12th, 2013 at 6:48 am #44347

Thank you so much. I will give that a try.

Posted: Thursday Mar 14th, 2013 at 2:42 pm #44637
Eduan
Username: Eduan
Moderator

No problem. Glad I was able to help. :)

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.