This is still a bit confusing for me, and a tiny bit above my comfort zone. Would you mind showing me the actual code for that??
As I mentioned earlier, this is tricky to set up. It’s not a simply snippet of PHP code that I can give you as an example. It will have to be custom coded to your specific scenario.
The “problem” i have is that from what i understand (and i probably dont understand correctly) it is the time when the member paid to reach that level (in my case, level1) BUT i have several products that are associated with Level1, and all have ccaps, but only ONE has a recurring membership. So, how can i extract THAT particular date?
How can you extract which particular date? The date for a ccap? For an upgrade? For a recurring membership? What has a recurring membership? The ccap? The Level?
As you can see, this is why I mentioned it’s tricky. It requires a full understanding of how you’re setting things up and using them. That’s why we recommend hiring a programmer to work with you if you’re not comfortable with PHP.
Also you are mentioning the pro-form. I could not find where to get a php version of the pro-form. Where is it?
You don’t need the PHP version of the Pro-Form to dynamically create a Pro-Form. Each of the Pro-Forms are generated based on the attributes you pass to the shortcode (e.g., level=”1″ generates a Level 1 Pro-Form).
Using PHP, you can dynamically configure those attributes before the shortcode generates the form, allowing you to do things like determine what price, recurring rate, initial/trial period, level, ccaps, etc., need to be configured for the user loading the form. For example:
[s2Member-Pro-PayPal-Form level="<?php echo $level; ?>" ccaps="" desc="Bronze Member / Description and pricing details here." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="example.com" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]
Jason explains more about how the dynamic shortcode attributes work here.