• Resolved dmokaren

    (@dmokaren)


    I’m not doing the recurring payment option with PMP and was wondering about adapting the levels.php file to discard the Subscription Pricing column and replace it with the Membership Description. I’ve looked at the db layout and the levels php code. It looks like I need to adapt this section:

    <?php } elseif(pmpro_isLevelRecurring($level)) { ?>
    <?php echo $pmpro_currency_symbol?><?php echo $level->billing_amount?>
    <?php if($level->cycle_number == ‘1’) { ?>
    per <?php echo sornot($level->cycle_period,$level->cycle_number)?>
    <?php } else { ?>
    every <?php echo $level->cycle_number.’ ‘.sornot($level->cycle_period,$level->cycle_number)?>
    <?php } ?>
    <?php } else { ?>
    N/A
    <?php } ?>
    </td>
    but since it’s not dealing with payments, but rather a text description for each level I’m at a loss as how to echo ‘description’.

    Also, where does the pmpro_membership_orders db come into play? Just for PayPal CC purchases? Can I get that some of that info (address, city, state, sip) to show up in the Members List area??

    Awesome program!

    http://wordpress.org/extend/plugins/paid-memberships-pro/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dmokaren

    (@dmokaren)

    got it sorted out. I went into Levels.php and replaced the information about Subscription pricing/renewal with Membership Description by removing the code and doing a simple replacement with this code:

    <td><?php echo $current_level ? “{$level->description}” : $level->description?></td>

    Now to figure out adding pmpro_bfirstname, pmpro_blastname, pmpro_baddress, pmpro_bcity, pmpro_bzipcode to the checkout form. Ultimately developing an easy way of automating import of existing members to this cool program!

    Plugin Author Jason Coleman

    (@strangerstudios)

    Documentation RE the proper way to customize the PMPro pages is here:
    http://www.paidmembershipspro.com/documentation/advanced-techniques/templates/

    If you use a method at that link, it will ensure that your edits aren’t overwritten when you update PMPro (and you should always update PMPro to the latest version as updates come out).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘adapt Levels.php’ is closed to new replies.