kisukecze
Forum Replies Created
-
Forum: Plugins
In reply to: [Table Reservation] Default reservation duration in Pro version.Hi,
just for info, I managed to achieve this behavior by this modification:
In files:
assets/js/app.12ce87c98b58bdcd80f2.js
andassets/js/app.fe4dc0b7912549703fc7.js
Find this string:
this.sliderValue = Math.floor((this.sliderMin + this.sliderMax) / 2) - Math.floor((this.sliderMin + this.sliderMax) / 2) % this.sliderTimeInterval
And replace it with this string:
this.sliderValue = Number(this.calendarTimeInitData.reservation_duration)
Works perfect after that.
(Actually I cannot say what original code was counting. If someone could explain, it could be interesting. But it did not make any sense to me – probably I will have to draw it to understand that…)Forum: Plugins
In reply to: [Table Reservation] Default reservation duration in Pro version.Hi, thanks for quick response.
I did not meant changing text. But the value of reservation duration, which is preselected by default, when customer wants to make reservation.
Now it seems it is set by default to exactly middle value between minimum and maximum length. If I could change it somewhere, I would like to (but it is not absolutely necessary). Because typical reservation for our type of bussiness is 1 hour. But I want to give clients option to reserve their favourite table for whole opening hours if they want to.I am of course aware that any changes in plugin itself (js or php files) will be overwritten by every update.
Anyway, I will be happy if there will be option to change it in GUI in future versions. “Average reservation duration” could be good place where to set this, if custom duration is enabled. It makes sense to me.