<{if $dev}> <{if $product->getMetaValue('stock_alert_threshold')}> <{assign var="stockAlertThreshold" value=$product->getMetaValue('stock_alert_threshold')}> <{else}> <{assign var="category" value=$product->getCategory()}> <{if $category && $category->getMetaValue('stock_alert_threshold')}> <{assign var="stockAlertThreshold" value=$category->getMetaValue('stock_alert_threshold')}> <{else}> <{if $category}> <{assign var="parentCategories" value=$category->getParents()}> <{section name="c" loop=$parentCategories}> <{if $parentCategories[c]->getMetaValue('stock_alert_threshold') && $stockAlertThreshold == ""}> <{assign var="stockAlertThreshold" value=$parentCategories[c]->getMetaValue('stock_alert_threshold')}> <{/if}> <{/section}> <{/if}> <{/if}> <{/if}> <{assign var="inStock" value=$product->getStockCount()}> <{if $stockAlertThreshold != "" && $inStock > 0 && $stockAlertThreshold >= $inStock}> <{/if}> <{/if}>