Not Checked CheckeBox No Redirect Add To Cart Page

 



Function.JS

/* Product Single Page Add to Cart */
	  $("button.single_add_to_cart_button").click(function() {
		 if ($(".checkboxbutton").hasClass('checked')) {
			 window.location.href = "https://lmtsuccessgroup-com.clickonlinemanager.co.uk/cart/";
		 } else {
			 $(".location-error-msg").text("Please select Location & Dates");
			 return false;
		 }
	 });
	
	$(window).load(function() {
		$(".options.default-closed").append('<div class="location-error-msg"></div>');
	});