Add maximum order quantity (Brooklyn Theme)

New Member
1 0 0

Hey there!

I would like to limit the maximum order quantity of a product that a customer can add to the cart. I'm working with the Brooklyn theme and I know that this is the code that needs to be modified (product-template.liquid):

{% if section.settings.quantity_enabled %}
<div class="product-single__quantity">
<label for="Quantity" class="product-single__quantity-label js-quantity-selector">{{ 'products.product.quantity' | t }}</label>
<input type="number" hidden="hidden" id="Quantity" name="quantity" value="1" min="1" class="js-quantity-selector">
{% endif %}

Thanks for helping!