Editor - Business
This view is the main editing view of a business, where it is manipulated from the business information to products and payment configurations. In this view it is advisable to have a section reserved to open the different modals and thus be able to manipulate 100% the business, as an example the original view is shown:
Main Models
In general, all business data is in a variable called deal
and its attributes are accessed depending on what you want to update:
deal.header
: contains the URL of the background imagedeal.logo
: contains the URL of the main image of the businessdeal.name
: Name of the businessdeal.categories
: contains all categories of the business and these categories contain the productscurCategoryName
: model to add a new categorynewProduct
newProduct.name
: Name for a new productnewProduct.price
: Price for a new productnewProduct.description
: Description for a new product
Models for filter
filterProduct
: Model used to filter products
Utility Functions
changeBusinessName(name)
: function that serves to update the name of the business
-selectCategory(category)
: Useful to manage tab categories tab or any other disconnectorchangeCategoryName(category)
: update the name of a categoryupdateCategory(category)
: update the data of a categoryremoveCategory(category)
: delete a category with all its productsaddCategory(curCategoryName)
: add a new categorychangeProductData(product)
: update the data of a productaddProduct(product)
: Add new productshowMoreProductSettings(product)
: open a modal with the details of a productremoveProduct(product)
: delete a productchangeBusinessStatus(deal)
: Enable / disable a businessshowBusinessInfo()
: Open a modal to modify the main information of a businessshowBusinessSchedule()
: Open a modal to modify business schedulesshowBusinessMenu()
: Open a modal that manages business menusshowDeliveryZone()
: Open a modal that manages the delivery areas of a businessshowNotifications()
: Open a modal that manages business notificationsshowPaymentsMethods()
: Open a modal that manages a business's payment methodsshowChannels()
: Open a modal that shows the integrations of a business.showWebhooks()
: Open a modal that manages the webhooks of a businessshowExtensions()
: opens a modal where offers, coupons, taxes and services are administeredcreateOrder()
: It allows to enter the order create mode
Example of base theme
changeBusinessStatus
deal.header
deal.logo
categories listed
updateCategory
category image
curCategoryName
addCategory
deal.name
createOrder
filterProduct
newProduct
newProduct.name
newProduct.price
newProduct.description
addProduct
showMoreProductSettings
removeProduct
Updated over 5 years ago