Page 1 of 2

Removing the "Booking a Property Link from Main Page"

PostPosted: 03 Apr 2016, 14:11
by falcodj
HI there,

I am currently using the free version to start a new project. I do not require the Bookinga Property link on the main page. Can someone guide me on how I can remove this ? I will consider the Pro Version of the software if my project succeeeds.

Thanks

Re: Removing the "Booking a Property Link from Main Page"

PostPosted: 04 Apr 2016, 10:39
by andipas
in file - protected/components/Controller.php

delete
Code: Select all

        $this
->aData['userCpanelItems'][] = array(
            
'label' => tt('Reserve apartment''common'),
            
'url' => array('/booking/main/mainform'),
            
'visible' => Yii::app()->user->checkAccess('backend_access') === false,
            
'linkOptions' => array('class' => 'fancy mgp-open-ajax'),
            
'itemOptions' => array('class' => 'depth_zero'),
        );
 

Re: Removing the "Booking a Property Link from Main Page"

PostPosted: 04 Apr 2016, 11:15
by falcodj
Thanks, it seems that it worked.

Appreciated :)

Re: Removing the "Booking a Property Link from Main Page"

PostPosted: 07 May 2017, 05:01
by Batman93
I have this error...

Cannot modify header information - headers already sent by (output started at xxxxxxx/protected/components/Controller.php:1)

Is there a way to also remove the "Reserve" button ?

I removed

if(($data->owner_id != Yii::app()->user->getId()) && $data->type == Apartment::TYPE_RENT && !$data->deleted){
echo '<div>'.CHtml::link(tt('Booking'), array('/booking/main/bookingform', 'id' => $data->id), array('class' => 'apt_btn fancy mgp-open-ajax')).'</div><div class="clear"></div>';
}


in themes/classic/views/modules/apartments/views/_view.php

Thoughts ?
Thanks !!!

Re: Removing the "Booking a Property Link from Main Page"

PostPosted: 08 May 2017, 10:07
by Xpycm
Hi

first: use notepad++ (https://notepad-plus-plus.org/) for edit files. dont use windows notepad!
second: upload files in binary mode (https://open-real-estate.info/en/installation-guide - the first screen)

Re: Removing the "Booking a Property Link from Main Page"

PostPosted: 04 Nov 2017, 22:20
by istok
I checked both files and in no one are this codes to find. Maybe there is an eaysier way to get this function away? I alo don't understand this bbecause there is only possible to reserve one appartment, but in each special offer is the possibility to book...
I don't want to use this

Re: Removing the "Booking a Property Link from Main Page"

PostPosted: 29 Jul 2018, 22:16
by cismih
I have a problem. on my website the booking contact button work and when i try to make a booking its show me the error:
Check-In Time cannot be blank.
Check-Out Time cannot be blank.


But i dont see where to select these...
Maybe i have disabled from admin...
I use new theme Basic.
Please help

Re: Removing the "Booking a Property Link from Main Page"

PostPosted: 30 Jul 2018, 12:08
by Foton
cismih wrote:I have a problem. on my website the booking contact button work and when i try to make a booking its show me the error:
Check-In Time cannot be blank.
Check-Out Time cannot be blank.


But i dont see where to select these...
Maybe i have disabled from admin...
I use new theme Basic.
Please help

We can check your site is for the additional charge. Please contact us to know the cost: support@monoray.net

Re: Removing the "Booking a Property Link from Main Page"

PostPosted: 31 Jul 2018, 12:55
by cismih
I have send email and paid

Re: Removing the "Booking a Property Link from Main Page"

PostPosted: 02 Aug 2018, 15:32
by Foton