Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Weekly calendar does not show correct hours
(1 viewing) (1) Guest
Universal booking and reservations component for Joomla!.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.

TOPIC: Weekly calendar does not show correct hours

Weekly calendar does not show correct hours 12 years ago #34093

If I set up different reservation schedules for a meeting room, then the weekly calendar is not showing the correct hours anymore:

The meeting room can be reserved from 17:00 to 07:00 during weekdays
On weekends the room can be reserverd from 07:00-00:00

The weekly calendar only shows the labels from 17:00 - 07:00 (the weekend hours are completely missing...)

Any solution to this?
Attachments:
Last Edit: 12 years ago by das.zeichen. Reason: adding file
The topic has been locked.

Re: Weekly calendar does not show correct hours 12 years ago #34094

It seems as if the algorithm for the hourly labels takes just the $firstday into account, not the day with the longest reservation period...
The topic has been locked.

Re: Weekly calendar does not show correct hours 12 years ago #34178

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

can you send us printscreens with your object settings? Properties, Reservation types and Prices?
ARTIO Support Team
The topic has been locked.

Re: Weekly calendar does not show correct hours 12 years ago #34179

Here come the screenshots.

reservationtypes_booking.png


properties_booking.png


prices_booking.jpg
Last Edit: 12 years ago by das.zeichen.
The topic has been locked.

Re: Weekly calendar does not show correct hours 12 years ago #34201

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

did you modify or create new weekly calendar? We have not this problem on our booking installation, but weekly calendar looks completely different.
ARTIO Support Team
The topic has been locked.

Re: Weekly calendar does not show correct hours 12 years ago #34341

Yes, I modified the weekly calendar template overwrite. However, if I use the default template the problem is still there. It is obvious that there must be this problem if you look at the code in the template:
 
foreach ($this->days->calendar as $firstDay) {
/* @var $firstDay BookingDay */
 
$pricesPositions = array();
foreach ($firstDay->boxes as $bkey => $box) {
 


this will iterate through all the days, and all boxes per day starting from the firstday in the array. However, if the first day in the array doesn't contain the same amount of boxes as all the others, then it will render only the amount of boxes for a specific day. This will break the view of the weekly calendar.

It would be good to build a time grid (from-to) and then render the boxes of each respective day within this time grid.
What do you think?
The topic has been locked.
User Login Empty