Created
October 2, 2015 13:06
-
-
Save cargix1/9ab31d511859700c8d03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if template contains 'cart' %} | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("[name='checkout']").on("click", function() { | |
var date = $(".zapietCollectionDate").val(); | |
if(date == '') { | |
alert('Please select a date and time.'); | |
return false; | |
} | |
}); | |
}); | |
</script> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment