Remove "How many slots which you want to book"?

More
10 years 10 months ago #32628 by Rob
Is it possible to remove the box titled "Your number slots which you need" from the services booking form? My customers would have no need to book more than one time slot and having that there will likely confuse them. Is there a way to turn it off or disable it?

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32632 by Mr. Dam
Hi Rob,
To remove that part, please follow these steps
1. Open file
components > com_osservicesbooking > helper > calendar.php
2. find
<div class="row-fluid bookingformdiv">
<div class="span12 btn btn-info">

<?php
echo JText::_('OS_YOUR_NUMBER_SLOTS_WHICH_YOU_NEED');
?>

</div>
<div class="span12" style="padding-top:10px;">
<?php
echo JText::_('OS_HOW_MANY_SLOTS_WHICH_YOU_WANT_TO_BOOK').":";
?>
<input class="input-mini" type="text" name="nslots_<?php echo $sid?>_<?php echo $eid?>" id="nslots_<?php echo $sid?>_<?php echo $eid?>" value="" style="width:40px;"/>
</div>
</div>

and replace by
<input class="input-mini" type="hidden" name="nslots_<?php echo $sid?>_<?php echo $eid?>" id="nslots_<?php echo $sid?>_<?php echo $eid?>" value="1" style="width:40px;"/>

Good luck
Dam
The following user(s) said Thank You: Rob

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32634 by Rob
That worked perfectly. Thank you! :woohoo:

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #35065 by Orran
I downloaded a PHP Editing program (PHPEdit 5.0.0 from Waterproof) and I can't find the code. Can you recommend another editing program?

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #35072 by Mr. Dam
Hi Orran,
In fact, you can use that Php editing software, you also can use small size editor software like Edit plus, Notepad++,v.v.
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #35083 by Orran
I got this for code which doesn't match exactly what you have:

//<?php
if($service->service_time_type == 1){
?>
<table width="100%" style="border:1px solid #CCC !important;">
<tr>
<td style="padding:5px;font-weight:bold;text-align:center;background-color:#E4E7EE;">
<?php
echo JText::_('OS_YOUR_NUMBER_SLOTS_WHICH_YOU_NEED');
?>
</td>
</tr>
<tr>
<td width="100%" style="padding:5px;">
<?php
echo JText::_('OS_HOW_MANY_SLOTS_WHICH_YOU_WANT_TO_BOOK').":";
?>
<input type="input-mini" name="nslots_<?php echo $sid?>_<?php echo $eid?>" id="nslots_<?php echo $sid?>_<?php echo $eid?>" value="" style="width:40px;"/>
</td>
</tr>
</table>
<?php

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam