Add shipping date

Hello,

I am trying to add some customisation by adding a “Shipping Date” - my site is using Gatsby & Snipcart, and its for fresh baked food, so I want to be able to allow the customer to decide when to send it and the client to receive that date on the order.

How is best to do this?

Edit: I should probably mention that I am trying to add the date into the checkout area, ideally before they put in addresses/shipping information.

I’ve had to do a similar thing for a similar type of site. I’ve had to make a custom react component that is subscribed to Snipcart state changes. On each state change, I check if I’m on the shipping address or shipping rates stage - as I want to use some logic depending on the user’s address, and I believe you may as well - and render a portal component while hiding Snipcart’s shipping rates list.

Snipcart doesn’t seem to have shipping dates by default - just estimated/guaranteed days for delivery, so I set these dates in the metadata of the order, and from there you create whichever customer logic you like.

2 Likes