Last active
September 23, 2015 10:18
-
-
Save cargix1/fde68ee51889c59aedf2 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(); | |
var locationId = $(".clickCollectLocation").val(); | |
if(locationId != 'none') { | |
if(date == '') { | |
alert('Please select a pickup 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