<{if $product->getAllowNegativeStock() or $product->getIsInStock()}> <{if $product->getExtensionValue('comment_attribute_id')}> <{assign var="comment_attribute_id" value=$product->getExtensionValue('comment_attribute_id')}> <{else}> <{assign var="comment_attribute_id" value='null'}> <{/if}> <{include file="components/add-to-cart.html" class="product-view__add-to-cart" show_variant="true" type="button" product_id=$product->getProductId() show_addons="true" show_quantity="true" show_badge="true" allow_backorder=$product->getAllowNegativeStock() stock=$product->getStockCount() comment_attribute_id=$comment_attribute_id }> <{else}> <{include file="components/back-in-stock-form.html"}> <{/if}>