Youjoomla Support Forums (https://www.youjoomla.com/joomla_support/index.php)
-   YJ Booking Module (https://www.youjoomla.com/joomla_support/forumdisplay.php?f=78)
-   -   Can i disable a field? (https://www.youjoomla.com/joomla_support/showthread.php?t=3906)

kerastes 07-12-2009 06:01 PM

Can i disable a field?
 
Hello,

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

Quote:

<div>
<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>
</select>
</div>
also for heading etc remove

Quote:

<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

Quote:

$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 08:34 AM.

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