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

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

1 Like

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 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 and the current Corvid Wishlist here .

See the current features in development here or request your own here .

Hope this helps!

Dara | Corvid Team

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

Hey Tal,

Yeah, no problem!

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

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 and 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

Thank you Dara!

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

  • 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:

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

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

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.

@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