Support » Plugin: Simple Real Estate Pack » Editing interest rate and other numbers… HELP!

  • 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!

Viewing 1 replies (of 1 total)
  • Plugin Author Max Chirkov


    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.


Viewing 1 replies (of 1 total)
  • The topic ‘Editing interest rate and other numbers… HELP!’ is closed to new replies.