This article is also available in:
If you want to enable the feature that blocks the add to cart button for products, but have some products you do not want to disable the add to cart button for, you can block the functionality with this script:

<script>
document.addEventListener('tomitLoaded', function(e) {
tomitProductInventoryInfo.setBlockDisabling(true);
});
</script>


If for instance you want to disable the behaviour for products that don't track inventory:

{% if product.inventory_management != 'shopify' %}
<script>
document.addEventListener('tomitLoaded', function(e) {
tomitProductInventoryInfo.setBlockDisabling(true);
});</script>{% endif %}
Was this article helpful?
Cancel
Thank you!