Okay
  Print

How to add new or change option for sq feet to sq Hectares

Is it possible to change the option for sq feet to sq Hectares as that will be easier and I don't need sq feet.

You can use my custom code 

Go to location file and copy my code 

+ wp-contentpluginsiwpropertyincludesadminsetting.class.php  line 500

array(
    'name' => __( 'Property measurement unit', 'iwproperty' ),
    'id'   => 'measurement_unit',
    'type' => 'select',
    'std' => 'sqft',
    'options' => array(
        'sqft' => __('Square Feet - ft²', 'iwproperty'),
        'sqmt' => __('Square Meters - m²', 'iwproperty'),
        'sqha' => __('Square Hectares - ha', 'iwproperty'),
    ),
),

+ wp-contentpluginsiwpropertyincludeshelper.function.php  line 1256

function iwp_get_measurement_unit_text($measurement_unit = null){
    if($measurement_unit === null){
        $measurement_unit = iwp_option('measurement_unit', 'sqft');
    }
    if($measurement_unit == 'sqmt') {
        $unit_text = _x('m²', 'Measurement unit text', 'iwproperty');
    }elseif($measurement_unit == 'sqft'){
        $unit_text = _x('ft²', 'Measurement unit text', 'iwproperty');
    }else{
        $unit_text = _x('ha', 'Measurement unit text', 'iwproperty');
    }
    return $unit_text;
}

+ wp-contentpluginsiwpropertyincludesclassproperty.class.php line 1547 

'measurement_unit' => array(
    'name' => __( 'Measurement unit', 'iwproperty' ),
    'id'   => IWP_PREFIX.'measurement_unit',
    'type' => 'select',
    'std' => 'sqft',
    'options' => array(
        'sqft' => __('Square Feet - ft²', 'iwproperty'),
        'sqmt' => __('Square Meters - m²', 'iwproperty'),
        'sqha' => __('Square Hectares - ha', 'iwproperty'),
    ),
),