- Posts: 12
- Thank you received: 0
number slots which you need
- Peter Kuko
- Topic Author
- Offline
- New Member
-
Less
More
10 years 6 months ago #52085
by Peter Kuko
number slots which you need was created by Peter Kuko
Hello, I need set up nr. of slots to 1. Client can order only one slot every time. I can edit calendar.php, where I can delete rows cca from 1180 to 1200, but I need to set up the variables to 1 slot. Can you write me, what I need to delete and edit in calendar.php file?
Thanks.
Thanks.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 6 months ago #52091
by Mr. Dam
Replied by Mr. Dam on topic number slots which you need
Hi Peter,
Please open file: components > com_osservicesbooking > helpers > calendar.php
<div class="row-fluid bookingformdiv">
<div class="span12 <?php echo $configClass?>">
<?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"/>
Good luck
Dam
Please open file: components > com_osservicesbooking > helpers > calendar.php
<div class="row-fluid bookingformdiv">
<div class="span12 <?php echo $configClass?>">
<?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"/>
Good luck
Dam
Please Log in or Create an account to join the conversation.
- Peter Kuko
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
10 years 6 months ago #52271
by Peter Kuko
Replied by Peter Kuko on topic number slots which you need
It works. Great. Thanks
Please Log in or Create an account to join the conversation.
- Dmitri Fedotov
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 0
10 years 2 months ago - 10 years 2 months ago #58298
by Dmitri Fedotov
Replied by Dmitri Fedotov on topic number slots which you need
There is one more piece of code would be good to modify
at line 1069
delete following code
That will cut information about slots available in main form, than time slots selection will looks clean.
at line 1069
delete following code
Code:
-
<?php
echo JText::_('OS_AVAIL').": ";
echo $avail;
?>
That will cut information about slots available in main form, than time slots selection will looks clean.
Last edit: 10 years 2 months ago by Dmitri Fedotov.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 2 months ago #58404
by Mr. Dam
Replied by Mr. Dam on topic number slots which you need
Thank you very much
Dam
Dam
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.