Youjoomla Support Forums (
-   YJ Booking Module (
-   -   Can i disable a field? (

kerastes 07-12-2009 06:01 PM

Can i disable a field?

I dont need the ''destination package'' field and the ''type of room field'' can i disable them or make them invisible???

thank you in advance!!

steve2 09-15-2009 07:27 PM

I needed this also and did it by editing /modules/mod_yj_booking/mod_yj_booking.php

there are two lots of below code to remove to rid of type of room field


<label for="type_of_room" id="type_of_room_label"><?php echo $type_of_room_label ?></label>
<select name="type_of_room" id="type_of_room">
<option value="single" selected="selected">single</option>
<option value="double">double</option>
<option value="apartment">apartment</option>
also for heading etc remove


<legend id="accomodation_legend"><?php echo $accomodation_legend ?></legend>

steve2 09-15-2009 07:30 PM

also remove this code from /modules/mod_yj_booking/getmail.php to rif of reference in recieved email etc


$Body .= "\n\nType of room:";

$Body .= $type_of_room;

Micsun 12-11-2009 06:51 PM

Thanks alot

All times are GMT -4. The time now is 04:17 AM.

Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.