Delivery address

The delivery address information for the order will be stored in the delivery address subdocument with street, city, state, zipcode, and country fields.

mern-marketplace/server/models/order.model.js:

delivery_address: {    street: {type: String, required: 'Street is required'},    city: {type: String, required: 'City is required'},    state: {type: String},    zipcode: {type: String, required: 'Zip Code is required'},    country: {type: String, required: 'Country is required'}  },

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.