# Can I use code to add a delivery dates to Wix store? 

**URL:** <https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045>\
**Category:** Ask the community\
**Tags:** wix-restaurants, wix-stores, code, question\
**Created:** [August 19, 2020, 9:31am UTC](https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045 "2020-08-19T09:31:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tal18574](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tal18574/32/7688_2.png) [@tal18574](https://forum.wixstudio.com/u/tal18574)\
**Post date:** [August 19, 2020, 9:31am UTC](https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045/1 "2020-08-19T09:31:40Z")

</div>

Hi  
We are creating a site for a deli restaurant. We use the restaurant app. Unfortunately, we can not have inventory in this app, so we decided to switch to the store app. But in the store app we can not let our customers pick specific date&time. Is there a way to add this widget by using code?  
And in general, is there a way to use code to modify six built in apps such as stores and restaurants?

Thank you  
Tal

---

<div class="post-metadata">

**Author:** ![darak](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/darak/32/21140_2.png) [@darak](https://forum.wixstudio.com/u/darak)\
**Post date:** [August 19, 2020, 10:43am UTC](https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045/2 "2020-08-19T10:43:50Z")

</div>

Hi Tal,

It is not possible to modify the Wix Apps using code but you can build your own versions of them.

We have a [wix-stores](https://www.wix.com/corvid/reference/wix-stores#top) API so you could build your own store using code, but we do not have a wix-restaurant API at this time so it is not possible to do anything restaurants related using Corvid.

Your feedback is highly appreciated and has been forwarded to the relevant department. At Wix, we are constantly working to improve and update existing features and introduce new ones.

The latest Corvid updates can be found [here](https://www.wix.com/corvid/updates-and-releases) and the current Corvid Wishlist [here](https://www.wix.com/corvid/wishlist) .

See the current features in development [here](https://www.wix.com/corvid/roadmap) or request your own [here](https://www.wix.com/corvid/request-a-feature) .

Hope this helps!

Dara | Corvid Team

---

<div class="post-metadata">

**Author:** ![tal18574](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tal18574/32/7688_2.png) [@tal18574](https://forum.wixstudio.com/u/tal18574)\
**Post date:** [August 19, 2020, 11:24am UTC](https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045/3 "2020-08-19T11:24:39Z")

</div>

Hi Dara,  
Thanks for the quick response!

Can you please clear out something for me?

1. Is there an API just for adding date&time picker? If so, can you point me to it?
2. Do I need to create the entire store from scratch? Or can I just add one element to it?

Thanks very much  
Tal

---

<div class="post-metadata">

**Author:** ![darak](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/darak/32/21140_2.png) [@darak](https://forum.wixstudio.com/u/darak)\
**Post date:** [August 19, 2020, 1:24pm UTC](https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045/4 "2020-08-19T13:24:11Z")

</div>

Hey Tal,

Yeah, no problem!

1. We have date and time picker elements that you can add to your site.

 ![](https://us1.discourse-cdn.com/wix/original/3X/0/0/00025f69a61b06895f2a03afadfa7dd5c57e1200.png)

You could use code to create your own product page which would allow users to select a date and time for delivery. You can check out the [TimePicker](https://www.wix.com/corvid/reference/$w/timepicker) and [DatePicker](https://www.wix.com/corvid/reference/$w/datepicker) API references to see what you can do using Corvid.

1. You would have to create your own store pages as you cannot interact with the individual elements in the Wix Stores widgets using code.

Dara | Corvid Team

---

<div class="post-metadata">

**Author:** ![tal18574](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tal18574/32/7688_2.png) [@tal18574](https://forum.wixstudio.com/u/tal18574)\
**Post date:** [August 19, 2020, 2:39pm UTC](https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045/5 "2020-08-19T14:39:40Z")

</div>

Thank you Dara!

---

<div class="post-metadata">

**Author:** ![code-queen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-queen/32/696_2.png) [@code-queen](https://forum.wixstudio.com/u/code-queen)\
**Post date:** [August 19, 2020, 3:42pm UTC](https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045/6 "2020-08-19T15:42:21Z")

</div>

You can create a hybrid solution if you are using Wix Stores. (We have done this before for different clients for different situations.)

- You can use the onNewOrder event function to do something after an order has been placed. Link: [https://www.wix.com/corvid/reference/wix-stores-backend/events/onneworder](https://www.wix.com/corvid/reference/wix-stores-backend/events/onneworder)

- You can create a short form directly on the Checkout Page

- You can collapse the checkout widget element, then after they fill out the form you can expand the checkout widget so they can continue to the end of checkout.

In your particular case, you will need to set ‘session storage variables’ so that you can collect the information, save it temporarily in storage and then insert it into a database after the order has been made.

A few things to remember: the form and the checkout widget are not going to be connected to each other, meaning the dates they select will NOT be ‘saved in the order’. You will be saving the information onto a completely separate database that you create on your own.

Here is an example that we built for a store that is renting out equipment so they needed start and end dates:

 ![](https://us1.discourse-cdn.com/wix/original/3X/0/9/09f74f08eec934a9aecdb4ac2dedf2b9fd513eff.png)

Since you cannot change the actual apps / widgets themselves, you have to get creative to develop workaround solutions for each unique use-case.

---

<div class="post-metadata">

**Author:** ![tal18574](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tal18574/32/7688_2.png) [@tal18574](https://forum.wixstudio.com/u/tal18574)\
**Post date:** [August 19, 2020, 4:49pm UTC](https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045/7 "2020-08-19T16:49:30Z")

</div>

That sounds great! I will give it a check. Thanks!!

---

<div class="post-metadata">

**Author:** ![info67301](https://avatars.discourse-cdn.com/v4/letter/i/f07891/32.png) [@info67301](https://forum.wixstudio.com/u/info67301)\
**Post date:** [January 15, 2021, 6:25pm UTC](https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045/8 "2021-01-15T18:25:24Z")

</div>

Can this date picker be somehow added to the checkout? I have a client wanting to sell a food product that ships overnight and they want the date to be picked by the purchaser so they can ship the day before.

---

<div class="post-metadata">

**Author:** ![johnsonsflorists](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/johnsonsflorists/32/11026_2.png) [@johnsonsflorists](https://forum.wixstudio.com/u/johnsonsflorists)\
**Post date:** [May 25, 2021, 7:52pm UTC](https://forum.wixstudio.com/t/can-i-use-code-to-add-a-delivery-dates-to-wix-store/41045/9 "2021-05-25T19:52:30Z")

</div>

@code-queen What do mean by collapsing check out widget element? Are you referring to when your in the checkout page or the checkout button on the cart page? If it is the former, how would you do that since the check out page is out of our control?  
Thanks,  
Tom
