intermediate Intermediate tutorials require familiarity with basic web design concepts, as well as basic knowledge of HTML, CSS and JavaScript.

Add a date picker and capturing delivery dates on the cart page

In order to capture a delivery date, you will need to customize your Shopify Theme.

1. Go to the Edit HTML/CSS page.

2. Locate and click the Snippets file to open it.


3. Scroll down to the bottom of the folder and click the Add a new snippet link.

4. Give your snippet a title called: delivery-date.


5. Click Create snippet.

6. Open up a new tab in your browser.

7. Go to

8. Click on the Raw button and copy all of the content on that page (CMD-C for Mac users and CTRL-C for Windows users).

9. Back in your admin, paste all of the copied content into your 'delivery-date' snippet (CMD-V for Mac users and CTRL-V for Windows users).


10. Save your changes.

11. Still on the Edit HTML/CSS page, under the Templates folder, locate and click on cart.liquid to open it in the online code editor.

12. Locate the closing tag of your cart form (you can do this by hitting ⌘-F or CTRL-F and searching "/form": </form>

13. Right above </form>, add the following line:

{% include 'delivery-date' %}

14. Save your changes.

You now have a new delivery-date input field on your cart page. When you mouse-click inside the text field, a date-picker will pop up below:


The captured delivery date will show up in your order notes like so:


The datepicker used here is a widget from the jQuery UI library. The widget is documented here. This blog post will show you how to disable days in the datepicker.

This customization is not supported by our Shopify Gurus. Learn more ›

Ready to put what you've learned into action?

Build an online store with Shopify. Try it free.

Experience the future of retail now.

Shopify Point of Sale. Try it free.