Delete Product but keep payment records

Discussion in 'Troubleshooting' started by taschultz, Jun 2, 2011.

  1. taschultz

    taschultz New Member

    Joined:
    May 11, 2011
    Messages:
    5
    I have products that have a short lifespan, but I want an user to still see what they paid over the course of time. I have tried scope and disabling the products, and while they do disappear from the signup and add/renew... they still show on the main tab for a member. How do I make them disappear from the main tab without deleting them that causes the payment records to be deleted??


    btw. we just went online with aMember and we LOVE it - it has helped and fixed so many issues we were having with other software. Great job and great product :D
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    You can set the scope of the product to disabled (hidden from signup and member page)
  3. taschultz

    taschultz New Member

    Joined:
    May 11, 2011
    Messages:
    5
    Tired setting to disabled, but still appears on main member tab.. It does disappear from signup and the add/renew tab.. but not the main tab
  4. taschultz

    taschultz New Member

    Joined:
    May 11, 2011
    Messages:
    5
    I hacked member.php to add this:

    foreach ((array)$member_products as $k => $v){
    if ($v['scope'] == 'disabled'){
    unset($member_products[$k]);
    }
    }

    and it works now... the payment records are still there, but now on the main tab people only see enabled products

    would be nice to get this incorporated......
  5. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    You could make the Price Group ID and negative number, like -19929
    Then it will disappear from signup and renew, but still show up in the payment record.

    David
  6. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526

Share This Page