How can I deactivate/expire a product for a user?

Discussion in 'Customization & add-ons' started by clickleaders, Sep 24, 2013.

  1. clickleaders

    clickleaders Member

    Joined:
    May 10, 2009
    Messages:
    38
    Assuming I have the user id and the product code, how can I deactivate that product for that user only from within my plugin? Thanks in advance.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Go into the invoice area of the users payment, change the end date of the payment.

    David
  3. clickleaders

    clickleaders Member

    Joined:
    May 10, 2009
    Messages:
    38
    Can you give me the code to do it from within the plugin? Thanks.
  4. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    What plugin??
  5. clickleaders

    clickleaders Member

    Joined:
    May 10, 2009
    Messages:
    38
    I have a custom payment plugin...based on information received from the payment processor, I sometimes need to deactivate a product for the current user.

Share This Page