Mass renewal of subscriptions

Discussion in 'Troubleshooting' started by abbeyvet, Feb 6, 2004.

  1. abbeyvet

    abbeyvet New Member

    Joined:
    Feb 2, 2003
    Messages:
    135
    I have a feeling there is no solution for the issue I have created for myself, but it's worth asking.

    aMember has been protecting our site for about a year now - actually it is live from a year next week. And that is the problem.

    When we started we were not entirely clear what our business model would be. So, when setting up free membership, we set them to last for a year.

    Later we decided that we would make it more or less indefinite, and not limited to a year and so edited it so that free membership expires in 2014.

    Now we have a situation where several hundred memberships will expire over the next few weeks. I can foresee a barrage of customer emails and a lot of time spent changing the expiry dates on individual accounts.

    Is there any way around this? Is there a quick way to change all free memberships, backdated, to expire at some far off date in the future?

    As I say, I suspect not, and am dreading the next few weeks. :(
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Katherine,

    latest aMember Pro has function named "Mass Subscribe" - it would help.

    However, there is no such option in your version. You can try to use the following PHP code, create a seperate file in amember/ folder and try it.
    Backup database first!

    PHP:
    <?
    require 
    'config.inc.php';

    $product_id 9999// replace to your product id!!!
    $date '2005-01-01'//  new date - format is yyyy-mm-dd

    $q $db->query("UPDATE {$db->config[prefix]}payments
      SET expire_date = '
    $date'
      WHERE completed=1 AND product_id=
    $product_id
    "
    );

    $r mysql_affected_rows();
    print 
    "$r rows changed. check it via control panel";

    ?>
  3. abbeyvet

    abbeyvet New Member

    Joined:
    Feb 2, 2003
    Messages:
    135
    Forgot to come back and say thanks for this Alex, it worked like a charm, perfect! :D :D
  4. tjhanes

    tjhanes Guest

    Mass Subscribe

    Where is the mass subscribe feature? I have version 2.3.1. Thanx, TH.
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    aMember CP -> Manage Products ... Mass Subscibe
  6. senrats

    senrats New Member

    Joined:
    Jan 23, 2005
    Messages:
    13
    Mass Subscribe

    Does the option
    "assign the same dates as original..."

    translate to keep the same START DATE
    but make a new END date based on the product duration


    Originally our product was 1 year and then we changed it to 2 years.
    Half of our customers are on the 2 year and the first half are on 1 year.
  7. senrats

    senrats New Member

    Joined:
    Jan 23, 2005
    Messages:
    13
    I just tried it and it still defaults everyone to a 1 YR term. Is there a way to keep the original JOIN date and extend the expiration date one year using Mass Subscribe?
  8. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Unfortunately, there is no such way. You can use fixed expiration date if applicable, or contact support to fix expiration dates after mass subscribe to anything you want.
  9. senrats

    senrats New Member

    Joined:
    Jan 23, 2005
    Messages:
    13
    The initial terms are for 2 years so I would need all the expiration dates to be exactly 2 years after start date.
  10. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please contact support.
  11. TehJamJr

    TehJamJr New Member

    Joined:
    Mar 3, 2006
    Messages:
    1
    Is there any way to set a specific date for a product experation? We have a pool membership that runs from April 1st to March 31st, but we have members who may pay dues from January to June that would still need to have an experation date of April 1st. Any thoughts outside of a manual table update?
  12. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    You can enter fixed date into product "Duration" field. Format is yyyy-mm-dd (for example 2006-03-09)

Share This Page