Editor - Business menu settings
This view is a fashion that opens when the function showBusinessMenuSttings()
is used in the view theme/views/editor/business-menu.html and it serves to add or modify the menus of a business.
Main Models
menu.name
: menus namemenu.delivery
: Boolean, check if the menu is of the delivery type.menu.pickup
: boolean, check if the menu is pick-up type.menu.comment
: string, comentario acerca del menucategories
: contains the categories of the business.curCategory
: aux for select one category
Utility Functions
hideBusinessMenuSettings()
: It serves to close this viewupdateMenu(menu, categories)
: update menu informationaddMenu(menu, categories)
: add a new menueditSchedule()
: Open a modal that is used to manage schedulestoggleCategory(category_id)
: It serves to changetoggleAll(category)
: Check / uncheck all the products of a category for the menutoggleProduct(category)
: check / uncheck a product for the menu
Example of base theme
- Menus basic information
- categories and products selection for menu.
Updated almost 6 years ago