Calling the Product ID number from Members area

Discussion in 'Customization & add-ons' started by drillbitt, Apr 7, 2010.

  1. drillbitt

    drillbitt New Member

    Joined:
    Jun 20, 2008
    Messages:
    5
    Hi,

    Can anyone tell me if its possible to call the product ID number from an amember powered members area...??

    Im using the incremental content plugin, and want the user to be able to link directly from my members area to:

    Code:
    http://mysite.com/amember/plugins/protect/incremental_content/?product_id=*
    But obviously the * in the link above needs to be created differently for each product id. So im assuming will need to look something like:

    PHP:
    http://mysite.com/amember/plugins/protect/incremental_content/?product_id=<?php echo $_SESSION['product_id']; ?>
    But I can't seem to find what $_SESSION['product_id'] needs to be to achieve this. Can anyone help on this?

    Thanks guys
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can use $_SESSION[_amember_product_ids] this is array of all active product IDs that user have.

Share This Page