number slots which you need

  • Peter Kuko
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 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.

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

More
9 years 5 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 Log in or Create an account to join the conversation.

  • Peter Kuko
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 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.

More
9 years 2 months ago - 9 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
Code:
&nbsp;-&nbsp; <?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: 9 years 2 months ago by Dmitri Fedotov.

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

More
9 years 2 months ago #58404 by Mr. Dam
Replied by Mr. Dam on topic number slots which you need
Thank you very much
Dam

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

Moderators: Mr. Dam