Solved

How to add a required order datepicker to shipping on checkout?

johncarter
Visitor
2 1 0

I am new to developing in Shopify ( have WordPress/WooCommerce + Laravel background ). I need to require a user to pick a delivery date before they can checkout.

There are some apps (see references below) that allow that, but there are some issues:

  • It seems you can skip the delivery date input if you hit the "Buy it now" button on a product, bypassing the cart screen.
  • The cart page seems to the wrong place to put the delivery date picker - it should be on the shipping details of the checkout.

So I guess I need to:

  • Build a private app that adds a required date picker field to the shipping details of the checkout flow.
  • That date picker should retrieve allowed dates based on the products in the cart from my API, where the business logic resides.
  • Before the order is actually created, I need to perform server side validation that their chosen date still valid and hasn't been tampered with after selecting it in the UI.
  • When the order has been validated and created, add a meta field to the order with its delivery date field.

I have seen the add a date picker tutorial but again this is on the cart page and doesn't allow for server side validation before order creation.

I have also seen https://shopify.dev/apps/checkout/scripts which seems promising, but that states it is in beta and only for Shopify Plus accounts. Is it only available for Shopify Plus because its in beta, or will it only ever be available to Shopify Plus - I'm confused?

Can anyone give me some pointers?

 

Possible apps:

https://apps.shopify.com/order-delivery-date-by-identixweb

https://apps.shopify.com/delivery-date-pro

https://apps.shopify.com/order-delivery-date-lite

 

Accepted Solution (1)

johncarter
Visitor
2 1 0

This is an accepted solution.

After speaking to Shopify live chat, they have confirmed that the scripts feature will only be available to Shopify Plus accounts even when out of beta. My client's budget does not match the monthly fee of Shopify Plus at this time so we cannot do this.

 

 

View solution in original post

Reply 1 (1)

johncarter
Visitor
2 1 0

This is an accepted solution.

After speaking to Shopify live chat, they have confirmed that the scripts feature will only be available to Shopify Plus accounts even when out of beta. My client's budget does not match the monthly fee of Shopify Plus at this time so we cannot do this.