Function to insert current user's subscription(s) into tpl files?

2 replies [Last post]
fred0
Offline
Joined: 08/15/2009
Status: 
Answered

Leighton,

 

Is there currently any provision to allow one to insert a user's current subscription(s) into a theme template file?

For example:

<?php print $current_subscription ?>

If not, can we add that to the list?

 

Thanks!

Leighton Whiting
Offline
Joined: 06/02/2009
Fred, I am going to add this

Fred,
I am going to add this to the next release (4.4). It will look like this:

  1. //Check if the module is installed first
  2. if (module_exists('paypal_subscriptions')){
  3. global $user; // Load the User Object
  4. if ($curSubscriptions = paypal_subscriptions_show_user_subscriptions($user->uid)){
  5. print $curSubscriptions;
  6. }
  7. else {print "No Subscriptions Found";}
  8. }

Sincerely,
Leighton Whiting

Leighton Whiting
Offline
Joined: 06/02/2009
This is now working in Paypal

This is now working in Paypal Subscriptions 4.4

Twitter Feed