WordPress.org

Ready to get started?Download WordPress

Forums

Simple Real Estate Pack
Editing interest rate and other numbers... HELP! (2 posts)

  1. irishgem
    Member
    Posted 1 year ago #

    I went into the simple-real-estate-pack-4/srp.php file and scrolled down to this part:
    'srp_mortgage_calc_options' => Array(
    'annual_interest_rate' => 6,
    'mortgage_term' => 30,

    I wanted to make the annual interest rate to show either 3.5 or 4% as default on the map. (I worry about people calling about the '6 percent' interest rate.)

    Anyway. I have changed the 6 to a 4 and saved it. Nothing happened. Tried creating a new widget and that too didn't work. Do I need to change the number someplace else? Just to check, I changed the "mortgage_term" to 15 and that didn't change either. I want to keep that 30, but it seems like the numbers aren't changing on the widget.
    This is the part of the code

    <input id="widget-srp_mortgagecalc-5-interest_rate" name="widget-srp_mortgagecalc[5][interest_rate]" type="text" size="8" value="6">%

    Thank you!

    http://wordpress.org/extend/plugins/simple-real-estate-pack-4/

  2. Max Chirkov
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    sorry for the delay, I just got back from my vacation.

    Yes, I see the problem. To fix, edit this file /includes/srp-widgets.php and substitute line #29:
    $interest_rate = srp_get_option('annual_interest_rate', $instance['interest_rate']);

    with this
    $interest_rate = ( isset($interest_rate) ) ? $interest_rate : srp_get_option('annual_interest_rate', $instance['interest_rate']);

    It worked for me. Let me know if it works for you as well.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.