Community Support Forums — WordPress® ( Users Helping Users ) — 2010-10-26T01:43:07-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1081 2010-10-26T01:43:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1081&p=4218#p4218 <![CDATA[Re: Coupon Notification]]> Hi there. Thanks for the great question.

Yes, I see your dilemma. Ideally, s2Member would provide details on the Coupon Code in it's Replacement Codes for the API Notification. Until we get that feature added, you can track Coupon Codes using the "custom" attribute of your Shortcode.

Here is how your Shortcode might look:
Code:
[s2Member-Pro-PayPal-Form ... custom="www.yourdomain.com|<?php echo esc_attr($_POST["s2member_pro_paypal_checkout"]["coupon"]); ?>" /]
You will need to have the Exec-PHP plugin installed for this to work.

Now you can reference the Coupon Code with s2Member's API Tracking; by referencing: %%cv1%%.
That is, Custom Value #1. Also, please remember that the "custom" attribute in your Shortcode MUST always start with your domain name. Other values can be piped in; but it MUST always start with the domain of your installation.


@TODO :: add native support for Coupon Code tracking into s2Member's API Notifications.

Statistics: Posted by Jason Caldwell — October 26th, 2010, 1:43 am


]]>
2010-10-25T14:53:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1081&p=4178#p4178 <![CDATA[Coupon Notification]]> Does anyone have suggestions on how to do this?
I was thinking of using the payment notifications but am not sure whether I can use coupons as custom variables.

Any help would be greatly appreciated

Statistics: Posted by Bridget — October 25th, 2010, 2:53 pm


]]>