user91397
-1
Q:

// count the number of each item in the cart for (i = 0; i < len; i++) { total += items[i].get('quantity'); } if (total < 3) { alert(' please add more to your shopping cart before checking out'); evt.preventdefault(); } }); </script> <!-- //cart-js -->

	<!-- product right -->
			<div class="contentmkinfo-ads-display col-md-9">
				<div class="wrapper">
					<!-- first section (Napkins) -->
					<div class="product-sec1">
						<h3 class="heading-tittle">Napkins</h3>
						<div class="col-md-4 product-men">
							<div class="men-pro-item simpleCart_shelfItem">
								<div class="men-thumb-item">
									<img src="images/n1.png" alt="">
									<div class="men-cart-pro">
										<div class="inner-men-cart-pro">
											<a href="single.html" class="link-product-add-cart">Quick View</a>
										</div>
									</div>
									<span class="product-new-top">New</span>
								</div>
-1
$('#checkout').on('click', function (evt) {
    var total = 5
    if (total < 6) {
        $('#cartMessage').modal()
        evt.preventDefault();
    }
});
-2

New to Communities?

Join the community