I added this code to my shopify site http://docs.shopify.com/manual/configuration/store-customization/page-specific/cart-page/capture-delivery-date. It works great, but I can't figure out how to turn off some days. I don't deliver overnight or even 2 day, so I want to disable the ability for customers to choose days that are today's date + the following 7 days.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
You can adjust the min and max dates in your delivery-date.liquid snippet.
To set the minimum date to today's date + 7 days (instead of +1 day in the sample code provided):
See the jQuery UI docs for more info on
minDate
andmaxDate
.You can also disable weekends:
...or disable specific days.