Preorder popup
modal that opens when the pre order option is selected to choose the available dates and times.
Main models
menus
: contains the menus available for this businesscurPreorder
curPreorder.date
: the selected daycurPreorder.time
: the selected timecurPreorder.days
: the days that can be selected in an arraycurPreorder.times
: the hours that can be selected that day
Utility Functions
selectDate()
: top up the hours available for this dayselectHour()
:goToMenu()
: send to the business view with the preorder option and the selected menuselectMenu(menu)
: select a menu, and reload the days available for this menuhidePreorder()
: close the modal
Example of base theme
![image18.png 560](https://files.readme.io/2797c36-image18.png)
hidePreorder()
menus
selectMenu(menu)
selectDate()
selectHOur
Updated over 5 years ago