Hi all,
Currently I am creating a delivery picker in the cart page. It is working. However, the calendar blocked all my weekends.
My Questions:
-
In which line of the existing code I can disable and enable the delivery date?
-
Can I make it mandatory where customer cannot check out if they didn’t select the delivery date?
-
Can I have a buffer of 2 days from the “on date”? Example: today is 9/11/2024, customer can only select 2 days after the current date.
Let me share the code.
theme.liquid
{{ ‘//ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js’ | script_tag }}
create a delivery date snippet
{{ ‘//code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css’ | stylesheet_tag }}
Pick a delivery date:
We do not deliver during the week-end.
snippet in cart page - cart.liquid
{% render ‘delivery-date’ %}
RESULT
