Presently, in that code there is already a max variable! in main-product.liquid:
{% if product.selected_or_first_available_variant.quantity_rule.max != null %}
data-max=“{{ product.selected_or_first_available_variant.quantity_rule.max }}”
max=“{{ product.selected_or_first_available_variant.quantity_rule.max }}”
{% endif %}
So the code is there now!! But there is no place to set that max variable in the store or product. ![]()