- Posts: 13
- Thank you received: 0
Remove "How many slots which you want to book"?
- Rob
-
Topic Author
- Offline
- New Member
-
Less
More
11 years 10 months ago #32628
by Rob
Remove "How many slots which you want to book"? was created 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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13052
- Thank you received: 1696
11 years 10 months ago #32632
by Mr. Dam
Replied by Mr. Dam on topic Re: Remove "How many slots which you want to book"?
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
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.
- Rob
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
11 years 10 months ago #32634
by Rob
Replied by Rob on topic Re: Remove "How many slots which you want to book"?
That worked perfectly. Thank you! :woohoo:
Please Log in or Create an account to join the conversation.
- Orran
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
11 years 8 months ago #35065
by Orran
Replied by Orran on topic Re: Remove "How many slots which you want to book"?
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13052
- Thank you received: 1696
11 years 8 months ago #35072
by Mr. Dam
Replied by Mr. Dam on topic Re: Remove "How many slots which you want to book"?
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
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.
- Orran
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
11 years 8 months ago #35083
by Orran
Replied by Orran on topic Re: Remove "How many slots which you want to book"?
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
//<?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
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.