Editor - Delivery zone
List the delivery areas of the business and this opens with the function showDeliveryZone()
in the view theme/views/editor/business.html
Main Models
deal.zones
: contains all business zones in an arraycurNewZone
: This is reserved to create a new businesscurNewZone.price
: delivery price for a new areacurNewZone.minimun
: minimum in order for a new zonecurNewZone.name
: name for a new zone
Utility Functions
hideDeliveryZone()
: close this modalremoveDeliveryZone(zone)
: delete a delivery areashowDeliveryZoneSettings(zone)
: opens a modal that with the details of the delivery area, this serves to modify your dataupdateDeliveryZone(zone)
: updates data from the delivery area.
Example of base theme
deal.zones
listed, if something changes, it activates the functionupdateDeliveryZone(zone)
updateDeliveryZone
showDeliveryZoneSettings
removeDeliveryZone
curNewZone
showDeliveryZoneSettings
but to add a new delivery zone.
Updated over 5 years ago