- Team backend. Can you please create endpoints with crud actions for deliveries.
- The array bellow is an example of the collection of deliveries to be saved in the database.
- These deliveries will be managed in tablero.
- The deliveries will be scoped by realm
Checkout a demo of the new checkout
cons deliveries = [
{
title: "🌟 FreshNow delivery charge 🌟",
description: "Deliver now (within 1 hour)",
isAccountForHolders: true, //optional
deliveryCities: [
{
Harare: {
usingSuburbPricing: false,
suburbs: [
{
name: 'Kambuzuma',
prices: {
'USD': 30,
'ZWL': 3000
}
},
{
name: 'Belvedere',
prices: {
'USD': 5,
'ZWL': 500
}
}
],
prices: {
'usd': 20,
'pula': 100,
},
deliveryDays: {
Monday: { from: "08:00", to: "14:00" },
Tuesday: { from: "08:00", to: "14:00" },
Wednesday: { from: "08:00", to: "14:00" },
Thursday: { from: "08:00", to: "14:00" },
Friday: { from: "08:00", to: "14:00" }
},
notAvailableDays: ["Saturday", "Sunday"],
showCountDown: false,
notAvailableTimes: [
{ from: "14:00", to: "23:00" },
{ from: "00:00", to: "09:00" }
], // will be overidden by the deliveryDays
deliversIn: "2h", // only applies after a user selects the package during the valid time
fixedDayDelivery: false,
hoursBeforeOrderCanBeDelivered: 0
}
}
]
}
]
Proposal for the new delivery system
Checkout a demo of the new checkout