Please help me remove "Next Rebill" date

Discussion in 'Troubleshooting' started by jmartin55, Apr 8, 2015.

  1. jmartin55

    jmartin55 aMember Pro Customer

    Joined:
    Feb 12, 2013
    Messages:
    34
    The next rebill date on the Members Dashboard works fine for paypal but for credit card shows:
    "Next Rebill dd-mm-2036"

    Which as you can imagine causes confusion for clients who are obviously being billed monthly. The reason this probably happens is Moneris does not give a monthly IPN.

    Please let me know how to remove Next Rebill dd-mm-yyyy completely :)

    Thank you and I appreciate your time!
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    This should not happen by default so this could be a bug in plugin.
    Contact us in helpdesk we will check what could be wrong.
  3. jmartin55

    jmartin55 aMember Pro Customer

    Joined:
    Feb 12, 2013
    Messages:
    34
    I appreciate this but I would prefer some code for site.php to simply remove this thing altogether. Can this be done? :)
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    You can remove it from template only:
    /amember/application/default/views/admin/user-invoices.phtml
  5. jmartin55

    jmartin55 aMember Pro Customer

    Joined:
    Feb 12, 2013
    Messages:
    34
    Thanks Alex - can you tell me what to comment out in the user-invoices.phtml please?
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Remove this block:
    PHP:
                if(
                    (
    $invoice->status==Invoice::RECURRING_ACTIVE) &&
                    (
    $paysys $invoice->getPaysystem()) &&
                    (
    $paysys->getRecurringType() == Am_Paysystem_Abstract::REPORTS_CRONREBILL)
                    ){

                    
    $add_info[] = sprintf('%s:
                        <a class = "change-rebill-date local" href="javascript:;" title="%s"
                        data-invoice_id="%s"
                        data-rebill_date="%s">%s</a>'
    ,
                        
    ___('Next rebill date'), ___('Change rebill date'),
                        
    $invoice->invoice_idamDate($invoice->rebill_date), amDate($invoice->rebill_date));
                } elseif (
    $invoice->status==Invoice::RECURRING_ACTIVE) {
                    
    $add_info[] = sprintf('%s: %s',
                        
    ___('Next rebill date'),  amDate($invoice->rebill_date));
                }

  7. jmartin55

    jmartin55 aMember Pro Customer

    Joined:
    Feb 12, 2013
    Messages:
    34
    I removed it and it has done nothing. Didn't change a thing.

    Each users (credit card paying customers) Dashboard says "Next Rebill 12/31/36" is there any way to remove this completely?
  8. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Sorry I though you want to remove this from amember CP.
    To remove it from member's area Active Subscriptions block edit /amember/application/default/views/blocks/member-main-subscriptions.phtml
    change this:
    PHP:
        <?php if ($products_rebill[$p->pk()]) : ?>
            <?php __e('next rebill'?> <?php echo amDate($products_rebill[$p->pk()]); ?>
        <?php elseif ($products_expire[$p->pk()] == Am_Period::MAX_SQL_DATE): ?>
            <?php __e('Lifetime'?>
        <?php else: ?>
            <?php __e('expires'?> <?php echo amDate($products_expire[$p->pk()]); ?>
        <?php endif ?>
    to
    PHP:
        <?php if ($products_expire[$p->pk()] == Am_Period::MAX_SQL_DATE): ?>
            <?php __e('Lifetime'?>
        <?php else: ?>
            <?php __e('expires'?> <?php echo amDate($products_expire[$p->pk()]); ?>
        <?php endif ?>

  9. jmartin55

    jmartin55 aMember Pro Customer

    Joined:
    Feb 12, 2013
    Messages:
    34
    Alex, I've done this exactly as you've said, and it does not work. It does nothing. In the customers Dashboard, under Active Subscriptions (for people using Moneris credit card) it shows "Next Rebill 12/31/36 - Cancel" and the cancel link takes them to paypal...

    The 1st month, it works fine, it shows that they will be rebilled the next month. But when the next month comes, it changes to 12/31/36

    I am glad to pay to have this fixed...anyone please help? It confuses customers and makes them think their next rebill is in the year 2036 when they will obviously be billed next month...

    Attached Files:

    Last edited: Apr 14, 2015
  10. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    I saw ticket from you about this issue. I will check it and reply in helpdesk.

Share This Page