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.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024