{##
# Product stock (Product details page)
#}
{% if this.isOutOfStock() and this.canBeBackordered() %}
<div class="product-stock {{ this.getFingerprint() }}">
{% if this.getItemsInCart() %}
<p class="product-added-note">
<i class="icon-ok-mark"></i>
{{ this.getItemsInCartMessage() | raw}}
</p>
{% endif %}
<span class="stock-level product-out-of-stock">
{% include 'modules/QSL/Backorder/product/details/stock/stock-message.twig' %}
</span>
{{ widget_list('product.stock.info') }}
</div>
<div class="clearfix"></div>
{% elseif this.isShowStockWarning() and this.canBeBackordered() %}
<div class="product-stock {{ this.getFingerprint() }}">
{% if this.getItemsInCart() %}
<p class="product-added-note">
<i class="icon-ok-mark"></i>
{{ this.getItemsInCartMessage() | raw}}
</p>
{% endif %}
<span class="stock-level product-in-stock">
<span class="product-items-available low-stock can-be-backordered">
{{ t('Only X left in stock', {'X': this.getAvailableAmount()}) }}.
{% include 'modules/QSL/Backorder/product/details/stock/stock-message.twig' %}
</span>
</span>
{{ widget_list('product.stock.info') }}
</div>
<div class="clearfix"></div>
{% else %}
{% include 'product/details/stock/body.twig' %}
{% endif %}