Page 1 of 1

How to hide mortgage calculator?

PostPosted: 16 Nov 2017, 11:34
by Foton
In a file themes/atlas/views/modules/apartments/views/_tab_general.php

Delete or comment the code:
Code: Select all
$this->widget('application.modules.loanCalculator.components.LoanCalculatorWidget', array(
    'amount' => $data->getPriceFrom()
));



If you want to leave it for objects only for sale you can change the code into
Code: Select all
if($data->type == Apartment::TYPE_SALE){
    $this->widget('application.modules.loanCalculator.components.LoanCalculatorWidget', array(
        'amount' => $data->getPriceFrom()
    ));
}