Removing the "Booking a Property Link from Main Page"

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Removing the "Booking a Property Link from Main Page"

Postby falcodj » 03 Apr 2016, 14:11

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
falcodj
Stranger
 
Posts: 6
Joined: 03 Apr 2016, 14:10
Reputation point: 0

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

Postby andipas » 04 Apr 2016, 10:39

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'),
        );
 
andipas
Web Developer
Web Developer
 
Posts: 118
Joined: 28 Dec 2011, 22:37
Reputation point: 1

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

Postby falcodj » 04 Apr 2016, 11:15

Thanks, it seems that it worked.

Appreciated :)
falcodj
Stranger
 
Posts: 6
Joined: 03 Apr 2016, 14:10
Reputation point: 0

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

Postby Batman93 » 07 May 2017, 05:01

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 !!!
Batman93
Stranger
 
Posts: 19
Joined: 06 May 2017, 23:13
Reputation point: 0

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

Postby Xpycm » 08 May 2017, 10:07

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)
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 263
Joined: 30 Dec 2011, 11:06
Reputation point: 2

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

Postby istok » 04 Nov 2017, 22:20

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
istok
Stranger
 
Posts: 3
Joined: 04 Nov 2017, 22:15
Reputation point: 0

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

Postby cismih » 29 Jul 2018, 22:16

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
cismih
Stranger
 
Posts: 6
Joined: 27 Jul 2018, 19:14
Reputation point: 0

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

Postby Foton » 30 Jul 2018, 12:08

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
Foton
Web Developer
Web Developer
 
Posts: 109
Joined: 26 Jan 2012, 14:58
Reputation point: 1

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

Postby cismih » 31 Jul 2018, 12:55

I have send email and paid
cismih
Stranger
 
Posts: 6
Joined: 27 Jul 2018, 19:14
Reputation point: 0

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

Postby Foton » 02 Aug 2018, 15:32

Foton
Web Developer
Web Developer
 
Posts: 109
Joined: 26 Jan 2012, 14:58
Reputation point: 1

Next

Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 3 guests

cron