Back to Reservations Units Support

nolybom
nolybom

Hi,

i am struggeling for a while now with this and hope to get a little support...

The logic behind the quantity- and time picker seems to be that they depend on the previous chosen option...which makes sense...depending on the day the available time slots are shown...and depending on chosen timeslot, the available quantity is being offered.

From the UI-perspective i think it would be much user-friendlier if the depending fields would show up after the user has made a choice, which means...

  • show the timepicker after the date is picked,
  • show the quantity-picker after the time is picked

What do you think?

--

After i understood that i had to pick the date first, i understood the bug i am facing. Do you have any idea why it is not possible for me to choose a time eventhough i have set up available times in the backend? (...and therefor can not chose quantity.)

Thank you very much for your time to respond and help me and everyone else facing this find a solution.

Best regards Noly


P.s.: And thank you for all your outstanding oc-plugins. Keep up your great work! :)

Last updated

Vojta Svoboda
Vojta Svoboda

Hi Noly, for some use-cases it would be better to hide time and quantity and show them after selecting the date, but not for all of them. Some websites have a predefined layout and are not prepared for showing/hiding HTML elements on the fly.

But you are free to write little JavaScript code which desired the logic for you :-) It should be no more than 10 lines of code.

Regarding your bug - check if you have created units with quantity more then 0 and all units are available for selected date/time. It should works like in demo: http://reservations-units.9px.cz/

nolybom
nolybom

Hello Vojta,

regarding the UI...i cant think of a use-case where my suggested workflow wouldnt make sense and since the plugins component contains the reservation form i thought it would make sense to have it as part of your core script. I am happy to provide some code for that once done. :)

--

Regarding the bug.... shouldnt it work right out of the box? I thought thats the reason also behind the two entries Table1 & Table2.

check if you have created units with quantity more then 0

You mean the field "Capacity" right? If yes, yes, i have put there for testing purpose "100000".

all units are available for selected date/time

I can not see a relation for that setting in the backend besides the possibility to choose timeframe in "Working Days" in the Settings area.

Speaking of working days i think it would be a big plus for your plugin to be able to choose "closed days" like christmas etc.

nolybom
nolybom

edit: the calendar on your demo page is not showing the entries. does it need some work from your side or can i unscrupulously purchase it?

Vojta Svoboda
Vojta Svoboda

For testing purpose set the quantity to something lower, because of the reservation form, which showing quantity as select box and your select box will have 100000 options :-)

Calendar showing only future events, because of saving transferred data for sites running years. Now I have created a reservation for 10/10/2019 at you can find it at the calendar.

nolybom
nolybom

Thanks for the advise.

Just a small hint: In your default component there are some errors like labels have the same "for" name and class "sent" is not added to the form after success submit because of duplicate class element

<form class="reservationform form" method="post" data-request="{{ SELF }}::onSubmit" data-request-update="'{{ SELF }}::success': '#result'" data-request-success="$('#{{ SELF }} input[type=text], #{{ SELF }} textarea').val('');" id="{{SELF}}"{% if sent %} class="sent"{% endif %}>

I am trying to redirect after successful submit of form. This is what i tried:

data-request-update="'{{ reservationUnitForm }}::success': 'function(json) {window.location.href = 'PageURL'}'"

Doesn't work though. Your help is very much appreciated. Thank you.

1-6 of 6