Site URL: https://terrazzo.nz/fibonacci-stone-terrazzo
Hi all,
I'm trying to limit the number of sample products customers can order from a page on our site. (NOTE: 'Add to Cart' has been altered to say "+ Add Sample")
Due to layout requirements, this is a standard page with each sample/product added as individual product blocks.
We want to limit the number of free samples that people can order to 3. Is there a way to do this? I have seen the code below but it isn't quite right for our page:
<script>
document.querySelectorAll("input")[0].setAttribute("max", "3");
</script>
Our template:
Version 7.0– Brine family (Mojave template)
Thanks