Personalized checkout and custom promotions with Shopify Scripts
Hi, how do I block out specific dates, such as Christmas Day on my calendar, so that my customers do not book that day?
https://pixietrixieplayhouse.com/pages/spaservices
Thanks
Hey there @pixietrixie have you tried any date picker app to this yet? There are a few good ones you can find on the Shopify store for it.
Hi @pixietrixie,
The datepicker that is being used in your store is Jquery Datepicker. It has options to disable dates
For Ex:
var dates = ["25/12/2024"];
function DisableDates(date) {
var string = jQuery.datepicker.formatDate('dd/mm/yy', date);
return [dates.indexOf(string) == -1];
}
$(function() {
$("#date").datepicker({
beforeShowDay: DisableDates
});
});
If you can code, you can make these changes in the custom.js within the assets folder or else you need to use an app to solve this.
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025