{##
# Product low stock label
#
# @ListChild (list="itemsList.product.grid.customer.info", weight="31")
# @ListChild (list="itemsList.product.list.customer.info", weight="2000")
#}
{% if this.get('product').isShowStockWarning() and this.get('product').getAvailableAmount() > 0 %}
<span class="product-items-available low-stock {% if this.canBeBackordered() %}can-be-backordered{% endif %}">
{{ t('Only X left in stock', {'X': this.get('product').getAvailableAmount()}) }}.
{% include 'modules/QSL/Backorder/product/details/stock/stock-message.twig' %}
</span>
{% endif %}
{% if this.get('product').isShowStockWarning() and this.get('product').getAvailableAmount() == 0 and this.get('product').getIsAvailableForBackorder() %}
<span class="product-items-available low-stock can-be-backordered">
{% include 'modules/QSL/Backorder/product/details/stock/stock-message.twig' %}
</span>
{% endif %}