- Posts: 62
- Thank you received: 0
How to extend service_length and step_in_minutes for specified dates?
- Krx
-
Topic Author
- Offline
- Senior Member
-
Less
More
2 days 19 hours ago #175364
by Krx
How to extend service_length and step_in_minutes for specified dates? was created by Krx
Hello
I have specific case where I need to extend "Service Length" and "Step in Minutes" by 30 minutes
for three specified dates.
Can you suggest where to modify ajax.php or ajax.html.pgp or calendar.php top achieve this?
the logic should be something like this:
when clicked on calendar day
if
Selected Date equals 10.12.2025. or 15.12.2025. or 20.12.2025.
$service_length = $service->service_total+"30";
$step_in_minutes = $service->step_in_minutes+"30";
else
$service_length = $service->service_total;
$step_in_minutes = $service->step_in_minutes;
Is this possible?
Using OSB 2.22.6 and Joomla 5
Thanks
I have specific case where I need to extend "Service Length" and "Step in Minutes" by 30 minutes
for three specified dates.
Can you suggest where to modify ajax.php or ajax.html.pgp or calendar.php top achieve this?
the logic should be something like this:
when clicked on calendar day
if
Selected Date equals 10.12.2025. or 15.12.2025. or 20.12.2025.
$service_length = $service->service_total+"30";
$step_in_minutes = $service->step_in_minutes+"30";
else
$service_length = $service->service_total;
$step_in_minutes = $service->step_in_minutes;
Is this possible?
Using OSB 2.22.6 and Joomla 5
Thanks
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13323
- Thank you received: 1741
2 days 17 hours ago #175370
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic How to extend service_length and step_in_minutes for specified dates?
Hi,
Currently, there is no feature to add extra hours to timeslots on special days.
However, you can use the custom fields feature to create options that allow you to extend the booking time.
Thanks
Dam
Currently, there is no feature to add extra hours to timeslots on special days.
However, you can use the custom fields feature to create options that allow you to extend the booking time.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Krx
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 62
- Thank you received: 0
2 days 14 hours ago #175372
by Krx
Replied by Krx on topic How to extend service_length and step_in_minutes for specified dates?
Hi
Thanks for the info.
Didn't knew that new version has it implemented already.
Well, my client didn't want to spend extra $ for upgrade because they demanded customization for which needed to modify core files and if I upgrade I would need to redo it again.
Which is basically the same extra work because latest versions probably changed a lot of code in ajax.php, ajax.html.php and calendar.php files
Thanks,
regards
Thanks for the info.
Didn't knew that new version has it implemented already.
Well, my client didn't want to spend extra $ for upgrade because they demanded customization for which needed to modify core files and if I upgrade I would need to redo it again.
Which is basically the same extra work because latest versions probably changed a lot of code in ajax.php, ajax.html.php and calendar.php files
Thanks,
regards
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13323
- Thank you received: 1741
2 days 6 hours ago #175381
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic How to extend service_length and step_in_minutes for specified dates?
Hi,
We would like to clarify that this functionality has been available for quite some time and is not a newly introduced feature. Therefore, it cannot be considered as a recent addition to our system. As such, we are unable to accommodate the request to avoid the upgrade fee on the basis that the feature is new. The upgrade fee applies to all users wishing to access this functionality, as per our standard policy.
However, if you prefer not to upgrade in order to keep your core files unchanged, that is absolutely fine. If you need, we can offer a custom job to add a feature that allows you to increase the duration for specific timeslots on special days.
Please let us know if you are interested in this option or if you have any other questions.
Thanks
Dam
We would like to clarify that this functionality has been available for quite some time and is not a newly introduced feature. Therefore, it cannot be considered as a recent addition to our system. As such, we are unable to accommodate the request to avoid the upgrade fee on the basis that the feature is new. The upgrade fee applies to all users wishing to access this functionality, as per our standard policy.
However, if you prefer not to upgrade in order to keep your core files unchanged, that is absolutely fine. If you need, we can offer a custom job to add a feature that allows you to increase the duration for specific timeslots on special days.
Please let us know if you are interested in this option or if you have any other questions.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Krx
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 62
- Thank you received: 0
1 day 21 hours ago #175399
by Krx
Replied by Krx on topic How to extend service_length and step_in_minutes for specified dates?
Hi
Fortunately I managed to solve my need.
In calendar.php, approx line 1100 I added this:
$HZselectedDateVar = sprintf('%02d.%02d.%04d.', $date[0], $date[1], $date[2]);
$HZspecialDates = ;
if (in_array($HZselectedDateVar, $HZspecialDates)) {
$step_in_minutes = (int)$step_in_minutes + 30;
}
So for hard-coded dates I got extra 30 minutes between sessions.
Ill update OSB next year and redo changes, but for this year client didn't want to spend on updates.
Regards
Fortunately I managed to solve my need.
In calendar.php, approx line 1100 I added this:
$HZselectedDateVar = sprintf('%02d.%02d.%04d.', $date[0], $date[1], $date[2]);
$HZspecialDates = ;
if (in_array($HZselectedDateVar, $HZspecialDates)) {
$step_in_minutes = (int)$step_in_minutes + 30;
}
So for hard-coded dates I got extra 30 minutes between sessions.
Ill update OSB next year and redo changes, but for this year client didn't want to spend on updates.
Regards
Please Log in or Create an account to join the conversation.
Moderators: Dang Thuc 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.