• Hello, I am really liking this plugin! Thank you. I am using it for my ecourse website. I need to change how the level cost is displayed on the Levels page. I have changed my custom levels.php file quite a bit, but am stuck on one thing. I have a level that I am using as a payment plan. The total is $125, but it’s spread across 3 months. I would like the level cost, displayed in the table, to be the TOTAL cost of the level, not just the initial payment. I found this line in levels.php:

    <?php echo $pmpro_currency_symbol?><?php echo $level->initial_payment?>

    Is there a way to multiply the initial payment by the number of months I have set in the level, plus the initial payment?

    Does that make sense?

    Thank you in advance!

    -Brian

    https://www.ads-software.com/plugins/paid-memberships-pro/

Viewing 1 replies (of 1 total)
  • Hi Brian,

    Apologies for the late reply here. You can certainly do this.

    We have an addon that may help you here, however with your modifications it may be best to continue modifying your custom levels.php file. Here’s the addon for future reference: https://github.com/strangerstudios/pmpro-level-cost-text.

    Anyway, you could do something like this to output the total cost of a recurring level:

    <?php
    // If the level is recurring and has a billing limit
    if ( pmpro_isLevelRecurring( $level ) && $level->billing_limit > 0 )
         echo $pmpro_currency_symbol . ( $level->initial_payment + ( $level->billing_amount * $level->billing_limit ) );
    ?>

    If you sign up for support here, https://paidmembershipspro.com/support, we could definitely help draft something for more complex situations.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Change Levels Table item’ is closed to new replies.